@appwrite.io/console 1.5.0 → 1.5.2
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/dist/cjs/sdk.js +474 -97
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +474 -97
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +474 -97
- package/docs/examples/databases/update-float-attribute.md +2 -2
- package/docs/examples/databases/update-integer-attribute.md +2 -2
- package/docs/examples/health/{get-queue-usage-count.md → get-queue-stats-resources.md} +1 -1
- package/docs/examples/health/{get-queue-usage-dump.md → get-queue-stats-usage-dump.md} +1 -1
- package/docs/examples/organizations/create.md +5 -1
- package/docs/examples/organizations/update-plan.md +5 -1
- package/package.json +1 -1
- package/src/client.ts +5 -3
- package/src/enums/credit-card.ts +1 -0
- package/src/enums/name.ts +3 -2
- package/src/enums/runtime.ts +3 -0
- package/src/models.ts +134 -1
- package/src/services/account.ts +122 -0
- package/src/services/assistant.ts +2 -0
- package/src/services/avatars.ts +7 -42
- package/src/services/backups.ts +24 -0
- package/src/services/console.ts +14 -0
- package/src/services/databases.ts +101 -16
- package/src/services/functions.ts +55 -6
- package/src/services/graphql.ts +4 -0
- package/src/services/health.ts +59 -34
- package/src/services/locale.ts +16 -0
- package/src/services/messaging.ts +95 -3
- package/src/services/migrations.ts +24 -0
- package/src/services/organizations.ts +90 -2
- package/src/services/project.ts +12 -0
- package/src/services/projects.ts +92 -0
- package/src/services/proxy.ts +10 -0
- package/src/services/storage.ts +27 -18
- package/src/services/teams.ts +28 -0
- package/src/services/users.ts +86 -0
- package/src/services/vcs.ts +20 -0
- package/types/enums/credit-card.d.ts +2 -1
- package/types/enums/name.d.ts +3 -2
- package/types/enums/runtime.d.ts +3 -0
- package/types/models.d.ts +134 -1
- package/types/services/databases.d.ts +5 -4
- package/types/services/health.d.ts +7 -16
- package/types/services/messaging.d.ts +3 -3
- package/types/services/organizations.d.ts +10 -2
- package/docs/examples/health/get-queue.md +0 -11
package/src/services/backups.ts
CHANGED
|
@@ -30,6 +30,8 @@ export class Backups {
|
|
|
30
30
|
'content-type': 'application/json',
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
payload['project'] = this.client.config.project;
|
|
34
|
+
|
|
33
35
|
|
|
34
36
|
return await this.client.call(
|
|
35
37
|
'get',
|
|
@@ -66,6 +68,8 @@ export class Backups {
|
|
|
66
68
|
'content-type': 'application/json',
|
|
67
69
|
}
|
|
68
70
|
|
|
71
|
+
payload['project'] = this.client.config.project;
|
|
72
|
+
|
|
69
73
|
|
|
70
74
|
return await this.client.call(
|
|
71
75
|
'post',
|
|
@@ -95,6 +99,8 @@ export class Backups {
|
|
|
95
99
|
'content-type': 'application/json',
|
|
96
100
|
}
|
|
97
101
|
|
|
102
|
+
payload['project'] = this.client.config.project;
|
|
103
|
+
|
|
98
104
|
|
|
99
105
|
return await this.client.call(
|
|
100
106
|
'get',
|
|
@@ -124,6 +130,8 @@ export class Backups {
|
|
|
124
130
|
'content-type': 'application/json',
|
|
125
131
|
}
|
|
126
132
|
|
|
133
|
+
payload['project'] = this.client.config.project;
|
|
134
|
+
|
|
127
135
|
|
|
128
136
|
return await this.client.call(
|
|
129
137
|
'delete',
|
|
@@ -153,6 +161,8 @@ export class Backups {
|
|
|
153
161
|
'content-type': 'application/json',
|
|
154
162
|
}
|
|
155
163
|
|
|
164
|
+
payload['project'] = this.client.config.project;
|
|
165
|
+
|
|
156
166
|
|
|
157
167
|
return await this.client.call(
|
|
158
168
|
'get',
|
|
@@ -218,6 +228,8 @@ export class Backups {
|
|
|
218
228
|
'content-type': 'application/json',
|
|
219
229
|
}
|
|
220
230
|
|
|
231
|
+
payload['project'] = this.client.config.project;
|
|
232
|
+
|
|
221
233
|
|
|
222
234
|
return await this.client.call(
|
|
223
235
|
'post',
|
|
@@ -247,6 +259,8 @@ export class Backups {
|
|
|
247
259
|
'content-type': 'application/json',
|
|
248
260
|
}
|
|
249
261
|
|
|
262
|
+
payload['project'] = this.client.config.project;
|
|
263
|
+
|
|
250
264
|
|
|
251
265
|
return await this.client.call(
|
|
252
266
|
'get',
|
|
@@ -292,6 +306,8 @@ export class Backups {
|
|
|
292
306
|
'content-type': 'application/json',
|
|
293
307
|
}
|
|
294
308
|
|
|
309
|
+
payload['project'] = this.client.config.project;
|
|
310
|
+
|
|
295
311
|
|
|
296
312
|
return await this.client.call(
|
|
297
313
|
'patch',
|
|
@@ -321,6 +337,8 @@ export class Backups {
|
|
|
321
337
|
'content-type': 'application/json',
|
|
322
338
|
}
|
|
323
339
|
|
|
340
|
+
payload['project'] = this.client.config.project;
|
|
341
|
+
|
|
324
342
|
|
|
325
343
|
return await this.client.call(
|
|
326
344
|
'delete',
|
|
@@ -368,6 +386,8 @@ export class Backups {
|
|
|
368
386
|
'content-type': 'application/json',
|
|
369
387
|
}
|
|
370
388
|
|
|
389
|
+
payload['project'] = this.client.config.project;
|
|
390
|
+
|
|
371
391
|
|
|
372
392
|
return await this.client.call(
|
|
373
393
|
'post',
|
|
@@ -397,6 +417,8 @@ export class Backups {
|
|
|
397
417
|
'content-type': 'application/json',
|
|
398
418
|
}
|
|
399
419
|
|
|
420
|
+
payload['project'] = this.client.config.project;
|
|
421
|
+
|
|
400
422
|
|
|
401
423
|
return await this.client.call(
|
|
402
424
|
'get',
|
|
@@ -426,6 +448,8 @@ export class Backups {
|
|
|
426
448
|
'content-type': 'application/json',
|
|
427
449
|
}
|
|
428
450
|
|
|
451
|
+
payload['project'] = this.client.config.project;
|
|
452
|
+
|
|
429
453
|
|
|
430
454
|
return await this.client.call(
|
|
431
455
|
'get',
|
package/src/services/console.ts
CHANGED
|
@@ -30,6 +30,8 @@ export class Console {
|
|
|
30
30
|
'content-type': 'application/json',
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
payload['project'] = this.client.config.project;
|
|
34
|
+
|
|
33
35
|
|
|
34
36
|
return await this.client.call(
|
|
35
37
|
'get',
|
|
@@ -59,6 +61,8 @@ export class Console {
|
|
|
59
61
|
'content-type': 'application/json',
|
|
60
62
|
}
|
|
61
63
|
|
|
64
|
+
payload['project'] = this.client.config.project;
|
|
65
|
+
|
|
62
66
|
|
|
63
67
|
return await this.client.call(
|
|
64
68
|
'get',
|
|
@@ -84,6 +88,8 @@ export class Console {
|
|
|
84
88
|
'content-type': 'application/json',
|
|
85
89
|
}
|
|
86
90
|
|
|
91
|
+
payload['project'] = this.client.config.project;
|
|
92
|
+
|
|
87
93
|
|
|
88
94
|
return await this.client.call(
|
|
89
95
|
'get',
|
|
@@ -113,6 +119,8 @@ export class Console {
|
|
|
113
119
|
'content-type': 'application/json',
|
|
114
120
|
}
|
|
115
121
|
|
|
122
|
+
payload['project'] = this.client.config.project;
|
|
123
|
+
|
|
116
124
|
|
|
117
125
|
return await this.client.call(
|
|
118
126
|
'post',
|
|
@@ -138,6 +146,8 @@ export class Console {
|
|
|
138
146
|
'content-type': 'application/json',
|
|
139
147
|
}
|
|
140
148
|
|
|
149
|
+
payload['project'] = this.client.config.project;
|
|
150
|
+
|
|
141
151
|
|
|
142
152
|
return await this.client.call(
|
|
143
153
|
'get',
|
|
@@ -183,6 +193,8 @@ export class Console {
|
|
|
183
193
|
'content-type': 'application/json',
|
|
184
194
|
}
|
|
185
195
|
|
|
196
|
+
payload['project'] = this.client.config.project;
|
|
197
|
+
|
|
186
198
|
|
|
187
199
|
return await this.client.call(
|
|
188
200
|
'post',
|
|
@@ -208,6 +220,8 @@ export class Console {
|
|
|
208
220
|
'content-type': 'application/json',
|
|
209
221
|
}
|
|
210
222
|
|
|
223
|
+
payload['project'] = this.client.config.project;
|
|
224
|
+
|
|
211
225
|
|
|
212
226
|
return await this.client.call(
|
|
213
227
|
'get',
|
|
@@ -38,6 +38,8 @@ export class Databases {
|
|
|
38
38
|
'content-type': 'application/json',
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
payload['project'] = this.client.config.project;
|
|
42
|
+
|
|
41
43
|
|
|
42
44
|
return await this.client.call(
|
|
43
45
|
'get',
|
|
@@ -82,6 +84,8 @@ export class Databases {
|
|
|
82
84
|
'content-type': 'application/json',
|
|
83
85
|
}
|
|
84
86
|
|
|
87
|
+
payload['project'] = this.client.config.project;
|
|
88
|
+
|
|
85
89
|
|
|
86
90
|
return await this.client.call(
|
|
87
91
|
'post',
|
|
@@ -111,6 +115,8 @@ export class Databases {
|
|
|
111
115
|
'content-type': 'application/json',
|
|
112
116
|
}
|
|
113
117
|
|
|
118
|
+
payload['project'] = this.client.config.project;
|
|
119
|
+
|
|
114
120
|
|
|
115
121
|
return await this.client.call(
|
|
116
122
|
'get',
|
|
@@ -140,6 +146,8 @@ export class Databases {
|
|
|
140
146
|
'content-type': 'application/json',
|
|
141
147
|
}
|
|
142
148
|
|
|
149
|
+
payload['project'] = this.client.config.project;
|
|
150
|
+
|
|
143
151
|
|
|
144
152
|
return await this.client.call(
|
|
145
153
|
'get',
|
|
@@ -180,6 +188,8 @@ export class Databases {
|
|
|
180
188
|
'content-type': 'application/json',
|
|
181
189
|
}
|
|
182
190
|
|
|
191
|
+
payload['project'] = this.client.config.project;
|
|
192
|
+
|
|
183
193
|
|
|
184
194
|
return await this.client.call(
|
|
185
195
|
'put',
|
|
@@ -209,6 +219,8 @@ export class Databases {
|
|
|
209
219
|
'content-type': 'application/json',
|
|
210
220
|
}
|
|
211
221
|
|
|
222
|
+
payload['project'] = this.client.config.project;
|
|
223
|
+
|
|
212
224
|
|
|
213
225
|
return await this.client.call(
|
|
214
226
|
'delete',
|
|
@@ -246,6 +258,8 @@ export class Databases {
|
|
|
246
258
|
'content-type': 'application/json',
|
|
247
259
|
}
|
|
248
260
|
|
|
261
|
+
payload['project'] = this.client.config.project;
|
|
262
|
+
|
|
249
263
|
|
|
250
264
|
return await this.client.call(
|
|
251
265
|
'get',
|
|
@@ -301,6 +315,8 @@ export class Databases {
|
|
|
301
315
|
'content-type': 'application/json',
|
|
302
316
|
}
|
|
303
317
|
|
|
318
|
+
payload['project'] = this.client.config.project;
|
|
319
|
+
|
|
304
320
|
|
|
305
321
|
return await this.client.call(
|
|
306
322
|
'post',
|
|
@@ -334,6 +350,8 @@ export class Databases {
|
|
|
334
350
|
'content-type': 'application/json',
|
|
335
351
|
}
|
|
336
352
|
|
|
353
|
+
payload['project'] = this.client.config.project;
|
|
354
|
+
|
|
337
355
|
|
|
338
356
|
return await this.client.call(
|
|
339
357
|
'get',
|
|
@@ -386,6 +404,8 @@ export class Databases {
|
|
|
386
404
|
'content-type': 'application/json',
|
|
387
405
|
}
|
|
388
406
|
|
|
407
|
+
payload['project'] = this.client.config.project;
|
|
408
|
+
|
|
389
409
|
|
|
390
410
|
return await this.client.call(
|
|
391
411
|
'put',
|
|
@@ -419,6 +439,8 @@ export class Databases {
|
|
|
419
439
|
'content-type': 'application/json',
|
|
420
440
|
}
|
|
421
441
|
|
|
442
|
+
payload['project'] = this.client.config.project;
|
|
443
|
+
|
|
422
444
|
|
|
423
445
|
return await this.client.call(
|
|
424
446
|
'delete',
|
|
@@ -456,6 +478,8 @@ export class Databases {
|
|
|
456
478
|
'content-type': 'application/json',
|
|
457
479
|
}
|
|
458
480
|
|
|
481
|
+
payload['project'] = this.client.config.project;
|
|
482
|
+
|
|
459
483
|
|
|
460
484
|
return await this.client.call(
|
|
461
485
|
'get',
|
|
@@ -512,6 +536,8 @@ export class Databases {
|
|
|
512
536
|
'content-type': 'application/json',
|
|
513
537
|
}
|
|
514
538
|
|
|
539
|
+
payload['project'] = this.client.config.project;
|
|
540
|
+
|
|
515
541
|
|
|
516
542
|
return await this.client.call(
|
|
517
543
|
'post',
|
|
@@ -567,6 +593,8 @@ export class Databases {
|
|
|
567
593
|
'content-type': 'application/json',
|
|
568
594
|
}
|
|
569
595
|
|
|
596
|
+
payload['project'] = this.client.config.project;
|
|
597
|
+
|
|
570
598
|
|
|
571
599
|
return await this.client.call(
|
|
572
600
|
'patch',
|
|
@@ -622,6 +650,8 @@ export class Databases {
|
|
|
622
650
|
'content-type': 'application/json',
|
|
623
651
|
}
|
|
624
652
|
|
|
653
|
+
payload['project'] = this.client.config.project;
|
|
654
|
+
|
|
625
655
|
|
|
626
656
|
return await this.client.call(
|
|
627
657
|
'post',
|
|
@@ -677,6 +707,8 @@ export class Databases {
|
|
|
677
707
|
'content-type': 'application/json',
|
|
678
708
|
}
|
|
679
709
|
|
|
710
|
+
payload['project'] = this.client.config.project;
|
|
711
|
+
|
|
680
712
|
|
|
681
713
|
return await this.client.call(
|
|
682
714
|
'patch',
|
|
@@ -733,6 +765,8 @@ export class Databases {
|
|
|
733
765
|
'content-type': 'application/json',
|
|
734
766
|
}
|
|
735
767
|
|
|
768
|
+
payload['project'] = this.client.config.project;
|
|
769
|
+
|
|
736
770
|
|
|
737
771
|
return await this.client.call(
|
|
738
772
|
'post',
|
|
@@ -789,6 +823,8 @@ export class Databases {
|
|
|
789
823
|
'content-type': 'application/json',
|
|
790
824
|
}
|
|
791
825
|
|
|
826
|
+
payload['project'] = this.client.config.project;
|
|
827
|
+
|
|
792
828
|
|
|
793
829
|
return await this.client.call(
|
|
794
830
|
'patch',
|
|
@@ -852,6 +888,8 @@ export class Databases {
|
|
|
852
888
|
'content-type': 'application/json',
|
|
853
889
|
}
|
|
854
890
|
|
|
891
|
+
payload['project'] = this.client.config.project;
|
|
892
|
+
|
|
855
893
|
|
|
856
894
|
return await this.client.call(
|
|
857
895
|
'post',
|
|
@@ -915,6 +953,8 @@ export class Databases {
|
|
|
915
953
|
'content-type': 'application/json',
|
|
916
954
|
}
|
|
917
955
|
|
|
956
|
+
payload['project'] = this.client.config.project;
|
|
957
|
+
|
|
918
958
|
|
|
919
959
|
return await this.client.call(
|
|
920
960
|
'patch',
|
|
@@ -979,6 +1019,8 @@ export class Databases {
|
|
|
979
1019
|
'content-type': 'application/json',
|
|
980
1020
|
}
|
|
981
1021
|
|
|
1022
|
+
payload['project'] = this.client.config.project;
|
|
1023
|
+
|
|
982
1024
|
|
|
983
1025
|
return await this.client.call(
|
|
984
1026
|
'post',
|
|
@@ -997,14 +1039,14 @@ export class Databases {
|
|
|
997
1039
|
* @param {string} collectionId
|
|
998
1040
|
* @param {string} key
|
|
999
1041
|
* @param {boolean} required
|
|
1042
|
+
* @param {number} xdefault
|
|
1000
1043
|
* @param {number} min
|
|
1001
1044
|
* @param {number} max
|
|
1002
|
-
* @param {number} xdefault
|
|
1003
1045
|
* @param {string} newKey
|
|
1004
1046
|
* @throws {AppwriteException}
|
|
1005
1047
|
* @returns {Promise<Models.AttributeFloat>}
|
|
1006
1048
|
*/
|
|
1007
|
-
async updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean,
|
|
1049
|
+
async updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.AttributeFloat> {
|
|
1008
1050
|
if (typeof databaseId === 'undefined') {
|
|
1009
1051
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
1010
1052
|
}
|
|
@@ -1017,12 +1059,6 @@ export class Databases {
|
|
|
1017
1059
|
if (typeof required === 'undefined') {
|
|
1018
1060
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
1019
1061
|
}
|
|
1020
|
-
if (typeof min === 'undefined') {
|
|
1021
|
-
throw new AppwriteException('Missing required parameter: "min"');
|
|
1022
|
-
}
|
|
1023
|
-
if (typeof max === 'undefined') {
|
|
1024
|
-
throw new AppwriteException('Missing required parameter: "max"');
|
|
1025
|
-
}
|
|
1026
1062
|
if (typeof xdefault === 'undefined') {
|
|
1027
1063
|
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
1028
1064
|
}
|
|
@@ -1049,6 +1085,8 @@ export class Databases {
|
|
|
1049
1085
|
'content-type': 'application/json',
|
|
1050
1086
|
}
|
|
1051
1087
|
|
|
1088
|
+
payload['project'] = this.client.config.project;
|
|
1089
|
+
|
|
1052
1090
|
|
|
1053
1091
|
return await this.client.call(
|
|
1054
1092
|
'patch',
|
|
@@ -1113,6 +1151,8 @@ export class Databases {
|
|
|
1113
1151
|
'content-type': 'application/json',
|
|
1114
1152
|
}
|
|
1115
1153
|
|
|
1154
|
+
payload['project'] = this.client.config.project;
|
|
1155
|
+
|
|
1116
1156
|
|
|
1117
1157
|
return await this.client.call(
|
|
1118
1158
|
'post',
|
|
@@ -1131,14 +1171,14 @@ export class Databases {
|
|
|
1131
1171
|
* @param {string} collectionId
|
|
1132
1172
|
* @param {string} key
|
|
1133
1173
|
* @param {boolean} required
|
|
1174
|
+
* @param {number} xdefault
|
|
1134
1175
|
* @param {number} min
|
|
1135
1176
|
* @param {number} max
|
|
1136
|
-
* @param {number} xdefault
|
|
1137
1177
|
* @param {string} newKey
|
|
1138
1178
|
* @throws {AppwriteException}
|
|
1139
1179
|
* @returns {Promise<Models.AttributeInteger>}
|
|
1140
1180
|
*/
|
|
1141
|
-
async updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean,
|
|
1181
|
+
async updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.AttributeInteger> {
|
|
1142
1182
|
if (typeof databaseId === 'undefined') {
|
|
1143
1183
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
1144
1184
|
}
|
|
@@ -1151,12 +1191,6 @@ export class Databases {
|
|
|
1151
1191
|
if (typeof required === 'undefined') {
|
|
1152
1192
|
throw new AppwriteException('Missing required parameter: "required"');
|
|
1153
1193
|
}
|
|
1154
|
-
if (typeof min === 'undefined') {
|
|
1155
|
-
throw new AppwriteException('Missing required parameter: "min"');
|
|
1156
|
-
}
|
|
1157
|
-
if (typeof max === 'undefined') {
|
|
1158
|
-
throw new AppwriteException('Missing required parameter: "max"');
|
|
1159
|
-
}
|
|
1160
1194
|
if (typeof xdefault === 'undefined') {
|
|
1161
1195
|
throw new AppwriteException('Missing required parameter: "xdefault"');
|
|
1162
1196
|
}
|
|
@@ -1183,6 +1217,8 @@ export class Databases {
|
|
|
1183
1217
|
'content-type': 'application/json',
|
|
1184
1218
|
}
|
|
1185
1219
|
|
|
1220
|
+
payload['project'] = this.client.config.project;
|
|
1221
|
+
|
|
1186
1222
|
|
|
1187
1223
|
return await this.client.call(
|
|
1188
1224
|
'patch',
|
|
@@ -1239,6 +1275,8 @@ export class Databases {
|
|
|
1239
1275
|
'content-type': 'application/json',
|
|
1240
1276
|
}
|
|
1241
1277
|
|
|
1278
|
+
payload['project'] = this.client.config.project;
|
|
1279
|
+
|
|
1242
1280
|
|
|
1243
1281
|
return await this.client.call(
|
|
1244
1282
|
'post',
|
|
@@ -1295,6 +1333,8 @@ export class Databases {
|
|
|
1295
1333
|
'content-type': 'application/json',
|
|
1296
1334
|
}
|
|
1297
1335
|
|
|
1336
|
+
payload['project'] = this.client.config.project;
|
|
1337
|
+
|
|
1298
1338
|
|
|
1299
1339
|
return await this.client.call(
|
|
1300
1340
|
'patch',
|
|
@@ -1359,6 +1399,8 @@ export class Databases {
|
|
|
1359
1399
|
'content-type': 'application/json',
|
|
1360
1400
|
}
|
|
1361
1401
|
|
|
1402
|
+
payload['project'] = this.client.config.project;
|
|
1403
|
+
|
|
1362
1404
|
|
|
1363
1405
|
return await this.client.call(
|
|
1364
1406
|
'post',
|
|
@@ -1426,6 +1468,8 @@ export class Databases {
|
|
|
1426
1468
|
'content-type': 'application/json',
|
|
1427
1469
|
}
|
|
1428
1470
|
|
|
1471
|
+
payload['project'] = this.client.config.project;
|
|
1472
|
+
|
|
1429
1473
|
|
|
1430
1474
|
return await this.client.call(
|
|
1431
1475
|
'post',
|
|
@@ -1486,6 +1530,8 @@ export class Databases {
|
|
|
1486
1530
|
'content-type': 'application/json',
|
|
1487
1531
|
}
|
|
1488
1532
|
|
|
1533
|
+
payload['project'] = this.client.config.project;
|
|
1534
|
+
|
|
1489
1535
|
|
|
1490
1536
|
return await this.client.call(
|
|
1491
1537
|
'patch',
|
|
@@ -1542,6 +1588,8 @@ export class Databases {
|
|
|
1542
1588
|
'content-type': 'application/json',
|
|
1543
1589
|
}
|
|
1544
1590
|
|
|
1591
|
+
payload['project'] = this.client.config.project;
|
|
1592
|
+
|
|
1545
1593
|
|
|
1546
1594
|
return await this.client.call(
|
|
1547
1595
|
'post',
|
|
@@ -1598,6 +1646,8 @@ export class Databases {
|
|
|
1598
1646
|
'content-type': 'application/json',
|
|
1599
1647
|
}
|
|
1600
1648
|
|
|
1649
|
+
payload['project'] = this.client.config.project;
|
|
1650
|
+
|
|
1601
1651
|
|
|
1602
1652
|
return await this.client.call(
|
|
1603
1653
|
'patch',
|
|
@@ -1635,6 +1685,8 @@ export class Databases {
|
|
|
1635
1685
|
'content-type': 'application/json',
|
|
1636
1686
|
}
|
|
1637
1687
|
|
|
1688
|
+
payload['project'] = this.client.config.project;
|
|
1689
|
+
|
|
1638
1690
|
|
|
1639
1691
|
return await this.client.call(
|
|
1640
1692
|
'get',
|
|
@@ -1672,6 +1724,8 @@ export class Databases {
|
|
|
1672
1724
|
'content-type': 'application/json',
|
|
1673
1725
|
}
|
|
1674
1726
|
|
|
1727
|
+
payload['project'] = this.client.config.project;
|
|
1728
|
+
|
|
1675
1729
|
|
|
1676
1730
|
return await this.client.call(
|
|
1677
1731
|
'delete',
|
|
@@ -1718,6 +1772,8 @@ export class Databases {
|
|
|
1718
1772
|
'content-type': 'application/json',
|
|
1719
1773
|
}
|
|
1720
1774
|
|
|
1775
|
+
payload['project'] = this.client.config.project;
|
|
1776
|
+
|
|
1721
1777
|
|
|
1722
1778
|
return await this.client.call(
|
|
1723
1779
|
'patch',
|
|
@@ -1755,6 +1811,8 @@ export class Databases {
|
|
|
1755
1811
|
'content-type': 'application/json',
|
|
1756
1812
|
}
|
|
1757
1813
|
|
|
1814
|
+
payload['project'] = this.client.config.project;
|
|
1815
|
+
|
|
1758
1816
|
|
|
1759
1817
|
return await this.client.call(
|
|
1760
1818
|
'get',
|
|
@@ -1767,6 +1825,7 @@ export class Databases {
|
|
|
1767
1825
|
* Create document
|
|
1768
1826
|
*
|
|
1769
1827
|
* Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
|
|
1828
|
+
|
|
1770
1829
|
*
|
|
1771
1830
|
* @param {string} databaseId
|
|
1772
1831
|
* @param {string} collectionId
|
|
@@ -1806,6 +1865,8 @@ export class Databases {
|
|
|
1806
1865
|
'content-type': 'application/json',
|
|
1807
1866
|
}
|
|
1808
1867
|
|
|
1868
|
+
payload['project'] = this.client.config.project;
|
|
1869
|
+
|
|
1809
1870
|
|
|
1810
1871
|
return await this.client.call(
|
|
1811
1872
|
'post',
|
|
@@ -1847,6 +1908,8 @@ export class Databases {
|
|
|
1847
1908
|
'content-type': 'application/json',
|
|
1848
1909
|
}
|
|
1849
1910
|
|
|
1911
|
+
payload['project'] = this.client.config.project;
|
|
1912
|
+
|
|
1850
1913
|
|
|
1851
1914
|
return await this.client.call(
|
|
1852
1915
|
'get',
|
|
@@ -1892,6 +1955,8 @@ export class Databases {
|
|
|
1892
1955
|
'content-type': 'application/json',
|
|
1893
1956
|
}
|
|
1894
1957
|
|
|
1958
|
+
payload['project'] = this.client.config.project;
|
|
1959
|
+
|
|
1895
1960
|
|
|
1896
1961
|
return await this.client.call(
|
|
1897
1962
|
'patch',
|
|
@@ -1929,6 +1994,8 @@ export class Databases {
|
|
|
1929
1994
|
'content-type': 'application/json',
|
|
1930
1995
|
}
|
|
1931
1996
|
|
|
1997
|
+
payload['project'] = this.client.config.project;
|
|
1998
|
+
|
|
1932
1999
|
|
|
1933
2000
|
return await this.client.call(
|
|
1934
2001
|
'delete',
|
|
@@ -1970,6 +2037,8 @@ export class Databases {
|
|
|
1970
2037
|
'content-type': 'application/json',
|
|
1971
2038
|
}
|
|
1972
2039
|
|
|
2040
|
+
payload['project'] = this.client.config.project;
|
|
2041
|
+
|
|
1973
2042
|
|
|
1974
2043
|
return await this.client.call(
|
|
1975
2044
|
'get',
|
|
@@ -2007,6 +2076,8 @@ export class Databases {
|
|
|
2007
2076
|
'content-type': 'application/json',
|
|
2008
2077
|
}
|
|
2009
2078
|
|
|
2079
|
+
payload['project'] = this.client.config.project;
|
|
2080
|
+
|
|
2010
2081
|
|
|
2011
2082
|
return await this.client.call(
|
|
2012
2083
|
'get',
|
|
@@ -2066,6 +2137,8 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2066
2137
|
'content-type': 'application/json',
|
|
2067
2138
|
}
|
|
2068
2139
|
|
|
2140
|
+
payload['project'] = this.client.config.project;
|
|
2141
|
+
|
|
2069
2142
|
|
|
2070
2143
|
return await this.client.call(
|
|
2071
2144
|
'post',
|
|
@@ -2103,6 +2176,8 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2103
2176
|
'content-type': 'application/json',
|
|
2104
2177
|
}
|
|
2105
2178
|
|
|
2179
|
+
payload['project'] = this.client.config.project;
|
|
2180
|
+
|
|
2106
2181
|
|
|
2107
2182
|
return await this.client.call(
|
|
2108
2183
|
'get',
|
|
@@ -2140,6 +2215,8 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2140
2215
|
'content-type': 'application/json',
|
|
2141
2216
|
}
|
|
2142
2217
|
|
|
2218
|
+
payload['project'] = this.client.config.project;
|
|
2219
|
+
|
|
2143
2220
|
|
|
2144
2221
|
return await this.client.call(
|
|
2145
2222
|
'delete',
|
|
@@ -2177,6 +2254,8 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2177
2254
|
'content-type': 'application/json',
|
|
2178
2255
|
}
|
|
2179
2256
|
|
|
2257
|
+
payload['project'] = this.client.config.project;
|
|
2258
|
+
|
|
2180
2259
|
|
|
2181
2260
|
return await this.client.call(
|
|
2182
2261
|
'get',
|
|
@@ -2214,6 +2293,8 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2214
2293
|
'content-type': 'application/json',
|
|
2215
2294
|
}
|
|
2216
2295
|
|
|
2296
|
+
payload['project'] = this.client.config.project;
|
|
2297
|
+
|
|
2217
2298
|
|
|
2218
2299
|
return await this.client.call(
|
|
2219
2300
|
'get',
|
|
@@ -2247,6 +2328,8 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2247
2328
|
'content-type': 'application/json',
|
|
2248
2329
|
}
|
|
2249
2330
|
|
|
2331
|
+
payload['project'] = this.client.config.project;
|
|
2332
|
+
|
|
2250
2333
|
|
|
2251
2334
|
return await this.client.call(
|
|
2252
2335
|
'get',
|
|
@@ -2280,6 +2363,8 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2280
2363
|
'content-type': 'application/json',
|
|
2281
2364
|
}
|
|
2282
2365
|
|
|
2366
|
+
payload['project'] = this.client.config.project;
|
|
2367
|
+
|
|
2283
2368
|
|
|
2284
2369
|
return await this.client.call(
|
|
2285
2370
|
'get',
|