@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
 
@@ -32,6 +33,7 @@ export class Migrations {
32
33
  'content-type': 'application/json',
33
34
  }
34
35
 
36
+
35
37
  return await this.client.call(
36
38
  'get',
37
39
  uri,
@@ -83,6 +85,7 @@ export class Migrations {
83
85
  'content-type': 'application/json',
84
86
  }
85
87
 
88
+
86
89
  return await this.client.call(
87
90
  'post',
88
91
  uri,
@@ -134,6 +137,7 @@ export class Migrations {
134
137
  'content-type': 'application/json',
135
138
  }
136
139
 
140
+
137
141
  return await this.client.call(
138
142
  'get',
139
143
  uri,
@@ -171,6 +175,7 @@ export class Migrations {
171
175
  'content-type': 'application/json',
172
176
  }
173
177
 
178
+
174
179
  return await this.client.call(
175
180
  'post',
176
181
  uri,
@@ -194,6 +199,7 @@ export class Migrations {
194
199
  'content-type': 'application/json',
195
200
  }
196
201
 
202
+
197
203
  return await this.client.call(
198
204
  'get',
199
205
  uri,
@@ -231,6 +237,7 @@ export class Migrations {
231
237
  'content-type': 'application/json',
232
238
  }
233
239
 
240
+
234
241
  return await this.client.call(
235
242
  'post',
236
243
  uri,
@@ -254,6 +261,7 @@ export class Migrations {
254
261
  'content-type': 'application/json',
255
262
  }
256
263
 
264
+
257
265
  return await this.client.call(
258
266
  'get',
259
267
  uri,
@@ -291,6 +299,7 @@ export class Migrations {
291
299
  'content-type': 'application/json',
292
300
  }
293
301
 
302
+
294
303
  return await this.client.call(
295
304
  'get',
296
305
  uri,
@@ -328,6 +337,7 @@ export class Migrations {
328
337
  'content-type': 'application/json',
329
338
  }
330
339
 
340
+
331
341
  return await this.client.call(
332
342
  'get',
333
343
  uri,
@@ -404,6 +414,7 @@ export class Migrations {
404
414
  'content-type': 'application/json',
405
415
  }
406
416
 
417
+
407
418
  return await this.client.call(
408
419
  'post',
409
420
  uri,
@@ -480,6 +491,7 @@ export class Migrations {
480
491
  'content-type': 'application/json',
481
492
  }
482
493
 
494
+
483
495
  return await this.client.call(
484
496
  'get',
485
497
  uri,
@@ -549,6 +561,7 @@ export class Migrations {
549
561
  'content-type': 'application/json',
550
562
  }
551
563
 
564
+
552
565
  return await this.client.call(
553
566
  'post',
554
567
  uri,
@@ -618,6 +631,7 @@ export class Migrations {
618
631
  'content-type': 'application/json',
619
632
  }
620
633
 
634
+
621
635
  return await this.client.call(
622
636
  'get',
623
637
  uri,
@@ -645,6 +659,7 @@ export class Migrations {
645
659
  'content-type': 'application/json',
646
660
  }
647
661
 
662
+
648
663
  return await this.client.call(
649
664
  'get',
650
665
  uri,
@@ -672,6 +687,7 @@ export class Migrations {
672
687
  'content-type': 'application/json',
673
688
  }
674
689
 
690
+
675
691
  return await this.client.call(
676
692
  'patch',
677
693
  uri,
@@ -699,6 +715,7 @@ export class Migrations {
699
715
  'content-type': 'application/json',
700
716
  }
701
717
 
718
+
702
719
  return await this.client.call(
703
720
  'delete',
704
721
  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 { ProjectUsageRange } from '../enums/project-usage-range';
@@ -43,6 +44,7 @@ export class Project {
43
44
  'content-type': 'application/json',
44
45
  }
45
46
 
47
+
46
48
  return await this.client.call(
47
49
  'get',
48
50
  uri,
@@ -67,6 +69,7 @@ export class Project {
67
69
  'content-type': 'application/json',
68
70
  }
69
71
 
72
+
70
73
  return await this.client.call(
71
74
  'get',
72
75
  uri,
@@ -105,6 +108,7 @@ export class Project {
105
108
  'content-type': 'application/json',
106
109
  }
107
110
 
111
+
108
112
  return await this.client.call(
109
113
  'post',
110
114
  uri,
@@ -133,6 +137,7 @@ export class Project {
133
137
  'content-type': 'application/json',
134
138
  }
135
139
 
140
+
136
141
  return await this.client.call(
137
142
  'get',
138
143
  uri,
@@ -172,6 +177,7 @@ export class Project {
172
177
  'content-type': 'application/json',
173
178
  }
174
179
 
180
+
175
181
  return await this.client.call(
176
182
  'put',
177
183
  uri,
@@ -200,6 +206,7 @@ export class Project {
200
206
  'content-type': 'application/json',
201
207
  }
202
208
 
209
+
203
210
  return await this.client.call(
204
211
  'delete',
205
212
  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 { Region } from '../enums/region';
@@ -43,6 +44,7 @@ export class Projects {
43
44
  'content-type': 'application/json',
44
45
  }
45
46
 
47
+
46
48
  return await this.client.call(
47
49
  'get',
48
50
  uri,
@@ -127,6 +129,7 @@ export class Projects {
127
129
  'content-type': 'application/json',
128
130
  }
129
131
 
132
+
130
133
  return await this.client.call(
131
134
  'post',
132
135
  uri,
@@ -154,6 +157,7 @@ export class Projects {
154
157
  'content-type': 'application/json',
155
158
  }
156
159
 
160
+
157
161
  return await this.client.call(
158
162
  'get',
159
163
  uri,
@@ -224,6 +228,7 @@ export class Projects {
224
228
  'content-type': 'application/json',
225
229
  }
226
230
 
231
+
227
232
  return await this.client.call(
228
233
  'patch',
229
234
  uri,
@@ -251,6 +256,7 @@ export class Projects {
251
256
  'content-type': 'application/json',
252
257
  }
253
258
 
259
+
254
260
  return await this.client.call(
255
261
  'delete',
256
262
  uri,
@@ -292,6 +298,7 @@ export class Projects {
292
298
  'content-type': 'application/json',
293
299
  }
294
300
 
301
+
295
302
  return await this.client.call(
296
303
  'patch',
297
304
  uri,
@@ -326,6 +333,7 @@ export class Projects {
326
333
  'content-type': 'application/json',
327
334
  }
328
335
 
336
+
329
337
  return await this.client.call(
330
338
  'patch',
331
339
  uri,
@@ -360,6 +368,7 @@ export class Projects {
360
368
  'content-type': 'application/json',
361
369
  }
362
370
 
371
+
363
372
  return await this.client.call(
364
373
  'patch',
365
374
  uri,
@@ -394,6 +403,7 @@ export class Projects {
394
403
  'content-type': 'application/json',
395
404
  }
396
405
 
406
+
397
407
  return await this.client.call(
398
408
  'patch',
399
409
  uri,
@@ -428,6 +438,7 @@ export class Projects {
428
438
  'content-type': 'application/json',
429
439
  }
430
440
 
441
+
431
442
  return await this.client.call(
432
443
  'patch',
433
444
  uri,
@@ -462,6 +473,7 @@ export class Projects {
462
473
  'content-type': 'application/json',
463
474
  }
464
475
 
476
+
465
477
  return await this.client.call(
466
478
  'patch',
467
479
  uri,
@@ -496,6 +508,7 @@ export class Projects {
496
508
  'content-type': 'application/json',
497
509
  }
498
510
 
511
+
499
512
  return await this.client.call(
500
513
  'patch',
501
514
  uri,
@@ -530,6 +543,7 @@ export class Projects {
530
543
  'content-type': 'application/json',
531
544
  }
532
545
 
546
+
533
547
  return await this.client.call(
534
548
  'patch',
535
549
  uri,
@@ -564,6 +578,7 @@ export class Projects {
564
578
  'content-type': 'application/json',
565
579
  }
566
580
 
581
+
567
582
  return await this.client.call(
568
583
  'patch',
569
584
  uri,
@@ -598,6 +613,7 @@ export class Projects {
598
613
  'content-type': 'application/json',
599
614
  }
600
615
 
616
+
601
617
  return await this.client.call(
602
618
  'patch',
603
619
  uri,
@@ -636,6 +652,7 @@ export class Projects {
636
652
  'content-type': 'application/json',
637
653
  }
638
654
 
655
+
639
656
  return await this.client.call(
640
657
  'patch',
641
658
  uri,
@@ -674,6 +691,7 @@ export class Projects {
674
691
  'content-type': 'application/json',
675
692
  }
676
693
 
694
+
677
695
  return await this.client.call(
678
696
  'post',
679
697
  uri,
@@ -701,6 +719,7 @@ export class Projects {
701
719
  'content-type': 'application/json',
702
720
  }
703
721
 
722
+
704
723
  return await this.client.call(
705
724
  'get',
706
725
  uri,
@@ -746,6 +765,7 @@ export class Projects {
746
765
  'content-type': 'application/json',
747
766
  }
748
767
 
768
+
749
769
  return await this.client.call(
750
770
  'post',
751
771
  uri,
@@ -777,6 +797,7 @@ export class Projects {
777
797
  'content-type': 'application/json',
778
798
  }
779
799
 
800
+
780
801
  return await this.client.call(
781
802
  'get',
782
803
  uri,
@@ -826,6 +847,7 @@ export class Projects {
826
847
  'content-type': 'application/json',
827
848
  }
828
849
 
850
+
829
851
  return await this.client.call(
830
852
  'put',
831
853
  uri,
@@ -857,6 +879,7 @@ export class Projects {
857
879
  'content-type': 'application/json',
858
880
  }
859
881
 
882
+
860
883
  return await this.client.call(
861
884
  'delete',
862
885
  uri,
@@ -903,6 +926,7 @@ export class Projects {
903
926
  'content-type': 'application/json',
904
927
  }
905
928
 
929
+
906
930
  return await this.client.call(
907
931
  'patch',
908
932
  uri,
@@ -930,6 +954,7 @@ export class Projects {
930
954
  'content-type': 'application/json',
931
955
  }
932
956
 
957
+
933
958
  return await this.client.call(
934
959
  'get',
935
960
  uri,
@@ -983,6 +1008,7 @@ export class Projects {
983
1008
  'content-type': 'application/json',
984
1009
  }
985
1010
 
1011
+
986
1012
  return await this.client.call(
987
1013
  'post',
988
1014
  uri,
@@ -1014,6 +1040,7 @@ export class Projects {
1014
1040
  'content-type': 'application/json',
1015
1041
  }
1016
1042
 
1043
+
1017
1044
  return await this.client.call(
1018
1045
  'get',
1019
1046
  uri,
@@ -1064,6 +1091,7 @@ export class Projects {
1064
1091
  'content-type': 'application/json',
1065
1092
  }
1066
1093
 
1094
+
1067
1095
  return await this.client.call(
1068
1096
  'put',
1069
1097
  uri,
@@ -1095,6 +1123,7 @@ export class Projects {
1095
1123
  'content-type': 'application/json',
1096
1124
  }
1097
1125
 
1126
+
1098
1127
  return await this.client.call(
1099
1128
  'delete',
1100
1129
  uri,
@@ -1136,6 +1165,7 @@ export class Projects {
1136
1165
  'content-type': 'application/json',
1137
1166
  }
1138
1167
 
1168
+
1139
1169
  return await this.client.call(
1140
1170
  'patch',
1141
1171
  uri,
@@ -1170,6 +1200,7 @@ export class Projects {
1170
1200
  'content-type': 'application/json',
1171
1201
  }
1172
1202
 
1203
+
1173
1204
  return await this.client.call(
1174
1205
  'patch',
1175
1206
  uri,
@@ -1236,6 +1267,7 @@ export class Projects {
1236
1267
  'content-type': 'application/json',
1237
1268
  }
1238
1269
 
1270
+
1239
1271
  return await this.client.call(
1240
1272
  'patch',
1241
1273
  uri,
@@ -1311,6 +1343,7 @@ export class Projects {
1311
1343
  'content-type': 'application/json',
1312
1344
  }
1313
1345
 
1346
+
1314
1347
  return await this.client.call(
1315
1348
  'post',
1316
1349
  uri,
@@ -1345,6 +1378,7 @@ export class Projects {
1345
1378
  'content-type': 'application/json',
1346
1379
  }
1347
1380
 
1381
+
1348
1382
  return await this.client.call(
1349
1383
  'patch',
1350
1384
  uri,
@@ -1380,6 +1414,7 @@ export class Projects {
1380
1414
  'content-type': 'application/json',
1381
1415
  }
1382
1416
 
1417
+
1383
1418
  return await this.client.call(
1384
1419
  'get',
1385
1420
  uri,
@@ -1441,6 +1476,7 @@ export class Projects {
1441
1476
  'content-type': 'application/json',
1442
1477
  }
1443
1478
 
1479
+
1444
1480
  return await this.client.call(
1445
1481
  'patch',
1446
1482
  uri,
@@ -1476,6 +1512,7 @@ export class Projects {
1476
1512
  'content-type': 'application/json',
1477
1513
  }
1478
1514
 
1515
+
1479
1516
  return await this.client.call(
1480
1517
  'delete',
1481
1518
  uri,
@@ -1511,6 +1548,7 @@ export class Projects {
1511
1548
  'content-type': 'application/json',
1512
1549
  }
1513
1550
 
1551
+
1514
1552
  return await this.client.call(
1515
1553
  'get',
1516
1554
  uri,
@@ -1553,6 +1591,7 @@ export class Projects {
1553
1591
  'content-type': 'application/json',
1554
1592
  }
1555
1593
 
1594
+
1556
1595
  return await this.client.call(
1557
1596
  'patch',
1558
1597
  uri,
@@ -1588,6 +1627,7 @@ export class Projects {
1588
1627
  'content-type': 'application/json',
1589
1628
  }
1590
1629
 
1630
+
1591
1631
  return await this.client.call(
1592
1632
  'delete',
1593
1633
  uri,
@@ -1615,6 +1655,7 @@ export class Projects {
1615
1655
  'content-type': 'application/json',
1616
1656
  }
1617
1657
 
1658
+
1618
1659
  return await this.client.call(
1619
1660
  'get',
1620
1661
  uri,
@@ -1682,6 +1723,7 @@ export class Projects {
1682
1723
  'content-type': 'application/json',
1683
1724
  }
1684
1725
 
1726
+
1685
1727
  return await this.client.call(
1686
1728
  'post',
1687
1729
  uri,
@@ -1713,6 +1755,7 @@ export class Projects {
1713
1755
  'content-type': 'application/json',
1714
1756
  }
1715
1757
 
1758
+
1716
1759
  return await this.client.call(
1717
1760
  'get',
1718
1761
  uri,
@@ -1784,6 +1827,7 @@ export class Projects {
1784
1827
  'content-type': 'application/json',
1785
1828
  }
1786
1829
 
1830
+
1787
1831
  return await this.client.call(
1788
1832
  'put',
1789
1833
  uri,
@@ -1815,6 +1859,7 @@ export class Projects {
1815
1859
  'content-type': 'application/json',
1816
1860
  }
1817
1861
 
1862
+
1818
1863
  return await this.client.call(
1819
1864
  'delete',
1820
1865
  uri,
@@ -1846,6 +1891,7 @@ export class Projects {
1846
1891
  'content-type': 'application/json',
1847
1892
  }
1848
1893
 
1894
+
1849
1895
  return await this.client.call(
1850
1896
  'patch',
1851
1897
  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 { ResourceType } from '../enums/resource-type';
@@ -34,6 +35,7 @@ export class Proxy {
34
35
  'content-type': 'application/json',
35
36
  }
36
37
 
38
+
37
39
  return await this.client.call(
38
40
  'get',
39
41
  uri,
@@ -76,6 +78,7 @@ export class Proxy {
76
78
  'content-type': 'application/json',
77
79
  }
78
80
 
81
+
79
82
  return await this.client.call(
80
83
  'post',
81
84
  uri,
@@ -104,6 +107,7 @@ export class Proxy {
104
107
  'content-type': 'application/json',
105
108
  }
106
109
 
110
+
107
111
  return await this.client.call(
108
112
  'get',
109
113
  uri,
@@ -132,6 +136,7 @@ export class Proxy {
132
136
  'content-type': 'application/json',
133
137
  }
134
138
 
139
+
135
140
  return await this.client.call(
136
141
  'delete',
137
142
  uri,
@@ -159,6 +164,7 @@ export class Proxy {
159
164
  'content-type': 'application/json',
160
165
  }
161
166
 
167
+
162
168
  return await this.client.call(
163
169
  'patch',
164
170
  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 { Compression } from '../enums/compression';
@@ -37,6 +38,7 @@ export class Storage {
37
38
  'content-type': 'application/json',
38
39
  }
39
40
 
41
+
40
42
  return await this.client.call(
41
43
  'get',
42
44
  uri,
@@ -107,6 +109,7 @@ export class Storage {
107
109
  'content-type': 'application/json',
108
110
  }
109
111
 
112
+
110
113
  return await this.client.call(
111
114
  'post',
112
115
  uri,
@@ -135,6 +138,7 @@ export class Storage {
135
138
  'content-type': 'application/json',
136
139
  }
137
140
 
141
+
138
142
  return await this.client.call(
139
143
  'get',
140
144
  uri,
@@ -202,6 +206,7 @@ export class Storage {
202
206
  'content-type': 'application/json',
203
207
  }
204
208
 
209
+
205
210
  return await this.client.call(
206
211
  'put',
207
212
  uri,
@@ -230,6 +235,7 @@ export class Storage {
230
235
  'content-type': 'application/json',
231
236
  }
232
237
 
238
+
233
239
  return await this.client.call(
234
240
  'delete',
235
241
  uri,
@@ -266,6 +272,7 @@ export class Storage {
266
272
  'content-type': 'application/json',
267
273
  }
268
274
 
275
+
269
276
  return await this.client.call(
270
277
  'get',
271
278
  uri,
@@ -319,6 +326,7 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
319
326
  'content-type': 'multipart/form-data',
320
327
  }
321
328
 
329
+
322
330
  return await this.client.chunkedUpload(
323
331
  'post',
324
332
  uri,
@@ -352,6 +360,7 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
352
360
  'content-type': 'application/json',
353
361
  }
354
362
 
363
+
355
364
  return await this.client.call(
356
365
  'get',
357
366
  uri,
@@ -392,6 +401,7 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
392
401
  'content-type': 'application/json',
393
402
  }
394
403
 
404
+
395
405
  return await this.client.call(
396
406
  'put',
397
407
  uri,
@@ -424,6 +434,7 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
424
434
  'content-type': 'application/json',
425
435
  }
426
436
 
437
+
427
438
  return await this.client.call(
428
439
  'delete',
429
440
  uri,
@@ -456,6 +467,11 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
456
467
  'content-type': 'application/json',
457
468
  }
458
469
 
470
+ payload['project'] = this.client.config.project;
471
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
472
+ uri.searchParams.append(key, value);
473
+ }
474
+
459
475
  payload['project'] = this.client.config.project;
460
476
 
461
477
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -533,6 +549,11 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
533
549
  'content-type': 'application/json',
534
550
  }
535
551
 
552
+ payload['project'] = this.client.config.project;
553
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
554
+ uri.searchParams.append(key, value);
555
+ }
556
+
536
557
  payload['project'] = this.client.config.project;
537
558
 
538
559
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -566,6 +587,11 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
566
587
  'content-type': 'application/json',
567
588
  }
568
589
 
590
+ payload['project'] = this.client.config.project;
591
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
592
+ uri.searchParams.append(key, value);
593
+ }
594
+
569
595
  payload['project'] = this.client.config.project;
570
596
 
571
597
  for (const [key, value] of Object.entries(Client.flatten(payload))) {
@@ -594,6 +620,7 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
594
620
  'content-type': 'application/json',
595
621
  }
596
622
 
623
+
597
624
  return await this.client.call(
598
625
  'get',
599
626
  uri,
@@ -625,6 +652,7 @@ If you're creating a new file using one of the Appwrite SDKs, all the chunk
625
652
  'content-type': 'application/json',
626
653
  }
627
654
 
655
+
628
656
  return await this.client.call(
629
657
  'get',
630
658
  uri,