@appwrite.io/console 1.0.0 → 1.0.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.
@@ -1,3 +1,4 @@
1
+ import { Service } from '../service';
1
2
  import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
2
3
  import type { Models } from '../models';
3
4
 
@@ -31,6 +32,7 @@ export class Assistant {
31
32
  'content-type': 'application/json',
32
33
  }
33
34
 
35
+
34
36
  return await this.client.call(
35
37
  'post',
36
38
  uri,
@@ -1,3 +1,4 @@
1
+ import { Service } from '../service';
1
2
  import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
2
3
  import type { Models } from '../models';
3
4
  import { Browser } from '../enums/browser';
@@ -46,6 +47,11 @@ When one dimension is specified and the other is 0, the image is scaled with pre
46
47
  'content-type': 'application/json',
47
48
  }
48
49
 
50
+ payload['project'] = this.client.config.project;
51
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
52
+ uri.searchParams.append(key, value);
53
+ }
54
+
49
55
  payload['project'] = this.client.config.project;
50
56
 
51
57
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -90,6 +96,11 @@ When one dimension is specified and the other is 0, the image is scaled with pre
90
96
  'content-type': 'application/json',
91
97
  }
92
98
 
99
+ payload['project'] = this.client.config.project;
100
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
101
+ uri.searchParams.append(key, value);
102
+ }
103
+
93
104
  payload['project'] = this.client.config.project;
94
105
 
95
106
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -124,6 +135,11 @@ This endpoint does not follow HTTP redirects.
124
135
  'content-type': 'application/json',
125
136
  }
126
137
 
138
+ payload['project'] = this.client.config.project;
139
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
140
+ uri.searchParams.append(key, value);
141
+ }
142
+
127
143
  payload['project'] = this.client.config.project;
128
144
 
129
145
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -168,6 +184,11 @@ When one dimension is specified and the other is 0, the image is scaled with pre
168
184
  'content-type': 'application/json',
169
185
  }
170
186
 
187
+ payload['project'] = this.client.config.project;
188
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
189
+ uri.searchParams.append(key, value);
190
+ }
191
+
171
192
  payload['project'] = this.client.config.project;
172
193
 
173
194
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -212,6 +233,11 @@ This endpoint does not follow HTTP redirects.
212
233
  'content-type': 'application/json',
213
234
  }
214
235
 
236
+ payload['project'] = this.client.config.project;
237
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
238
+ uri.searchParams.append(key, value);
239
+ }
240
+
215
241
  payload['project'] = this.client.config.project;
216
242
 
217
243
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -258,6 +284,11 @@ When one dimension is specified and the other is 0, the image is scaled with pre
258
284
  'content-type': 'application/json',
259
285
  }
260
286
 
287
+ payload['project'] = this.client.config.project;
288
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
289
+ uri.searchParams.append(key, value);
290
+ }
291
+
261
292
  payload['project'] = this.client.config.project;
262
293
 
263
294
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -303,6 +334,11 @@ When one dimension is specified and the other is 0, the image is scaled with pre
303
334
  'content-type': 'application/json',
304
335
  }
305
336
 
337
+ payload['project'] = this.client.config.project;
338
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
339
+ uri.searchParams.append(key, value);
340
+ }
341
+
306
342
  payload['project'] = this.client.config.project;
307
343
 
308
344
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -1,3 +1,4 @@
1
+ import { Service } from '../service';
1
2
  import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
2
3
  import type { Models } from '../models';
3
4
 
@@ -25,6 +26,7 @@ export class Console {
25
26
  'content-type': 'application/json',
26
27
  }
27
28
 
29
+
28
30
  return await this.client.call(
29
31
  'get',
30
32
  uri,
@@ -1,3 +1,4 @@
1
+ import { Service } from '../service';
1
2
  import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
2
3
  import type { Models } from '../models';
3
4
  import { DatabaseUsageRange } from '../enums/database-usage-range';
@@ -37,6 +38,7 @@ export class Databases {
37
38
  'content-type': 'application/json',
38
39
  }
39
40
 
41
+
40
42
  return await this.client.call(
41
43
  'get',
42
44
  uri,
@@ -80,6 +82,7 @@ export class Databases {
80
82
  'content-type': 'application/json',
81
83
  }
82
84
 
85
+
83
86
  return await this.client.call(
84
87
  'post',
85
88
  uri,
@@ -107,6 +110,7 @@ export class Databases {
107
110
  'content-type': 'application/json',
108
111
  }
109
112
 
113
+
110
114
  return await this.client.call(
111
115
  'get',
112
116
  uri,
@@ -135,6 +139,7 @@ export class Databases {
135
139
  'content-type': 'application/json',
136
140
  }
137
141
 
142
+
138
143
  return await this.client.call(
139
144
  'get',
140
145
  uri,
@@ -174,6 +179,7 @@ export class Databases {
174
179
  'content-type': 'application/json',
175
180
  }
176
181
 
182
+
177
183
  return await this.client.call(
178
184
  'put',
179
185
  uri,
@@ -202,6 +208,7 @@ export class Databases {
202
208
  'content-type': 'application/json',
203
209
  }
204
210
 
211
+
205
212
  return await this.client.call(
206
213
  'delete',
207
214
  uri,
@@ -238,6 +245,7 @@ export class Databases {
238
245
  'content-type': 'application/json',
239
246
  }
240
247
 
248
+
241
249
  return await this.client.call(
242
250
  'get',
243
251
  uri,
@@ -292,6 +300,7 @@ export class Databases {
292
300
  'content-type': 'application/json',
293
301
  }
294
302
 
303
+
295
304
  return await this.client.call(
296
305
  'post',
297
306
  uri,
@@ -324,6 +333,7 @@ export class Databases {
324
333
  'content-type': 'application/json',
325
334
  }
326
335
 
336
+
327
337
  return await this.client.call(
328
338
  'get',
329
339
  uri,
@@ -375,6 +385,7 @@ export class Databases {
375
385
  'content-type': 'application/json',
376
386
  }
377
387
 
388
+
378
389
  return await this.client.call(
379
390
  'put',
380
391
  uri,
@@ -407,6 +418,7 @@ export class Databases {
407
418
  'content-type': 'application/json',
408
419
  }
409
420
 
421
+
410
422
  return await this.client.call(
411
423
  'delete',
412
424
  uri,
@@ -443,6 +455,7 @@ export class Databases {
443
455
  'content-type': 'application/json',
444
456
  }
445
457
 
458
+
446
459
  return await this.client.call(
447
460
  'get',
448
461
  uri,
@@ -498,6 +511,7 @@ export class Databases {
498
511
  'content-type': 'application/json',
499
512
  }
500
513
 
514
+
501
515
  return await this.client.call(
502
516
  'post',
503
517
  uri,
@@ -548,6 +562,7 @@ export class Databases {
548
562
  'content-type': 'application/json',
549
563
  }
550
564
 
565
+
551
566
  return await this.client.call(
552
567
  'patch',
553
568
  uri,
@@ -602,6 +617,7 @@ export class Databases {
602
617
  'content-type': 'application/json',
603
618
  }
604
619
 
620
+
605
621
  return await this.client.call(
606
622
  'post',
607
623
  uri,
@@ -652,6 +668,7 @@ export class Databases {
652
668
  'content-type': 'application/json',
653
669
  }
654
670
 
671
+
655
672
  return await this.client.call(
656
673
  'patch',
657
674
  uri,
@@ -707,6 +724,7 @@ export class Databases {
707
724
  'content-type': 'application/json',
708
725
  }
709
726
 
727
+
710
728
  return await this.client.call(
711
729
  'post',
712
730
  uri,
@@ -758,6 +776,7 @@ export class Databases {
758
776
  'content-type': 'application/json',
759
777
  }
760
778
 
779
+
761
780
  return await this.client.call(
762
781
  'patch',
763
782
  uri,
@@ -820,6 +839,7 @@ export class Databases {
820
839
  'content-type': 'application/json',
821
840
  }
822
841
 
842
+
823
843
  return await this.client.call(
824
844
  'post',
825
845
  uri,
@@ -878,6 +898,7 @@ export class Databases {
878
898
  'content-type': 'application/json',
879
899
  }
880
900
 
901
+
881
902
  return await this.client.call(
882
903
  'patch',
883
904
  uri,
@@ -941,6 +962,7 @@ export class Databases {
941
962
  'content-type': 'application/json',
942
963
  }
943
964
 
965
+
944
966
  return await this.client.call(
945
967
  'post',
946
968
  uri,
@@ -1006,6 +1028,7 @@ export class Databases {
1006
1028
  'content-type': 'application/json',
1007
1029
  }
1008
1030
 
1031
+
1009
1032
  return await this.client.call(
1010
1033
  'patch',
1011
1034
  uri,
@@ -1069,6 +1092,7 @@ export class Databases {
1069
1092
  'content-type': 'application/json',
1070
1093
  }
1071
1094
 
1095
+
1072
1096
  return await this.client.call(
1073
1097
  'post',
1074
1098
  uri,
@@ -1134,6 +1158,7 @@ export class Databases {
1134
1158
  'content-type': 'application/json',
1135
1159
  }
1136
1160
 
1161
+
1137
1162
  return await this.client.call(
1138
1163
  'patch',
1139
1164
  uri,
@@ -1189,6 +1214,7 @@ export class Databases {
1189
1214
  'content-type': 'application/json',
1190
1215
  }
1191
1216
 
1217
+
1192
1218
  return await this.client.call(
1193
1219
  'post',
1194
1220
  uri,
@@ -1240,6 +1266,7 @@ export class Databases {
1240
1266
  'content-type': 'application/json',
1241
1267
  }
1242
1268
 
1269
+
1243
1270
  return await this.client.call(
1244
1271
  'patch',
1245
1272
  uri,
@@ -1303,6 +1330,7 @@ export class Databases {
1303
1330
  'content-type': 'application/json',
1304
1331
  }
1305
1332
 
1333
+
1306
1334
  return await this.client.call(
1307
1335
  'post',
1308
1336
  uri,
@@ -1369,6 +1397,7 @@ export class Databases {
1369
1397
  'content-type': 'application/json',
1370
1398
  }
1371
1399
 
1400
+
1372
1401
  return await this.client.call(
1373
1402
  'post',
1374
1403
  uri,
@@ -1420,6 +1449,7 @@ export class Databases {
1420
1449
  'content-type': 'application/json',
1421
1450
  }
1422
1451
 
1452
+
1423
1453
  return await this.client.call(
1424
1454
  'patch',
1425
1455
  uri,
@@ -1475,6 +1505,7 @@ export class Databases {
1475
1505
  'content-type': 'application/json',
1476
1506
  }
1477
1507
 
1508
+
1478
1509
  return await this.client.call(
1479
1510
  'post',
1480
1511
  uri,
@@ -1526,6 +1557,7 @@ export class Databases {
1526
1557
  'content-type': 'application/json',
1527
1558
  }
1528
1559
 
1560
+
1529
1561
  return await this.client.call(
1530
1562
  'patch',
1531
1563
  uri,
@@ -1562,6 +1594,7 @@ export class Databases {
1562
1594
  'content-type': 'application/json',
1563
1595
  }
1564
1596
 
1597
+
1565
1598
  return await this.client.call(
1566
1599
  'get',
1567
1600
  uri,
@@ -1598,6 +1631,7 @@ export class Databases {
1598
1631
  'content-type': 'application/json',
1599
1632
  }
1600
1633
 
1634
+
1601
1635
  return await this.client.call(
1602
1636
  'delete',
1603
1637
  uri,
@@ -1639,6 +1673,7 @@ export class Databases {
1639
1673
  'content-type': 'application/json',
1640
1674
  }
1641
1675
 
1676
+
1642
1677
  return await this.client.call(
1643
1678
  'patch',
1644
1679
  uri,
@@ -1675,6 +1710,7 @@ export class Databases {
1675
1710
  'content-type': 'application/json',
1676
1711
  }
1677
1712
 
1713
+
1678
1714
  return await this.client.call(
1679
1715
  'get',
1680
1716
  uri,
@@ -1725,6 +1761,7 @@ export class Databases {
1725
1761
  'content-type': 'application/json',
1726
1762
  }
1727
1763
 
1764
+
1728
1765
  return await this.client.call(
1729
1766
  'post',
1730
1767
  uri,
@@ -1765,6 +1802,7 @@ export class Databases {
1765
1802
  'content-type': 'application/json',
1766
1803
  }
1767
1804
 
1805
+
1768
1806
  return await this.client.call(
1769
1807
  'get',
1770
1808
  uri,
@@ -1809,6 +1847,7 @@ export class Databases {
1809
1847
  'content-type': 'application/json',
1810
1848
  }
1811
1849
 
1850
+
1812
1851
  return await this.client.call(
1813
1852
  'patch',
1814
1853
  uri,
@@ -1845,6 +1884,7 @@ export class Databases {
1845
1884
  'content-type': 'application/json',
1846
1885
  }
1847
1886
 
1887
+
1848
1888
  return await this.client.call(
1849
1889
  'delete',
1850
1890
  uri,
@@ -1885,6 +1925,7 @@ export class Databases {
1885
1925
  'content-type': 'application/json',
1886
1926
  }
1887
1927
 
1928
+
1888
1929
  return await this.client.call(
1889
1930
  'get',
1890
1931
  uri,
@@ -1921,6 +1962,7 @@ export class Databases {
1921
1962
  'content-type': 'application/json',
1922
1963
  }
1923
1964
 
1965
+
1924
1966
  return await this.client.call(
1925
1967
  'get',
1926
1968
  uri,
@@ -1979,6 +2021,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
1979
2021
  'content-type': 'application/json',
1980
2022
  }
1981
2023
 
2024
+
1982
2025
  return await this.client.call(
1983
2026
  'post',
1984
2027
  uri,
@@ -2015,6 +2058,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
2015
2058
  'content-type': 'application/json',
2016
2059
  }
2017
2060
 
2061
+
2018
2062
  return await this.client.call(
2019
2063
  'get',
2020
2064
  uri,
@@ -2051,6 +2095,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
2051
2095
  'content-type': 'application/json',
2052
2096
  }
2053
2097
 
2098
+
2054
2099
  return await this.client.call(
2055
2100
  'delete',
2056
2101
  uri,
@@ -2087,6 +2132,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
2087
2132
  'content-type': 'application/json',
2088
2133
  }
2089
2134
 
2135
+
2090
2136
  return await this.client.call(
2091
2137
  'get',
2092
2138
  uri,
@@ -2122,6 +2168,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
2122
2168
  'content-type': 'application/json',
2123
2169
  }
2124
2170
 
2171
+
2125
2172
  return await this.client.call(
2126
2173
  'get',
2127
2174
  uri,
@@ -2154,6 +2201,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
2154
2201
  'content-type': 'application/json',
2155
2202
  }
2156
2203
 
2204
+
2157
2205
  return await this.client.call(
2158
2206
  'get',
2159
2207
  uri,
@@ -2185,6 +2233,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
2185
2233
  'content-type': 'application/json',
2186
2234
  }
2187
2235
 
2236
+
2188
2237
  return await this.client.call(
2189
2238
  'get',
2190
2239
  uri,
@@ -1,3 +1,4 @@
1
+ import { Service } from '../service';
1
2
  import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
2
3
  import type { Models } from '../models';
3
4
  import { Runtime } from '../enums/runtime';
@@ -36,6 +37,7 @@ export class Functions {
36
37
  'content-type': 'application/json',
37
38
  }
38
39
 
40
+
39
41
  return await this.client.call(
40
42
  'get',
41
43
  uri,
@@ -157,6 +159,7 @@ export class Functions {
157
159
  'content-type': 'application/json',
158
160
  }
159
161
 
162
+
160
163
  return await this.client.call(
161
164
  'post',
162
165
  uri,
@@ -181,6 +184,7 @@ export class Functions {
181
184
  'content-type': 'application/json',
182
185
  }
183
186
 
187
+
184
188
  return await this.client.call(
185
189
  'get',
186
190
  uri,
@@ -206,6 +210,7 @@ export class Functions {
206
210
  'content-type': 'application/json',
207
211
  }
208
212
 
213
+
209
214
  return await this.client.call(
210
215
  'get',
211
216
  uri,
@@ -246,6 +251,7 @@ export class Functions {
246
251
  'content-type': 'application/json',
247
252
  }
248
253
 
254
+
249
255
  return await this.client.call(
250
256
  'get',
251
257
  uri,
@@ -274,6 +280,7 @@ export class Functions {
274
280
  'content-type': 'application/json',
275
281
  }
276
282
 
283
+
277
284
  return await this.client.call(
278
285
  'get',
279
286
  uri,
@@ -301,6 +308,7 @@ export class Functions {
301
308
  'content-type': 'application/json',
302
309
  }
303
310
 
311
+
304
312
  return await this.client.call(
305
313
  'get',
306
314
  uri,
@@ -329,6 +337,7 @@ export class Functions {
329
337
  'content-type': 'application/json',
330
338
  }
331
339
 
340
+
332
341
  return await this.client.call(
333
342
  'get',
334
343
  uri,
@@ -428,6 +437,7 @@ export class Functions {
428
437
  'content-type': 'application/json',
429
438
  }
430
439
 
440
+
431
441
  return await this.client.call(
432
442
  'put',
433
443
  uri,
@@ -456,6 +466,7 @@ export class Functions {
456
466
  'content-type': 'application/json',
457
467
  }
458
468
 
469
+
459
470
  return await this.client.call(
460
471
  'delete',
461
472
  uri,
@@ -492,6 +503,7 @@ export class Functions {
492
503
  'content-type': 'application/json',
493
504
  }
494
505
 
506
+
495
507
  return await this.client.call(
496
508
  'get',
497
509
  uri,
@@ -546,6 +558,7 @@ Use the "command" param to set the entrypoint used to execute your cod
546
558
  'content-type': 'multipart/form-data',
547
559
  }
548
560
 
561
+
549
562
  return await this.client.chunkedUpload(
550
563
  'post',
551
564
  uri,
@@ -579,6 +592,7 @@ Use the "command" param to set the entrypoint used to execute your cod
579
592
  'content-type': 'application/json',
580
593
  }
581
594
 
595
+
582
596
  return await this.client.call(
583
597
  'get',
584
598
  uri,
@@ -611,6 +625,7 @@ Use the "command" param to set the entrypoint used to execute your cod
611
625
  'content-type': 'application/json',
612
626
  }
613
627
 
628
+
614
629
  return await this.client.call(
615
630
  'patch',
616
631
  uri,
@@ -643,6 +658,7 @@ Use the "command" param to set the entrypoint used to execute your cod
643
658
  'content-type': 'application/json',
644
659
  }
645
660
 
661
+
646
662
  return await this.client.call(
647
663
  'delete',
648
664
  uri,
@@ -678,6 +694,7 @@ Use the "command" param to set the entrypoint used to execute your cod
678
694
  'content-type': 'application/json',
679
695
  }
680
696
 
697
+
681
698
  return await this.client.call(
682
699
  'post',
683
700
  uri,
@@ -709,6 +726,7 @@ Use the "command" param to set the entrypoint used to execute your cod
709
726
  'content-type': 'application/json',
710
727
  }
711
728
 
729
+
712
730
  return await this.client.call(
713
731
  'patch',
714
732
  uri,
@@ -741,6 +759,11 @@ Use the "command" param to set the entrypoint used to execute your cod
741
759
  'content-type': 'application/json',
742
760
  }
743
761
 
762
+ payload['project'] = this.client.config.project;
763
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
764
+ uri.searchParams.append(key, value);
765
+ }
766
+
744
767
  payload['project'] = this.client.config.project;
745
768
 
746
769
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -778,6 +801,7 @@ Use the "command" param to set the entrypoint used to execute your cod
778
801
  'content-type': 'application/json',
779
802
  }
780
803
 
804
+
781
805
  return await this.client.call(
782
806
  'get',
783
807
  uri,
@@ -830,6 +854,7 @@ Use the "command" param to set the entrypoint used to execute your cod
830
854
  'content-type': 'application/json',
831
855
  }
832
856
 
857
+
833
858
  return await this.client.call(
834
859
  'post',
835
860
  uri,
@@ -862,6 +887,7 @@ Use the "command" param to set the entrypoint used to execute your cod
862
887
  'content-type': 'application/json',
863
888
  }
864
889
 
890
+
865
891
  return await this.client.call(
866
892
  'get',
867
893
  uri,
@@ -895,6 +921,7 @@ Use the "command" param to set the entrypoint used to execute your cod
895
921
  'content-type': 'application/json',
896
922
  }
897
923
 
924
+
898
925
  return await this.client.call(
899
926
  'delete',
900
927
  uri,
@@ -926,6 +953,7 @@ Use the "command" param to set the entrypoint used to execute your cod
926
953
  'content-type': 'application/json',
927
954
  }
928
955
 
956
+
929
957
  return await this.client.call(
930
958
  'get',
931
959
  uri,
@@ -954,6 +982,7 @@ Use the "command" param to set the entrypoint used to execute your cod
954
982
  'content-type': 'application/json',
955
983
  }
956
984
 
985
+
957
986
  return await this.client.call(
958
987
  'get',
959
988
  uri,
@@ -996,6 +1025,7 @@ Use the "command" param to set the entrypoint used to execute your cod
996
1025
  'content-type': 'application/json',
997
1026
  }
998
1027
 
1028
+
999
1029
  return await this.client.call(
1000
1030
  'post',
1001
1031
  uri,
@@ -1028,6 +1058,7 @@ Use the "command" param to set the entrypoint used to execute your cod
1028
1058
  'content-type': 'application/json',
1029
1059
  }
1030
1060
 
1061
+
1031
1062
  return await this.client.call(
1032
1063
  'get',
1033
1064
  uri,
@@ -1071,6 +1102,7 @@ Use the "command" param to set the entrypoint used to execute your cod
1071
1102
  'content-type': 'application/json',
1072
1103
  }
1073
1104
 
1105
+
1074
1106
  return await this.client.call(
1075
1107
  'put',
1076
1108
  uri,
@@ -1103,6 +1135,7 @@ Use the "command" param to set the entrypoint used to execute your cod
1103
1135
  'content-type': 'application/json',
1104
1136
  }
1105
1137
 
1138
+
1106
1139
  return await this.client.call(
1107
1140
  'delete',
1108
1141
  uri,