node-appwrite 11.0.0 → 11.1.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.
@@ -15,7 +15,7 @@ class Databases extends Service {
15
15
 
16
16
 
17
17
  /**
18
- * List Databases
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 Database
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 Database
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 Database
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 Database
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 Collections
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 Collection
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) API or
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 Collection
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 Collection
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 Collection
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 Attributes
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 Boolean Attribute
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 Boolean Attribute
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 DateTime Attribute
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 DateTime Attribute
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 Email Attribute
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 Email Attribute
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 Enum Attribute
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 Enum Attribute
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 Float Attribute
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 Float Attribute
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 Integer Attribute
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 Integer Attribute
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 Address Attribute
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 Address Attribute
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 Relationship Attribute
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 String Attribute
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 String Attribute
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 Attribute
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 Attribute
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 Attribute
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 Attribute
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 Relationship Attribute
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 Documents
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 Document
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) API or
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 Document
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 Document
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 Document
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 Indexes
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 Index
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 Index
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 Index
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 Functions
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 Function
46
+ * Create function
47
47
  *
48
48
  * Create a new function. You can pass a list of
49
- * [permissions](/docs/permissions) to allow different project users or team
50
- * with access to execute the function using the client API.
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 Function
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 Function
217
+ * Update function
217
218
  *
218
219
  * Update function by its unique ID.
219
220
  *
@@ -314,7 +315,7 @@ class Functions extends Service {
314
315
  }
315
316
 
316
317
  /**
317
- * Delete Function
318
+ * Delete function
318
319
  *
319
320
  * Delete a function by its unique ID.
320
321
  *
@@ -336,7 +337,7 @@ class Functions extends Service {
336
337
  }
337
338
 
338
339
  /**
339
- * List Deployments
340
+ * List deployments
340
341
  *
341
342
  * Get a list of all the project's code deployments. You can use the query
342
343
  * params to filter your results.
@@ -369,7 +370,7 @@ class Functions extends Service {
369
370
  }
370
371
 
371
372
  /**
372
- * Create Deployment
373
+ * Create deployment
373
374
  *
374
375
  * Create a new function code deployment. Use this endpoint to upload a new
375
376
  * version of your code function. To execute your newly uploaded code, you'll
@@ -378,7 +379,7 @@ class Functions extends Service {
378
379
  * This endpoint accepts a tar.gz file compressed with your code. Make sure to
379
380
  * include any dependencies your code has within the compressed file. You can
380
381
  * learn more about code packaging in the [Appwrite Cloud Functions
381
- * tutorial](/docs/functions).
382
+ * tutorial](https://appwrite.io/docs/functions).
382
383
  *
383
384
  * Use the "command" param to set the entrypoint used to execute your code.
384
385
  *
@@ -550,7 +551,7 @@ class Functions extends Service {
550
551
  }
551
552
 
552
553
  /**
553
- * Get Deployment
554
+ * Get deployment
554
555
  *
555
556
  * Get a code deployment by its unique ID.
556
557
  *
@@ -577,7 +578,7 @@ class Functions extends Service {
577
578
  }
578
579
 
579
580
  /**
580
- * Update Function Deployment
581
+ * Update function deployment
581
582
  *
582
583
  * Update the function code deployment ID using the unique function ID. Use
583
584
  * this endpoint to switch the code deployment that should be executed by the
@@ -606,7 +607,7 @@ class Functions extends Service {
606
607
  }
607
608
 
608
609
  /**
609
- * Delete Deployment
610
+ * Delete deployment
610
611
  *
611
612
  * Delete a code deployment by its unique ID.
612
613
  *
@@ -633,7 +634,7 @@ class Functions extends Service {
633
634
  }
634
635
 
635
636
  /**
636
- * Create Build
637
+ * Create build
637
638
  *
638
639
  * Create a new build for an Appwrite Function deployment. This endpoint can
639
640
  * be used to retry a failed build.
@@ -668,6 +669,9 @@ class Functions extends Service {
668
669
  /**
669
670
  * Download Deployment
670
671
  *
672
+ * Get a Deployment's contents by its unique ID. This endpoint supports range
673
+ * requests for partial or streaming file download.
674
+ *
671
675
  * @param {string} functionId
672
676
  * @param {string} deploymentId
673
677
  * @throws {AppwriteException}
@@ -691,7 +695,7 @@ class Functions extends Service {
691
695
  }
692
696
 
693
697
  /**
694
- * List Executions
698
+ * List executions
695
699
  *
696
700
  * Get a list of all the current user function execution logs. You can use the
697
701
  * query params to filter your results.
@@ -724,7 +728,7 @@ class Functions extends Service {
724
728
  }
725
729
 
726
730
  /**
727
- * Create Execution
731
+ * Create execution
728
732
  *
729
733
  * Trigger a function execution. The returned object will return you the
730
734
  * current execution status. You can ping the `Get Execution` endpoint to get
@@ -774,7 +778,7 @@ class Functions extends Service {
774
778
  }
775
779
 
776
780
  /**
777
- * Get Execution
781
+ * Get execution
778
782
  *
779
783
  * Get a function execution log by its unique ID.
780
784
  *
@@ -801,7 +805,7 @@ class Functions extends Service {
801
805
  }
802
806
 
803
807
  /**
804
- * List Variables
808
+ * List variables
805
809
  *
806
810
  * Get a list of all variables of a specific function.
807
811
  *
@@ -823,7 +827,7 @@ class Functions extends Service {
823
827
  }
824
828
 
825
829
  /**
826
- * Create Variable
830
+ * Create variable
827
831
  *
828
832
  * Create a new function environment variable. These variables can be accessed
829
833
  * in the function at runtime as environment variables.
@@ -864,7 +868,7 @@ class Functions extends Service {
864
868
  }
865
869
 
866
870
  /**
867
- * Get Variable
871
+ * Get variable
868
872
  *
869
873
  * Get a variable by its unique ID.
870
874
  *
@@ -891,7 +895,7 @@ class Functions extends Service {
891
895
  }
892
896
 
893
897
  /**
894
- * Update Variable
898
+ * Update variable
895
899
  *
896
900
  * Update variable by its unique ID.
897
901
  *
@@ -932,7 +936,7 @@ class Functions extends Service {
932
936
  }
933
937
 
934
938
  /**
935
- * Delete Variable
939
+ * Delete variable
936
940
  *
937
941
  * Delete a variable by its unique ID.
938
942
  *
@@ -15,7 +15,7 @@ class Graphql extends Service {
15
15
 
16
16
 
17
17
  /**
18
- * GraphQL Endpoint
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 Endpoint
45
+ * GraphQL endpoint
46
46
  *
47
47
  * Execute a GraphQL mutation.
48
48
  *