node-appwrite 20.1.0 → 20.3.0
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/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +2 -2
- package/dist/client.mjs.map +1 -1
- package/dist/enums/execution-status.d.mts +2 -1
- package/dist/enums/execution-status.d.ts +2 -1
- package/dist/enums/execution-status.js +1 -0
- package/dist/enums/execution-status.js.map +1 -1
- package/dist/enums/execution-status.mjs +1 -0
- package/dist/enums/execution-status.mjs.map +1 -1
- package/dist/enums/framework.d.mts +1 -0
- package/dist/enums/framework.d.ts +1 -0
- package/dist/enums/framework.js +1 -0
- package/dist/enums/framework.js.map +1 -1
- package/dist/enums/framework.mjs +1 -0
- package/dist/enums/framework.mjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/dist/models.d.mts +43 -1
- package/dist/models.d.ts +43 -1
- package/dist/operator.d.mts +181 -0
- package/dist/operator.d.ts +181 -0
- package/dist/operator.js +268 -0
- package/dist/operator.js.map +1 -0
- package/dist/operator.mjs +266 -0
- package/dist/operator.mjs.map +1 -0
- package/dist/query.js +6 -6
- package/dist/query.js.map +1 -1
- package/dist/query.mjs +6 -6
- package/dist/query.mjs.map +1 -1
- package/dist/services/account.d.mts +8 -2
- package/dist/services/account.d.ts +8 -2
- package/dist/services/account.js +14 -4
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +14 -4
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/databases.d.mts +192 -18
- package/dist/services/databases.d.ts +192 -18
- package/dist/services/databases.js +268 -16
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +268 -16
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +12 -3
- package/dist/services/functions.d.ts +12 -3
- package/dist/services/functions.js +18 -3
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs +18 -3
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/messaging.d.mts +116 -9
- package/dist/services/messaging.d.ts +116 -9
- package/dist/services/messaging.js +182 -9
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs +182 -9
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/sites.d.mts +12 -3
- package/dist/services/sites.d.ts +12 -3
- package/dist/services/sites.js +18 -3
- package/dist/services/sites.js.map +1 -1
- package/dist/services/sites.mjs +18 -3
- package/dist/services/sites.mjs.map +1 -1
- package/dist/services/storage.d.mts +8 -2
- package/dist/services/storage.d.ts +8 -2
- package/dist/services/storage.js +12 -2
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs +12 -2
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/tables-db.d.mts +190 -16
- package/dist/services/tables-db.d.ts +190 -16
- package/dist/services/tables-db.js +268 -16
- package/dist/services/tables-db.js.map +1 -1
- package/dist/services/tables-db.mjs +268 -16
- package/dist/services/tables-db.mjs.map +1 -1
- package/dist/services/teams.d.mts +8 -2
- package/dist/services/teams.d.ts +8 -2
- package/dist/services/teams.js +12 -2
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs +12 -2
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/tokens.d.mts +4 -1
- package/dist/services/tokens.d.ts +4 -1
- package/dist/services/tokens.js +6 -1
- package/dist/services/tokens.js.map +1 -1
- package/dist/services/tokens.mjs +6 -1
- package/dist/services/tokens.mjs.map +1 -1
- package/dist/services/users.d.mts +24 -6
- package/dist/services/users.d.ts +24 -6
- package/dist/services/users.js +37 -7
- package/dist/services/users.js.map +1 -1
- package/dist/services/users.mjs +37 -7
- package/dist/services/users.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -25,23 +25,26 @@ declare class Sites {
|
|
|
25
25
|
*
|
|
26
26
|
* @param {string[]} params.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, enabled, framework, deploymentId, buildCommand, installCommand, outputDirectory, installationId
|
|
27
27
|
* @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
|
|
28
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
28
29
|
* @throws {AppwriteException}
|
|
29
30
|
* @returns {Promise<Models.SiteList>}
|
|
30
31
|
*/
|
|
31
32
|
list(params?: {
|
|
32
33
|
queries?: string[];
|
|
33
34
|
search?: string;
|
|
35
|
+
total?: boolean;
|
|
34
36
|
}): Promise<Models.SiteList>;
|
|
35
37
|
/**
|
|
36
38
|
* Get a list of all the project's sites. You can use the query params to filter your results.
|
|
37
39
|
*
|
|
38
40
|
* @param {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, enabled, framework, deploymentId, buildCommand, installCommand, outputDirectory, installationId
|
|
39
41
|
* @param {string} search - Search term to filter your list results. Max length: 256 chars.
|
|
42
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
40
43
|
* @throws {AppwriteException}
|
|
41
44
|
* @returns {Promise<Models.SiteList>}
|
|
42
45
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
43
46
|
*/
|
|
44
|
-
list(queries?: string[], search?: string): Promise<Models.SiteList>;
|
|
47
|
+
list(queries?: string[], search?: string, total?: boolean): Promise<Models.SiteList>;
|
|
45
48
|
/**
|
|
46
49
|
* Create a new site.
|
|
47
50
|
*
|
|
@@ -262,6 +265,7 @@ declare class Sites {
|
|
|
262
265
|
* @param {string} params.siteId - Site ID.
|
|
263
266
|
* @param {string[]} params.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: buildSize, sourceSize, totalSize, buildDuration, status, activate, type
|
|
264
267
|
* @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
|
|
268
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
265
269
|
* @throws {AppwriteException}
|
|
266
270
|
* @returns {Promise<Models.DeploymentList>}
|
|
267
271
|
*/
|
|
@@ -269,6 +273,7 @@ declare class Sites {
|
|
|
269
273
|
siteId: string;
|
|
270
274
|
queries?: string[];
|
|
271
275
|
search?: string;
|
|
276
|
+
total?: boolean;
|
|
272
277
|
}): Promise<Models.DeploymentList>;
|
|
273
278
|
/**
|
|
274
279
|
* Get a list of all the site's code deployments. You can use the query params to filter your results.
|
|
@@ -276,11 +281,12 @@ declare class Sites {
|
|
|
276
281
|
* @param {string} siteId - Site ID.
|
|
277
282
|
* @param {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: buildSize, sourceSize, totalSize, buildDuration, status, activate, type
|
|
278
283
|
* @param {string} search - Search term to filter your list results. Max length: 256 chars.
|
|
284
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
279
285
|
* @throws {AppwriteException}
|
|
280
286
|
* @returns {Promise<Models.DeploymentList>}
|
|
281
287
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
282
288
|
*/
|
|
283
|
-
listDeployments(siteId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
|
|
289
|
+
listDeployments(siteId: string, queries?: string[], search?: string, total?: boolean): Promise<Models.DeploymentList>;
|
|
284
290
|
/**
|
|
285
291
|
* Create a new site code deployment. Use this endpoint to upload a new version of your site code. To activate your newly uploaded code, you'll need to update the function's deployment to use your new deployment ID.
|
|
286
292
|
*
|
|
@@ -504,23 +510,26 @@ declare class Sites {
|
|
|
504
510
|
*
|
|
505
511
|
* @param {string} params.siteId - Site ID.
|
|
506
512
|
* @param {string[]} params.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: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
|
|
513
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
507
514
|
* @throws {AppwriteException}
|
|
508
515
|
* @returns {Promise<Models.ExecutionList>}
|
|
509
516
|
*/
|
|
510
517
|
listLogs(params: {
|
|
511
518
|
siteId: string;
|
|
512
519
|
queries?: string[];
|
|
520
|
+
total?: boolean;
|
|
513
521
|
}): Promise<Models.ExecutionList>;
|
|
514
522
|
/**
|
|
515
523
|
* Get a list of all site logs. You can use the query params to filter your results.
|
|
516
524
|
*
|
|
517
525
|
* @param {string} siteId - Site ID.
|
|
518
526
|
* @param {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: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
|
|
527
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
519
528
|
* @throws {AppwriteException}
|
|
520
529
|
* @returns {Promise<Models.ExecutionList>}
|
|
521
530
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
522
531
|
*/
|
|
523
|
-
listLogs(siteId: string, queries?: string[]): Promise<Models.ExecutionList>;
|
|
532
|
+
listLogs(siteId: string, queries?: string[], total?: boolean): Promise<Models.ExecutionList>;
|
|
524
533
|
/**
|
|
525
534
|
* Get a site request log by its unique ID.
|
|
526
535
|
*
|
package/dist/services/sites.d.ts
CHANGED
|
@@ -25,23 +25,26 @@ declare class Sites {
|
|
|
25
25
|
*
|
|
26
26
|
* @param {string[]} params.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, enabled, framework, deploymentId, buildCommand, installCommand, outputDirectory, installationId
|
|
27
27
|
* @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
|
|
28
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
28
29
|
* @throws {AppwriteException}
|
|
29
30
|
* @returns {Promise<Models.SiteList>}
|
|
30
31
|
*/
|
|
31
32
|
list(params?: {
|
|
32
33
|
queries?: string[];
|
|
33
34
|
search?: string;
|
|
35
|
+
total?: boolean;
|
|
34
36
|
}): Promise<Models.SiteList>;
|
|
35
37
|
/**
|
|
36
38
|
* Get a list of all the project's sites. You can use the query params to filter your results.
|
|
37
39
|
*
|
|
38
40
|
* @param {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, enabled, framework, deploymentId, buildCommand, installCommand, outputDirectory, installationId
|
|
39
41
|
* @param {string} search - Search term to filter your list results. Max length: 256 chars.
|
|
42
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
40
43
|
* @throws {AppwriteException}
|
|
41
44
|
* @returns {Promise<Models.SiteList>}
|
|
42
45
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
43
46
|
*/
|
|
44
|
-
list(queries?: string[], search?: string): Promise<Models.SiteList>;
|
|
47
|
+
list(queries?: string[], search?: string, total?: boolean): Promise<Models.SiteList>;
|
|
45
48
|
/**
|
|
46
49
|
* Create a new site.
|
|
47
50
|
*
|
|
@@ -262,6 +265,7 @@ declare class Sites {
|
|
|
262
265
|
* @param {string} params.siteId - Site ID.
|
|
263
266
|
* @param {string[]} params.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: buildSize, sourceSize, totalSize, buildDuration, status, activate, type
|
|
264
267
|
* @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
|
|
268
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
265
269
|
* @throws {AppwriteException}
|
|
266
270
|
* @returns {Promise<Models.DeploymentList>}
|
|
267
271
|
*/
|
|
@@ -269,6 +273,7 @@ declare class Sites {
|
|
|
269
273
|
siteId: string;
|
|
270
274
|
queries?: string[];
|
|
271
275
|
search?: string;
|
|
276
|
+
total?: boolean;
|
|
272
277
|
}): Promise<Models.DeploymentList>;
|
|
273
278
|
/**
|
|
274
279
|
* Get a list of all the site's code deployments. You can use the query params to filter your results.
|
|
@@ -276,11 +281,12 @@ declare class Sites {
|
|
|
276
281
|
* @param {string} siteId - Site ID.
|
|
277
282
|
* @param {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: buildSize, sourceSize, totalSize, buildDuration, status, activate, type
|
|
278
283
|
* @param {string} search - Search term to filter your list results. Max length: 256 chars.
|
|
284
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
279
285
|
* @throws {AppwriteException}
|
|
280
286
|
* @returns {Promise<Models.DeploymentList>}
|
|
281
287
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
282
288
|
*/
|
|
283
|
-
listDeployments(siteId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
|
|
289
|
+
listDeployments(siteId: string, queries?: string[], search?: string, total?: boolean): Promise<Models.DeploymentList>;
|
|
284
290
|
/**
|
|
285
291
|
* Create a new site code deployment. Use this endpoint to upload a new version of your site code. To activate your newly uploaded code, you'll need to update the function's deployment to use your new deployment ID.
|
|
286
292
|
*
|
|
@@ -504,23 +510,26 @@ declare class Sites {
|
|
|
504
510
|
*
|
|
505
511
|
* @param {string} params.siteId - Site ID.
|
|
506
512
|
* @param {string[]} params.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: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
|
|
513
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
507
514
|
* @throws {AppwriteException}
|
|
508
515
|
* @returns {Promise<Models.ExecutionList>}
|
|
509
516
|
*/
|
|
510
517
|
listLogs(params: {
|
|
511
518
|
siteId: string;
|
|
512
519
|
queries?: string[];
|
|
520
|
+
total?: boolean;
|
|
513
521
|
}): Promise<Models.ExecutionList>;
|
|
514
522
|
/**
|
|
515
523
|
* Get a list of all site logs. You can use the query params to filter your results.
|
|
516
524
|
*
|
|
517
525
|
* @param {string} siteId - Site ID.
|
|
518
526
|
* @param {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: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
|
|
527
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
519
528
|
* @throws {AppwriteException}
|
|
520
529
|
* @returns {Promise<Models.ExecutionList>}
|
|
521
530
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
522
531
|
*/
|
|
523
|
-
listLogs(siteId: string, queries?: string[]): Promise<Models.ExecutionList>;
|
|
532
|
+
listLogs(siteId: string, queries?: string[], total?: boolean): Promise<Models.ExecutionList>;
|
|
524
533
|
/**
|
|
525
534
|
* Get a site request log by its unique ID.
|
|
526
535
|
*
|
package/dist/services/sites.js
CHANGED
|
@@ -13,11 +13,13 @@ class Sites {
|
|
|
13
13
|
} else {
|
|
14
14
|
params = {
|
|
15
15
|
queries: paramsOrFirst,
|
|
16
|
-
search: rest[0]
|
|
16
|
+
search: rest[0],
|
|
17
|
+
total: rest[1]
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
const queries = params.queries;
|
|
20
21
|
const search = params.search;
|
|
22
|
+
const total = params.total;
|
|
21
23
|
const apiPath = "/sites";
|
|
22
24
|
const payload = {};
|
|
23
25
|
if (typeof queries !== "undefined") {
|
|
@@ -26,6 +28,9 @@ class Sites {
|
|
|
26
28
|
if (typeof search !== "undefined") {
|
|
27
29
|
payload["search"] = search;
|
|
28
30
|
}
|
|
31
|
+
if (typeof total !== "undefined") {
|
|
32
|
+
payload["total"] = total;
|
|
33
|
+
}
|
|
29
34
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30
35
|
const apiHeaders = {};
|
|
31
36
|
return this.client.call(
|
|
@@ -403,12 +408,14 @@ class Sites {
|
|
|
403
408
|
params = {
|
|
404
409
|
siteId: paramsOrFirst,
|
|
405
410
|
queries: rest[0],
|
|
406
|
-
search: rest[1]
|
|
411
|
+
search: rest[1],
|
|
412
|
+
total: rest[2]
|
|
407
413
|
};
|
|
408
414
|
}
|
|
409
415
|
const siteId = params.siteId;
|
|
410
416
|
const queries = params.queries;
|
|
411
417
|
const search = params.search;
|
|
418
|
+
const total = params.total;
|
|
412
419
|
if (typeof siteId === "undefined") {
|
|
413
420
|
throw new client.AppwriteException('Missing required parameter: "siteId"');
|
|
414
421
|
}
|
|
@@ -420,6 +427,9 @@ class Sites {
|
|
|
420
427
|
if (typeof search !== "undefined") {
|
|
421
428
|
payload["search"] = search;
|
|
422
429
|
}
|
|
430
|
+
if (typeof total !== "undefined") {
|
|
431
|
+
payload["total"] = total;
|
|
432
|
+
}
|
|
423
433
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
424
434
|
const apiHeaders = {};
|
|
425
435
|
return this.client.call(
|
|
@@ -767,11 +777,13 @@ class Sites {
|
|
|
767
777
|
} else {
|
|
768
778
|
params = {
|
|
769
779
|
siteId: paramsOrFirst,
|
|
770
|
-
queries: rest[0]
|
|
780
|
+
queries: rest[0],
|
|
781
|
+
total: rest[1]
|
|
771
782
|
};
|
|
772
783
|
}
|
|
773
784
|
const siteId = params.siteId;
|
|
774
785
|
const queries = params.queries;
|
|
786
|
+
const total = params.total;
|
|
775
787
|
if (typeof siteId === "undefined") {
|
|
776
788
|
throw new client.AppwriteException('Missing required parameter: "siteId"');
|
|
777
789
|
}
|
|
@@ -780,6 +792,9 @@ class Sites {
|
|
|
780
792
|
if (typeof queries !== "undefined") {
|
|
781
793
|
payload["queries"] = queries;
|
|
782
794
|
}
|
|
795
|
+
if (typeof total !== "undefined") {
|
|
796
|
+
payload["total"] = total;
|
|
797
|
+
}
|
|
783
798
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
784
799
|
const apiHeaders = {};
|
|
785
800
|
return this.client.call(
|