node-appwrite 20.2.1 → 21.0.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/build-runtime.d.mts +3 -1
- package/dist/enums/build-runtime.d.ts +3 -1
- package/dist/enums/build-runtime.js +2 -0
- package/dist/enums/build-runtime.js.map +1 -1
- package/dist/enums/build-runtime.mjs +2 -0
- package/dist/enums/build-runtime.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/enums/output.d.mts +11 -0
- package/dist/enums/output.d.ts +11 -0
- package/dist/enums/output.js +16 -0
- package/dist/enums/output.js.map +1 -0
- package/dist/enums/output.mjs +15 -0
- package/dist/enums/output.mjs.map +1 -0
- package/dist/enums/runtime.d.mts +3 -1
- package/dist/enums/runtime.d.ts +3 -1
- package/dist/enums/runtime.js +2 -0
- package/dist/enums/runtime.js.map +1 -1
- package/dist/enums/runtime.mjs +2 -0
- package/dist/enums/runtime.mjs.map +1 -1
- package/dist/enums/template-reference-type.d.mts +7 -0
- package/dist/enums/template-reference-type.d.ts +7 -0
- package/dist/enums/template-reference-type.js +12 -0
- package/dist/enums/template-reference-type.js.map +1 -0
- package/dist/enums/template-reference-type.mjs +11 -0
- package/dist/enums/template-reference-type.mjs.map +1 -0
- package/dist/enums/theme.d.mts +6 -0
- package/dist/enums/theme.d.ts +6 -0
- package/dist/enums/theme.js +11 -0
- package/dist/enums/theme.js.map +1 -0
- package/dist/enums/theme.mjs +10 -0
- package/dist/enums/theme.mjs.map +1 -0
- package/dist/enums/timezone.d.mts +423 -0
- package/dist/enums/timezone.d.ts +423 -0
- package/dist/enums/timezone.js +428 -0
- package/dist/enums/timezone.js.map +1 -0
- package/dist/enums/timezone.mjs +427 -0
- package/dist/enums/timezone.mjs.map +1 -0
- package/dist/enums/{vcs-deployment-type.d.mts → vcs-reference-type.d.mts} +2 -2
- package/dist/enums/{vcs-deployment-type.d.ts → vcs-reference-type.d.ts} +2 -2
- package/dist/enums/vcs-reference-type.js +12 -0
- package/dist/enums/vcs-reference-type.js.map +1 -0
- package/dist/enums/vcs-reference-type.mjs +11 -0
- package/dist/enums/vcs-reference-type.mjs.map +1 -0
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +32 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/dist/models.d.mts +5 -1
- package/dist/models.d.ts +5 -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 +18 -8
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +18 -8
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/avatars.d.mts +87 -0
- package/dist/services/avatars.d.ts +87 -0
- package/dist/services/avatars.js +123 -0
- package/dist/services/avatars.js.map +1 -1
- package/dist/services/avatars.mjs +123 -0
- package/dist/services/avatars.mjs.map +1 -1
- package/dist/services/databases.d.mts +20 -5
- package/dist/services/databases.d.ts +20 -5
- package/dist/services/databases.js +30 -5
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +30 -5
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +25 -12
- package/dist/services/functions.d.ts +25 -12
- package/dist/services/functions.js +33 -10
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs +33 -10
- 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 +27 -14
- package/dist/services/sites.d.ts +27 -14
- package/dist/services/sites.js +33 -10
- package/dist/services/sites.js.map +1 -1
- package/dist/services/sites.mjs +33 -10
- package/dist/services/sites.mjs.map +1 -1
- package/dist/services/storage.d.mts +18 -6
- package/dist/services/storage.d.ts +18 -6
- package/dist/services/storage.js +24 -4
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs +24 -4
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/tables-db.d.mts +22 -7
- package/dist/services/tables-db.d.ts +22 -7
- package/dist/services/tables-db.js +30 -5
- package/dist/services/tables-db.js.map +1 -1
- package/dist/services/tables-db.mjs +30 -5
- 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
- package/dist/enums/vcs-deployment-type.js +0 -12
- package/dist/enums/vcs-deployment-type.js.map +0 -1
- package/dist/enums/vcs-deployment-type.mjs +0 -11
- package/dist/enums/vcs-deployment-type.mjs.map +0 -1
|
@@ -23,23 +23,26 @@ declare class TablesDB {
|
|
|
23
23
|
*
|
|
24
24
|
* @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 columns: name
|
|
25
25
|
* @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
|
|
26
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
26
27
|
* @throws {AppwriteException}
|
|
27
28
|
* @returns {Promise<Models.DatabaseList>}
|
|
28
29
|
*/
|
|
29
30
|
list(params?: {
|
|
30
31
|
queries?: string[];
|
|
31
32
|
search?: string;
|
|
33
|
+
total?: boolean;
|
|
32
34
|
}): Promise<Models.DatabaseList>;
|
|
33
35
|
/**
|
|
34
36
|
* Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.
|
|
35
37
|
*
|
|
36
38
|
* @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 columns: name
|
|
37
39
|
* @param {string} search - Search term to filter your list results. Max length: 256 chars.
|
|
40
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
38
41
|
* @throws {AppwriteException}
|
|
39
42
|
* @returns {Promise<Models.DatabaseList>}
|
|
40
43
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
41
44
|
*/
|
|
42
|
-
list(queries?: string[], search?: string): Promise<Models.DatabaseList>;
|
|
45
|
+
list(queries?: string[], search?: string, total?: boolean): Promise<Models.DatabaseList>;
|
|
43
46
|
/**
|
|
44
47
|
* Create a new Database.
|
|
45
48
|
*
|
|
@@ -259,6 +262,7 @@ declare class TablesDB {
|
|
|
259
262
|
* @param {string} params.databaseId - Database ID.
|
|
260
263
|
* @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 columns: name, enabled, rowSecurity
|
|
261
264
|
* @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
|
|
265
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
262
266
|
* @throws {AppwriteException}
|
|
263
267
|
* @returns {Promise<Models.TableList>}
|
|
264
268
|
*/
|
|
@@ -266,6 +270,7 @@ declare class TablesDB {
|
|
|
266
270
|
databaseId: string;
|
|
267
271
|
queries?: string[];
|
|
268
272
|
search?: string;
|
|
273
|
+
total?: boolean;
|
|
269
274
|
}): Promise<Models.TableList>;
|
|
270
275
|
/**
|
|
271
276
|
* Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.
|
|
@@ -273,11 +278,12 @@ declare class TablesDB {
|
|
|
273
278
|
* @param {string} databaseId - Database ID.
|
|
274
279
|
* @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 columns: name, enabled, rowSecurity
|
|
275
280
|
* @param {string} search - Search term to filter your list results. Max length: 256 chars.
|
|
281
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
276
282
|
* @throws {AppwriteException}
|
|
277
283
|
* @returns {Promise<Models.TableList>}
|
|
278
284
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
279
285
|
*/
|
|
280
|
-
listTables(databaseId: string, queries?: string[], search?: string): Promise<Models.TableList>;
|
|
286
|
+
listTables(databaseId: string, queries?: string[], search?: string, total?: boolean): Promise<Models.TableList>;
|
|
281
287
|
/**
|
|
282
288
|
* Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.
|
|
283
289
|
*
|
|
@@ -341,7 +347,7 @@ declare class TablesDB {
|
|
|
341
347
|
* @param {string} params.tableId - Table ID.
|
|
342
348
|
* @param {string} params.name - Table name. Max length: 128 chars.
|
|
343
349
|
* @param {string[]} params.permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
344
|
-
* @param {boolean} params.rowSecurity - Enables configuring permissions for individual rows. A user needs one of row or table
|
|
350
|
+
* @param {boolean} params.rowSecurity - Enables configuring permissions for individual rows. A user needs one of row or table-level permissions to access a row. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
345
351
|
* @param {boolean} params.enabled - Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.
|
|
346
352
|
* @throws {AppwriteException}
|
|
347
353
|
* @returns {Promise<Models.Table>}
|
|
@@ -361,7 +367,7 @@ declare class TablesDB {
|
|
|
361
367
|
* @param {string} tableId - Table ID.
|
|
362
368
|
* @param {string} name - Table name. Max length: 128 chars.
|
|
363
369
|
* @param {string[]} permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
364
|
-
* @param {boolean} rowSecurity - Enables configuring permissions for individual rows. A user needs one of row or table
|
|
370
|
+
* @param {boolean} rowSecurity - Enables configuring permissions for individual rows. A user needs one of row or table-level permissions to access a row. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
365
371
|
* @param {boolean} enabled - Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.
|
|
366
372
|
* @throws {AppwriteException}
|
|
367
373
|
* @returns {Promise<Models.Table>}
|
|
@@ -396,6 +402,7 @@ declare class TablesDB {
|
|
|
396
402
|
* @param {string} params.databaseId - Database ID.
|
|
397
403
|
* @param {string} params.tableId - Table ID.
|
|
398
404
|
* @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 columns: key, type, size, required, array, status, error
|
|
405
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
399
406
|
* @throws {AppwriteException}
|
|
400
407
|
* @returns {Promise<Models.ColumnList>}
|
|
401
408
|
*/
|
|
@@ -403,6 +410,7 @@ declare class TablesDB {
|
|
|
403
410
|
databaseId: string;
|
|
404
411
|
tableId: string;
|
|
405
412
|
queries?: string[];
|
|
413
|
+
total?: boolean;
|
|
406
414
|
}): Promise<Models.ColumnList>;
|
|
407
415
|
/**
|
|
408
416
|
* List columns in the table.
|
|
@@ -410,11 +418,12 @@ declare class TablesDB {
|
|
|
410
418
|
* @param {string} databaseId - Database ID.
|
|
411
419
|
* @param {string} tableId - Table ID.
|
|
412
420
|
* @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 columns: key, type, size, required, array, status, error
|
|
421
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
413
422
|
* @throws {AppwriteException}
|
|
414
423
|
* @returns {Promise<Models.ColumnList>}
|
|
415
424
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
416
425
|
*/
|
|
417
|
-
listColumns(databaseId: string, tableId: string, queries?: string[]): Promise<Models.ColumnList>;
|
|
426
|
+
listColumns(databaseId: string, tableId: string, queries?: string[], total?: boolean): Promise<Models.ColumnList>;
|
|
418
427
|
/**
|
|
419
428
|
* Create a boolean column.
|
|
420
429
|
*
|
|
@@ -1420,6 +1429,7 @@ declare class TablesDB {
|
|
|
1420
1429
|
* @param {string} params.databaseId - Database ID.
|
|
1421
1430
|
* @param {string} params.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).
|
|
1422
1431
|
* @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 columns: key, type, status, attributes, error
|
|
1432
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
1423
1433
|
* @throws {AppwriteException}
|
|
1424
1434
|
* @returns {Promise<Models.ColumnIndexList>}
|
|
1425
1435
|
*/
|
|
@@ -1427,6 +1437,7 @@ declare class TablesDB {
|
|
|
1427
1437
|
databaseId: string;
|
|
1428
1438
|
tableId: string;
|
|
1429
1439
|
queries?: string[];
|
|
1440
|
+
total?: boolean;
|
|
1430
1441
|
}): Promise<Models.ColumnIndexList>;
|
|
1431
1442
|
/**
|
|
1432
1443
|
* List indexes on the table.
|
|
@@ -1434,11 +1445,12 @@ declare class TablesDB {
|
|
|
1434
1445
|
* @param {string} databaseId - Database ID.
|
|
1435
1446
|
* @param {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).
|
|
1436
1447
|
* @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 columns: key, type, status, attributes, error
|
|
1448
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
1437
1449
|
* @throws {AppwriteException}
|
|
1438
1450
|
* @returns {Promise<Models.ColumnIndexList>}
|
|
1439
1451
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1440
1452
|
*/
|
|
1441
|
-
listIndexes(databaseId: string, tableId: string, queries?: string[]): Promise<Models.ColumnIndexList>;
|
|
1453
|
+
listIndexes(databaseId: string, tableId: string, queries?: string[], total?: boolean): Promise<Models.ColumnIndexList>;
|
|
1442
1454
|
/**
|
|
1443
1455
|
* Creates an index on the columns listed. Your index should include all the columns you will query in a single request.
|
|
1444
1456
|
* Type can be `key`, `fulltext`, or `unique`.
|
|
@@ -1535,6 +1547,7 @@ declare class TablesDB {
|
|
|
1535
1547
|
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).
|
|
1536
1548
|
* @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.
|
|
1537
1549
|
* @param {string} params.transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
1550
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
1538
1551
|
* @throws {AppwriteException}
|
|
1539
1552
|
* @returns {Promise<Models.RowList<Row>>}
|
|
1540
1553
|
*/
|
|
@@ -1543,6 +1556,7 @@ declare class TablesDB {
|
|
|
1543
1556
|
tableId: string;
|
|
1544
1557
|
queries?: string[];
|
|
1545
1558
|
transactionId?: string;
|
|
1559
|
+
total?: boolean;
|
|
1546
1560
|
}): Promise<Models.RowList<Row>>;
|
|
1547
1561
|
/**
|
|
1548
1562
|
* Get a list of all the user's rows in a given table. You can use the query params to filter your results.
|
|
@@ -1551,11 +1565,12 @@ declare class TablesDB {
|
|
|
1551
1565
|
* @param {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).
|
|
1552
1566
|
* @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.
|
|
1553
1567
|
* @param {string} transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
1568
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
1554
1569
|
* @throws {AppwriteException}
|
|
1555
1570
|
* @returns {Promise<Models.RowList<Row>>}
|
|
1556
1571
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1557
1572
|
*/
|
|
1558
|
-
listRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[], transactionId?: string): Promise<Models.RowList<Row>>;
|
|
1573
|
+
listRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean): Promise<Models.RowList<Row>>;
|
|
1559
1574
|
/**
|
|
1560
1575
|
* Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.
|
|
1561
1576
|
*
|
|
@@ -13,11 +13,13 @@ class TablesDB {
|
|
|
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 = "/tablesdb";
|
|
22
24
|
const payload = {};
|
|
23
25
|
if (typeof queries !== "undefined") {
|
|
@@ -26,6 +28,9 @@ class TablesDB {
|
|
|
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(
|
|
@@ -341,12 +346,14 @@ class TablesDB {
|
|
|
341
346
|
params = {
|
|
342
347
|
databaseId: paramsOrFirst,
|
|
343
348
|
queries: rest[0],
|
|
344
|
-
search: rest[1]
|
|
349
|
+
search: rest[1],
|
|
350
|
+
total: rest[2]
|
|
345
351
|
};
|
|
346
352
|
}
|
|
347
353
|
const databaseId = params.databaseId;
|
|
348
354
|
const queries = params.queries;
|
|
349
355
|
const search = params.search;
|
|
356
|
+
const total = params.total;
|
|
350
357
|
if (typeof databaseId === "undefined") {
|
|
351
358
|
throw new client.AppwriteException('Missing required parameter: "databaseId"');
|
|
352
359
|
}
|
|
@@ -358,6 +365,9 @@ class TablesDB {
|
|
|
358
365
|
if (typeof search !== "undefined") {
|
|
359
366
|
payload["search"] = search;
|
|
360
367
|
}
|
|
368
|
+
if (typeof total !== "undefined") {
|
|
369
|
+
payload["total"] = total;
|
|
370
|
+
}
|
|
361
371
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
362
372
|
const apiHeaders = {};
|
|
363
373
|
return this.client.call(
|
|
@@ -546,12 +556,14 @@ class TablesDB {
|
|
|
546
556
|
params = {
|
|
547
557
|
databaseId: paramsOrFirst,
|
|
548
558
|
tableId: rest[0],
|
|
549
|
-
queries: rest[1]
|
|
559
|
+
queries: rest[1],
|
|
560
|
+
total: rest[2]
|
|
550
561
|
};
|
|
551
562
|
}
|
|
552
563
|
const databaseId = params.databaseId;
|
|
553
564
|
const tableId = params.tableId;
|
|
554
565
|
const queries = params.queries;
|
|
566
|
+
const total = params.total;
|
|
555
567
|
if (typeof databaseId === "undefined") {
|
|
556
568
|
throw new client.AppwriteException('Missing required parameter: "databaseId"');
|
|
557
569
|
}
|
|
@@ -563,6 +575,9 @@ class TablesDB {
|
|
|
563
575
|
if (typeof queries !== "undefined") {
|
|
564
576
|
payload["queries"] = queries;
|
|
565
577
|
}
|
|
578
|
+
if (typeof total !== "undefined") {
|
|
579
|
+
payload["total"] = total;
|
|
580
|
+
}
|
|
566
581
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
567
582
|
const apiHeaders = {};
|
|
568
583
|
return this.client.call(
|
|
@@ -2181,12 +2196,14 @@ class TablesDB {
|
|
|
2181
2196
|
params = {
|
|
2182
2197
|
databaseId: paramsOrFirst,
|
|
2183
2198
|
tableId: rest[0],
|
|
2184
|
-
queries: rest[1]
|
|
2199
|
+
queries: rest[1],
|
|
2200
|
+
total: rest[2]
|
|
2185
2201
|
};
|
|
2186
2202
|
}
|
|
2187
2203
|
const databaseId = params.databaseId;
|
|
2188
2204
|
const tableId = params.tableId;
|
|
2189
2205
|
const queries = params.queries;
|
|
2206
|
+
const total = params.total;
|
|
2190
2207
|
if (typeof databaseId === "undefined") {
|
|
2191
2208
|
throw new client.AppwriteException('Missing required parameter: "databaseId"');
|
|
2192
2209
|
}
|
|
@@ -2198,6 +2215,9 @@ class TablesDB {
|
|
|
2198
2215
|
if (typeof queries !== "undefined") {
|
|
2199
2216
|
payload["queries"] = queries;
|
|
2200
2217
|
}
|
|
2218
|
+
if (typeof total !== "undefined") {
|
|
2219
|
+
payload["total"] = total;
|
|
2220
|
+
}
|
|
2201
2221
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2202
2222
|
const apiHeaders = {};
|
|
2203
2223
|
return this.client.call(
|
|
@@ -2351,13 +2371,15 @@ class TablesDB {
|
|
|
2351
2371
|
databaseId: paramsOrFirst,
|
|
2352
2372
|
tableId: rest[0],
|
|
2353
2373
|
queries: rest[1],
|
|
2354
|
-
transactionId: rest[2]
|
|
2374
|
+
transactionId: rest[2],
|
|
2375
|
+
total: rest[3]
|
|
2355
2376
|
};
|
|
2356
2377
|
}
|
|
2357
2378
|
const databaseId = params.databaseId;
|
|
2358
2379
|
const tableId = params.tableId;
|
|
2359
2380
|
const queries = params.queries;
|
|
2360
2381
|
const transactionId = params.transactionId;
|
|
2382
|
+
const total = params.total;
|
|
2361
2383
|
if (typeof databaseId === "undefined") {
|
|
2362
2384
|
throw new client.AppwriteException('Missing required parameter: "databaseId"');
|
|
2363
2385
|
}
|
|
@@ -2372,6 +2394,9 @@ class TablesDB {
|
|
|
2372
2394
|
if (typeof transactionId !== "undefined") {
|
|
2373
2395
|
payload["transactionId"] = transactionId;
|
|
2374
2396
|
}
|
|
2397
|
+
if (typeof total !== "undefined") {
|
|
2398
|
+
payload["total"] = total;
|
|
2399
|
+
}
|
|
2375
2400
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2376
2401
|
const apiHeaders = {};
|
|
2377
2402
|
return this.client.call(
|