Skip to content

Commit 34e3b5c

Browse files
committed
Appwrite 1.5 support
1 parent e2e86f6 commit 34e3b5c

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
appwrite health getQueueUsageDump \
2+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
appwrite projects updateAPIStatusAll \
1+
appwrite projects updateApiStatusAll \
22
--projectId <PROJECT_ID> \
33
--status false

lib/commands/health.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -597,16 +597,16 @@ const healthGetQueueUsage = async ({ threshold, parseOutput = true, sdk = undefi
597597
}
598598

599599
/**
600-
* @typedef {Object} HealthGetQueueUsageRequestParams
600+
* @typedef {Object} HealthGetQueueUsageDumpRequestParams
601601
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
602602
* @property {boolean} parseOutput
603603
* @property {libClient | undefined} sdk
604604
*/
605605

606606
/**
607-
* @param {HealthGetQueueUsageRequestParams} params
607+
* @param {HealthGetQueueUsageDumpRequestParams} params
608608
*/
609-
const healthGetQueueUsage = async ({ threshold, parseOutput = true, sdk = undefined}) => {
609+
const healthGetQueueUsageDump = async ({ threshold, parseOutput = true, sdk = undefined}) => {
610610
let client = !sdk ? await sdkForProject() : sdk;
611611
let apiPath = '/health/queue/usage-dump';
612612
let payload = {};
@@ -849,10 +849,10 @@ health
849849
.action(actionRunner(healthGetQueueUsage))
850850

851851
health
852-
.command(`getQueueUsage`)
852+
.command(`getQueueUsageDump`)
853853
.description(`Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.`)
854854
.option(`--threshold <threshold>`, `Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.`, parseInteger)
855-
.action(actionRunner(healthGetQueueUsage))
855+
.action(actionRunner(healthGetQueueUsageDump))
856856

857857
health
858858
.command(`getQueueWebhooks`)
@@ -895,7 +895,7 @@ module.exports = {
895895
healthGetQueueMessaging,
896896
healthGetQueueMigrations,
897897
healthGetQueueUsage,
898-
healthGetQueueUsage,
898+
healthGetQueueUsageDump,
899899
healthGetQueueWebhooks,
900900
healthGetStorage,
901901
healthGetStorageLocal,

lib/commands/projects.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,17 +320,17 @@ const projectsUpdateApiStatus = async ({ projectId, api, status, parseOutput = t
320320
}
321321

322322
/**
323-
* @typedef {Object} ProjectsUpdateAPIStatusAllRequestParams
323+
* @typedef {Object} ProjectsUpdateApiStatusAllRequestParams
324324
* @property {string} projectId Project unique ID.
325325
* @property {boolean} status API status.
326326
* @property {boolean} parseOutput
327327
* @property {libClient | undefined} sdk
328328
*/
329329

330330
/**
331-
* @param {ProjectsUpdateAPIStatusAllRequestParams} params
331+
* @param {ProjectsUpdateApiStatusAllRequestParams} params
332332
*/
333-
const projectsUpdateAPIStatusAll = async ({ projectId, status, parseOutput = true, sdk = undefined}) => {
333+
const projectsUpdateApiStatusAll = async ({ projectId, status, parseOutput = true, sdk = undefined}) => {
334334
let client = !sdk ? await sdkForConsole() : sdk;
335335
let apiPath = '/projects/{projectId}/api/all'.replace('{projectId}', projectId);
336336
let payload = {};
@@ -1729,11 +1729,11 @@ projects
17291729
.action(actionRunner(projectsUpdateApiStatus))
17301730

17311731
projects
1732-
.command(`updateAPIStatusAll`)
1732+
.command(`updateApiStatusAll`)
17331733
.description(``)
17341734
.requiredOption(`--projectId <projectId>`, `Project unique ID.`)
17351735
.requiredOption(`--status <status>`, `API status.`, parseBool)
1736-
.action(actionRunner(projectsUpdateAPIStatusAll))
1736+
.action(actionRunner(projectsUpdateApiStatusAll))
17371737

17381738
projects
17391739
.command(`updateAuthDuration`)
@@ -2044,7 +2044,7 @@ module.exports = {
20442044
projectsUpdate,
20452045
projectsDelete,
20462046
projectsUpdateApiStatus,
2047-
projectsUpdateAPIStatusAll,
2047+
projectsUpdateApiStatusAll,
20482048
projectsUpdateAuthDuration,
20492049
projectsUpdateAuthLimit,
20502050
projectsUpdateAuthSessionsLimit,

0 commit comments

Comments
 (0)