@appwrite.io/console 0.3.0 → 0.4.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.
- package/.github/workflows/publish.yml +2 -2
- package/README.md +3 -3
- package/dist/cjs/sdk.js +1354 -1197
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1354 -1197
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1354 -1197
- package/docs/examples/functions/create.md +1 -1
- package/docs/examples/functions/update.md +1 -1
- package/docs/examples/{projects/get-usage.md → health/get-queue-builds.md} +3 -3
- package/docs/examples/{account/create-with-invite-code.md → health/get-queue-databases.md} +3 -3
- package/docs/examples/health/get-queue-deletes.md +18 -0
- package/docs/examples/health/get-queue-mails.md +18 -0
- package/docs/examples/health/get-queue-messaging.md +18 -0
- package/docs/examples/health/get-queue-migrations.md +18 -0
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/package.json +3 -2
- package/src/client.ts +1 -1
- package/src/models.ts +147 -279
- package/src/query.ts +1 -1
- package/src/role.ts +72 -6
- package/src/services/account.ts +154 -204
- package/src/services/assistant.ts +3 -3
- package/src/services/avatars.ts +32 -31
- package/src/services/console.ts +4 -4
- package/src/services/databases.ts +195 -195
- package/src/services/functions.ts +117 -126
- package/src/services/graphql.ts +8 -8
- package/src/services/health.ts +219 -50
- package/src/services/locale.ts +31 -31
- package/src/services/migrations.ts +48 -48
- package/src/services/project.ts +40 -22
- package/src/services/projects.ts +143 -170
- package/src/services/proxy.ts +15 -15
- package/src/services/storage.ts +74 -84
- package/src/services/teams.ts +62 -66
- package/src/services/users.ts +132 -135
- package/src/services/vcs.ts +27 -27
- package/types/models.d.ts +147 -279
- package/types/role.d.ts +62 -0
- package/types/services/account.d.ts +61 -70
- package/types/services/avatars.d.ts +11 -10
- package/types/services/console.d.ts +1 -1
- package/types/services/databases.d.ts +51 -51
- package/types/services/functions.d.ts +32 -27
- package/types/services/graphql.d.ts +2 -2
- package/types/services/health.d.ts +85 -14
- package/types/services/locale.d.ts +7 -7
- package/types/services/project.d.ts +4 -2
- package/types/services/projects.d.ts +26 -36
- package/types/services/storage.d.ts +13 -13
- package/types/services/teams.d.ts +20 -20
- package/types/services/users.d.ts +45 -44
|
@@ -4,7 +4,7 @@ import type { Models } from '../models';
|
|
|
4
4
|
export declare class Databases extends Service {
|
|
5
5
|
constructor(client: Client);
|
|
6
6
|
/**
|
|
7
|
-
* List
|
|
7
|
+
* List databases
|
|
8
8
|
*
|
|
9
9
|
* Get a list of all databases from the current Appwrite project. You can use
|
|
10
10
|
* the search parameter to filter your results.
|
|
@@ -16,7 +16,7 @@ export declare class Databases extends Service {
|
|
|
16
16
|
*/
|
|
17
17
|
list(queries?: string[], search?: string): Promise<Models.DatabaseList>;
|
|
18
18
|
/**
|
|
19
|
-
* Create
|
|
19
|
+
* Create database
|
|
20
20
|
*
|
|
21
21
|
* Create a new Database.
|
|
22
22
|
*
|
|
@@ -38,7 +38,7 @@ export declare class Databases extends Service {
|
|
|
38
38
|
*/
|
|
39
39
|
getUsage(range?: string): Promise<Models.UsageDatabases>;
|
|
40
40
|
/**
|
|
41
|
-
* Get
|
|
41
|
+
* Get database
|
|
42
42
|
*
|
|
43
43
|
* Get a database by its unique ID. This endpoint response returns a JSON
|
|
44
44
|
* object with the database metadata.
|
|
@@ -49,7 +49,7 @@ export declare class Databases extends Service {
|
|
|
49
49
|
*/
|
|
50
50
|
get(databaseId: string): Promise<Models.Database>;
|
|
51
51
|
/**
|
|
52
|
-
* Update
|
|
52
|
+
* Update database
|
|
53
53
|
*
|
|
54
54
|
* Update a database by its unique ID.
|
|
55
55
|
*
|
|
@@ -61,7 +61,7 @@ export declare class Databases extends Service {
|
|
|
61
61
|
*/
|
|
62
62
|
update(databaseId: string, name: string, enabled?: boolean): Promise<Models.Database>;
|
|
63
63
|
/**
|
|
64
|
-
* Delete
|
|
64
|
+
* Delete database
|
|
65
65
|
*
|
|
66
66
|
* Delete a database by its unique ID. Only API keys with with databases.write
|
|
67
67
|
* scope can delete a database.
|
|
@@ -72,7 +72,7 @@ export declare class Databases extends Service {
|
|
|
72
72
|
*/
|
|
73
73
|
delete(databaseId: string): Promise<{}>;
|
|
74
74
|
/**
|
|
75
|
-
* List
|
|
75
|
+
* List collections
|
|
76
76
|
*
|
|
77
77
|
* Get a list of all collections that belong to the provided databaseId. You
|
|
78
78
|
* can use the search parameter to filter your results.
|
|
@@ -85,12 +85,12 @@ export declare class Databases extends Service {
|
|
|
85
85
|
*/
|
|
86
86
|
listCollections(databaseId: string, queries?: string[], search?: string): Promise<Models.CollectionList>;
|
|
87
87
|
/**
|
|
88
|
-
* Create
|
|
88
|
+
* Create collection
|
|
89
89
|
*
|
|
90
90
|
* Create a new Collection. Before using this route, you should create a new
|
|
91
91
|
* database resource using either a [server
|
|
92
|
-
* integration](/docs/server/databases#databasesCreateCollection)
|
|
93
|
-
* directly from your database console.
|
|
92
|
+
* integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)
|
|
93
|
+
* API or directly from your database console.
|
|
94
94
|
*
|
|
95
95
|
* @param {string} databaseId
|
|
96
96
|
* @param {string} collectionId
|
|
@@ -103,7 +103,7 @@ export declare class Databases extends Service {
|
|
|
103
103
|
*/
|
|
104
104
|
createCollection(databaseId: string, collectionId: string, name: string, permissions?: string[], documentSecurity?: boolean, enabled?: boolean): Promise<Models.Collection>;
|
|
105
105
|
/**
|
|
106
|
-
* Get
|
|
106
|
+
* Get collection
|
|
107
107
|
*
|
|
108
108
|
* Get a collection by its unique ID. This endpoint response returns a JSON
|
|
109
109
|
* object with the collection metadata.
|
|
@@ -115,7 +115,7 @@ export declare class Databases extends Service {
|
|
|
115
115
|
*/
|
|
116
116
|
getCollection(databaseId: string, collectionId: string): Promise<Models.Collection>;
|
|
117
117
|
/**
|
|
118
|
-
* Update
|
|
118
|
+
* Update collection
|
|
119
119
|
*
|
|
120
120
|
* Update a collection by its unique ID.
|
|
121
121
|
*
|
|
@@ -130,7 +130,7 @@ export declare class Databases extends Service {
|
|
|
130
130
|
*/
|
|
131
131
|
updateCollection(databaseId: string, collectionId: string, name: string, permissions?: string[], documentSecurity?: boolean, enabled?: boolean): Promise<Models.Collection>;
|
|
132
132
|
/**
|
|
133
|
-
* Delete
|
|
133
|
+
* Delete collection
|
|
134
134
|
*
|
|
135
135
|
* Delete a collection by its unique ID. Only users with write permissions
|
|
136
136
|
* have access to delete this resource.
|
|
@@ -142,7 +142,7 @@ export declare class Databases extends Service {
|
|
|
142
142
|
*/
|
|
143
143
|
deleteCollection(databaseId: string, collectionId: string): Promise<{}>;
|
|
144
144
|
/**
|
|
145
|
-
* List
|
|
145
|
+
* List attributes
|
|
146
146
|
*
|
|
147
147
|
*
|
|
148
148
|
* @param {string} databaseId
|
|
@@ -153,7 +153,7 @@ export declare class Databases extends Service {
|
|
|
153
153
|
*/
|
|
154
154
|
listAttributes(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.AttributeList>;
|
|
155
155
|
/**
|
|
156
|
-
* Create
|
|
156
|
+
* Create boolean attribute
|
|
157
157
|
*
|
|
158
158
|
* Create a boolean attribute.
|
|
159
159
|
*
|
|
@@ -169,7 +169,7 @@ export declare class Databases extends Service {
|
|
|
169
169
|
*/
|
|
170
170
|
createBooleanAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: boolean, array?: boolean): Promise<Models.AttributeBoolean>;
|
|
171
171
|
/**
|
|
172
|
-
* Update
|
|
172
|
+
* Update boolean attribute
|
|
173
173
|
*
|
|
174
174
|
*
|
|
175
175
|
* @param {string} databaseId
|
|
@@ -182,7 +182,7 @@ export declare class Databases extends Service {
|
|
|
182
182
|
*/
|
|
183
183
|
updateBooleanAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: boolean): Promise<Models.AttributeBoolean>;
|
|
184
184
|
/**
|
|
185
|
-
* Create
|
|
185
|
+
* Create datetime attribute
|
|
186
186
|
*
|
|
187
187
|
*
|
|
188
188
|
* @param {string} databaseId
|
|
@@ -196,7 +196,7 @@ export declare class Databases extends Service {
|
|
|
196
196
|
*/
|
|
197
197
|
createDatetimeAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeDatetime>;
|
|
198
198
|
/**
|
|
199
|
-
* Update
|
|
199
|
+
* Update dateTime attribute
|
|
200
200
|
*
|
|
201
201
|
*
|
|
202
202
|
* @param {string} databaseId
|
|
@@ -209,7 +209,7 @@ export declare class Databases extends Service {
|
|
|
209
209
|
*/
|
|
210
210
|
updateDatetimeAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string): Promise<Models.AttributeDatetime>;
|
|
211
211
|
/**
|
|
212
|
-
* Create
|
|
212
|
+
* Create email attribute
|
|
213
213
|
*
|
|
214
214
|
* Create an email attribute.
|
|
215
215
|
*
|
|
@@ -225,7 +225,7 @@ export declare class Databases extends Service {
|
|
|
225
225
|
*/
|
|
226
226
|
createEmailAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeEmail>;
|
|
227
227
|
/**
|
|
228
|
-
* Update
|
|
228
|
+
* Update email attribute
|
|
229
229
|
*
|
|
230
230
|
* Update an email attribute. Changing the `default` value will not update
|
|
231
231
|
* already existing documents.
|
|
@@ -241,7 +241,7 @@ export declare class Databases extends Service {
|
|
|
241
241
|
*/
|
|
242
242
|
updateEmailAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string): Promise<Models.AttributeEmail>;
|
|
243
243
|
/**
|
|
244
|
-
* Create
|
|
244
|
+
* Create enum attribute
|
|
245
245
|
*
|
|
246
246
|
*
|
|
247
247
|
* @param {string} databaseId
|
|
@@ -256,7 +256,7 @@ export declare class Databases extends Service {
|
|
|
256
256
|
*/
|
|
257
257
|
createEnumAttribute(databaseId: string, collectionId: string, key: string, elements: string[], required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeEnum>;
|
|
258
258
|
/**
|
|
259
|
-
* Update
|
|
259
|
+
* Update enum attribute
|
|
260
260
|
*
|
|
261
261
|
* Update an enum attribute. Changing the `default` value will not update
|
|
262
262
|
* already existing documents.
|
|
@@ -273,7 +273,7 @@ export declare class Databases extends Service {
|
|
|
273
273
|
*/
|
|
274
274
|
updateEnumAttribute(databaseId: string, collectionId: string, key: string, elements: string[], required: boolean, xdefault?: string): Promise<Models.AttributeEnum>;
|
|
275
275
|
/**
|
|
276
|
-
* Create
|
|
276
|
+
* Create float attribute
|
|
277
277
|
*
|
|
278
278
|
* Create a float attribute. Optionally, minimum and maximum values can be
|
|
279
279
|
* provided.
|
|
@@ -292,7 +292,7 @@ export declare class Databases extends Service {
|
|
|
292
292
|
*/
|
|
293
293
|
createFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean): Promise<Models.AttributeFloat>;
|
|
294
294
|
/**
|
|
295
|
-
* Update
|
|
295
|
+
* Update float attribute
|
|
296
296
|
*
|
|
297
297
|
* Update a float attribute. Changing the `default` value will not update
|
|
298
298
|
* already existing documents.
|
|
@@ -310,7 +310,7 @@ export declare class Databases extends Service {
|
|
|
310
310
|
*/
|
|
311
311
|
updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min: number, max: number, xdefault?: number): Promise<Models.AttributeFloat>;
|
|
312
312
|
/**
|
|
313
|
-
* Create
|
|
313
|
+
* Create integer attribute
|
|
314
314
|
*
|
|
315
315
|
* Create an integer attribute. Optionally, minimum and maximum values can be
|
|
316
316
|
* provided.
|
|
@@ -329,7 +329,7 @@ export declare class Databases extends Service {
|
|
|
329
329
|
*/
|
|
330
330
|
createIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean): Promise<Models.AttributeInteger>;
|
|
331
331
|
/**
|
|
332
|
-
* Update
|
|
332
|
+
* Update integer attribute
|
|
333
333
|
*
|
|
334
334
|
* Update an integer attribute. Changing the `default` value will not update
|
|
335
335
|
* already existing documents.
|
|
@@ -347,7 +347,7 @@ export declare class Databases extends Service {
|
|
|
347
347
|
*/
|
|
348
348
|
updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min: number, max: number, xdefault?: number): Promise<Models.AttributeInteger>;
|
|
349
349
|
/**
|
|
350
|
-
* Create IP
|
|
350
|
+
* Create IP address attribute
|
|
351
351
|
*
|
|
352
352
|
* Create IP address attribute.
|
|
353
353
|
*
|
|
@@ -363,7 +363,7 @@ export declare class Databases extends Service {
|
|
|
363
363
|
*/
|
|
364
364
|
createIpAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeIp>;
|
|
365
365
|
/**
|
|
366
|
-
* Update IP
|
|
366
|
+
* Update IP address attribute
|
|
367
367
|
*
|
|
368
368
|
* Update an ip attribute. Changing the `default` value will not update
|
|
369
369
|
* already existing documents.
|
|
@@ -379,10 +379,10 @@ export declare class Databases extends Service {
|
|
|
379
379
|
*/
|
|
380
380
|
updateIpAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string): Promise<Models.AttributeIp>;
|
|
381
381
|
/**
|
|
382
|
-
* Create
|
|
382
|
+
* Create relationship attribute
|
|
383
383
|
*
|
|
384
384
|
* Create relationship attribute. [Learn more about relationship
|
|
385
|
-
* attributes](/docs/databases-relationships#relationship-attributes).
|
|
385
|
+
* attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).
|
|
386
386
|
*
|
|
387
387
|
*
|
|
388
388
|
* @param {string} databaseId
|
|
@@ -398,7 +398,7 @@ export declare class Databases extends Service {
|
|
|
398
398
|
*/
|
|
399
399
|
createRelationshipAttribute(databaseId: string, collectionId: string, relatedCollectionId: string, type: string, twoWay?: boolean, key?: string, twoWayKey?: string, onDelete?: string): Promise<Models.AttributeRelationship>;
|
|
400
400
|
/**
|
|
401
|
-
* Create
|
|
401
|
+
* Create string attribute
|
|
402
402
|
*
|
|
403
403
|
* Create a string attribute.
|
|
404
404
|
*
|
|
@@ -416,7 +416,7 @@ export declare class Databases extends Service {
|
|
|
416
416
|
*/
|
|
417
417
|
createStringAttribute(databaseId: string, collectionId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.AttributeString>;
|
|
418
418
|
/**
|
|
419
|
-
* Update
|
|
419
|
+
* Update string attribute
|
|
420
420
|
*
|
|
421
421
|
* Update a string attribute. Changing the `default` value will not update
|
|
422
422
|
* already existing documents.
|
|
@@ -432,7 +432,7 @@ export declare class Databases extends Service {
|
|
|
432
432
|
*/
|
|
433
433
|
updateStringAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string): Promise<Models.AttributeString>;
|
|
434
434
|
/**
|
|
435
|
-
* Create URL
|
|
435
|
+
* Create URL attribute
|
|
436
436
|
*
|
|
437
437
|
* Create a URL attribute.
|
|
438
438
|
*
|
|
@@ -448,7 +448,7 @@ export declare class Databases extends Service {
|
|
|
448
448
|
*/
|
|
449
449
|
createUrlAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeUrl>;
|
|
450
450
|
/**
|
|
451
|
-
* Update URL
|
|
451
|
+
* Update URL attribute
|
|
452
452
|
*
|
|
453
453
|
* Update an url attribute. Changing the `default` value will not update
|
|
454
454
|
* already existing documents.
|
|
@@ -464,7 +464,7 @@ export declare class Databases extends Service {
|
|
|
464
464
|
*/
|
|
465
465
|
updateUrlAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string): Promise<Models.AttributeUrl>;
|
|
466
466
|
/**
|
|
467
|
-
* Get
|
|
467
|
+
* Get attribute
|
|
468
468
|
*
|
|
469
469
|
*
|
|
470
470
|
* @param {string} databaseId
|
|
@@ -475,7 +475,7 @@ export declare class Databases extends Service {
|
|
|
475
475
|
*/
|
|
476
476
|
getAttribute(databaseId: string, collectionId: string, key: string): Promise<{}>;
|
|
477
477
|
/**
|
|
478
|
-
* Delete
|
|
478
|
+
* Delete attribute
|
|
479
479
|
*
|
|
480
480
|
*
|
|
481
481
|
* @param {string} databaseId
|
|
@@ -486,10 +486,10 @@ export declare class Databases extends Service {
|
|
|
486
486
|
*/
|
|
487
487
|
deleteAttribute(databaseId: string, collectionId: string, key: string): Promise<{}>;
|
|
488
488
|
/**
|
|
489
|
-
* Update
|
|
489
|
+
* Update relationship attribute
|
|
490
490
|
*
|
|
491
491
|
* Update relationship attribute. [Learn more about relationship
|
|
492
|
-
* attributes](/docs/databases-relationships#relationship-attributes).
|
|
492
|
+
* attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).
|
|
493
493
|
*
|
|
494
494
|
*
|
|
495
495
|
* @param {string} databaseId
|
|
@@ -501,7 +501,7 @@ export declare class Databases extends Service {
|
|
|
501
501
|
*/
|
|
502
502
|
updateRelationshipAttribute(databaseId: string, collectionId: string, key: string, onDelete?: string): Promise<Models.AttributeRelationship>;
|
|
503
503
|
/**
|
|
504
|
-
* List
|
|
504
|
+
* List documents
|
|
505
505
|
*
|
|
506
506
|
* Get a list of all the user's documents in a given collection. You can use
|
|
507
507
|
* the query params to filter your results.
|
|
@@ -514,12 +514,12 @@ export declare class Databases extends Service {
|
|
|
514
514
|
*/
|
|
515
515
|
listDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.DocumentList<Document>>;
|
|
516
516
|
/**
|
|
517
|
-
* Create
|
|
517
|
+
* Create document
|
|
518
518
|
*
|
|
519
519
|
* Create a new Document. Before using this route, you should create a new
|
|
520
520
|
* collection resource using either a [server
|
|
521
|
-
* integration](/docs/server/databases#databasesCreateCollection)
|
|
522
|
-
* directly from your database console.
|
|
521
|
+
* integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)
|
|
522
|
+
* API or directly from your database console.
|
|
523
523
|
*
|
|
524
524
|
* @param {string} databaseId
|
|
525
525
|
* @param {string} collectionId
|
|
@@ -531,7 +531,7 @@ export declare class Databases extends Service {
|
|
|
531
531
|
*/
|
|
532
532
|
createDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data: Omit<Document, keyof Models.Document>, permissions?: string[]): Promise<Document>;
|
|
533
533
|
/**
|
|
534
|
-
* Get
|
|
534
|
+
* Get document
|
|
535
535
|
*
|
|
536
536
|
* Get a document by its unique ID. This endpoint response returns a JSON
|
|
537
537
|
* object with the document data.
|
|
@@ -545,7 +545,7 @@ export declare class Databases extends Service {
|
|
|
545
545
|
*/
|
|
546
546
|
getDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, queries?: string[]): Promise<Document>;
|
|
547
547
|
/**
|
|
548
|
-
* Update
|
|
548
|
+
* Update document
|
|
549
549
|
*
|
|
550
550
|
* Update a document by its unique ID. Using the patch method you can pass
|
|
551
551
|
* only specific fields that will get updated.
|
|
@@ -560,7 +560,7 @@ export declare class Databases extends Service {
|
|
|
560
560
|
*/
|
|
561
561
|
updateDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data?: Partial<Omit<Document, keyof Models.Document>>, permissions?: string[]): Promise<Document>;
|
|
562
562
|
/**
|
|
563
|
-
* Delete
|
|
563
|
+
* Delete document
|
|
564
564
|
*
|
|
565
565
|
* Delete a document by its unique ID.
|
|
566
566
|
*
|
|
@@ -572,7 +572,7 @@ export declare class Databases extends Service {
|
|
|
572
572
|
*/
|
|
573
573
|
deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}>;
|
|
574
574
|
/**
|
|
575
|
-
* List
|
|
575
|
+
* List document logs
|
|
576
576
|
*
|
|
577
577
|
* Get the document activity logs list by its unique ID.
|
|
578
578
|
*
|
|
@@ -585,7 +585,7 @@ export declare class Databases extends Service {
|
|
|
585
585
|
*/
|
|
586
586
|
listDocumentLogs(databaseId: string, collectionId: string, documentId: string, queries?: string[]): Promise<Models.LogList>;
|
|
587
587
|
/**
|
|
588
|
-
* List
|
|
588
|
+
* List indexes
|
|
589
589
|
*
|
|
590
590
|
*
|
|
591
591
|
* @param {string} databaseId
|
|
@@ -596,7 +596,7 @@ export declare class Databases extends Service {
|
|
|
596
596
|
*/
|
|
597
597
|
listIndexes(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.IndexList>;
|
|
598
598
|
/**
|
|
599
|
-
* Create
|
|
599
|
+
* Create index
|
|
600
600
|
*
|
|
601
601
|
*
|
|
602
602
|
* @param {string} databaseId
|
|
@@ -610,7 +610,7 @@ export declare class Databases extends Service {
|
|
|
610
610
|
*/
|
|
611
611
|
createIndex(databaseId: string, collectionId: string, key: string, type: string, attributes: string[], orders?: string[]): Promise<Models.Index>;
|
|
612
612
|
/**
|
|
613
|
-
* Get
|
|
613
|
+
* Get index
|
|
614
614
|
*
|
|
615
615
|
*
|
|
616
616
|
* @param {string} databaseId
|
|
@@ -621,7 +621,7 @@ export declare class Databases extends Service {
|
|
|
621
621
|
*/
|
|
622
622
|
getIndex(databaseId: string, collectionId: string, key: string): Promise<Models.Index>;
|
|
623
623
|
/**
|
|
624
|
-
* Delete
|
|
624
|
+
* Delete index
|
|
625
625
|
*
|
|
626
626
|
*
|
|
627
627
|
* @param {string} databaseId
|
|
@@ -632,7 +632,7 @@ export declare class Databases extends Service {
|
|
|
632
632
|
*/
|
|
633
633
|
deleteIndex(databaseId: string, collectionId: string, key: string): Promise<{}>;
|
|
634
634
|
/**
|
|
635
|
-
* List
|
|
635
|
+
* List collection logs
|
|
636
636
|
*
|
|
637
637
|
* Get the collection activity logs list by its unique ID.
|
|
638
638
|
*
|
|
@@ -655,7 +655,7 @@ export declare class Databases extends Service {
|
|
|
655
655
|
*/
|
|
656
656
|
getCollectionUsage(databaseId: string, collectionId: string, range?: string): Promise<Models.UsageCollection>;
|
|
657
657
|
/**
|
|
658
|
-
* List
|
|
658
|
+
* List database logs
|
|
659
659
|
*
|
|
660
660
|
* Get the database activity logs list by its unique ID.
|
|
661
661
|
*
|
|
@@ -5,7 +5,7 @@ import type { UploadProgress } from '../client';
|
|
|
5
5
|
export declare class Functions extends Service {
|
|
6
6
|
constructor(client: Client);
|
|
7
7
|
/**
|
|
8
|
-
* List
|
|
8
|
+
* List functions
|
|
9
9
|
*
|
|
10
10
|
* Get a list of all the project's functions. You can use the query params to
|
|
11
11
|
* filter your results.
|
|
@@ -17,11 +17,12 @@ export declare class Functions extends Service {
|
|
|
17
17
|
*/
|
|
18
18
|
list(queries?: string[], search?: string): Promise<Models.FunctionList>;
|
|
19
19
|
/**
|
|
20
|
-
* Create
|
|
20
|
+
* Create function
|
|
21
21
|
*
|
|
22
22
|
* Create a new function. You can pass a list of
|
|
23
|
-
* [permissions](/docs/permissions) to allow different
|
|
24
|
-
* with access to execute the function using the client
|
|
23
|
+
* [permissions](https://appwrite.io/docs/permissions) to allow different
|
|
24
|
+
* project users or team with access to execute the function using the client
|
|
25
|
+
* API.
|
|
25
26
|
*
|
|
26
27
|
* @param {string} functionId
|
|
27
28
|
* @param {string} name
|
|
@@ -57,7 +58,7 @@ export declare class Functions extends Service {
|
|
|
57
58
|
*/
|
|
58
59
|
listRuntimes(): Promise<Models.RuntimeList>;
|
|
59
60
|
/**
|
|
60
|
-
* Get
|
|
61
|
+
* Get functions usage
|
|
61
62
|
*
|
|
62
63
|
*
|
|
63
64
|
* @param {string} range
|
|
@@ -66,7 +67,7 @@ export declare class Functions extends Service {
|
|
|
66
67
|
*/
|
|
67
68
|
getUsage(range?: string): Promise<Models.UsageFunctions>;
|
|
68
69
|
/**
|
|
69
|
-
* Get
|
|
70
|
+
* Get function
|
|
70
71
|
*
|
|
71
72
|
* Get a function by its unique ID.
|
|
72
73
|
*
|
|
@@ -76,7 +77,7 @@ export declare class Functions extends Service {
|
|
|
76
77
|
*/
|
|
77
78
|
get(functionId: string): Promise<Models.Function>;
|
|
78
79
|
/**
|
|
79
|
-
* Update
|
|
80
|
+
* Update function
|
|
80
81
|
*
|
|
81
82
|
* Update function by its unique ID.
|
|
82
83
|
*
|
|
@@ -99,9 +100,9 @@ export declare class Functions extends Service {
|
|
|
99
100
|
* @throws {AppwriteException}
|
|
100
101
|
* @returns {Promise}
|
|
101
102
|
*/
|
|
102
|
-
update(functionId: string, name: string, runtime
|
|
103
|
+
update(functionId: string, name: string, runtime?: string, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string): Promise<Models.Function>;
|
|
103
104
|
/**
|
|
104
|
-
* Delete
|
|
105
|
+
* Delete function
|
|
105
106
|
*
|
|
106
107
|
* Delete a function by its unique ID.
|
|
107
108
|
*
|
|
@@ -111,7 +112,7 @@ export declare class Functions extends Service {
|
|
|
111
112
|
*/
|
|
112
113
|
delete(functionId: string): Promise<{}>;
|
|
113
114
|
/**
|
|
114
|
-
* List
|
|
115
|
+
* List deployments
|
|
115
116
|
*
|
|
116
117
|
* Get a list of all the project's code deployments. You can use the query
|
|
117
118
|
* params to filter your results.
|
|
@@ -124,7 +125,7 @@ export declare class Functions extends Service {
|
|
|
124
125
|
*/
|
|
125
126
|
listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
|
|
126
127
|
/**
|
|
127
|
-
* Create
|
|
128
|
+
* Create deployment
|
|
128
129
|
*
|
|
129
130
|
* Create a new function code deployment. Use this endpoint to upload a new
|
|
130
131
|
* version of your code function. To execute your newly uploaded code, you'll
|
|
@@ -133,7 +134,7 @@ export declare class Functions extends Service {
|
|
|
133
134
|
* This endpoint accepts a tar.gz file compressed with your code. Make sure to
|
|
134
135
|
* include any dependencies your code has within the compressed file. You can
|
|
135
136
|
* learn more about code packaging in the [Appwrite Cloud Functions
|
|
136
|
-
* tutorial](/docs/functions).
|
|
137
|
+
* tutorial](https://appwrite.io/docs/functions).
|
|
137
138
|
*
|
|
138
139
|
* Use the "command" param to set the entrypoint used to execute your code.
|
|
139
140
|
*
|
|
@@ -147,7 +148,7 @@ export declare class Functions extends Service {
|
|
|
147
148
|
*/
|
|
148
149
|
createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
149
150
|
/**
|
|
150
|
-
* Get
|
|
151
|
+
* Get deployment
|
|
151
152
|
*
|
|
152
153
|
* Get a code deployment by its unique ID.
|
|
153
154
|
*
|
|
@@ -158,7 +159,7 @@ export declare class Functions extends Service {
|
|
|
158
159
|
*/
|
|
159
160
|
getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
160
161
|
/**
|
|
161
|
-
* Update
|
|
162
|
+
* Update function deployment
|
|
162
163
|
*
|
|
163
164
|
* Update the function code deployment ID using the unique function ID. Use
|
|
164
165
|
* this endpoint to switch the code deployment that should be executed by the
|
|
@@ -171,7 +172,7 @@ export declare class Functions extends Service {
|
|
|
171
172
|
*/
|
|
172
173
|
updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
|
|
173
174
|
/**
|
|
174
|
-
* Delete
|
|
175
|
+
* Delete deployment
|
|
175
176
|
*
|
|
176
177
|
* Delete a code deployment by its unique ID.
|
|
177
178
|
*
|
|
@@ -182,8 +183,10 @@ export declare class Functions extends Service {
|
|
|
182
183
|
*/
|
|
183
184
|
deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
|
|
184
185
|
/**
|
|
185
|
-
* Create
|
|
186
|
+
* Create build
|
|
186
187
|
*
|
|
188
|
+
* Create a new build for an Appwrite Function deployment. This endpoint can
|
|
189
|
+
* be used to retry a failed build.
|
|
187
190
|
*
|
|
188
191
|
* @param {string} functionId
|
|
189
192
|
* @param {string} deploymentId
|
|
@@ -195,6 +198,8 @@ export declare class Functions extends Service {
|
|
|
195
198
|
/**
|
|
196
199
|
* Download Deployment
|
|
197
200
|
*
|
|
201
|
+
* Get a Deployment's contents by its unique ID. This endpoint supports range
|
|
202
|
+
* requests for partial or streaming file download.
|
|
198
203
|
*
|
|
199
204
|
* @param {string} functionId
|
|
200
205
|
* @param {string} deploymentId
|
|
@@ -203,7 +208,7 @@ export declare class Functions extends Service {
|
|
|
203
208
|
*/
|
|
204
209
|
downloadDeployment(functionId: string, deploymentId: string): URL;
|
|
205
210
|
/**
|
|
206
|
-
* List
|
|
211
|
+
* List executions
|
|
207
212
|
*
|
|
208
213
|
* Get a list of all the current user function execution logs. You can use the
|
|
209
214
|
* query params to filter your results.
|
|
@@ -216,7 +221,7 @@ export declare class Functions extends Service {
|
|
|
216
221
|
*/
|
|
217
222
|
listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList>;
|
|
218
223
|
/**
|
|
219
|
-
* Create
|
|
224
|
+
* Create execution
|
|
220
225
|
*
|
|
221
226
|
* Trigger a function execution. The returned object will return you the
|
|
222
227
|
* current execution status. You can ping the `Get Execution` endpoint to get
|
|
@@ -226,15 +231,15 @@ export declare class Functions extends Service {
|
|
|
226
231
|
* @param {string} functionId
|
|
227
232
|
* @param {string} body
|
|
228
233
|
* @param {boolean} async
|
|
229
|
-
* @param {string}
|
|
234
|
+
* @param {string} xpath
|
|
230
235
|
* @param {string} method
|
|
231
236
|
* @param {object} headers
|
|
232
237
|
* @throws {AppwriteException}
|
|
233
238
|
* @returns {Promise}
|
|
234
239
|
*/
|
|
235
|
-
createExecution(functionId: string, body?: string, async?: boolean,
|
|
240
|
+
createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: string, headers?: object): Promise<Models.Execution>;
|
|
236
241
|
/**
|
|
237
|
-
* Get
|
|
242
|
+
* Get execution
|
|
238
243
|
*
|
|
239
244
|
* Get a function execution log by its unique ID.
|
|
240
245
|
*
|
|
@@ -245,7 +250,7 @@ export declare class Functions extends Service {
|
|
|
245
250
|
*/
|
|
246
251
|
getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
|
|
247
252
|
/**
|
|
248
|
-
* Get
|
|
253
|
+
* Get function usage
|
|
249
254
|
*
|
|
250
255
|
*
|
|
251
256
|
* @param {string} functionId
|
|
@@ -255,7 +260,7 @@ export declare class Functions extends Service {
|
|
|
255
260
|
*/
|
|
256
261
|
getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunctions>;
|
|
257
262
|
/**
|
|
258
|
-
* List
|
|
263
|
+
* List variables
|
|
259
264
|
*
|
|
260
265
|
* Get a list of all variables of a specific function.
|
|
261
266
|
*
|
|
@@ -265,7 +270,7 @@ export declare class Functions extends Service {
|
|
|
265
270
|
*/
|
|
266
271
|
listVariables(functionId: string): Promise<Models.VariableList>;
|
|
267
272
|
/**
|
|
268
|
-
* Create
|
|
273
|
+
* Create variable
|
|
269
274
|
*
|
|
270
275
|
* Create a new function environment variable. These variables can be accessed
|
|
271
276
|
* in the function at runtime as environment variables.
|
|
@@ -278,7 +283,7 @@ export declare class Functions extends Service {
|
|
|
278
283
|
*/
|
|
279
284
|
createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
|
|
280
285
|
/**
|
|
281
|
-
* Get
|
|
286
|
+
* Get variable
|
|
282
287
|
*
|
|
283
288
|
* Get a variable by its unique ID.
|
|
284
289
|
*
|
|
@@ -289,7 +294,7 @@ export declare class Functions extends Service {
|
|
|
289
294
|
*/
|
|
290
295
|
getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
|
|
291
296
|
/**
|
|
292
|
-
* Update
|
|
297
|
+
* Update variable
|
|
293
298
|
*
|
|
294
299
|
* Update variable by its unique ID.
|
|
295
300
|
*
|
|
@@ -302,7 +307,7 @@ export declare class Functions extends Service {
|
|
|
302
307
|
*/
|
|
303
308
|
updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
304
309
|
/**
|
|
305
|
-
* Delete
|
|
310
|
+
* Delete variable
|
|
306
311
|
*
|
|
307
312
|
* Delete a variable by its unique ID.
|
|
308
313
|
*
|
|
@@ -3,7 +3,7 @@ import { Client } from '../client';
|
|
|
3
3
|
export declare class Graphql extends Service {
|
|
4
4
|
constructor(client: Client);
|
|
5
5
|
/**
|
|
6
|
-
* GraphQL
|
|
6
|
+
* GraphQL endpoint
|
|
7
7
|
*
|
|
8
8
|
* Execute a GraphQL mutation.
|
|
9
9
|
*
|
|
@@ -13,7 +13,7 @@ export declare class Graphql extends Service {
|
|
|
13
13
|
*/
|
|
14
14
|
query(query: object): Promise<{}>;
|
|
15
15
|
/**
|
|
16
|
-
* GraphQL
|
|
16
|
+
* GraphQL endpoint
|
|
17
17
|
*
|
|
18
18
|
* Execute a GraphQL mutation.
|
|
19
19
|
*
|