node-appwrite 19.2.0-rc.1 → 20.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.
Files changed (111) hide show
  1. package/dist/client.d.mts +10 -0
  2. package/dist/client.d.ts +10 -0
  3. package/dist/client.js +2 -2
  4. package/dist/client.js.map +1 -1
  5. package/dist/client.mjs +2 -2
  6. package/dist/client.mjs.map +1 -1
  7. package/dist/enums/attribute-status.d.mts +9 -0
  8. package/dist/enums/attribute-status.d.ts +9 -0
  9. package/dist/enums/attribute-status.js +14 -0
  10. package/dist/enums/attribute-status.js.map +1 -0
  11. package/dist/enums/attribute-status.mjs +13 -0
  12. package/dist/enums/attribute-status.mjs.map +1 -0
  13. package/dist/enums/column-status.d.mts +9 -0
  14. package/dist/enums/column-status.d.ts +9 -0
  15. package/dist/enums/column-status.js +14 -0
  16. package/dist/enums/column-status.js.map +1 -0
  17. package/dist/enums/column-status.mjs +13 -0
  18. package/dist/enums/column-status.mjs.map +1 -0
  19. package/dist/enums/database-type.d.mts +6 -0
  20. package/dist/enums/database-type.d.ts +6 -0
  21. package/dist/enums/database-type.js +11 -0
  22. package/dist/enums/database-type.js.map +1 -0
  23. package/dist/enums/database-type.mjs +10 -0
  24. package/dist/enums/database-type.mjs.map +1 -0
  25. package/dist/enums/deployment-status.d.mts +9 -0
  26. package/dist/enums/deployment-status.d.ts +9 -0
  27. package/dist/enums/deployment-status.js +14 -0
  28. package/dist/enums/deployment-status.js.map +1 -0
  29. package/dist/enums/deployment-status.mjs +13 -0
  30. package/dist/enums/deployment-status.mjs.map +1 -0
  31. package/dist/enums/execution-status.d.mts +8 -0
  32. package/dist/enums/execution-status.d.ts +8 -0
  33. package/dist/enums/execution-status.js +13 -0
  34. package/dist/enums/execution-status.js.map +1 -0
  35. package/dist/enums/execution-status.mjs +12 -0
  36. package/dist/enums/execution-status.mjs.map +1 -0
  37. package/dist/enums/execution-trigger.d.mts +7 -0
  38. package/dist/enums/execution-trigger.d.ts +7 -0
  39. package/dist/enums/execution-trigger.js +12 -0
  40. package/dist/enums/execution-trigger.js.map +1 -0
  41. package/dist/enums/execution-trigger.mjs +11 -0
  42. package/dist/enums/execution-trigger.mjs.map +1 -0
  43. package/dist/enums/health-antivirus-status.d.mts +7 -0
  44. package/dist/enums/health-antivirus-status.d.ts +7 -0
  45. package/dist/enums/health-antivirus-status.js +12 -0
  46. package/dist/enums/health-antivirus-status.js.map +1 -0
  47. package/dist/enums/health-antivirus-status.mjs +11 -0
  48. package/dist/enums/health-antivirus-status.mjs.map +1 -0
  49. package/dist/enums/health-check-status.d.mts +6 -0
  50. package/dist/enums/health-check-status.d.ts +6 -0
  51. package/dist/enums/health-check-status.js +11 -0
  52. package/dist/enums/health-check-status.js.map +1 -0
  53. package/dist/enums/health-check-status.mjs +10 -0
  54. package/dist/enums/health-check-status.mjs.map +1 -0
  55. package/dist/enums/index-status.d.mts +9 -0
  56. package/dist/enums/index-status.d.ts +9 -0
  57. package/dist/enums/index-status.js +14 -0
  58. package/dist/enums/index-status.js.map +1 -0
  59. package/dist/enums/index-status.mjs +13 -0
  60. package/dist/enums/index-status.mjs.map +1 -0
  61. package/dist/enums/message-status.d.mts +9 -0
  62. package/dist/enums/message-status.d.ts +9 -0
  63. package/dist/enums/message-status.js +14 -0
  64. package/dist/enums/message-status.js.map +1 -0
  65. package/dist/enums/message-status.mjs +13 -0
  66. package/dist/enums/message-status.mjs.map +1 -0
  67. package/dist/index.d.mts +10 -0
  68. package/dist/index.d.ts +10 -0
  69. package/dist/index.js +50 -0
  70. package/dist/index.js.map +1 -1
  71. package/dist/index.mjs +10 -0
  72. package/dist/index.mjs.map +1 -1
  73. package/dist/models.d.mts +45 -76
  74. package/dist/models.d.ts +45 -76
  75. package/dist/services/account.d.mts +10 -0
  76. package/dist/services/account.d.ts +10 -0
  77. package/dist/services/avatars.d.mts +10 -0
  78. package/dist/services/avatars.d.ts +10 -0
  79. package/dist/services/databases.d.mts +24 -173
  80. package/dist/services/databases.d.ts +24 -173
  81. package/dist/services/databases.js +12 -239
  82. package/dist/services/databases.js.map +1 -1
  83. package/dist/services/databases.mjs +12 -239
  84. package/dist/services/databases.mjs.map +1 -1
  85. package/dist/services/functions.d.mts +10 -0
  86. package/dist/services/functions.d.ts +10 -0
  87. package/dist/services/graphql.d.mts +10 -0
  88. package/dist/services/graphql.d.ts +10 -0
  89. package/dist/services/health.d.mts +10 -0
  90. package/dist/services/health.d.ts +10 -0
  91. package/dist/services/locale.d.mts +10 -0
  92. package/dist/services/locale.d.ts +10 -0
  93. package/dist/services/messaging.d.mts +10 -0
  94. package/dist/services/messaging.d.ts +10 -0
  95. package/dist/services/sites.d.mts +10 -0
  96. package/dist/services/sites.d.ts +10 -0
  97. package/dist/services/storage.d.mts +10 -0
  98. package/dist/services/storage.d.ts +10 -0
  99. package/dist/services/tables-db.d.mts +22 -171
  100. package/dist/services/tables-db.d.ts +22 -171
  101. package/dist/services/tables-db.js +12 -239
  102. package/dist/services/tables-db.js.map +1 -1
  103. package/dist/services/tables-db.mjs +12 -239
  104. package/dist/services/tables-db.mjs.map +1 -1
  105. package/dist/services/teams.d.mts +10 -0
  106. package/dist/services/teams.d.ts +10 -0
  107. package/dist/services/tokens.d.mts +10 -0
  108. package/dist/services/tokens.d.ts +10 -0
  109. package/dist/services/users.d.mts +10 -0
  110. package/dist/services/users.d.ts +10 -0
  111. package/package.json +1 -1
@@ -4,6 +4,16 @@ import { RelationshipType } from '../enums/relationship-type.js';
4
4
  import { RelationMutate } from '../enums/relation-mutate.js';
5
5
  import { IndexType } from '../enums/index-type.js';
6
6
  import '../query.js';
7
+ import '../enums/database-type.js';
8
+ import '../enums/attribute-status.js';
9
+ import '../enums/column-status.js';
10
+ import '../enums/index-status.js';
11
+ import '../enums/deployment-status.js';
12
+ import '../enums/execution-trigger.js';
13
+ import '../enums/execution-status.js';
14
+ import '../enums/health-antivirus-status.js';
15
+ import '../enums/health-check-status.js';
16
+ import '../enums/message-status.js';
7
17
 
8
18
  declare class TablesDB {
9
19
  client: Client;
@@ -57,129 +67,6 @@ declare class TablesDB {
57
67
  * @deprecated Use the object parameter style method for a better developer experience.
58
68
  */
59
69
  create(databaseId: string, name: string, enabled?: boolean): Promise<Models.Database>;
60
- /**
61
- * List transactions across all databases.
62
- *
63
- * @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).
64
- * @throws {AppwriteException}
65
- * @returns {Promise<Models.TransactionList>}
66
- */
67
- listTransactions(params?: {
68
- queries?: string[];
69
- }): Promise<Models.TransactionList>;
70
- /**
71
- * List transactions across all databases.
72
- *
73
- * @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).
74
- * @throws {AppwriteException}
75
- * @returns {Promise<Models.TransactionList>}
76
- * @deprecated Use the object parameter style method for a better developer experience.
77
- */
78
- listTransactions(queries?: string[]): Promise<Models.TransactionList>;
79
- /**
80
- * Create a new transaction.
81
- *
82
- * @param {number} params.ttl - Seconds before the transaction expires.
83
- * @throws {AppwriteException}
84
- * @returns {Promise<Models.Transaction>}
85
- */
86
- createTransaction(params?: {
87
- ttl?: number;
88
- }): Promise<Models.Transaction>;
89
- /**
90
- * Create a new transaction.
91
- *
92
- * @param {number} ttl - Seconds before the transaction expires.
93
- * @throws {AppwriteException}
94
- * @returns {Promise<Models.Transaction>}
95
- * @deprecated Use the object parameter style method for a better developer experience.
96
- */
97
- createTransaction(ttl?: number): Promise<Models.Transaction>;
98
- /**
99
- * Get a transaction by its unique ID.
100
- *
101
- * @param {string} params.transactionId - Transaction ID.
102
- * @throws {AppwriteException}
103
- * @returns {Promise<Models.Transaction>}
104
- */
105
- getTransaction(params: {
106
- transactionId: string;
107
- }): Promise<Models.Transaction>;
108
- /**
109
- * Get a transaction by its unique ID.
110
- *
111
- * @param {string} transactionId - Transaction ID.
112
- * @throws {AppwriteException}
113
- * @returns {Promise<Models.Transaction>}
114
- * @deprecated Use the object parameter style method for a better developer experience.
115
- */
116
- getTransaction(transactionId: string): Promise<Models.Transaction>;
117
- /**
118
- * Update a transaction, to either commit or roll back its operations.
119
- *
120
- * @param {string} params.transactionId - Transaction ID.
121
- * @param {boolean} params.commit - Commit transaction?
122
- * @param {boolean} params.rollback - Rollback transaction?
123
- * @throws {AppwriteException}
124
- * @returns {Promise<Models.Transaction>}
125
- */
126
- updateTransaction(params: {
127
- transactionId: string;
128
- commit?: boolean;
129
- rollback?: boolean;
130
- }): Promise<Models.Transaction>;
131
- /**
132
- * Update a transaction, to either commit or roll back its operations.
133
- *
134
- * @param {string} transactionId - Transaction ID.
135
- * @param {boolean} commit - Commit transaction?
136
- * @param {boolean} rollback - Rollback transaction?
137
- * @throws {AppwriteException}
138
- * @returns {Promise<Models.Transaction>}
139
- * @deprecated Use the object parameter style method for a better developer experience.
140
- */
141
- updateTransaction(transactionId: string, commit?: boolean, rollback?: boolean): Promise<Models.Transaction>;
142
- /**
143
- * Delete a transaction by its unique ID.
144
- *
145
- * @param {string} params.transactionId - Transaction ID.
146
- * @throws {AppwriteException}
147
- * @returns {Promise<{}>}
148
- */
149
- deleteTransaction(params: {
150
- transactionId: string;
151
- }): Promise<{}>;
152
- /**
153
- * Delete a transaction by its unique ID.
154
- *
155
- * @param {string} transactionId - Transaction ID.
156
- * @throws {AppwriteException}
157
- * @returns {Promise<{}>}
158
- * @deprecated Use the object parameter style method for a better developer experience.
159
- */
160
- deleteTransaction(transactionId: string): Promise<{}>;
161
- /**
162
- * Create multiple operations in a single transaction.
163
- *
164
- * @param {string} params.transactionId - Transaction ID.
165
- * @param {object[]} params.operations - Array of staged operations.
166
- * @throws {AppwriteException}
167
- * @returns {Promise<Models.Transaction>}
168
- */
169
- createOperations(params: {
170
- transactionId: string;
171
- operations?: object[];
172
- }): Promise<Models.Transaction>;
173
- /**
174
- * Create multiple operations in a single transaction.
175
- *
176
- * @param {string} transactionId - Transaction ID.
177
- * @param {object[]} operations - Array of staged operations.
178
- * @throws {AppwriteException}
179
- * @returns {Promise<Models.Transaction>}
180
- * @deprecated Use the object parameter style method for a better developer experience.
181
- */
182
- createOperations(transactionId: string, operations?: object[]): Promise<Models.Transaction>;
183
70
  /**
184
71
  * Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.
185
72
  *
@@ -1524,7 +1411,6 @@ declare class TablesDB {
1524
1411
  * @param {string} params.databaseId - Database ID.
1525
1412
  * @param {string} params.tableId - Table ID. You can create a new table using the TableDB service [server integration](https://appwrite.io/docs/server/tablesdbdb#tablesdbCreate).
1526
1413
  * @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.
1527
- * @param {string} params.transactionId - Transaction ID to read uncommitted changes within the transaction.
1528
1414
  * @throws {AppwriteException}
1529
1415
  * @returns {Promise<Models.RowList<Row>>}
1530
1416
  */
@@ -1532,7 +1418,6 @@ declare class TablesDB {
1532
1418
  databaseId: string;
1533
1419
  tableId: string;
1534
1420
  queries?: string[];
1535
- transactionId?: string;
1536
1421
  }): Promise<Models.RowList<Row>>;
1537
1422
  /**
1538
1423
  * Get a list of all the user's rows in a given table. You can use the query params to filter your results.
@@ -1540,12 +1425,11 @@ declare class TablesDB {
1540
1425
  * @param {string} databaseId - Database ID.
1541
1426
  * @param {string} tableId - Table ID. You can create a new table using the TableDB service [server integration](https://appwrite.io/docs/server/tablesdbdb#tablesdbCreate).
1542
1427
  * @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.
1543
- * @param {string} transactionId - Transaction ID to read uncommitted changes within the transaction.
1544
1428
  * @throws {AppwriteException}
1545
1429
  * @returns {Promise<Models.RowList<Row>>}
1546
1430
  * @deprecated Use the object parameter style method for a better developer experience.
1547
1431
  */
1548
- listRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[], transactionId?: string): Promise<Models.RowList<Row>>;
1432
+ listRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[]): Promise<Models.RowList<Row>>;
1549
1433
  /**
1550
1434
  * Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
1551
1435
  *
@@ -1554,7 +1438,6 @@ declare class TablesDB {
1554
1438
  * @param {string} params.rowId - Row ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1555
1439
  * @param {Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Omit<Row, keyof Models.Row>} params.data - Row data as JSON object.
1556
1440
  * @param {string[]} params.permissions - An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1557
- * @param {string} params.transactionId - Transaction ID for staging the operation.
1558
1441
  * @throws {AppwriteException}
1559
1442
  * @returns {Promise<Row>}
1560
1443
  */
@@ -1564,7 +1447,6 @@ declare class TablesDB {
1564
1447
  rowId: string;
1565
1448
  data: Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Omit<Row, keyof Models.Row>;
1566
1449
  permissions?: string[];
1567
- transactionId?: string;
1568
1450
  }): Promise<Row>;
1569
1451
  /**
1570
1452
  * Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
@@ -1574,19 +1456,17 @@ declare class TablesDB {
1574
1456
  * @param {string} rowId - Row ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1575
1457
  * @param {Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Omit<Row, keyof Models.Row>} data - Row data as JSON object.
1576
1458
  * @param {string[]} permissions - An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1577
- * @param {string} transactionId - Transaction ID for staging the operation.
1578
1459
  * @throws {AppwriteException}
1579
1460
  * @returns {Promise<Row>}
1580
1461
  * @deprecated Use the object parameter style method for a better developer experience.
1581
1462
  */
1582
- createRow<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, data: Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Omit<Row, keyof Models.Row>, permissions?: string[], transactionId?: string): Promise<Row>;
1463
+ createRow<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, data: Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Omit<Row, keyof Models.Row>, permissions?: string[]): Promise<Row>;
1583
1464
  /**
1584
1465
  * Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
1585
1466
  *
1586
1467
  * @param {string} params.databaseId - Database ID.
1587
1468
  * @param {string} params.tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows.
1588
1469
  * @param {object[]} params.rows - Array of rows data as JSON objects.
1589
- * @param {string} params.transactionId - Transaction ID for staging the operation.
1590
1470
  * @throws {AppwriteException}
1591
1471
  * @returns {Promise<Models.RowList<Row>>}
1592
1472
  */
@@ -1594,7 +1474,6 @@ declare class TablesDB {
1594
1474
  databaseId: string;
1595
1475
  tableId: string;
1596
1476
  rows: object[];
1597
- transactionId?: string;
1598
1477
  }): Promise<Models.RowList<Row>>;
1599
1478
  /**
1600
1479
  * Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
@@ -1602,12 +1481,11 @@ declare class TablesDB {
1602
1481
  * @param {string} databaseId - Database ID.
1603
1482
  * @param {string} tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows.
1604
1483
  * @param {object[]} rows - Array of rows data as JSON objects.
1605
- * @param {string} transactionId - Transaction ID for staging the operation.
1606
1484
  * @throws {AppwriteException}
1607
1485
  * @returns {Promise<Models.RowList<Row>>}
1608
1486
  * @deprecated Use the object parameter style method for a better developer experience.
1609
1487
  */
1610
- createRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rows: object[], transactionId?: string): Promise<Models.RowList<Row>>;
1488
+ createRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rows: object[]): Promise<Models.RowList<Row>>;
1611
1489
  /**
1612
1490
  * Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
1613
1491
  *
@@ -1615,7 +1493,6 @@ declare class TablesDB {
1615
1493
  * @param {string} params.databaseId - Database ID.
1616
1494
  * @param {string} params.tableId - Table ID.
1617
1495
  * @param {object[]} params.rows - Array of row data as JSON objects. May contain partial rows.
1618
- * @param {string} params.transactionId - Transaction ID for staging the operation.
1619
1496
  * @throws {AppwriteException}
1620
1497
  * @returns {Promise<Models.RowList<Row>>}
1621
1498
  */
@@ -1623,7 +1500,6 @@ declare class TablesDB {
1623
1500
  databaseId: string;
1624
1501
  tableId: string;
1625
1502
  rows: object[];
1626
- transactionId?: string;
1627
1503
  }): Promise<Models.RowList<Row>>;
1628
1504
  /**
1629
1505
  * Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
@@ -1632,12 +1508,11 @@ declare class TablesDB {
1632
1508
  * @param {string} databaseId - Database ID.
1633
1509
  * @param {string} tableId - Table ID.
1634
1510
  * @param {object[]} rows - Array of row data as JSON objects. May contain partial rows.
1635
- * @param {string} transactionId - Transaction ID for staging the operation.
1636
1511
  * @throws {AppwriteException}
1637
1512
  * @returns {Promise<Models.RowList<Row>>}
1638
1513
  * @deprecated Use the object parameter style method for a better developer experience.
1639
1514
  */
1640
- upsertRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rows: object[], transactionId?: string): Promise<Models.RowList<Row>>;
1515
+ upsertRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rows: object[]): Promise<Models.RowList<Row>>;
1641
1516
  /**
1642
1517
  * Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.
1643
1518
  *
@@ -1645,7 +1520,6 @@ declare class TablesDB {
1645
1520
  * @param {string} params.tableId - Table ID.
1646
1521
  * @param {object} params.data - Row data as JSON object. Include only column and value pairs to be updated.
1647
1522
  * @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.
1648
- * @param {string} params.transactionId - Transaction ID for staging the operation.
1649
1523
  * @throws {AppwriteException}
1650
1524
  * @returns {Promise<Models.RowList<Row>>}
1651
1525
  */
@@ -1654,7 +1528,6 @@ declare class TablesDB {
1654
1528
  tableId: string;
1655
1529
  data?: object;
1656
1530
  queries?: string[];
1657
- transactionId?: string;
1658
1531
  }): Promise<Models.RowList<Row>>;
1659
1532
  /**
1660
1533
  * Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.
@@ -1663,19 +1536,17 @@ declare class TablesDB {
1663
1536
  * @param {string} tableId - Table ID.
1664
1537
  * @param {object} data - Row data as JSON object. Include only column and value pairs to be updated.
1665
1538
  * @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.
1666
- * @param {string} transactionId - Transaction ID for staging the operation.
1667
1539
  * @throws {AppwriteException}
1668
1540
  * @returns {Promise<Models.RowList<Row>>}
1669
1541
  * @deprecated Use the object parameter style method for a better developer experience.
1670
1542
  */
1671
- updateRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, data?: object, queries?: string[], transactionId?: string): Promise<Models.RowList<Row>>;
1543
+ updateRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, data?: object, queries?: string[]): Promise<Models.RowList<Row>>;
1672
1544
  /**
1673
1545
  * Bulk delete rows using queries, if no queries are passed then all rows are deleted.
1674
1546
  *
1675
1547
  * @param {string} params.databaseId - Database ID.
1676
1548
  * @param {string} params.tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
1677
1549
  * @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.
1678
- * @param {string} params.transactionId - Transaction ID for staging the operation.
1679
1550
  * @throws {AppwriteException}
1680
1551
  * @returns {Promise<Models.RowList<Row>>}
1681
1552
  */
@@ -1683,7 +1554,6 @@ declare class TablesDB {
1683
1554
  databaseId: string;
1684
1555
  tableId: string;
1685
1556
  queries?: string[];
1686
- transactionId?: string;
1687
1557
  }): Promise<Models.RowList<Row>>;
1688
1558
  /**
1689
1559
  * Bulk delete rows using queries, if no queries are passed then all rows are deleted.
@@ -1691,12 +1561,11 @@ declare class TablesDB {
1691
1561
  * @param {string} databaseId - Database ID.
1692
1562
  * @param {string} tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
1693
1563
  * @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.
1694
- * @param {string} transactionId - Transaction ID for staging the operation.
1695
1564
  * @throws {AppwriteException}
1696
1565
  * @returns {Promise<Models.RowList<Row>>}
1697
1566
  * @deprecated Use the object parameter style method for a better developer experience.
1698
1567
  */
1699
- deleteRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[], transactionId?: string): Promise<Models.RowList<Row>>;
1568
+ deleteRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[]): Promise<Models.RowList<Row>>;
1700
1569
  /**
1701
1570
  * Get a row by its unique ID. This endpoint response returns a JSON object with the row data.
1702
1571
  *
@@ -1704,7 +1573,6 @@ declare class TablesDB {
1704
1573
  * @param {string} params.tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
1705
1574
  * @param {string} params.rowId - Row ID.
1706
1575
  * @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.
1707
- * @param {string} params.transactionId - Transaction ID to read uncommitted changes within the transaction.
1708
1576
  * @throws {AppwriteException}
1709
1577
  * @returns {Promise<Row>}
1710
1578
  */
@@ -1713,7 +1581,6 @@ declare class TablesDB {
1713
1581
  tableId: string;
1714
1582
  rowId: string;
1715
1583
  queries?: string[];
1716
- transactionId?: string;
1717
1584
  }): Promise<Row>;
1718
1585
  /**
1719
1586
  * Get a row by its unique ID. This endpoint response returns a JSON object with the row data.
@@ -1722,12 +1589,11 @@ declare class TablesDB {
1722
1589
  * @param {string} tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
1723
1590
  * @param {string} rowId - Row ID.
1724
1591
  * @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.
1725
- * @param {string} transactionId - Transaction ID to read uncommitted changes within the transaction.
1726
1592
  * @throws {AppwriteException}
1727
1593
  * @returns {Promise<Row>}
1728
1594
  * @deprecated Use the object parameter style method for a better developer experience.
1729
1595
  */
1730
- getRow<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, queries?: string[], transactionId?: string): Promise<Row>;
1596
+ getRow<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, queries?: string[]): Promise<Row>;
1731
1597
  /**
1732
1598
  * Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
1733
1599
  *
@@ -1736,7 +1602,6 @@ declare class TablesDB {
1736
1602
  * @param {string} params.rowId - Row ID.
1737
1603
  * @param {Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Partial<Omit<Row, keyof Models.Row>>} params.data - Row data as JSON object. Include all required columns of the row to be created or updated.
1738
1604
  * @param {string[]} params.permissions - An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
1739
- * @param {string} params.transactionId - Transaction ID for staging the operation.
1740
1605
  * @throws {AppwriteException}
1741
1606
  * @returns {Promise<Row>}
1742
1607
  */
@@ -1746,7 +1611,6 @@ declare class TablesDB {
1746
1611
  rowId: string;
1747
1612
  data?: Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Partial<Omit<Row, keyof Models.Row>>;
1748
1613
  permissions?: string[];
1749
- transactionId?: string;
1750
1614
  }): Promise<Row>;
1751
1615
  /**
1752
1616
  * Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.
@@ -1756,12 +1620,11 @@ declare class TablesDB {
1756
1620
  * @param {string} rowId - Row ID.
1757
1621
  * @param {Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Partial<Omit<Row, keyof Models.Row>>} data - Row data as JSON object. Include all required columns of the row to be created or updated.
1758
1622
  * @param {string[]} permissions - An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
1759
- * @param {string} transactionId - Transaction ID for staging the operation.
1760
1623
  * @throws {AppwriteException}
1761
1624
  * @returns {Promise<Row>}
1762
1625
  * @deprecated Use the object parameter style method for a better developer experience.
1763
1626
  */
1764
- upsertRow<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, data?: Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Partial<Omit<Row, keyof Models.Row>>, permissions?: string[], transactionId?: string): Promise<Row>;
1627
+ upsertRow<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, data?: Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Partial<Omit<Row, keyof Models.Row>>, permissions?: string[]): Promise<Row>;
1765
1628
  /**
1766
1629
  * Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.
1767
1630
  *
@@ -1770,7 +1633,6 @@ declare class TablesDB {
1770
1633
  * @param {string} params.rowId - Row ID.
1771
1634
  * @param {Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Partial<Omit<Row, keyof Models.Row>>} params.data - Row data as JSON object. Include only columns and value pairs to be updated.
1772
1635
  * @param {string[]} params.permissions - An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
1773
- * @param {string} params.transactionId - Transaction ID for staging the operation.
1774
1636
  * @throws {AppwriteException}
1775
1637
  * @returns {Promise<Row>}
1776
1638
  */
@@ -1780,7 +1642,6 @@ declare class TablesDB {
1780
1642
  rowId: string;
1781
1643
  data?: Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Partial<Omit<Row, keyof Models.Row>>;
1782
1644
  permissions?: string[];
1783
- transactionId?: string;
1784
1645
  }): Promise<Row>;
1785
1646
  /**
1786
1647
  * Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.
@@ -1790,19 +1651,17 @@ declare class TablesDB {
1790
1651
  * @param {string} rowId - Row ID.
1791
1652
  * @param {Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Partial<Omit<Row, keyof Models.Row>>} data - Row data as JSON object. Include only columns and value pairs to be updated.
1792
1653
  * @param {string[]} permissions - An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
1793
- * @param {string} transactionId - Transaction ID for staging the operation.
1794
1654
  * @throws {AppwriteException}
1795
1655
  * @returns {Promise<Row>}
1796
1656
  * @deprecated Use the object parameter style method for a better developer experience.
1797
1657
  */
1798
- updateRow<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, data?: Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Partial<Omit<Row, keyof Models.Row>>, permissions?: string[], transactionId?: string): Promise<Row>;
1658
+ updateRow<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, data?: Row extends Models.DefaultRow ? Partial<Models.Row> & Record<string, any> : Partial<Models.Row> & Partial<Omit<Row, keyof Models.Row>>, permissions?: string[]): Promise<Row>;
1799
1659
  /**
1800
1660
  * Delete a row by its unique ID.
1801
1661
  *
1802
1662
  * @param {string} params.databaseId - Database ID.
1803
1663
  * @param {string} params.tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
1804
1664
  * @param {string} params.rowId - Row ID.
1805
- * @param {string} params.transactionId - Transaction ID for staging the operation.
1806
1665
  * @throws {AppwriteException}
1807
1666
  * @returns {Promise<{}>}
1808
1667
  */
@@ -1810,7 +1669,6 @@ declare class TablesDB {
1810
1669
  databaseId: string;
1811
1670
  tableId: string;
1812
1671
  rowId: string;
1813
- transactionId?: string;
1814
1672
  }): Promise<{}>;
1815
1673
  /**
1816
1674
  * Delete a row by its unique ID.
@@ -1818,12 +1676,11 @@ declare class TablesDB {
1818
1676
  * @param {string} databaseId - Database ID.
1819
1677
  * @param {string} tableId - Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
1820
1678
  * @param {string} rowId - Row ID.
1821
- * @param {string} transactionId - Transaction ID for staging the operation.
1822
1679
  * @throws {AppwriteException}
1823
1680
  * @returns {Promise<{}>}
1824
1681
  * @deprecated Use the object parameter style method for a better developer experience.
1825
1682
  */
1826
- deleteRow(databaseId: string, tableId: string, rowId: string, transactionId?: string): Promise<{}>;
1683
+ deleteRow(databaseId: string, tableId: string, rowId: string): Promise<{}>;
1827
1684
  /**
1828
1685
  * Decrement a specific column of a row by a given value.
1829
1686
  *
@@ -1833,7 +1690,6 @@ declare class TablesDB {
1833
1690
  * @param {string} params.column - Column key.
1834
1691
  * @param {number} params.value - Value to increment the column by. The value must be a number.
1835
1692
  * @param {number} params.min - Minimum value for the column. If the current value is lesser than this value, an exception will be thrown.
1836
- * @param {string} params.transactionId - Transaction ID for staging the operation.
1837
1693
  * @throws {AppwriteException}
1838
1694
  * @returns {Promise<Row>}
1839
1695
  */
@@ -1844,7 +1700,6 @@ declare class TablesDB {
1844
1700
  column: string;
1845
1701
  value?: number;
1846
1702
  min?: number;
1847
- transactionId?: string;
1848
1703
  }): Promise<Row>;
1849
1704
  /**
1850
1705
  * Decrement a specific column of a row by a given value.
@@ -1855,12 +1710,11 @@ declare class TablesDB {
1855
1710
  * @param {string} column - Column key.
1856
1711
  * @param {number} value - Value to increment the column by. The value must be a number.
1857
1712
  * @param {number} min - Minimum value for the column. If the current value is lesser than this value, an exception will be thrown.
1858
- * @param {string} transactionId - Transaction ID for staging the operation.
1859
1713
  * @throws {AppwriteException}
1860
1714
  * @returns {Promise<Row>}
1861
1715
  * @deprecated Use the object parameter style method for a better developer experience.
1862
1716
  */
1863
- decrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number, min?: number, transactionId?: string): Promise<Row>;
1717
+ decrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number, min?: number): Promise<Row>;
1864
1718
  /**
1865
1719
  * Increment a specific column of a row by a given value.
1866
1720
  *
@@ -1870,7 +1724,6 @@ declare class TablesDB {
1870
1724
  * @param {string} params.column - Column key.
1871
1725
  * @param {number} params.value - Value to increment the column by. The value must be a number.
1872
1726
  * @param {number} params.max - Maximum value for the column. If the current value is greater than this value, an error will be thrown.
1873
- * @param {string} params.transactionId - Transaction ID for staging the operation.
1874
1727
  * @throws {AppwriteException}
1875
1728
  * @returns {Promise<Row>}
1876
1729
  */
@@ -1881,7 +1734,6 @@ declare class TablesDB {
1881
1734
  column: string;
1882
1735
  value?: number;
1883
1736
  max?: number;
1884
- transactionId?: string;
1885
1737
  }): Promise<Row>;
1886
1738
  /**
1887
1739
  * Increment a specific column of a row by a given value.
@@ -1892,12 +1744,11 @@ declare class TablesDB {
1892
1744
  * @param {string} column - Column key.
1893
1745
  * @param {number} value - Value to increment the column by. The value must be a number.
1894
1746
  * @param {number} max - Maximum value for the column. If the current value is greater than this value, an error will be thrown.
1895
- * @param {string} transactionId - Transaction ID for staging the operation.
1896
1747
  * @throws {AppwriteException}
1897
1748
  * @returns {Promise<Row>}
1898
1749
  * @deprecated Use the object parameter style method for a better developer experience.
1899
1750
  */
1900
- incrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number, max?: number, transactionId?: string): Promise<Row>;
1751
+ incrementRowColumn<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, rowId: string, column: string, value?: number, max?: number): Promise<Row>;
1901
1752
  }
1902
1753
 
1903
1754
  export { TablesDB };