node-appwrite 10.0.1 → 11.1.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/README.md +1 -1
- package/docs/examples/functions/create.md +1 -1
- package/docs/examples/functions/update.md +1 -1
- package/docs/examples/health/get-queue-builds.md +20 -0
- package/docs/examples/health/get-queue-databases.md +20 -0
- package/docs/examples/health/get-queue-deletes.md +20 -0
- package/docs/examples/health/get-queue-mails.md +20 -0
- package/docs/examples/health/get-queue-messaging.md +20 -0
- package/docs/examples/health/get-queue-migrations.md +20 -0
- package/docs/examples/teams/create-membership.md +1 -1
- package/index.d.ts +297 -214
- package/lib/client.js +7 -7
- package/lib/query.js +1 -1
- package/lib/services/account.js +35 -31
- package/lib/services/avatars.js +11 -10
- package/lib/services/databases.js +48 -48
- package/lib/services/functions.js +26 -26
- package/lib/services/graphql.js +2 -2
- package/lib/services/health.js +177 -14
- package/lib/services/locale.js +7 -7
- package/lib/services/storage.js +12 -12
- package/lib/services/teams.js +19 -23
- package/lib/services/users.js +44 -42
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ class Databases extends Service {
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* List
|
|
18
|
+
* List databases
|
|
19
19
|
*
|
|
20
20
|
* Get a list of all databases from the current Appwrite project. You can use
|
|
21
21
|
* the search parameter to filter your results.
|
|
@@ -43,7 +43,7 @@ class Databases extends Service {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Create
|
|
46
|
+
* Create database
|
|
47
47
|
*
|
|
48
48
|
* Create a new Database.
|
|
49
49
|
*
|
|
@@ -84,7 +84,7 @@ class Databases extends Service {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
* Get
|
|
87
|
+
* Get database
|
|
88
88
|
*
|
|
89
89
|
* Get a database by its unique ID. This endpoint response returns a JSON
|
|
90
90
|
* object with the database metadata.
|
|
@@ -107,7 +107,7 @@ class Databases extends Service {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
|
-
* Update
|
|
110
|
+
* Update database
|
|
111
111
|
*
|
|
112
112
|
* Update a database by its unique ID.
|
|
113
113
|
*
|
|
@@ -143,7 +143,7 @@ class Databases extends Service {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
* Delete
|
|
146
|
+
* Delete database
|
|
147
147
|
*
|
|
148
148
|
* Delete a database by its unique ID. Only API keys with with databases.write
|
|
149
149
|
* scope can delete a database.
|
|
@@ -166,7 +166,7 @@ class Databases extends Service {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* List
|
|
169
|
+
* List collections
|
|
170
170
|
*
|
|
171
171
|
* Get a list of all collections that belong to the provided databaseId. You
|
|
172
172
|
* can use the search parameter to filter your results.
|
|
@@ -199,12 +199,12 @@ class Databases extends Service {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
|
-
* Create
|
|
202
|
+
* Create collection
|
|
203
203
|
*
|
|
204
204
|
* Create a new Collection. Before using this route, you should create a new
|
|
205
205
|
* database resource using either a [server
|
|
206
|
-
* integration](/docs/server/databases#databasesCreateCollection)
|
|
207
|
-
* directly from your database console.
|
|
206
|
+
* integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)
|
|
207
|
+
* API or directly from your database console.
|
|
208
208
|
*
|
|
209
209
|
* @param {string} databaseId
|
|
210
210
|
* @param {string} collectionId
|
|
@@ -257,7 +257,7 @@ class Databases extends Service {
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
/**
|
|
260
|
-
* Get
|
|
260
|
+
* Get collection
|
|
261
261
|
*
|
|
262
262
|
* Get a collection by its unique ID. This endpoint response returns a JSON
|
|
263
263
|
* object with the collection metadata.
|
|
@@ -285,7 +285,7 @@ class Databases extends Service {
|
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
|
-
* Update
|
|
288
|
+
* Update collection
|
|
289
289
|
*
|
|
290
290
|
* Update a collection by its unique ID.
|
|
291
291
|
*
|
|
@@ -336,7 +336,7 @@ class Databases extends Service {
|
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
/**
|
|
339
|
-
* Delete
|
|
339
|
+
* Delete collection
|
|
340
340
|
*
|
|
341
341
|
* Delete a collection by its unique ID. Only users with write permissions
|
|
342
342
|
* have access to delete this resource.
|
|
@@ -364,7 +364,7 @@ class Databases extends Service {
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
/**
|
|
367
|
-
* List
|
|
367
|
+
* List attributes
|
|
368
368
|
*
|
|
369
369
|
* @param {string} databaseId
|
|
370
370
|
* @param {string} collectionId
|
|
@@ -394,7 +394,7 @@ class Databases extends Service {
|
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
/**
|
|
397
|
-
* Create
|
|
397
|
+
* Create boolean attribute
|
|
398
398
|
*
|
|
399
399
|
* Create a boolean attribute.
|
|
400
400
|
*
|
|
@@ -450,7 +450,7 @@ class Databases extends Service {
|
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
/**
|
|
453
|
-
* Update
|
|
453
|
+
* Update boolean attribute
|
|
454
454
|
*
|
|
455
455
|
* @param {string} databaseId
|
|
456
456
|
* @param {string} collectionId
|
|
@@ -498,7 +498,7 @@ class Databases extends Service {
|
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
/**
|
|
501
|
-
* Create
|
|
501
|
+
* Create datetime attribute
|
|
502
502
|
*
|
|
503
503
|
* @param {string} databaseId
|
|
504
504
|
* @param {string} collectionId
|
|
@@ -551,7 +551,7 @@ class Databases extends Service {
|
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
/**
|
|
554
|
-
* Update
|
|
554
|
+
* Update dateTime attribute
|
|
555
555
|
*
|
|
556
556
|
* @param {string} databaseId
|
|
557
557
|
* @param {string} collectionId
|
|
@@ -599,7 +599,7 @@ class Databases extends Service {
|
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
/**
|
|
602
|
-
* Create
|
|
602
|
+
* Create email attribute
|
|
603
603
|
*
|
|
604
604
|
* Create an email attribute.
|
|
605
605
|
*
|
|
@@ -655,7 +655,7 @@ class Databases extends Service {
|
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
/**
|
|
658
|
-
* Update
|
|
658
|
+
* Update email attribute
|
|
659
659
|
*
|
|
660
660
|
* Update an email attribute. Changing the `default` value will not update
|
|
661
661
|
* already existing documents.
|
|
@@ -707,7 +707,7 @@ class Databases extends Service {
|
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
/**
|
|
710
|
-
* Create
|
|
710
|
+
* Create enum attribute
|
|
711
711
|
*
|
|
712
712
|
* @param {string} databaseId
|
|
713
713
|
* @param {string} collectionId
|
|
@@ -769,7 +769,7 @@ class Databases extends Service {
|
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
/**
|
|
772
|
-
* Update
|
|
772
|
+
* Update enum attribute
|
|
773
773
|
*
|
|
774
774
|
* Update an enum attribute. Changing the `default` value will not update
|
|
775
775
|
* already existing documents.
|
|
@@ -830,7 +830,7 @@ class Databases extends Service {
|
|
|
830
830
|
}
|
|
831
831
|
|
|
832
832
|
/**
|
|
833
|
-
* Create
|
|
833
|
+
* Create float attribute
|
|
834
834
|
*
|
|
835
835
|
* Create a float attribute. Optionally, minimum and maximum values can be
|
|
836
836
|
* provided.
|
|
@@ -897,7 +897,7 @@ class Databases extends Service {
|
|
|
897
897
|
}
|
|
898
898
|
|
|
899
899
|
/**
|
|
900
|
-
* Update
|
|
900
|
+
* Update float attribute
|
|
901
901
|
*
|
|
902
902
|
* Update a float attribute. Changing the `default` value will not update
|
|
903
903
|
* already existing documents.
|
|
@@ -967,7 +967,7 @@ class Databases extends Service {
|
|
|
967
967
|
}
|
|
968
968
|
|
|
969
969
|
/**
|
|
970
|
-
* Create
|
|
970
|
+
* Create integer attribute
|
|
971
971
|
*
|
|
972
972
|
* Create an integer attribute. Optionally, minimum and maximum values can be
|
|
973
973
|
* provided.
|
|
@@ -1034,7 +1034,7 @@ class Databases extends Service {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
/**
|
|
1037
|
-
* Update
|
|
1037
|
+
* Update integer attribute
|
|
1038
1038
|
*
|
|
1039
1039
|
* Update an integer attribute. Changing the `default` value will not update
|
|
1040
1040
|
* already existing documents.
|
|
@@ -1104,7 +1104,7 @@ class Databases extends Service {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
1106
|
/**
|
|
1107
|
-
* Create IP
|
|
1107
|
+
* Create IP address attribute
|
|
1108
1108
|
*
|
|
1109
1109
|
* Create IP address attribute.
|
|
1110
1110
|
*
|
|
@@ -1160,7 +1160,7 @@ class Databases extends Service {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
1162
|
/**
|
|
1163
|
-
* Update IP
|
|
1163
|
+
* Update IP address attribute
|
|
1164
1164
|
*
|
|
1165
1165
|
* Update an ip attribute. Changing the `default` value will not update
|
|
1166
1166
|
* already existing documents.
|
|
@@ -1212,10 +1212,10 @@ class Databases extends Service {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
1214
|
/**
|
|
1215
|
-
* Create
|
|
1215
|
+
* Create relationship attribute
|
|
1216
1216
|
*
|
|
1217
1217
|
* Create relationship attribute. [Learn more about relationship
|
|
1218
|
-
* attributes](/docs/databases-relationships#relationship-attributes).
|
|
1218
|
+
* attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).
|
|
1219
1219
|
*
|
|
1220
1220
|
*
|
|
1221
1221
|
* @param {string} databaseId
|
|
@@ -1279,7 +1279,7 @@ class Databases extends Service {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
|
|
1281
1281
|
/**
|
|
1282
|
-
* Create
|
|
1282
|
+
* Create string attribute
|
|
1283
1283
|
*
|
|
1284
1284
|
* Create a string attribute.
|
|
1285
1285
|
*
|
|
@@ -1349,7 +1349,7 @@ class Databases extends Service {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
|
|
1351
1351
|
/**
|
|
1352
|
-
* Update
|
|
1352
|
+
* Update string attribute
|
|
1353
1353
|
*
|
|
1354
1354
|
* Update a string attribute. Changing the `default` value will not update
|
|
1355
1355
|
* already existing documents.
|
|
@@ -1401,7 +1401,7 @@ class Databases extends Service {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
|
|
1403
1403
|
/**
|
|
1404
|
-
* Create URL
|
|
1404
|
+
* Create URL attribute
|
|
1405
1405
|
*
|
|
1406
1406
|
* Create a URL attribute.
|
|
1407
1407
|
*
|
|
@@ -1457,7 +1457,7 @@ class Databases extends Service {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
1459
|
/**
|
|
1460
|
-
* Update URL
|
|
1460
|
+
* Update URL attribute
|
|
1461
1461
|
*
|
|
1462
1462
|
* Update an url attribute. Changing the `default` value will not update
|
|
1463
1463
|
* already existing documents.
|
|
@@ -1509,7 +1509,7 @@ class Databases extends Service {
|
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
1511
|
/**
|
|
1512
|
-
* Get
|
|
1512
|
+
* Get attribute
|
|
1513
1513
|
*
|
|
1514
1514
|
* @param {string} databaseId
|
|
1515
1515
|
* @param {string} collectionId
|
|
@@ -1539,7 +1539,7 @@ class Databases extends Service {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
|
|
1541
1541
|
/**
|
|
1542
|
-
* Delete
|
|
1542
|
+
* Delete attribute
|
|
1543
1543
|
*
|
|
1544
1544
|
* @param {string} databaseId
|
|
1545
1545
|
* @param {string} collectionId
|
|
@@ -1569,10 +1569,10 @@ class Databases extends Service {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
|
|
1571
1571
|
/**
|
|
1572
|
-
* Update
|
|
1572
|
+
* Update relationship attribute
|
|
1573
1573
|
*
|
|
1574
1574
|
* Update relationship attribute. [Learn more about relationship
|
|
1575
|
-
* attributes](/docs/databases-relationships#relationship-attributes).
|
|
1575
|
+
* attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).
|
|
1576
1576
|
*
|
|
1577
1577
|
*
|
|
1578
1578
|
* @param {string} databaseId
|
|
@@ -1608,7 +1608,7 @@ class Databases extends Service {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
1610
|
/**
|
|
1611
|
-
* List
|
|
1611
|
+
* List documents
|
|
1612
1612
|
*
|
|
1613
1613
|
* Get a list of all the user's documents in a given collection. You can use
|
|
1614
1614
|
* the query params to filter your results.
|
|
@@ -1641,12 +1641,12 @@ class Databases extends Service {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
|
|
1643
1643
|
/**
|
|
1644
|
-
* Create
|
|
1644
|
+
* Create document
|
|
1645
1645
|
*
|
|
1646
1646
|
* Create a new Document. Before using this route, you should create a new
|
|
1647
1647
|
* collection resource using either a [server
|
|
1648
|
-
* integration](/docs/server/databases#databasesCreateCollection)
|
|
1649
|
-
* directly from your database console.
|
|
1648
|
+
* integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)
|
|
1649
|
+
* API or directly from your database console.
|
|
1650
1650
|
*
|
|
1651
1651
|
* @param {string} databaseId
|
|
1652
1652
|
* @param {string} collectionId
|
|
@@ -1694,7 +1694,7 @@ class Databases extends Service {
|
|
|
1694
1694
|
}
|
|
1695
1695
|
|
|
1696
1696
|
/**
|
|
1697
|
-
* Get
|
|
1697
|
+
* Get document
|
|
1698
1698
|
*
|
|
1699
1699
|
* Get a document by its unique ID. This endpoint response returns a JSON
|
|
1700
1700
|
* object with the document data.
|
|
@@ -1732,7 +1732,7 @@ class Databases extends Service {
|
|
|
1732
1732
|
}
|
|
1733
1733
|
|
|
1734
1734
|
/**
|
|
1735
|
-
* Update
|
|
1735
|
+
* Update document
|
|
1736
1736
|
*
|
|
1737
1737
|
* Update a document by its unique ID. Using the patch method you can pass
|
|
1738
1738
|
* only specific fields that will get updated.
|
|
@@ -1775,7 +1775,7 @@ class Databases extends Service {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
|
|
1777
1777
|
/**
|
|
1778
|
-
* Delete
|
|
1778
|
+
* Delete document
|
|
1779
1779
|
*
|
|
1780
1780
|
* Delete a document by its unique ID.
|
|
1781
1781
|
*
|
|
@@ -1807,7 +1807,7 @@ class Databases extends Service {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
|
|
1809
1809
|
/**
|
|
1810
|
-
* List
|
|
1810
|
+
* List indexes
|
|
1811
1811
|
*
|
|
1812
1812
|
* @param {string} databaseId
|
|
1813
1813
|
* @param {string} collectionId
|
|
@@ -1837,7 +1837,7 @@ class Databases extends Service {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
|
|
1839
1839
|
/**
|
|
1840
|
-
* Create
|
|
1840
|
+
* Create index
|
|
1841
1841
|
*
|
|
1842
1842
|
* @param {string} databaseId
|
|
1843
1843
|
* @param {string} collectionId
|
|
@@ -1894,7 +1894,7 @@ class Databases extends Service {
|
|
|
1894
1894
|
}
|
|
1895
1895
|
|
|
1896
1896
|
/**
|
|
1897
|
-
* Get
|
|
1897
|
+
* Get index
|
|
1898
1898
|
*
|
|
1899
1899
|
* @param {string} databaseId
|
|
1900
1900
|
* @param {string} collectionId
|
|
@@ -1924,7 +1924,7 @@ class Databases extends Service {
|
|
|
1924
1924
|
}
|
|
1925
1925
|
|
|
1926
1926
|
/**
|
|
1927
|
-
* Delete
|
|
1927
|
+
* Delete index
|
|
1928
1928
|
*
|
|
1929
1929
|
* @param {string} databaseId
|
|
1930
1930
|
* @param {string} collectionId
|
|
@@ -15,7 +15,7 @@ class Functions extends Service {
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* List
|
|
18
|
+
* List functions
|
|
19
19
|
*
|
|
20
20
|
* Get a list of all the project's functions. You can use the query params to
|
|
21
21
|
* filter your results.
|
|
@@ -43,11 +43,12 @@ class Functions extends Service {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Create
|
|
46
|
+
* Create function
|
|
47
47
|
*
|
|
48
48
|
* Create a new function. You can pass a list of
|
|
49
|
-
* [permissions](/docs/permissions) to allow different
|
|
50
|
-
* with access to execute the function using the client
|
|
49
|
+
* [permissions](https://appwrite.io/docs/permissions) to allow different
|
|
50
|
+
* project users or team with access to execute the function using the client
|
|
51
|
+
* API.
|
|
51
52
|
*
|
|
52
53
|
* @param {string} functionId
|
|
53
54
|
* @param {string} name
|
|
@@ -191,7 +192,7 @@ class Functions extends Service {
|
|
|
191
192
|
}
|
|
192
193
|
|
|
193
194
|
/**
|
|
194
|
-
* Get
|
|
195
|
+
* Get function
|
|
195
196
|
*
|
|
196
197
|
* Get a function by its unique ID.
|
|
197
198
|
*
|
|
@@ -213,7 +214,7 @@ class Functions extends Service {
|
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
/**
|
|
216
|
-
* Update
|
|
217
|
+
* Update function
|
|
217
218
|
*
|
|
218
219
|
* Update function by its unique ID.
|
|
219
220
|
*
|
|
@@ -247,10 +248,6 @@ class Functions extends Service {
|
|
|
247
248
|
throw new AppwriteException('Missing required parameter: "name"');
|
|
248
249
|
}
|
|
249
250
|
|
|
250
|
-
if (typeof runtime === 'undefined') {
|
|
251
|
-
throw new AppwriteException('Missing required parameter: "runtime"');
|
|
252
|
-
}
|
|
253
|
-
|
|
254
251
|
|
|
255
252
|
if (typeof name !== 'undefined') {
|
|
256
253
|
payload['name'] = name;
|
|
@@ -318,7 +315,7 @@ class Functions extends Service {
|
|
|
318
315
|
}
|
|
319
316
|
|
|
320
317
|
/**
|
|
321
|
-
* Delete
|
|
318
|
+
* Delete function
|
|
322
319
|
*
|
|
323
320
|
* Delete a function by its unique ID.
|
|
324
321
|
*
|
|
@@ -340,7 +337,7 @@ class Functions extends Service {
|
|
|
340
337
|
}
|
|
341
338
|
|
|
342
339
|
/**
|
|
343
|
-
* List
|
|
340
|
+
* List deployments
|
|
344
341
|
*
|
|
345
342
|
* Get a list of all the project's code deployments. You can use the query
|
|
346
343
|
* params to filter your results.
|
|
@@ -373,7 +370,7 @@ class Functions extends Service {
|
|
|
373
370
|
}
|
|
374
371
|
|
|
375
372
|
/**
|
|
376
|
-
* Create
|
|
373
|
+
* Create deployment
|
|
377
374
|
*
|
|
378
375
|
* Create a new function code deployment. Use this endpoint to upload a new
|
|
379
376
|
* version of your code function. To execute your newly uploaded code, you'll
|
|
@@ -382,7 +379,7 @@ class Functions extends Service {
|
|
|
382
379
|
* This endpoint accepts a tar.gz file compressed with your code. Make sure to
|
|
383
380
|
* include any dependencies your code has within the compressed file. You can
|
|
384
381
|
* learn more about code packaging in the [Appwrite Cloud Functions
|
|
385
|
-
* tutorial](/docs/functions).
|
|
382
|
+
* tutorial](https://appwrite.io/docs/functions).
|
|
386
383
|
*
|
|
387
384
|
* Use the "command" param to set the entrypoint used to execute your code.
|
|
388
385
|
*
|
|
@@ -554,7 +551,7 @@ class Functions extends Service {
|
|
|
554
551
|
}
|
|
555
552
|
|
|
556
553
|
/**
|
|
557
|
-
* Get
|
|
554
|
+
* Get deployment
|
|
558
555
|
*
|
|
559
556
|
* Get a code deployment by its unique ID.
|
|
560
557
|
*
|
|
@@ -581,7 +578,7 @@ class Functions extends Service {
|
|
|
581
578
|
}
|
|
582
579
|
|
|
583
580
|
/**
|
|
584
|
-
* Update
|
|
581
|
+
* Update function deployment
|
|
585
582
|
*
|
|
586
583
|
* Update the function code deployment ID using the unique function ID. Use
|
|
587
584
|
* this endpoint to switch the code deployment that should be executed by the
|
|
@@ -610,7 +607,7 @@ class Functions extends Service {
|
|
|
610
607
|
}
|
|
611
608
|
|
|
612
609
|
/**
|
|
613
|
-
* Delete
|
|
610
|
+
* Delete deployment
|
|
614
611
|
*
|
|
615
612
|
* Delete a code deployment by its unique ID.
|
|
616
613
|
*
|
|
@@ -637,7 +634,7 @@ class Functions extends Service {
|
|
|
637
634
|
}
|
|
638
635
|
|
|
639
636
|
/**
|
|
640
|
-
* Create
|
|
637
|
+
* Create build
|
|
641
638
|
*
|
|
642
639
|
* Create a new build for an Appwrite Function deployment. This endpoint can
|
|
643
640
|
* be used to retry a failed build.
|
|
@@ -672,6 +669,9 @@ class Functions extends Service {
|
|
|
672
669
|
/**
|
|
673
670
|
* Download Deployment
|
|
674
671
|
*
|
|
672
|
+
* Get a Deployment's contents by its unique ID. This endpoint supports range
|
|
673
|
+
* requests for partial or streaming file download.
|
|
674
|
+
*
|
|
675
675
|
* @param {string} functionId
|
|
676
676
|
* @param {string} deploymentId
|
|
677
677
|
* @throws {AppwriteException}
|
|
@@ -695,7 +695,7 @@ class Functions extends Service {
|
|
|
695
695
|
}
|
|
696
696
|
|
|
697
697
|
/**
|
|
698
|
-
* List
|
|
698
|
+
* List executions
|
|
699
699
|
*
|
|
700
700
|
* Get a list of all the current user function execution logs. You can use the
|
|
701
701
|
* query params to filter your results.
|
|
@@ -728,7 +728,7 @@ class Functions extends Service {
|
|
|
728
728
|
}
|
|
729
729
|
|
|
730
730
|
/**
|
|
731
|
-
* Create
|
|
731
|
+
* Create execution
|
|
732
732
|
*
|
|
733
733
|
* Trigger a function execution. The returned object will return you the
|
|
734
734
|
* current execution status. You can ping the `Get Execution` endpoint to get
|
|
@@ -778,7 +778,7 @@ class Functions extends Service {
|
|
|
778
778
|
}
|
|
779
779
|
|
|
780
780
|
/**
|
|
781
|
-
* Get
|
|
781
|
+
* Get execution
|
|
782
782
|
*
|
|
783
783
|
* Get a function execution log by its unique ID.
|
|
784
784
|
*
|
|
@@ -805,7 +805,7 @@ class Functions extends Service {
|
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
/**
|
|
808
|
-
* List
|
|
808
|
+
* List variables
|
|
809
809
|
*
|
|
810
810
|
* Get a list of all variables of a specific function.
|
|
811
811
|
*
|
|
@@ -827,7 +827,7 @@ class Functions extends Service {
|
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
/**
|
|
830
|
-
* Create
|
|
830
|
+
* Create variable
|
|
831
831
|
*
|
|
832
832
|
* Create a new function environment variable. These variables can be accessed
|
|
833
833
|
* in the function at runtime as environment variables.
|
|
@@ -868,7 +868,7 @@ class Functions extends Service {
|
|
|
868
868
|
}
|
|
869
869
|
|
|
870
870
|
/**
|
|
871
|
-
* Get
|
|
871
|
+
* Get variable
|
|
872
872
|
*
|
|
873
873
|
* Get a variable by its unique ID.
|
|
874
874
|
*
|
|
@@ -895,7 +895,7 @@ class Functions extends Service {
|
|
|
895
895
|
}
|
|
896
896
|
|
|
897
897
|
/**
|
|
898
|
-
* Update
|
|
898
|
+
* Update variable
|
|
899
899
|
*
|
|
900
900
|
* Update variable by its unique ID.
|
|
901
901
|
*
|
|
@@ -936,7 +936,7 @@ class Functions extends Service {
|
|
|
936
936
|
}
|
|
937
937
|
|
|
938
938
|
/**
|
|
939
|
-
* Delete
|
|
939
|
+
* Delete variable
|
|
940
940
|
*
|
|
941
941
|
* Delete a variable by its unique ID.
|
|
942
942
|
*
|
package/lib/services/graphql.js
CHANGED
|
@@ -15,7 +15,7 @@ class Graphql extends Service {
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* GraphQL
|
|
18
|
+
* GraphQL endpoint
|
|
19
19
|
*
|
|
20
20
|
* Execute a GraphQL mutation.
|
|
21
21
|
*
|
|
@@ -42,7 +42,7 @@ class Graphql extends Service {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* GraphQL
|
|
45
|
+
* GraphQL endpoint
|
|
46
46
|
*
|
|
47
47
|
* Execute a GraphQL mutation.
|
|
48
48
|
*
|