@appwrite.io/console 1.4.7 → 1.5.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.
@@ -36,6 +36,8 @@ export class Messaging {
36
36
  'content-type': 'application/json',
37
37
  }
38
38
 
39
+ payload['project'] = this.client.config.project;
40
+
39
41
 
40
42
  return await this.client.call(
41
43
  'get',
@@ -118,6 +120,8 @@ export class Messaging {
118
120
  'content-type': 'application/json',
119
121
  }
120
122
 
123
+ payload['project'] = this.client.config.project;
124
+
121
125
 
122
126
  return await this.client.call(
123
127
  'post',
@@ -129,7 +133,7 @@ export class Messaging {
129
133
  /**
130
134
  * Update email
131
135
  *
132
- * Update an email message by its unique ID.
136
+ * Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
133
137
 
134
138
  *
135
139
  * @param {string} messageId
@@ -192,6 +196,8 @@ export class Messaging {
192
196
  'content-type': 'application/json',
193
197
  }
194
198
 
199
+ payload['project'] = this.client.config.project;
200
+
195
201
 
196
202
  return await this.client.call(
197
203
  'patch',
@@ -296,6 +302,8 @@ export class Messaging {
296
302
  'content-type': 'application/json',
297
303
  }
298
304
 
305
+ payload['project'] = this.client.config.project;
306
+
299
307
 
300
308
  return await this.client.call(
301
309
  'post',
@@ -307,7 +315,7 @@ export class Messaging {
307
315
  /**
308
316
  * Update push notification
309
317
  *
310
- * Update a push notification by its unique ID.
318
+ * Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
311
319
 
312
320
  *
313
321
  * @param {string} messageId
@@ -398,6 +406,8 @@ export class Messaging {
398
406
  'content-type': 'application/json',
399
407
  }
400
408
 
409
+ payload['project'] = this.client.config.project;
410
+
401
411
 
402
412
  return await this.client.call(
403
413
  'patch',
@@ -457,6 +467,8 @@ export class Messaging {
457
467
  'content-type': 'application/json',
458
468
  }
459
469
 
470
+ payload['project'] = this.client.config.project;
471
+
460
472
 
461
473
  return await this.client.call(
462
474
  'post',
@@ -468,7 +480,7 @@ export class Messaging {
468
480
  /**
469
481
  * Update SMS
470
482
  *
471
- * Update an SMS message by its unique ID.
483
+ * Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
472
484
 
473
485
  *
474
486
  * @param {string} messageId
@@ -511,6 +523,8 @@ export class Messaging {
511
523
  'content-type': 'application/json',
512
524
  }
513
525
 
526
+ payload['project'] = this.client.config.project;
527
+
514
528
 
515
529
  return await this.client.call(
516
530
  'patch',
@@ -541,6 +555,8 @@ export class Messaging {
541
555
  'content-type': 'application/json',
542
556
  }
543
557
 
558
+ payload['project'] = this.client.config.project;
559
+
544
560
 
545
561
  return await this.client.call(
546
562
  'get',
@@ -570,6 +586,8 @@ export class Messaging {
570
586
  'content-type': 'application/json',
571
587
  }
572
588
 
589
+ payload['project'] = this.client.config.project;
590
+
573
591
 
574
592
  return await this.client.call(
575
593
  'delete',
@@ -603,6 +621,8 @@ export class Messaging {
603
621
  'content-type': 'application/json',
604
622
  }
605
623
 
624
+ payload['project'] = this.client.config.project;
625
+
606
626
 
607
627
  return await this.client.call(
608
628
  'get',
@@ -636,6 +656,8 @@ export class Messaging {
636
656
  'content-type': 'application/json',
637
657
  }
638
658
 
659
+ payload['project'] = this.client.config.project;
660
+
639
661
 
640
662
  return await this.client.call(
641
663
  'get',
@@ -669,6 +691,8 @@ export class Messaging {
669
691
  'content-type': 'application/json',
670
692
  }
671
693
 
694
+ payload['project'] = this.client.config.project;
695
+
672
696
 
673
697
  return await this.client.call(
674
698
  'get',
@@ -732,6 +756,8 @@ export class Messaging {
732
756
  'content-type': 'application/json',
733
757
  }
734
758
 
759
+ payload['project'] = this.client.config.project;
760
+
735
761
 
736
762
  return await this.client.call(
737
763
  'post',
@@ -789,6 +815,8 @@ export class Messaging {
789
815
  'content-type': 'application/json',
790
816
  }
791
817
 
818
+ payload['project'] = this.client.config.project;
819
+
792
820
 
793
821
  return await this.client.call(
794
822
  'patch',
@@ -836,6 +864,8 @@ export class Messaging {
836
864
  'content-type': 'application/json',
837
865
  }
838
866
 
867
+ payload['project'] = this.client.config.project;
868
+
839
869
 
840
870
  return await this.client.call(
841
871
  'post',
@@ -877,6 +907,8 @@ export class Messaging {
877
907
  'content-type': 'application/json',
878
908
  }
879
909
 
910
+ payload['project'] = this.client.config.project;
911
+
880
912
 
881
913
  return await this.client.call(
882
914
  'patch',
@@ -948,6 +980,8 @@ export class Messaging {
948
980
  'content-type': 'application/json',
949
981
  }
950
982
 
983
+ payload['project'] = this.client.config.project;
984
+
951
985
 
952
986
  return await this.client.call(
953
987
  'post',
@@ -1013,6 +1047,8 @@ export class Messaging {
1013
1047
  'content-type': 'application/json',
1014
1048
  }
1015
1049
 
1050
+ payload['project'] = this.client.config.project;
1051
+
1016
1052
 
1017
1053
  return await this.client.call(
1018
1054
  'patch',
@@ -1068,6 +1104,8 @@ export class Messaging {
1068
1104
  'content-type': 'application/json',
1069
1105
  }
1070
1106
 
1107
+ payload['project'] = this.client.config.project;
1108
+
1071
1109
 
1072
1110
  return await this.client.call(
1073
1111
  'post',
@@ -1117,6 +1155,8 @@ export class Messaging {
1117
1155
  'content-type': 'application/json',
1118
1156
  }
1119
1157
 
1158
+ payload['project'] = this.client.config.project;
1159
+
1120
1160
 
1121
1161
  return await this.client.call(
1122
1162
  'patch',
@@ -1180,6 +1220,8 @@ export class Messaging {
1180
1220
  'content-type': 'application/json',
1181
1221
  }
1182
1222
 
1223
+ payload['project'] = this.client.config.project;
1224
+
1183
1225
 
1184
1226
  return await this.client.call(
1185
1227
  'post',
@@ -1237,6 +1279,8 @@ export class Messaging {
1237
1279
  'content-type': 'application/json',
1238
1280
  }
1239
1281
 
1282
+ payload['project'] = this.client.config.project;
1283
+
1240
1284
 
1241
1285
  return await this.client.call(
1242
1286
  'patch',
@@ -1327,6 +1371,8 @@ export class Messaging {
1327
1371
  'content-type': 'application/json',
1328
1372
  }
1329
1373
 
1374
+ payload['project'] = this.client.config.project;
1375
+
1330
1376
 
1331
1377
  return await this.client.call(
1332
1378
  'post',
@@ -1408,6 +1454,8 @@ export class Messaging {
1408
1454
  'content-type': 'application/json',
1409
1455
  }
1410
1456
 
1457
+ payload['project'] = this.client.config.project;
1458
+
1411
1459
 
1412
1460
  return await this.client.call(
1413
1461
  'patch',
@@ -1463,6 +1511,8 @@ export class Messaging {
1463
1511
  'content-type': 'application/json',
1464
1512
  }
1465
1513
 
1514
+ payload['project'] = this.client.config.project;
1515
+
1466
1516
 
1467
1517
  return await this.client.call(
1468
1518
  'post',
@@ -1512,6 +1562,8 @@ export class Messaging {
1512
1562
  'content-type': 'application/json',
1513
1563
  }
1514
1564
 
1565
+ payload['project'] = this.client.config.project;
1566
+
1515
1567
 
1516
1568
  return await this.client.call(
1517
1569
  'patch',
@@ -1567,6 +1619,8 @@ export class Messaging {
1567
1619
  'content-type': 'application/json',
1568
1620
  }
1569
1621
 
1622
+ payload['project'] = this.client.config.project;
1623
+
1570
1624
 
1571
1625
  return await this.client.call(
1572
1626
  'post',
@@ -1616,6 +1670,8 @@ export class Messaging {
1616
1670
  'content-type': 'application/json',
1617
1671
  }
1618
1672
 
1673
+ payload['project'] = this.client.config.project;
1674
+
1619
1675
 
1620
1676
  return await this.client.call(
1621
1677
  'patch',
@@ -1671,6 +1727,8 @@ export class Messaging {
1671
1727
  'content-type': 'application/json',
1672
1728
  }
1673
1729
 
1730
+ payload['project'] = this.client.config.project;
1731
+
1674
1732
 
1675
1733
  return await this.client.call(
1676
1734
  'post',
@@ -1720,6 +1778,8 @@ export class Messaging {
1720
1778
  'content-type': 'application/json',
1721
1779
  }
1722
1780
 
1781
+ payload['project'] = this.client.config.project;
1782
+
1723
1783
 
1724
1784
  return await this.client.call(
1725
1785
  'patch',
@@ -1775,6 +1835,8 @@ export class Messaging {
1775
1835
  'content-type': 'application/json',
1776
1836
  }
1777
1837
 
1838
+ payload['project'] = this.client.config.project;
1839
+
1778
1840
 
1779
1841
  return await this.client.call(
1780
1842
  'post',
@@ -1824,6 +1886,8 @@ export class Messaging {
1824
1886
  'content-type': 'application/json',
1825
1887
  }
1826
1888
 
1889
+ payload['project'] = this.client.config.project;
1890
+
1827
1891
 
1828
1892
  return await this.client.call(
1829
1893
  'patch',
@@ -1854,6 +1918,8 @@ export class Messaging {
1854
1918
  'content-type': 'application/json',
1855
1919
  }
1856
1920
 
1921
+ payload['project'] = this.client.config.project;
1922
+
1857
1923
 
1858
1924
  return await this.client.call(
1859
1925
  'get',
@@ -1883,6 +1949,8 @@ export class Messaging {
1883
1949
  'content-type': 'application/json',
1884
1950
  }
1885
1951
 
1952
+ payload['project'] = this.client.config.project;
1953
+
1886
1954
 
1887
1955
  return await this.client.call(
1888
1956
  'delete',
@@ -1916,6 +1984,8 @@ export class Messaging {
1916
1984
  'content-type': 'application/json',
1917
1985
  }
1918
1986
 
1987
+ payload['project'] = this.client.config.project;
1988
+
1919
1989
 
1920
1990
  return await this.client.call(
1921
1991
  'get',
@@ -1949,6 +2019,8 @@ export class Messaging {
1949
2019
  'content-type': 'application/json',
1950
2020
  }
1951
2021
 
2022
+ payload['project'] = this.client.config.project;
2023
+
1952
2024
 
1953
2025
  return await this.client.call(
1954
2026
  'get',
@@ -1982,6 +2054,8 @@ export class Messaging {
1982
2054
  'content-type': 'application/json',
1983
2055
  }
1984
2056
 
2057
+ payload['project'] = this.client.config.project;
2058
+
1985
2059
 
1986
2060
  return await this.client.call(
1987
2061
  'get',
@@ -2025,6 +2099,8 @@ export class Messaging {
2025
2099
  'content-type': 'application/json',
2026
2100
  }
2027
2101
 
2102
+ payload['project'] = this.client.config.project;
2103
+
2028
2104
 
2029
2105
  return await this.client.call(
2030
2106
  'post',
@@ -2055,6 +2131,8 @@ export class Messaging {
2055
2131
  'content-type': 'application/json',
2056
2132
  }
2057
2133
 
2134
+ payload['project'] = this.client.config.project;
2135
+
2058
2136
 
2059
2137
  return await this.client.call(
2060
2138
  'get',
@@ -2093,6 +2171,8 @@ export class Messaging {
2093
2171
  'content-type': 'application/json',
2094
2172
  }
2095
2173
 
2174
+ payload['project'] = this.client.config.project;
2175
+
2096
2176
 
2097
2177
  return await this.client.call(
2098
2178
  'patch',
@@ -2122,6 +2202,8 @@ export class Messaging {
2122
2202
  'content-type': 'application/json',
2123
2203
  }
2124
2204
 
2205
+ payload['project'] = this.client.config.project;
2206
+
2125
2207
 
2126
2208
  return await this.client.call(
2127
2209
  'delete',
@@ -2155,6 +2237,8 @@ export class Messaging {
2155
2237
  'content-type': 'application/json',
2156
2238
  }
2157
2239
 
2240
+ payload['project'] = this.client.config.project;
2241
+
2158
2242
 
2159
2243
  return await this.client.call(
2160
2244
  'get',
@@ -2192,6 +2276,8 @@ export class Messaging {
2192
2276
  'content-type': 'application/json',
2193
2277
  }
2194
2278
 
2279
+ payload['project'] = this.client.config.project;
2280
+
2195
2281
 
2196
2282
  return await this.client.call(
2197
2283
  'get',
@@ -2235,6 +2321,8 @@ export class Messaging {
2235
2321
  'content-type': 'application/json',
2236
2322
  }
2237
2323
 
2324
+ payload['project'] = this.client.config.project;
2325
+
2238
2326
 
2239
2327
  return await this.client.call(
2240
2328
  'post',
@@ -2269,6 +2357,8 @@ export class Messaging {
2269
2357
  'content-type': 'application/json',
2270
2358
  }
2271
2359
 
2360
+ payload['project'] = this.client.config.project;
2361
+
2272
2362
 
2273
2363
  return await this.client.call(
2274
2364
  'get',
@@ -2302,6 +2392,8 @@ export class Messaging {
2302
2392
  'content-type': 'application/json',
2303
2393
  }
2304
2394
 
2395
+ payload['project'] = this.client.config.project;
2396
+
2305
2397
 
2306
2398
  return await this.client.call(
2307
2399
  'delete',
@@ -34,6 +34,8 @@ export class Migrations {
34
34
  'content-type': 'application/json',
35
35
  }
36
36
 
37
+ payload['project'] = this.client.config.project;
38
+
37
39
 
38
40
  return await this.client.call(
39
41
  'get',
@@ -87,6 +89,8 @@ export class Migrations {
87
89
  'content-type': 'application/json',
88
90
  }
89
91
 
92
+ payload['project'] = this.client.config.project;
93
+
90
94
 
91
95
  return await this.client.call(
92
96
  'post',
@@ -140,6 +144,8 @@ export class Migrations {
140
144
  'content-type': 'application/json',
141
145
  }
142
146
 
147
+ payload['project'] = this.client.config.project;
148
+
143
149
 
144
150
  return await this.client.call(
145
151
  'get',
@@ -179,6 +185,8 @@ export class Migrations {
179
185
  'content-type': 'application/json',
180
186
  }
181
187
 
188
+ payload['project'] = this.client.config.project;
189
+
182
190
 
183
191
  return await this.client.call(
184
192
  'post',
@@ -218,6 +226,8 @@ export class Migrations {
218
226
  'content-type': 'application/json',
219
227
  }
220
228
 
229
+ payload['project'] = this.client.config.project;
230
+
221
231
 
222
232
  return await this.client.call(
223
233
  'get',
@@ -296,6 +306,8 @@ export class Migrations {
296
306
  'content-type': 'application/json',
297
307
  }
298
308
 
309
+ payload['project'] = this.client.config.project;
310
+
299
311
 
300
312
  return await this.client.call(
301
313
  'post',
@@ -374,6 +386,8 @@ export class Migrations {
374
386
  'content-type': 'application/json',
375
387
  }
376
388
 
389
+ payload['project'] = this.client.config.project;
390
+
377
391
 
378
392
  return await this.client.call(
379
393
  'get',
@@ -445,6 +459,8 @@ export class Migrations {
445
459
  'content-type': 'application/json',
446
460
  }
447
461
 
462
+ payload['project'] = this.client.config.project;
463
+
448
464
 
449
465
  return await this.client.call(
450
466
  'post',
@@ -516,6 +532,8 @@ export class Migrations {
516
532
  'content-type': 'application/json',
517
533
  }
518
534
 
535
+ payload['project'] = this.client.config.project;
536
+
519
537
 
520
538
  return await this.client.call(
521
539
  'get',
@@ -545,6 +563,8 @@ export class Migrations {
545
563
  'content-type': 'application/json',
546
564
  }
547
565
 
566
+ payload['project'] = this.client.config.project;
567
+
548
568
 
549
569
  return await this.client.call(
550
570
  'get',
@@ -574,6 +594,8 @@ export class Migrations {
574
594
  'content-type': 'application/json',
575
595
  }
576
596
 
597
+ payload['project'] = this.client.config.project;
598
+
577
599
 
578
600
  return await this.client.call(
579
601
  'patch',
@@ -603,6 +625,8 @@ export class Migrations {
603
625
  'content-type': 'application/json',
604
626
  }
605
627
 
628
+ payload['project'] = this.client.config.project;
629
+
606
630
 
607
631
  return await this.client.call(
608
632
  'delete',