node-appwrite 18.0.0 → 19.1.0-rc.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.
Files changed (55) hide show
  1. package/dist/client.js +2 -2
  2. package/dist/client.js.map +1 -1
  3. package/dist/client.mjs +2 -2
  4. package/dist/client.mjs.map +1 -1
  5. package/dist/enums/credit-card.d.mts +1 -1
  6. package/dist/enums/credit-card.d.ts +1 -1
  7. package/dist/enums/credit-card.js +1 -1
  8. package/dist/enums/credit-card.js.map +1 -1
  9. package/dist/enums/credit-card.mjs +1 -1
  10. package/dist/enums/credit-card.mjs.map +1 -1
  11. package/dist/enums/execution-method.d.mts +2 -1
  12. package/dist/enums/execution-method.d.ts +2 -1
  13. package/dist/enums/execution-method.js +1 -0
  14. package/dist/enums/execution-method.js.map +1 -1
  15. package/dist/enums/execution-method.mjs +1 -0
  16. package/dist/enums/execution-method.mjs.map +1 -1
  17. package/dist/enums/index-type.d.mts +2 -1
  18. package/dist/enums/index-type.d.ts +2 -1
  19. package/dist/enums/index-type.js +1 -0
  20. package/dist/enums/index-type.js.map +1 -1
  21. package/dist/enums/index-type.mjs +1 -0
  22. package/dist/enums/index-type.mjs.map +1 -1
  23. package/dist/models.d.mts +292 -4
  24. package/dist/models.d.ts +292 -4
  25. package/dist/query.d.mts +124 -4
  26. package/dist/query.d.ts +124 -4
  27. package/dist/query.js +121 -1
  28. package/dist/query.js.map +1 -1
  29. package/dist/query.mjs +121 -1
  30. package/dist/query.mjs.map +1 -1
  31. package/dist/services/account.d.mts +2 -2
  32. package/dist/services/account.d.ts +2 -2
  33. package/dist/services/account.js.map +1 -1
  34. package/dist/services/account.mjs.map +1 -1
  35. package/dist/services/avatars.d.mts +2 -2
  36. package/dist/services/avatars.d.ts +2 -2
  37. package/dist/services/avatars.js.map +1 -1
  38. package/dist/services/avatars.mjs.map +1 -1
  39. package/dist/services/databases.d.mts +375 -15
  40. package/dist/services/databases.d.ts +375 -15
  41. package/dist/services/databases.js +557 -21
  42. package/dist/services/databases.js.map +1 -1
  43. package/dist/services/databases.mjs +557 -21
  44. package/dist/services/databases.mjs.map +1 -1
  45. package/dist/services/functions.d.mts +2 -2
  46. package/dist/services/functions.d.ts +2 -2
  47. package/dist/services/functions.js.map +1 -1
  48. package/dist/services/functions.mjs.map +1 -1
  49. package/dist/services/tables-db.d.mts +368 -14
  50. package/dist/services/tables-db.d.ts +368 -14
  51. package/dist/services/tables-db.js +557 -12
  52. package/dist/services/tables-db.js.map +1 -1
  53. package/dist/services/tables-db.mjs +557 -12
  54. package/dist/services/tables-db.mjs.map +1 -1
  55. package/package.json +1 -1
@@ -77,6 +77,173 @@ class TablesDB {
77
77
  payload
78
78
  );
79
79
  }
80
+ listTransactions(paramsOrFirst) {
81
+ let params;
82
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
83
+ params = paramsOrFirst || {};
84
+ } else {
85
+ params = {
86
+ queries: paramsOrFirst
87
+ };
88
+ }
89
+ const queries = params.queries;
90
+ const apiPath = "/tablesdb/transactions";
91
+ const payload = {};
92
+ if (typeof queries !== "undefined") {
93
+ payload["queries"] = queries;
94
+ }
95
+ const uri = new URL(this.client.config.endpoint + apiPath);
96
+ const apiHeaders = {};
97
+ return this.client.call(
98
+ "get",
99
+ uri,
100
+ apiHeaders,
101
+ payload
102
+ );
103
+ }
104
+ createTransaction(paramsOrFirst) {
105
+ let params;
106
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
107
+ params = paramsOrFirst || {};
108
+ } else {
109
+ params = {
110
+ ttl: paramsOrFirst
111
+ };
112
+ }
113
+ const ttl = params.ttl;
114
+ const apiPath = "/tablesdb/transactions";
115
+ const payload = {};
116
+ if (typeof ttl !== "undefined") {
117
+ payload["ttl"] = ttl;
118
+ }
119
+ const uri = new URL(this.client.config.endpoint + apiPath);
120
+ const apiHeaders = {
121
+ "content-type": "application/json"
122
+ };
123
+ return this.client.call(
124
+ "post",
125
+ uri,
126
+ apiHeaders,
127
+ payload
128
+ );
129
+ }
130
+ getTransaction(paramsOrFirst) {
131
+ let params;
132
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
133
+ params = paramsOrFirst || {};
134
+ } else {
135
+ params = {
136
+ transactionId: paramsOrFirst
137
+ };
138
+ }
139
+ const transactionId = params.transactionId;
140
+ if (typeof transactionId === "undefined") {
141
+ throw new client.AppwriteException('Missing required parameter: "transactionId"');
142
+ }
143
+ const apiPath = "/tablesdb/transactions/{transactionId}".replace("{transactionId}", transactionId);
144
+ const payload = {};
145
+ const uri = new URL(this.client.config.endpoint + apiPath);
146
+ const apiHeaders = {};
147
+ return this.client.call(
148
+ "get",
149
+ uri,
150
+ apiHeaders,
151
+ payload
152
+ );
153
+ }
154
+ updateTransaction(paramsOrFirst, ...rest) {
155
+ let params;
156
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
157
+ params = paramsOrFirst || {};
158
+ } else {
159
+ params = {
160
+ transactionId: paramsOrFirst,
161
+ commit: rest[0],
162
+ rollback: rest[1]
163
+ };
164
+ }
165
+ const transactionId = params.transactionId;
166
+ const commit = params.commit;
167
+ const rollback = params.rollback;
168
+ if (typeof transactionId === "undefined") {
169
+ throw new client.AppwriteException('Missing required parameter: "transactionId"');
170
+ }
171
+ const apiPath = "/tablesdb/transactions/{transactionId}".replace("{transactionId}", transactionId);
172
+ const payload = {};
173
+ if (typeof commit !== "undefined") {
174
+ payload["commit"] = commit;
175
+ }
176
+ if (typeof rollback !== "undefined") {
177
+ payload["rollback"] = rollback;
178
+ }
179
+ const uri = new URL(this.client.config.endpoint + apiPath);
180
+ const apiHeaders = {
181
+ "content-type": "application/json"
182
+ };
183
+ return this.client.call(
184
+ "patch",
185
+ uri,
186
+ apiHeaders,
187
+ payload
188
+ );
189
+ }
190
+ deleteTransaction(paramsOrFirst) {
191
+ let params;
192
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
193
+ params = paramsOrFirst || {};
194
+ } else {
195
+ params = {
196
+ transactionId: paramsOrFirst
197
+ };
198
+ }
199
+ const transactionId = params.transactionId;
200
+ if (typeof transactionId === "undefined") {
201
+ throw new client.AppwriteException('Missing required parameter: "transactionId"');
202
+ }
203
+ const apiPath = "/tablesdb/transactions/{transactionId}".replace("{transactionId}", transactionId);
204
+ const payload = {};
205
+ const uri = new URL(this.client.config.endpoint + apiPath);
206
+ const apiHeaders = {
207
+ "content-type": "application/json"
208
+ };
209
+ return this.client.call(
210
+ "delete",
211
+ uri,
212
+ apiHeaders,
213
+ payload
214
+ );
215
+ }
216
+ createOperations(paramsOrFirst, ...rest) {
217
+ let params;
218
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
219
+ params = paramsOrFirst || {};
220
+ } else {
221
+ params = {
222
+ transactionId: paramsOrFirst,
223
+ operations: rest[0]
224
+ };
225
+ }
226
+ const transactionId = params.transactionId;
227
+ const operations = params.operations;
228
+ if (typeof transactionId === "undefined") {
229
+ throw new client.AppwriteException('Missing required parameter: "transactionId"');
230
+ }
231
+ const apiPath = "/tablesdb/transactions/{transactionId}/operations".replace("{transactionId}", transactionId);
232
+ const payload = {};
233
+ if (typeof operations !== "undefined") {
234
+ payload["operations"] = operations;
235
+ }
236
+ const uri = new URL(this.client.config.endpoint + apiPath);
237
+ const apiHeaders = {
238
+ "content-type": "application/json"
239
+ };
240
+ return this.client.call(
241
+ "post",
242
+ uri,
243
+ apiHeaders,
244
+ payload
245
+ );
246
+ }
80
247
  get(paramsOrFirst) {
81
248
  let params;
82
249
  if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
@@ -1259,6 +1426,324 @@ class TablesDB {
1259
1426
  payload
1260
1427
  );
1261
1428
  }
1429
+ createLineColumn(paramsOrFirst, ...rest) {
1430
+ let params;
1431
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1432
+ params = paramsOrFirst || {};
1433
+ } else {
1434
+ params = {
1435
+ databaseId: paramsOrFirst,
1436
+ tableId: rest[0],
1437
+ key: rest[1],
1438
+ required: rest[2],
1439
+ xdefault: rest[3]
1440
+ };
1441
+ }
1442
+ const databaseId = params.databaseId;
1443
+ const tableId = params.tableId;
1444
+ const key = params.key;
1445
+ const required = params.required;
1446
+ const xdefault = params.xdefault;
1447
+ if (typeof databaseId === "undefined") {
1448
+ throw new client.AppwriteException('Missing required parameter: "databaseId"');
1449
+ }
1450
+ if (typeof tableId === "undefined") {
1451
+ throw new client.AppwriteException('Missing required parameter: "tableId"');
1452
+ }
1453
+ if (typeof key === "undefined") {
1454
+ throw new client.AppwriteException('Missing required parameter: "key"');
1455
+ }
1456
+ if (typeof required === "undefined") {
1457
+ throw new client.AppwriteException('Missing required parameter: "required"');
1458
+ }
1459
+ const apiPath = "/tablesdb/{databaseId}/tables/{tableId}/columns/line".replace("{databaseId}", databaseId).replace("{tableId}", tableId);
1460
+ const payload = {};
1461
+ if (typeof key !== "undefined") {
1462
+ payload["key"] = key;
1463
+ }
1464
+ if (typeof required !== "undefined") {
1465
+ payload["required"] = required;
1466
+ }
1467
+ if (typeof xdefault !== "undefined") {
1468
+ payload["default"] = xdefault;
1469
+ }
1470
+ const uri = new URL(this.client.config.endpoint + apiPath);
1471
+ const apiHeaders = {
1472
+ "content-type": "application/json"
1473
+ };
1474
+ return this.client.call(
1475
+ "post",
1476
+ uri,
1477
+ apiHeaders,
1478
+ payload
1479
+ );
1480
+ }
1481
+ updateLineColumn(paramsOrFirst, ...rest) {
1482
+ let params;
1483
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1484
+ params = paramsOrFirst || {};
1485
+ } else {
1486
+ params = {
1487
+ databaseId: paramsOrFirst,
1488
+ tableId: rest[0],
1489
+ key: rest[1],
1490
+ required: rest[2],
1491
+ xdefault: rest[3],
1492
+ newKey: rest[4]
1493
+ };
1494
+ }
1495
+ const databaseId = params.databaseId;
1496
+ const tableId = params.tableId;
1497
+ const key = params.key;
1498
+ const required = params.required;
1499
+ const xdefault = params.xdefault;
1500
+ const newKey = params.newKey;
1501
+ if (typeof databaseId === "undefined") {
1502
+ throw new client.AppwriteException('Missing required parameter: "databaseId"');
1503
+ }
1504
+ if (typeof tableId === "undefined") {
1505
+ throw new client.AppwriteException('Missing required parameter: "tableId"');
1506
+ }
1507
+ if (typeof key === "undefined") {
1508
+ throw new client.AppwriteException('Missing required parameter: "key"');
1509
+ }
1510
+ if (typeof required === "undefined") {
1511
+ throw new client.AppwriteException('Missing required parameter: "required"');
1512
+ }
1513
+ const apiPath = "/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}".replace("{databaseId}", databaseId).replace("{tableId}", tableId).replace("{key}", key);
1514
+ const payload = {};
1515
+ if (typeof required !== "undefined") {
1516
+ payload["required"] = required;
1517
+ }
1518
+ if (typeof xdefault !== "undefined") {
1519
+ payload["default"] = xdefault;
1520
+ }
1521
+ if (typeof newKey !== "undefined") {
1522
+ payload["newKey"] = newKey;
1523
+ }
1524
+ const uri = new URL(this.client.config.endpoint + apiPath);
1525
+ const apiHeaders = {
1526
+ "content-type": "application/json"
1527
+ };
1528
+ return this.client.call(
1529
+ "patch",
1530
+ uri,
1531
+ apiHeaders,
1532
+ payload
1533
+ );
1534
+ }
1535
+ createPointColumn(paramsOrFirst, ...rest) {
1536
+ let params;
1537
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1538
+ params = paramsOrFirst || {};
1539
+ } else {
1540
+ params = {
1541
+ databaseId: paramsOrFirst,
1542
+ tableId: rest[0],
1543
+ key: rest[1],
1544
+ required: rest[2],
1545
+ xdefault: rest[3]
1546
+ };
1547
+ }
1548
+ const databaseId = params.databaseId;
1549
+ const tableId = params.tableId;
1550
+ const key = params.key;
1551
+ const required = params.required;
1552
+ const xdefault = params.xdefault;
1553
+ if (typeof databaseId === "undefined") {
1554
+ throw new client.AppwriteException('Missing required parameter: "databaseId"');
1555
+ }
1556
+ if (typeof tableId === "undefined") {
1557
+ throw new client.AppwriteException('Missing required parameter: "tableId"');
1558
+ }
1559
+ if (typeof key === "undefined") {
1560
+ throw new client.AppwriteException('Missing required parameter: "key"');
1561
+ }
1562
+ if (typeof required === "undefined") {
1563
+ throw new client.AppwriteException('Missing required parameter: "required"');
1564
+ }
1565
+ const apiPath = "/tablesdb/{databaseId}/tables/{tableId}/columns/point".replace("{databaseId}", databaseId).replace("{tableId}", tableId);
1566
+ const payload = {};
1567
+ if (typeof key !== "undefined") {
1568
+ payload["key"] = key;
1569
+ }
1570
+ if (typeof required !== "undefined") {
1571
+ payload["required"] = required;
1572
+ }
1573
+ if (typeof xdefault !== "undefined") {
1574
+ payload["default"] = xdefault;
1575
+ }
1576
+ const uri = new URL(this.client.config.endpoint + apiPath);
1577
+ const apiHeaders = {
1578
+ "content-type": "application/json"
1579
+ };
1580
+ return this.client.call(
1581
+ "post",
1582
+ uri,
1583
+ apiHeaders,
1584
+ payload
1585
+ );
1586
+ }
1587
+ updatePointColumn(paramsOrFirst, ...rest) {
1588
+ let params;
1589
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1590
+ params = paramsOrFirst || {};
1591
+ } else {
1592
+ params = {
1593
+ databaseId: paramsOrFirst,
1594
+ tableId: rest[0],
1595
+ key: rest[1],
1596
+ required: rest[2],
1597
+ xdefault: rest[3],
1598
+ newKey: rest[4]
1599
+ };
1600
+ }
1601
+ const databaseId = params.databaseId;
1602
+ const tableId = params.tableId;
1603
+ const key = params.key;
1604
+ const required = params.required;
1605
+ const xdefault = params.xdefault;
1606
+ const newKey = params.newKey;
1607
+ if (typeof databaseId === "undefined") {
1608
+ throw new client.AppwriteException('Missing required parameter: "databaseId"');
1609
+ }
1610
+ if (typeof tableId === "undefined") {
1611
+ throw new client.AppwriteException('Missing required parameter: "tableId"');
1612
+ }
1613
+ if (typeof key === "undefined") {
1614
+ throw new client.AppwriteException('Missing required parameter: "key"');
1615
+ }
1616
+ if (typeof required === "undefined") {
1617
+ throw new client.AppwriteException('Missing required parameter: "required"');
1618
+ }
1619
+ const apiPath = "/tablesdb/{databaseId}/tables/{tableId}/columns/point/{key}".replace("{databaseId}", databaseId).replace("{tableId}", tableId).replace("{key}", key);
1620
+ const payload = {};
1621
+ if (typeof required !== "undefined") {
1622
+ payload["required"] = required;
1623
+ }
1624
+ if (typeof xdefault !== "undefined") {
1625
+ payload["default"] = xdefault;
1626
+ }
1627
+ if (typeof newKey !== "undefined") {
1628
+ payload["newKey"] = newKey;
1629
+ }
1630
+ const uri = new URL(this.client.config.endpoint + apiPath);
1631
+ const apiHeaders = {
1632
+ "content-type": "application/json"
1633
+ };
1634
+ return this.client.call(
1635
+ "patch",
1636
+ uri,
1637
+ apiHeaders,
1638
+ payload
1639
+ );
1640
+ }
1641
+ createPolygonColumn(paramsOrFirst, ...rest) {
1642
+ let params;
1643
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1644
+ params = paramsOrFirst || {};
1645
+ } else {
1646
+ params = {
1647
+ databaseId: paramsOrFirst,
1648
+ tableId: rest[0],
1649
+ key: rest[1],
1650
+ required: rest[2],
1651
+ xdefault: rest[3]
1652
+ };
1653
+ }
1654
+ const databaseId = params.databaseId;
1655
+ const tableId = params.tableId;
1656
+ const key = params.key;
1657
+ const required = params.required;
1658
+ const xdefault = params.xdefault;
1659
+ if (typeof databaseId === "undefined") {
1660
+ throw new client.AppwriteException('Missing required parameter: "databaseId"');
1661
+ }
1662
+ if (typeof tableId === "undefined") {
1663
+ throw new client.AppwriteException('Missing required parameter: "tableId"');
1664
+ }
1665
+ if (typeof key === "undefined") {
1666
+ throw new client.AppwriteException('Missing required parameter: "key"');
1667
+ }
1668
+ if (typeof required === "undefined") {
1669
+ throw new client.AppwriteException('Missing required parameter: "required"');
1670
+ }
1671
+ const apiPath = "/tablesdb/{databaseId}/tables/{tableId}/columns/polygon".replace("{databaseId}", databaseId).replace("{tableId}", tableId);
1672
+ const payload = {};
1673
+ if (typeof key !== "undefined") {
1674
+ payload["key"] = key;
1675
+ }
1676
+ if (typeof required !== "undefined") {
1677
+ payload["required"] = required;
1678
+ }
1679
+ if (typeof xdefault !== "undefined") {
1680
+ payload["default"] = xdefault;
1681
+ }
1682
+ const uri = new URL(this.client.config.endpoint + apiPath);
1683
+ const apiHeaders = {
1684
+ "content-type": "application/json"
1685
+ };
1686
+ return this.client.call(
1687
+ "post",
1688
+ uri,
1689
+ apiHeaders,
1690
+ payload
1691
+ );
1692
+ }
1693
+ updatePolygonColumn(paramsOrFirst, ...rest) {
1694
+ let params;
1695
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1696
+ params = paramsOrFirst || {};
1697
+ } else {
1698
+ params = {
1699
+ databaseId: paramsOrFirst,
1700
+ tableId: rest[0],
1701
+ key: rest[1],
1702
+ required: rest[2],
1703
+ xdefault: rest[3],
1704
+ newKey: rest[4]
1705
+ };
1706
+ }
1707
+ const databaseId = params.databaseId;
1708
+ const tableId = params.tableId;
1709
+ const key = params.key;
1710
+ const required = params.required;
1711
+ const xdefault = params.xdefault;
1712
+ const newKey = params.newKey;
1713
+ if (typeof databaseId === "undefined") {
1714
+ throw new client.AppwriteException('Missing required parameter: "databaseId"');
1715
+ }
1716
+ if (typeof tableId === "undefined") {
1717
+ throw new client.AppwriteException('Missing required parameter: "tableId"');
1718
+ }
1719
+ if (typeof key === "undefined") {
1720
+ throw new client.AppwriteException('Missing required parameter: "key"');
1721
+ }
1722
+ if (typeof required === "undefined") {
1723
+ throw new client.AppwriteException('Missing required parameter: "required"');
1724
+ }
1725
+ const apiPath = "/tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key}".replace("{databaseId}", databaseId).replace("{tableId}", tableId).replace("{key}", key);
1726
+ const payload = {};
1727
+ if (typeof required !== "undefined") {
1728
+ payload["required"] = required;
1729
+ }
1730
+ if (typeof xdefault !== "undefined") {
1731
+ payload["default"] = xdefault;
1732
+ }
1733
+ if (typeof newKey !== "undefined") {
1734
+ payload["newKey"] = newKey;
1735
+ }
1736
+ const uri = new URL(this.client.config.endpoint + apiPath);
1737
+ const apiHeaders = {
1738
+ "content-type": "application/json"
1739
+ };
1740
+ return this.client.call(
1741
+ "patch",
1742
+ uri,
1743
+ apiHeaders,
1744
+ payload
1745
+ );
1746
+ }
1262
1747
  createRelationshipColumn(paramsOrFirst, ...rest) {
1263
1748
  let params;
1264
1749
  if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
@@ -1865,12 +2350,14 @@ class TablesDB {
1865
2350
  params = {
1866
2351
  databaseId: paramsOrFirst,
1867
2352
  tableId: rest[0],
1868
- queries: rest[1]
2353
+ queries: rest[1],
2354
+ transactionId: rest[2]
1869
2355
  };
1870
2356
  }
1871
2357
  const databaseId = params.databaseId;
1872
2358
  const tableId = params.tableId;
1873
2359
  const queries = params.queries;
2360
+ const transactionId = params.transactionId;
1874
2361
  if (typeof databaseId === "undefined") {
1875
2362
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
1876
2363
  }
@@ -1882,6 +2369,9 @@ class TablesDB {
1882
2369
  if (typeof queries !== "undefined") {
1883
2370
  payload["queries"] = queries;
1884
2371
  }
2372
+ if (typeof transactionId !== "undefined") {
2373
+ payload["transactionId"] = transactionId;
2374
+ }
1885
2375
  const uri = new URL(this.client.config.endpoint + apiPath);
1886
2376
  const apiHeaders = {};
1887
2377
  return this.client.call(
@@ -1901,7 +2391,8 @@ class TablesDB {
1901
2391
  tableId: rest[0],
1902
2392
  rowId: rest[1],
1903
2393
  data: rest[2],
1904
- permissions: rest[3]
2394
+ permissions: rest[3],
2395
+ transactionId: rest[4]
1905
2396
  };
1906
2397
  }
1907
2398
  const databaseId = params.databaseId;
@@ -1909,6 +2400,7 @@ class TablesDB {
1909
2400
  const rowId = params.rowId;
1910
2401
  const data = params.data;
1911
2402
  const permissions = params.permissions;
2403
+ const transactionId = params.transactionId;
1912
2404
  if (typeof databaseId === "undefined") {
1913
2405
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
1914
2406
  }
@@ -1932,6 +2424,9 @@ class TablesDB {
1932
2424
  if (typeof permissions !== "undefined") {
1933
2425
  payload["permissions"] = permissions;
1934
2426
  }
2427
+ if (typeof transactionId !== "undefined") {
2428
+ payload["transactionId"] = transactionId;
2429
+ }
1935
2430
  const uri = new URL(this.client.config.endpoint + apiPath);
1936
2431
  const apiHeaders = {
1937
2432
  "content-type": "application/json"
@@ -1951,12 +2446,14 @@ class TablesDB {
1951
2446
  params = {
1952
2447
  databaseId: paramsOrFirst,
1953
2448
  tableId: rest[0],
1954
- rows: rest[1]
2449
+ rows: rest[1],
2450
+ transactionId: rest[2]
1955
2451
  };
1956
2452
  }
1957
2453
  const databaseId = params.databaseId;
1958
2454
  const tableId = params.tableId;
1959
2455
  const rows = params.rows;
2456
+ const transactionId = params.transactionId;
1960
2457
  if (typeof databaseId === "undefined") {
1961
2458
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
1962
2459
  }
@@ -1971,6 +2468,9 @@ class TablesDB {
1971
2468
  if (typeof rows !== "undefined") {
1972
2469
  payload["rows"] = rows;
1973
2470
  }
2471
+ if (typeof transactionId !== "undefined") {
2472
+ payload["transactionId"] = transactionId;
2473
+ }
1974
2474
  const uri = new URL(this.client.config.endpoint + apiPath);
1975
2475
  const apiHeaders = {
1976
2476
  "content-type": "application/json"
@@ -1990,12 +2490,14 @@ class TablesDB {
1990
2490
  params = {
1991
2491
  databaseId: paramsOrFirst,
1992
2492
  tableId: rest[0],
1993
- rows: rest[1]
2493
+ rows: rest[1],
2494
+ transactionId: rest[2]
1994
2495
  };
1995
2496
  }
1996
2497
  const databaseId = params.databaseId;
1997
2498
  const tableId = params.tableId;
1998
2499
  const rows = params.rows;
2500
+ const transactionId = params.transactionId;
1999
2501
  if (typeof databaseId === "undefined") {
2000
2502
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
2001
2503
  }
@@ -2010,6 +2512,9 @@ class TablesDB {
2010
2512
  if (typeof rows !== "undefined") {
2011
2513
  payload["rows"] = rows;
2012
2514
  }
2515
+ if (typeof transactionId !== "undefined") {
2516
+ payload["transactionId"] = transactionId;
2517
+ }
2013
2518
  const uri = new URL(this.client.config.endpoint + apiPath);
2014
2519
  const apiHeaders = {
2015
2520
  "content-type": "application/json"
@@ -2030,13 +2535,15 @@ class TablesDB {
2030
2535
  databaseId: paramsOrFirst,
2031
2536
  tableId: rest[0],
2032
2537
  data: rest[1],
2033
- queries: rest[2]
2538
+ queries: rest[2],
2539
+ transactionId: rest[3]
2034
2540
  };
2035
2541
  }
2036
2542
  const databaseId = params.databaseId;
2037
2543
  const tableId = params.tableId;
2038
2544
  const data = params.data;
2039
2545
  const queries = params.queries;
2546
+ const transactionId = params.transactionId;
2040
2547
  if (typeof databaseId === "undefined") {
2041
2548
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
2042
2549
  }
@@ -2051,6 +2558,9 @@ class TablesDB {
2051
2558
  if (typeof queries !== "undefined") {
2052
2559
  payload["queries"] = queries;
2053
2560
  }
2561
+ if (typeof transactionId !== "undefined") {
2562
+ payload["transactionId"] = transactionId;
2563
+ }
2054
2564
  const uri = new URL(this.client.config.endpoint + apiPath);
2055
2565
  const apiHeaders = {
2056
2566
  "content-type": "application/json"
@@ -2070,12 +2580,14 @@ class TablesDB {
2070
2580
  params = {
2071
2581
  databaseId: paramsOrFirst,
2072
2582
  tableId: rest[0],
2073
- queries: rest[1]
2583
+ queries: rest[1],
2584
+ transactionId: rest[2]
2074
2585
  };
2075
2586
  }
2076
2587
  const databaseId = params.databaseId;
2077
2588
  const tableId = params.tableId;
2078
2589
  const queries = params.queries;
2590
+ const transactionId = params.transactionId;
2079
2591
  if (typeof databaseId === "undefined") {
2080
2592
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
2081
2593
  }
@@ -2087,6 +2599,9 @@ class TablesDB {
2087
2599
  if (typeof queries !== "undefined") {
2088
2600
  payload["queries"] = queries;
2089
2601
  }
2602
+ if (typeof transactionId !== "undefined") {
2603
+ payload["transactionId"] = transactionId;
2604
+ }
2090
2605
  const uri = new URL(this.client.config.endpoint + apiPath);
2091
2606
  const apiHeaders = {
2092
2607
  "content-type": "application/json"
@@ -2107,13 +2622,15 @@ class TablesDB {
2107
2622
  databaseId: paramsOrFirst,
2108
2623
  tableId: rest[0],
2109
2624
  rowId: rest[1],
2110
- queries: rest[2]
2625
+ queries: rest[2],
2626
+ transactionId: rest[3]
2111
2627
  };
2112
2628
  }
2113
2629
  const databaseId = params.databaseId;
2114
2630
  const tableId = params.tableId;
2115
2631
  const rowId = params.rowId;
2116
2632
  const queries = params.queries;
2633
+ const transactionId = params.transactionId;
2117
2634
  if (typeof databaseId === "undefined") {
2118
2635
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
2119
2636
  }
@@ -2128,6 +2645,9 @@ class TablesDB {
2128
2645
  if (typeof queries !== "undefined") {
2129
2646
  payload["queries"] = queries;
2130
2647
  }
2648
+ if (typeof transactionId !== "undefined") {
2649
+ payload["transactionId"] = transactionId;
2650
+ }
2131
2651
  const uri = new URL(this.client.config.endpoint + apiPath);
2132
2652
  const apiHeaders = {};
2133
2653
  return this.client.call(
@@ -2147,7 +2667,8 @@ class TablesDB {
2147
2667
  tableId: rest[0],
2148
2668
  rowId: rest[1],
2149
2669
  data: rest[2],
2150
- permissions: rest[3]
2670
+ permissions: rest[3],
2671
+ transactionId: rest[4]
2151
2672
  };
2152
2673
  }
2153
2674
  const databaseId = params.databaseId;
@@ -2155,6 +2676,7 @@ class TablesDB {
2155
2676
  const rowId = params.rowId;
2156
2677
  const data = params.data;
2157
2678
  const permissions = params.permissions;
2679
+ const transactionId = params.transactionId;
2158
2680
  if (typeof databaseId === "undefined") {
2159
2681
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
2160
2682
  }
@@ -2172,6 +2694,9 @@ class TablesDB {
2172
2694
  if (typeof permissions !== "undefined") {
2173
2695
  payload["permissions"] = permissions;
2174
2696
  }
2697
+ if (typeof transactionId !== "undefined") {
2698
+ payload["transactionId"] = transactionId;
2699
+ }
2175
2700
  const uri = new URL(this.client.config.endpoint + apiPath);
2176
2701
  const apiHeaders = {
2177
2702
  "content-type": "application/json"
@@ -2193,7 +2718,8 @@ class TablesDB {
2193
2718
  tableId: rest[0],
2194
2719
  rowId: rest[1],
2195
2720
  data: rest[2],
2196
- permissions: rest[3]
2721
+ permissions: rest[3],
2722
+ transactionId: rest[4]
2197
2723
  };
2198
2724
  }
2199
2725
  const databaseId = params.databaseId;
@@ -2201,6 +2727,7 @@ class TablesDB {
2201
2727
  const rowId = params.rowId;
2202
2728
  const data = params.data;
2203
2729
  const permissions = params.permissions;
2730
+ const transactionId = params.transactionId;
2204
2731
  if (typeof databaseId === "undefined") {
2205
2732
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
2206
2733
  }
@@ -2218,6 +2745,9 @@ class TablesDB {
2218
2745
  if (typeof permissions !== "undefined") {
2219
2746
  payload["permissions"] = permissions;
2220
2747
  }
2748
+ if (typeof transactionId !== "undefined") {
2749
+ payload["transactionId"] = transactionId;
2750
+ }
2221
2751
  const uri = new URL(this.client.config.endpoint + apiPath);
2222
2752
  const apiHeaders = {
2223
2753
  "content-type": "application/json"
@@ -2237,12 +2767,14 @@ class TablesDB {
2237
2767
  params = {
2238
2768
  databaseId: paramsOrFirst,
2239
2769
  tableId: rest[0],
2240
- rowId: rest[1]
2770
+ rowId: rest[1],
2771
+ transactionId: rest[2]
2241
2772
  };
2242
2773
  }
2243
2774
  const databaseId = params.databaseId;
2244
2775
  const tableId = params.tableId;
2245
2776
  const rowId = params.rowId;
2777
+ const transactionId = params.transactionId;
2246
2778
  if (typeof databaseId === "undefined") {
2247
2779
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
2248
2780
  }
@@ -2254,6 +2786,9 @@ class TablesDB {
2254
2786
  }
2255
2787
  const apiPath = "/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}".replace("{databaseId}", databaseId).replace("{tableId}", tableId).replace("{rowId}", rowId);
2256
2788
  const payload = {};
2789
+ if (typeof transactionId !== "undefined") {
2790
+ payload["transactionId"] = transactionId;
2791
+ }
2257
2792
  const uri = new URL(this.client.config.endpoint + apiPath);
2258
2793
  const apiHeaders = {
2259
2794
  "content-type": "application/json"
@@ -2276,7 +2811,8 @@ class TablesDB {
2276
2811
  rowId: rest[1],
2277
2812
  column: rest[2],
2278
2813
  value: rest[3],
2279
- min: rest[4]
2814
+ min: rest[4],
2815
+ transactionId: rest[5]
2280
2816
  };
2281
2817
  }
2282
2818
  const databaseId = params.databaseId;
@@ -2285,6 +2821,7 @@ class TablesDB {
2285
2821
  const column = params.column;
2286
2822
  const value = params.value;
2287
2823
  const min = params.min;
2824
+ const transactionId = params.transactionId;
2288
2825
  if (typeof databaseId === "undefined") {
2289
2826
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
2290
2827
  }
@@ -2305,6 +2842,9 @@ class TablesDB {
2305
2842
  if (typeof min !== "undefined") {
2306
2843
  payload["min"] = min;
2307
2844
  }
2845
+ if (typeof transactionId !== "undefined") {
2846
+ payload["transactionId"] = transactionId;
2847
+ }
2308
2848
  const uri = new URL(this.client.config.endpoint + apiPath);
2309
2849
  const apiHeaders = {
2310
2850
  "content-type": "application/json"
@@ -2327,7 +2867,8 @@ class TablesDB {
2327
2867
  rowId: rest[1],
2328
2868
  column: rest[2],
2329
2869
  value: rest[3],
2330
- max: rest[4]
2870
+ max: rest[4],
2871
+ transactionId: rest[5]
2331
2872
  };
2332
2873
  }
2333
2874
  const databaseId = params.databaseId;
@@ -2336,6 +2877,7 @@ class TablesDB {
2336
2877
  const column = params.column;
2337
2878
  const value = params.value;
2338
2879
  const max = params.max;
2880
+ const transactionId = params.transactionId;
2339
2881
  if (typeof databaseId === "undefined") {
2340
2882
  throw new client.AppwriteException('Missing required parameter: "databaseId"');
2341
2883
  }
@@ -2356,6 +2898,9 @@ class TablesDB {
2356
2898
  if (typeof max !== "undefined") {
2357
2899
  payload["max"] = max;
2358
2900
  }
2901
+ if (typeof transactionId !== "undefined") {
2902
+ payload["transactionId"] = transactionId;
2903
+ }
2359
2904
  const uri = new URL(this.client.config.endpoint + apiPath);
2360
2905
  const apiHeaders = {
2361
2906
  "content-type": "application/json"