appwrite-cli 11.0.0 → 11.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.js +2 -2
- package/lib/commands/account.js +12 -2
- package/lib/commands/databases.js +30 -5
- package/lib/commands/functions.js +24 -4
- package/lib/commands/messaging.js +54 -9
- package/lib/commands/migrations.js +6 -1
- package/lib/commands/projects.js +24 -4
- package/lib/commands/proxy.js +6 -1
- package/lib/commands/sites.js +19 -4
- package/lib/commands/storage.js +12 -2
- package/lib/commands/tables-db.js +30 -5
- package/lib/commands/teams.js +18 -3
- package/lib/commands/tokens.js +6 -1
- package/lib/commands/users.js +36 -6
- package/lib/commands/vcs.js +6 -1
- package/lib/parser.js +1 -1
- package/lib/type-generation/languages/csharp.js +8 -8
- package/lib/type-generation/languages/dart.js +7 -7
- package/lib/type-generation/languages/java.js +7 -7
- package/lib/type-generation/languages/kotlin.js +4 -4
- package/lib/type-generation/languages/php.js +9 -9
- package/lib/type-generation/languages/swift.js +8 -8
- package/lib/type-generation/languages/typescript.js +4 -4
- package/package.json +1 -1
- package/scoop/appwrite.config.json +3 -3
package/lib/commands/storage.js
CHANGED
|
@@ -43,6 +43,7 @@ const storage = new Command("storage").description(commandDescriptions['storage'
|
|
|
43
43
|
* @typedef {Object} StorageListBucketsRequestParams
|
|
44
44
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus
|
|
45
45
|
* @property {string} search Search term to filter your list results. Max length: 256 chars.
|
|
46
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
46
47
|
* @property {boolean} overrideForCli
|
|
47
48
|
* @property {boolean} parseOutput
|
|
48
49
|
* @property {libClient | undefined} sdk
|
|
@@ -51,7 +52,7 @@ const storage = new Command("storage").description(commandDescriptions['storage'
|
|
|
51
52
|
/**
|
|
52
53
|
* @param {StorageListBucketsRequestParams} params
|
|
53
54
|
*/
|
|
54
|
-
const storageListBuckets = async ({queries,search,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
55
|
+
const storageListBuckets = async ({queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
55
56
|
let client = !sdk ? await sdkForProject() :
|
|
56
57
|
sdk;
|
|
57
58
|
let apiPath = '/storage/buckets';
|
|
@@ -62,6 +63,9 @@ const storageListBuckets = async ({queries,search,parseOutput = true, overrideFo
|
|
|
62
63
|
if (typeof search !== 'undefined') {
|
|
63
64
|
payload['search'] = search;
|
|
64
65
|
}
|
|
66
|
+
if (typeof total !== 'undefined') {
|
|
67
|
+
payload['total'] = total;
|
|
68
|
+
}
|
|
65
69
|
|
|
66
70
|
let response = undefined;
|
|
67
71
|
|
|
@@ -286,6 +290,7 @@ const storageDeleteBucket = async ({bucketId,parseOutput = true, overrideForCli
|
|
|
286
290
|
* @property {string} bucketId Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
|
|
287
291
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, signature, mimeType, sizeOriginal, chunksTotal, chunksUploaded
|
|
288
292
|
* @property {string} search Search term to filter your list results. Max length: 256 chars.
|
|
293
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
289
294
|
* @property {boolean} overrideForCli
|
|
290
295
|
* @property {boolean} parseOutput
|
|
291
296
|
* @property {libClient | undefined} sdk
|
|
@@ -294,7 +299,7 @@ const storageDeleteBucket = async ({bucketId,parseOutput = true, overrideForCli
|
|
|
294
299
|
/**
|
|
295
300
|
* @param {StorageListFilesRequestParams} params
|
|
296
301
|
*/
|
|
297
|
-
const storageListFiles = async ({bucketId,queries,search,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
302
|
+
const storageListFiles = async ({bucketId,queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
298
303
|
let client = !sdk ? await sdkForProject() :
|
|
299
304
|
sdk;
|
|
300
305
|
let apiPath = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);
|
|
@@ -305,6 +310,9 @@ const storageListFiles = async ({bucketId,queries,search,parseOutput = true, ove
|
|
|
305
310
|
if (typeof search !== 'undefined') {
|
|
306
311
|
payload['search'] = search;
|
|
307
312
|
}
|
|
313
|
+
if (typeof total !== 'undefined') {
|
|
314
|
+
payload['total'] = total;
|
|
315
|
+
}
|
|
308
316
|
|
|
309
317
|
let response = undefined;
|
|
310
318
|
|
|
@@ -815,6 +823,7 @@ storage
|
|
|
815
823
|
.description(`Get a list of all the storage buckets. You can use the query params to filter your results.`)
|
|
816
824
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus`)
|
|
817
825
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
826
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
818
827
|
.option(`--console`, `Get the resource console url`)
|
|
819
828
|
.action(actionRunner(storageListBuckets))
|
|
820
829
|
|
|
@@ -867,6 +876,7 @@ storage
|
|
|
867
876
|
.requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).`)
|
|
868
877
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, signature, mimeType, sizeOriginal, chunksTotal, chunksUploaded`)
|
|
869
878
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
879
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
870
880
|
.option(`--console`, `Get the resource console url`)
|
|
871
881
|
.action(actionRunner(storageListFiles))
|
|
872
882
|
|
|
@@ -43,6 +43,7 @@ const tablesDB = new Command("tables-db").description(commandDescriptions['table
|
|
|
43
43
|
* @typedef {Object} TablesDBListRequestParams
|
|
44
44
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name
|
|
45
45
|
* @property {string} search Search term to filter your list results. Max length: 256 chars.
|
|
46
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
46
47
|
* @property {boolean} overrideForCli
|
|
47
48
|
* @property {boolean} parseOutput
|
|
48
49
|
* @property {libClient | undefined} sdk
|
|
@@ -51,7 +52,7 @@ const tablesDB = new Command("tables-db").description(commandDescriptions['table
|
|
|
51
52
|
/**
|
|
52
53
|
* @param {TablesDBListRequestParams} params
|
|
53
54
|
*/
|
|
54
|
-
const tablesDBList = async ({queries,search,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
55
|
+
const tablesDBList = async ({queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
55
56
|
let client = !sdk ? await sdkForProject() :
|
|
56
57
|
sdk;
|
|
57
58
|
let apiPath = '/tablesdb';
|
|
@@ -62,6 +63,9 @@ const tablesDBList = async ({queries,search,parseOutput = true, overrideForCli =
|
|
|
62
63
|
if (typeof search !== 'undefined') {
|
|
63
64
|
payload['search'] = search;
|
|
64
65
|
}
|
|
66
|
+
if (typeof total !== 'undefined') {
|
|
67
|
+
payload['total'] = total;
|
|
68
|
+
}
|
|
65
69
|
|
|
66
70
|
let response = undefined;
|
|
67
71
|
|
|
@@ -467,6 +471,7 @@ const tablesDBDelete = async ({databaseId,parseOutput = true, overrideForCli = f
|
|
|
467
471
|
* @property {string} databaseId Database ID.
|
|
468
472
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name, enabled, rowSecurity
|
|
469
473
|
* @property {string} search Search term to filter your list results. Max length: 256 chars.
|
|
474
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
470
475
|
* @property {boolean} overrideForCli
|
|
471
476
|
* @property {boolean} parseOutput
|
|
472
477
|
* @property {libClient | undefined} sdk
|
|
@@ -475,7 +480,7 @@ const tablesDBDelete = async ({databaseId,parseOutput = true, overrideForCli = f
|
|
|
475
480
|
/**
|
|
476
481
|
* @param {TablesDBListTablesRequestParams} params
|
|
477
482
|
*/
|
|
478
|
-
const tablesDBListTables = async ({databaseId,queries,search,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
483
|
+
const tablesDBListTables = async ({databaseId,queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
479
484
|
let client = !sdk ? await sdkForProject() :
|
|
480
485
|
sdk;
|
|
481
486
|
let apiPath = '/tablesdb/{databaseId}/tables'.replace('{databaseId}', databaseId);
|
|
@@ -486,6 +491,9 @@ const tablesDBListTables = async ({databaseId,queries,search,parseOutput = true,
|
|
|
486
491
|
if (typeof search !== 'undefined') {
|
|
487
492
|
payload['search'] = search;
|
|
488
493
|
}
|
|
494
|
+
if (typeof total !== 'undefined') {
|
|
495
|
+
payload['total'] = total;
|
|
496
|
+
}
|
|
489
497
|
|
|
490
498
|
let response = undefined;
|
|
491
499
|
|
|
@@ -672,6 +680,7 @@ const tablesDBDeleteTable = async ({databaseId,tableId,parseOutput = true, overr
|
|
|
672
680
|
* @property {string} databaseId Database ID.
|
|
673
681
|
* @property {string} tableId Table ID.
|
|
674
682
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, size, required, array, status, error
|
|
683
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
675
684
|
* @property {boolean} overrideForCli
|
|
676
685
|
* @property {boolean} parseOutput
|
|
677
686
|
* @property {libClient | undefined} sdk
|
|
@@ -680,7 +689,7 @@ const tablesDBDeleteTable = async ({databaseId,tableId,parseOutput = true, overr
|
|
|
680
689
|
/**
|
|
681
690
|
* @param {TablesDBListColumnsRequestParams} params
|
|
682
691
|
*/
|
|
683
|
-
const tablesDBListColumns = async ({databaseId,tableId,queries,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
692
|
+
const tablesDBListColumns = async ({databaseId,tableId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
684
693
|
let client = !sdk ? await sdkForProject() :
|
|
685
694
|
sdk;
|
|
686
695
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -688,6 +697,9 @@ const tablesDBListColumns = async ({databaseId,tableId,queries,parseOutput = tru
|
|
|
688
697
|
if (typeof queries !== 'undefined') {
|
|
689
698
|
payload['queries'] = queries;
|
|
690
699
|
}
|
|
700
|
+
if (typeof total !== 'undefined') {
|
|
701
|
+
payload['total'] = total;
|
|
702
|
+
}
|
|
691
703
|
|
|
692
704
|
let response = undefined;
|
|
693
705
|
|
|
@@ -2012,6 +2024,7 @@ const tablesDBUpdateRelationshipColumn = async ({databaseId,tableId,key,onDelete
|
|
|
2012
2024
|
* @property {string} databaseId Database ID.
|
|
2013
2025
|
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
2014
2026
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, status, attributes, error
|
|
2027
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
2015
2028
|
* @property {boolean} overrideForCli
|
|
2016
2029
|
* @property {boolean} parseOutput
|
|
2017
2030
|
* @property {libClient | undefined} sdk
|
|
@@ -2020,7 +2033,7 @@ const tablesDBUpdateRelationshipColumn = async ({databaseId,tableId,key,onDelete
|
|
|
2020
2033
|
/**
|
|
2021
2034
|
* @param {TablesDBListIndexesRequestParams} params
|
|
2022
2035
|
*/
|
|
2023
|
-
const tablesDBListIndexes = async ({databaseId,tableId,queries,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
2036
|
+
const tablesDBListIndexes = async ({databaseId,tableId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
2024
2037
|
let client = !sdk ? await sdkForProject() :
|
|
2025
2038
|
sdk;
|
|
2026
2039
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/indexes'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2028,6 +2041,9 @@ const tablesDBListIndexes = async ({databaseId,tableId,queries,parseOutput = tru
|
|
|
2028
2041
|
if (typeof queries !== 'undefined') {
|
|
2029
2042
|
payload['queries'] = queries;
|
|
2030
2043
|
}
|
|
2044
|
+
if (typeof total !== 'undefined') {
|
|
2045
|
+
payload['total'] = total;
|
|
2046
|
+
}
|
|
2031
2047
|
|
|
2032
2048
|
let response = undefined;
|
|
2033
2049
|
|
|
@@ -2206,6 +2222,7 @@ const tablesDBListTableLogs = async ({databaseId,tableId,queries,parseOutput = t
|
|
|
2206
2222
|
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).
|
|
2207
2223
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
2208
2224
|
* @property {string} transactionId Transaction ID to read uncommitted changes within the transaction.
|
|
2225
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
2209
2226
|
* @property {boolean} overrideForCli
|
|
2210
2227
|
* @property {boolean} parseOutput
|
|
2211
2228
|
* @property {libClient | undefined} sdk
|
|
@@ -2214,7 +2231,7 @@ const tablesDBListTableLogs = async ({databaseId,tableId,queries,parseOutput = t
|
|
|
2214
2231
|
/**
|
|
2215
2232
|
* @param {TablesDBListRowsRequestParams} params
|
|
2216
2233
|
*/
|
|
2217
|
-
const tablesDBListRows = async ({databaseId,tableId,queries,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
2234
|
+
const tablesDBListRows = async ({databaseId,tableId,queries,transactionId,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
2218
2235
|
let client = !sdk ? await sdkForProject() :
|
|
2219
2236
|
sdk;
|
|
2220
2237
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2225,6 +2242,9 @@ const tablesDBListRows = async ({databaseId,tableId,queries,transactionId,parseO
|
|
|
2225
2242
|
if (typeof transactionId !== 'undefined') {
|
|
2226
2243
|
payload['transactionId'] = transactionId;
|
|
2227
2244
|
}
|
|
2245
|
+
if (typeof total !== 'undefined') {
|
|
2246
|
+
payload['total'] = total;
|
|
2247
|
+
}
|
|
2228
2248
|
|
|
2229
2249
|
let response = undefined;
|
|
2230
2250
|
|
|
@@ -2828,6 +2848,7 @@ tablesDB
|
|
|
2828
2848
|
.description(`Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.`)
|
|
2829
2849
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name`)
|
|
2830
2850
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
2851
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
2831
2852
|
.option(`--console`, `Get the resource console url`)
|
|
2832
2853
|
.action(actionRunner(tablesDBList))
|
|
2833
2854
|
|
|
@@ -2914,6 +2935,7 @@ tablesDB
|
|
|
2914
2935
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2915
2936
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name, enabled, rowSecurity`)
|
|
2916
2937
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
2938
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
2917
2939
|
.option(`--console`, `Get the resource console url`)
|
|
2918
2940
|
.action(actionRunner(tablesDBListTables))
|
|
2919
2941
|
|
|
@@ -2960,6 +2982,7 @@ tablesDB
|
|
|
2960
2982
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2961
2983
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
2962
2984
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, size, required, array, status, error`)
|
|
2985
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
2963
2986
|
.option(`--console`, `Get the resource console url`)
|
|
2964
2987
|
.action(actionRunner(tablesDBListColumns))
|
|
2965
2988
|
|
|
@@ -3283,6 +3306,7 @@ tablesDB
|
|
|
3283
3306
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3284
3307
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3285
3308
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, status, attributes, error`)
|
|
3309
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
3286
3310
|
.option(`--console`, `Get the resource console url`)
|
|
3287
3311
|
.action(actionRunner(tablesDBListIndexes))
|
|
3288
3312
|
|
|
@@ -3330,6 +3354,7 @@ tablesDB
|
|
|
3330
3354
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).`)
|
|
3331
3355
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`)
|
|
3332
3356
|
.option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`)
|
|
3357
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
3333
3358
|
.option(`--console`, `Get the resource console url`)
|
|
3334
3359
|
.action(actionRunner(tablesDBListRows))
|
|
3335
3360
|
|
package/lib/commands/teams.js
CHANGED
|
@@ -43,6 +43,7 @@ const teams = new Command("teams").description(commandDescriptions['teams'] ?? '
|
|
|
43
43
|
* @typedef {Object} TeamsListRequestParams
|
|
44
44
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, total, billingPlan
|
|
45
45
|
* @property {string} search Search term to filter your list results. Max length: 256 chars.
|
|
46
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
46
47
|
* @property {boolean} overrideForCli
|
|
47
48
|
* @property {boolean} parseOutput
|
|
48
49
|
* @property {libClient | undefined} sdk
|
|
@@ -51,7 +52,7 @@ const teams = new Command("teams").description(commandDescriptions['teams'] ?? '
|
|
|
51
52
|
/**
|
|
52
53
|
* @param {TeamsListRequestParams} params
|
|
53
54
|
*/
|
|
54
|
-
const teamsList = async ({queries,search,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
55
|
+
const teamsList = async ({queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
55
56
|
let client = !sdk ? await sdkForProject() :
|
|
56
57
|
sdk;
|
|
57
58
|
let apiPath = '/teams';
|
|
@@ -62,6 +63,9 @@ const teamsList = async ({queries,search,parseOutput = true, overrideForCli = fa
|
|
|
62
63
|
if (typeof search !== 'undefined') {
|
|
63
64
|
payload['search'] = search;
|
|
64
65
|
}
|
|
66
|
+
if (typeof total !== 'undefined') {
|
|
67
|
+
payload['total'] = total;
|
|
68
|
+
}
|
|
65
69
|
|
|
66
70
|
let response = undefined;
|
|
67
71
|
|
|
@@ -222,6 +226,7 @@ const teamsDelete = async ({teamId,parseOutput = true, overrideForCli = false, s
|
|
|
222
226
|
* @typedef {Object} TeamsListLogsRequestParams
|
|
223
227
|
* @property {string} teamId Team ID.
|
|
224
228
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
|
|
229
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
225
230
|
* @property {boolean} overrideForCli
|
|
226
231
|
* @property {boolean} parseOutput
|
|
227
232
|
* @property {libClient | undefined} sdk
|
|
@@ -230,7 +235,7 @@ const teamsDelete = async ({teamId,parseOutput = true, overrideForCli = false, s
|
|
|
230
235
|
/**
|
|
231
236
|
* @param {TeamsListLogsRequestParams} params
|
|
232
237
|
*/
|
|
233
|
-
const teamsListLogs = async ({teamId,queries,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
238
|
+
const teamsListLogs = async ({teamId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
234
239
|
let client = !sdk ? await sdkForProject() :
|
|
235
240
|
sdk;
|
|
236
241
|
let apiPath = '/teams/{teamId}/logs'.replace('{teamId}', teamId);
|
|
@@ -238,6 +243,9 @@ const teamsListLogs = async ({teamId,queries,parseOutput = true, overrideForCli
|
|
|
238
243
|
if (typeof queries !== 'undefined') {
|
|
239
244
|
payload['queries'] = queries;
|
|
240
245
|
}
|
|
246
|
+
if (typeof total !== 'undefined') {
|
|
247
|
+
payload['total'] = total;
|
|
248
|
+
}
|
|
241
249
|
|
|
242
250
|
let response = undefined;
|
|
243
251
|
|
|
@@ -256,6 +264,7 @@ const teamsListLogs = async ({teamId,queries,parseOutput = true, overrideForCli
|
|
|
256
264
|
* @property {string} teamId Team ID.
|
|
257
265
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, teamId, invited, joined, confirm, roles
|
|
258
266
|
* @property {string} search Search term to filter your list results. Max length: 256 chars.
|
|
267
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
259
268
|
* @property {boolean} overrideForCli
|
|
260
269
|
* @property {boolean} parseOutput
|
|
261
270
|
* @property {libClient | undefined} sdk
|
|
@@ -264,7 +273,7 @@ const teamsListLogs = async ({teamId,queries,parseOutput = true, overrideForCli
|
|
|
264
273
|
/**
|
|
265
274
|
* @param {TeamsListMembershipsRequestParams} params
|
|
266
275
|
*/
|
|
267
|
-
const teamsListMemberships = async ({teamId,queries,search,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
276
|
+
const teamsListMemberships = async ({teamId,queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
268
277
|
let client = !sdk ? await sdkForProject() :
|
|
269
278
|
sdk;
|
|
270
279
|
let apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);
|
|
@@ -275,6 +284,9 @@ const teamsListMemberships = async ({teamId,queries,search,parseOutput = true, o
|
|
|
275
284
|
if (typeof search !== 'undefined') {
|
|
276
285
|
payload['search'] = search;
|
|
277
286
|
}
|
|
287
|
+
if (typeof total !== 'undefined') {
|
|
288
|
+
payload['total'] = total;
|
|
289
|
+
}
|
|
278
290
|
|
|
279
291
|
let response = undefined;
|
|
280
292
|
|
|
@@ -547,6 +559,7 @@ teams
|
|
|
547
559
|
.description(`Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.`)
|
|
548
560
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, total, billingPlan`)
|
|
549
561
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
562
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
550
563
|
.option(`--console`, `Get the resource console url`)
|
|
551
564
|
.action(actionRunner(teamsList))
|
|
552
565
|
|
|
@@ -583,6 +596,7 @@ teams
|
|
|
583
596
|
.description(`Get the team activity logs list by its unique ID.`)
|
|
584
597
|
.requiredOption(`--team-id <team-id>`, `Team ID.`)
|
|
585
598
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset`)
|
|
599
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
586
600
|
.action(actionRunner(teamsListLogs))
|
|
587
601
|
|
|
588
602
|
teams
|
|
@@ -591,6 +605,7 @@ teams
|
|
|
591
605
|
.requiredOption(`--team-id <team-id>`, `Team ID.`)
|
|
592
606
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, teamId, invited, joined, confirm, roles`)
|
|
593
607
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
608
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
594
609
|
.action(actionRunner(teamsListMemberships))
|
|
595
610
|
|
|
596
611
|
teams
|
package/lib/commands/tokens.js
CHANGED
|
@@ -44,6 +44,7 @@ const tokens = new Command("tokens").description(commandDescriptions['tokens'] ?
|
|
|
44
44
|
* @property {string} bucketId Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
|
|
45
45
|
* @property {string} fileId File unique ID.
|
|
46
46
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: expire
|
|
47
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
47
48
|
* @property {boolean} overrideForCli
|
|
48
49
|
* @property {boolean} parseOutput
|
|
49
50
|
* @property {libClient | undefined} sdk
|
|
@@ -52,7 +53,7 @@ const tokens = new Command("tokens").description(commandDescriptions['tokens'] ?
|
|
|
52
53
|
/**
|
|
53
54
|
* @param {TokensListRequestParams} params
|
|
54
55
|
*/
|
|
55
|
-
const tokensList = async ({bucketId,fileId,queries,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
56
|
+
const tokensList = async ({bucketId,fileId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
56
57
|
let client = !sdk ? await sdkForProject() :
|
|
57
58
|
sdk;
|
|
58
59
|
let apiPath = '/tokens/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
|
@@ -60,6 +61,9 @@ const tokensList = async ({bucketId,fileId,queries,parseOutput = true, overrideF
|
|
|
60
61
|
if (typeof queries !== 'undefined') {
|
|
61
62
|
payload['queries'] = queries;
|
|
62
63
|
}
|
|
64
|
+
if (typeof total !== 'undefined') {
|
|
65
|
+
payload['total'] = total;
|
|
66
|
+
}
|
|
63
67
|
|
|
64
68
|
let response = undefined;
|
|
65
69
|
|
|
@@ -215,6 +219,7 @@ tokens
|
|
|
215
219
|
.requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).`)
|
|
216
220
|
.requiredOption(`--file-id <file-id>`, `File unique ID.`)
|
|
217
221
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: expire`)
|
|
222
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
218
223
|
.option(`--console`, `Get the resource console url`)
|
|
219
224
|
.action(actionRunner(tokensList))
|
|
220
225
|
|
package/lib/commands/users.js
CHANGED
|
@@ -43,6 +43,7 @@ const users = new Command("users").description(commandDescriptions['users'] ?? '
|
|
|
43
43
|
* @typedef {Object} UsersListRequestParams
|
|
44
44
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels
|
|
45
45
|
* @property {string} search Search term to filter your list results. Max length: 256 chars.
|
|
46
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
46
47
|
* @property {boolean} overrideForCli
|
|
47
48
|
* @property {boolean} parseOutput
|
|
48
49
|
* @property {libClient | undefined} sdk
|
|
@@ -51,7 +52,7 @@ const users = new Command("users").description(commandDescriptions['users'] ?? '
|
|
|
51
52
|
/**
|
|
52
53
|
* @param {UsersListRequestParams} params
|
|
53
54
|
*/
|
|
54
|
-
const usersList = async ({queries,search,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
55
|
+
const usersList = async ({queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
55
56
|
let client = !sdk ? await sdkForProject() :
|
|
56
57
|
sdk;
|
|
57
58
|
let apiPath = '/users';
|
|
@@ -62,6 +63,9 @@ const usersList = async ({queries,search,parseOutput = true, overrideForCli = fa
|
|
|
62
63
|
if (typeof search !== 'undefined') {
|
|
63
64
|
payload['search'] = search;
|
|
64
65
|
}
|
|
66
|
+
if (typeof total !== 'undefined') {
|
|
67
|
+
payload['total'] = total;
|
|
68
|
+
}
|
|
65
69
|
|
|
66
70
|
let response = undefined;
|
|
67
71
|
|
|
@@ -222,6 +226,7 @@ const usersCreateBcryptUser = async ({userId,email,password,name,parseOutput = t
|
|
|
222
226
|
* @typedef {Object} UsersListIdentitiesRequestParams
|
|
223
227
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, provider, providerUid, providerEmail, providerAccessTokenExpiry
|
|
224
228
|
* @property {string} search Search term to filter your list results. Max length: 256 chars.
|
|
229
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
225
230
|
* @property {boolean} overrideForCli
|
|
226
231
|
* @property {boolean} parseOutput
|
|
227
232
|
* @property {libClient | undefined} sdk
|
|
@@ -230,7 +235,7 @@ const usersCreateBcryptUser = async ({userId,email,password,name,parseOutput = t
|
|
|
230
235
|
/**
|
|
231
236
|
* @param {UsersListIdentitiesRequestParams} params
|
|
232
237
|
*/
|
|
233
|
-
const usersListIdentities = async ({queries,search,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
238
|
+
const usersListIdentities = async ({queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
234
239
|
let client = !sdk ? await sdkForProject() :
|
|
235
240
|
sdk;
|
|
236
241
|
let apiPath = '/users/identities';
|
|
@@ -241,6 +246,9 @@ const usersListIdentities = async ({queries,search,parseOutput = true, overrideF
|
|
|
241
246
|
if (typeof search !== 'undefined') {
|
|
242
247
|
payload['search'] = search;
|
|
243
248
|
}
|
|
249
|
+
if (typeof total !== 'undefined') {
|
|
250
|
+
payload['total'] = total;
|
|
251
|
+
}
|
|
244
252
|
|
|
245
253
|
let response = undefined;
|
|
246
254
|
|
|
@@ -751,6 +759,7 @@ const usersUpdateLabels = async ({userId,labels,parseOutput = true, overrideForC
|
|
|
751
759
|
* @typedef {Object} UsersListLogsRequestParams
|
|
752
760
|
* @property {string} userId User ID.
|
|
753
761
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
|
|
762
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
754
763
|
* @property {boolean} overrideForCli
|
|
755
764
|
* @property {boolean} parseOutput
|
|
756
765
|
* @property {libClient | undefined} sdk
|
|
@@ -759,7 +768,7 @@ const usersUpdateLabels = async ({userId,labels,parseOutput = true, overrideForC
|
|
|
759
768
|
/**
|
|
760
769
|
* @param {UsersListLogsRequestParams} params
|
|
761
770
|
*/
|
|
762
|
-
const usersListLogs = async ({userId,queries,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
771
|
+
const usersListLogs = async ({userId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
763
772
|
let client = !sdk ? await sdkForProject() :
|
|
764
773
|
sdk;
|
|
765
774
|
let apiPath = '/users/{userId}/logs'.replace('{userId}', userId);
|
|
@@ -767,6 +776,9 @@ const usersListLogs = async ({userId,queries,parseOutput = true, overrideForCli
|
|
|
767
776
|
if (typeof queries !== 'undefined') {
|
|
768
777
|
payload['queries'] = queries;
|
|
769
778
|
}
|
|
779
|
+
if (typeof total !== 'undefined') {
|
|
780
|
+
payload['total'] = total;
|
|
781
|
+
}
|
|
770
782
|
|
|
771
783
|
let response = undefined;
|
|
772
784
|
|
|
@@ -785,6 +797,7 @@ const usersListLogs = async ({userId,queries,parseOutput = true, overrideForCli
|
|
|
785
797
|
* @property {string} userId User ID.
|
|
786
798
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, teamId, invited, joined, confirm, roles
|
|
787
799
|
* @property {string} search Search term to filter your list results. Max length: 256 chars.
|
|
800
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
788
801
|
* @property {boolean} overrideForCli
|
|
789
802
|
* @property {boolean} parseOutput
|
|
790
803
|
* @property {libClient | undefined} sdk
|
|
@@ -793,7 +806,7 @@ const usersListLogs = async ({userId,queries,parseOutput = true, overrideForCli
|
|
|
793
806
|
/**
|
|
794
807
|
* @param {UsersListMembershipsRequestParams} params
|
|
795
808
|
*/
|
|
796
|
-
const usersListMemberships = async ({userId,queries,search,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
809
|
+
const usersListMemberships = async ({userId,queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
797
810
|
let client = !sdk ? await sdkForProject() :
|
|
798
811
|
sdk;
|
|
799
812
|
let apiPath = '/users/{userId}/memberships'.replace('{userId}', userId);
|
|
@@ -804,6 +817,9 @@ const usersListMemberships = async ({userId,queries,search,parseOutput = true, o
|
|
|
804
817
|
if (typeof search !== 'undefined') {
|
|
805
818
|
payload['search'] = search;
|
|
806
819
|
}
|
|
820
|
+
if (typeof total !== 'undefined') {
|
|
821
|
+
payload['total'] = total;
|
|
822
|
+
}
|
|
807
823
|
|
|
808
824
|
let response = undefined;
|
|
809
825
|
|
|
@@ -1168,6 +1184,7 @@ const usersUpdatePrefs = async ({userId,prefs,parseOutput = true, overrideForCli
|
|
|
1168
1184
|
/**
|
|
1169
1185
|
* @typedef {Object} UsersListSessionsRequestParams
|
|
1170
1186
|
* @property {string} userId User ID.
|
|
1187
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
1171
1188
|
* @property {boolean} overrideForCli
|
|
1172
1189
|
* @property {boolean} parseOutput
|
|
1173
1190
|
* @property {libClient | undefined} sdk
|
|
@@ -1176,11 +1193,14 @@ const usersUpdatePrefs = async ({userId,prefs,parseOutput = true, overrideForCli
|
|
|
1176
1193
|
/**
|
|
1177
1194
|
* @param {UsersListSessionsRequestParams} params
|
|
1178
1195
|
*/
|
|
1179
|
-
const usersListSessions = async ({userId,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
1196
|
+
const usersListSessions = async ({userId,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
1180
1197
|
let client = !sdk ? await sdkForProject() :
|
|
1181
1198
|
sdk;
|
|
1182
1199
|
let apiPath = '/users/{userId}/sessions'.replace('{userId}', userId);
|
|
1183
1200
|
let payload = {};
|
|
1201
|
+
if (typeof total !== 'undefined') {
|
|
1202
|
+
payload['total'] = total;
|
|
1203
|
+
}
|
|
1184
1204
|
|
|
1185
1205
|
let response = undefined;
|
|
1186
1206
|
|
|
@@ -1327,6 +1347,7 @@ const usersUpdateStatus = async ({userId,status,parseOutput = true, overrideForC
|
|
|
1327
1347
|
* @typedef {Object} UsersListTargetsRequestParams
|
|
1328
1348
|
* @property {string} userId User ID.
|
|
1329
1349
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, providerId, identifier, providerType
|
|
1350
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
1330
1351
|
* @property {boolean} overrideForCli
|
|
1331
1352
|
* @property {boolean} parseOutput
|
|
1332
1353
|
* @property {libClient | undefined} sdk
|
|
@@ -1335,7 +1356,7 @@ const usersUpdateStatus = async ({userId,status,parseOutput = true, overrideForC
|
|
|
1335
1356
|
/**
|
|
1336
1357
|
* @param {UsersListTargetsRequestParams} params
|
|
1337
1358
|
*/
|
|
1338
|
-
const usersListTargets = async ({userId,queries,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1359
|
+
const usersListTargets = async ({userId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1339
1360
|
let client = !sdk ? await sdkForProject() :
|
|
1340
1361
|
sdk;
|
|
1341
1362
|
let apiPath = '/users/{userId}/targets'.replace('{userId}', userId);
|
|
@@ -1343,6 +1364,9 @@ const usersListTargets = async ({userId,queries,parseOutput = true, overrideForC
|
|
|
1343
1364
|
if (typeof queries !== 'undefined') {
|
|
1344
1365
|
payload['queries'] = queries;
|
|
1345
1366
|
}
|
|
1367
|
+
if (typeof total !== 'undefined') {
|
|
1368
|
+
payload['total'] = total;
|
|
1369
|
+
}
|
|
1346
1370
|
|
|
1347
1371
|
let response = undefined;
|
|
1348
1372
|
|
|
@@ -1621,6 +1645,7 @@ users
|
|
|
1621
1645
|
.description(`Get a list of all the project's users. You can use the query params to filter your results.`)
|
|
1622
1646
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels`)
|
|
1623
1647
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
1648
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
1624
1649
|
.option(`--console`, `Get the resource console url`)
|
|
1625
1650
|
.action(actionRunner(usersList))
|
|
1626
1651
|
|
|
@@ -1657,6 +1682,7 @@ users
|
|
|
1657
1682
|
.description(`Get identities for all users.`)
|
|
1658
1683
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, provider, providerUid, providerEmail, providerAccessTokenExpiry`)
|
|
1659
1684
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
1685
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
1660
1686
|
.action(actionRunner(usersListIdentities))
|
|
1661
1687
|
|
|
1662
1688
|
users
|
|
@@ -1765,6 +1791,7 @@ users
|
|
|
1765
1791
|
.description(`Get the user activity logs list by its unique ID.`)
|
|
1766
1792
|
.requiredOption(`--user-id <user-id>`, `User ID.`)
|
|
1767
1793
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset`)
|
|
1794
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
1768
1795
|
.action(actionRunner(usersListLogs))
|
|
1769
1796
|
|
|
1770
1797
|
users
|
|
@@ -1773,6 +1800,7 @@ users
|
|
|
1773
1800
|
.requiredOption(`--user-id <user-id>`, `User ID.`)
|
|
1774
1801
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, teamId, invited, joined, confirm, roles`)
|
|
1775
1802
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
1803
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
1776
1804
|
.action(actionRunner(usersListMemberships))
|
|
1777
1805
|
|
|
1778
1806
|
users
|
|
@@ -1851,6 +1879,7 @@ users
|
|
|
1851
1879
|
.command(`list-sessions`)
|
|
1852
1880
|
.description(`Get the user sessions list by its unique ID.`)
|
|
1853
1881
|
.requiredOption(`--user-id <user-id>`, `User ID.`)
|
|
1882
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
1854
1883
|
.option(`--console`, `Get the resource console url`)
|
|
1855
1884
|
.action(actionRunner(usersListSessions))
|
|
1856
1885
|
|
|
@@ -1885,6 +1914,7 @@ users
|
|
|
1885
1914
|
.description(`List the messaging targets that are associated with a user.`)
|
|
1886
1915
|
.requiredOption(`--user-id <user-id>`, `User ID.`)
|
|
1887
1916
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, providerId, identifier, providerType`)
|
|
1917
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
1888
1918
|
.action(actionRunner(usersListTargets))
|
|
1889
1919
|
|
|
1890
1920
|
users
|
package/lib/commands/vcs.js
CHANGED
|
@@ -293,6 +293,7 @@ const vcsUpdateExternalDeployments = async ({installationId,repositoryId,provide
|
|
|
293
293
|
* @typedef {Object} VcsListInstallationsRequestParams
|
|
294
294
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: provider, organization
|
|
295
295
|
* @property {string} search Search term to filter your list results. Max length: 256 chars.
|
|
296
|
+
* @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
|
|
296
297
|
* @property {boolean} overrideForCli
|
|
297
298
|
* @property {boolean} parseOutput
|
|
298
299
|
* @property {libClient | undefined} sdk
|
|
@@ -301,7 +302,7 @@ const vcsUpdateExternalDeployments = async ({installationId,repositoryId,provide
|
|
|
301
302
|
/**
|
|
302
303
|
* @param {VcsListInstallationsRequestParams} params
|
|
303
304
|
*/
|
|
304
|
-
const vcsListInstallations = async ({queries,search,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
305
|
+
const vcsListInstallations = async ({queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
305
306
|
let client = !sdk ? await sdkForProject() :
|
|
306
307
|
sdk;
|
|
307
308
|
let apiPath = '/vcs/installations';
|
|
@@ -312,6 +313,9 @@ const vcsListInstallations = async ({queries,search,parseOutput = true, override
|
|
|
312
313
|
if (typeof search !== 'undefined') {
|
|
313
314
|
payload['search'] = search;
|
|
314
315
|
}
|
|
316
|
+
if (typeof total !== 'undefined') {
|
|
317
|
+
payload['total'] = total;
|
|
318
|
+
}
|
|
315
319
|
|
|
316
320
|
let response = undefined;
|
|
317
321
|
|
|
@@ -445,6 +449,7 @@ vcs
|
|
|
445
449
|
.description(`List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details. `)
|
|
446
450
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: provider, organization`)
|
|
447
451
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
452
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
448
453
|
.action(actionRunner(vcsListInstallations))
|
|
449
454
|
|
|
450
455
|
vcs
|
package/lib/parser.js
CHANGED
|
@@ -122,7 +122,7 @@ const parseError = (err) => {
|
|
|
122
122
|
} catch {
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
const version = '11.
|
|
125
|
+
const version = '11.1.1';
|
|
126
126
|
const stepsToReproduce = `Running \`appwrite ${cliConfig.reportData.data.args.join(' ')}\``;
|
|
127
127
|
const yourEnvironment = `CLI version: ${version}\nOperation System: ${os.type()}\nAppwrite version: ${appwriteVersion}\nIs Cloud: ${isCloud()}`;
|
|
128
128
|
|