react-native-appwrite 0.17.1 → 0.19.0

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/sdk.js +1009 -21
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +1009 -22
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/docs/examples/account/list-identities.md +2 -1
  7. package/docs/examples/account/list-logs.md +2 -1
  8. package/docs/examples/avatars/get-screenshot.md +35 -0
  9. package/docs/examples/databases/create-document.md +1 -1
  10. package/docs/examples/databases/list-documents.md +2 -1
  11. package/docs/examples/databases/update-document.md +1 -1
  12. package/docs/examples/databases/upsert-document.md +1 -1
  13. package/docs/examples/functions/list-executions.md +2 -1
  14. package/docs/examples/storage/create-file.md +1 -1
  15. package/docs/examples/storage/list-files.md +2 -1
  16. package/docs/examples/storage/update-file.md +1 -1
  17. package/docs/examples/tablesdb/create-row.md +1 -1
  18. package/docs/examples/tablesdb/list-rows.md +2 -1
  19. package/docs/examples/tablesdb/update-row.md +1 -1
  20. package/docs/examples/tablesdb/upsert-row.md +1 -1
  21. package/docs/examples/teams/list-memberships.md +2 -1
  22. package/docs/examples/teams/list.md +2 -1
  23. package/package.json +3 -4
  24. package/src/client.ts +1 -1
  25. package/src/enums/execution-status.ts +1 -0
  26. package/src/enums/output.ts +9 -0
  27. package/src/enums/theme.ts +4 -0
  28. package/src/enums/timezone.ts +421 -0
  29. package/src/index.ts +6 -0
  30. package/src/models.ts +1 -1
  31. package/src/operator.ts +308 -0
  32. package/src/query.ts +6 -6
  33. package/src/services/account.ts +34 -16
  34. package/src/services/avatars.ts +347 -0
  35. package/src/services/databases.ts +15 -7
  36. package/src/services/functions.ts +15 -7
  37. package/src/services/storage.ts +15 -7
  38. package/src/services/tables-db.ts +15 -7
  39. package/src/services/teams.ts +30 -14
  40. package/types/enums/execution-status.d.ts +2 -1
  41. package/types/enums/output.d.ts +9 -0
  42. package/types/enums/theme.d.ts +4 -0
  43. package/types/enums/timezone.d.ts +421 -0
  44. package/types/index.d.ts +6 -0
  45. package/types/models.d.ts +1 -1
  46. package/types/operator.d.ts +180 -0
  47. package/types/services/account.d.ts +8 -2
  48. package/types/services/avatars.d.ts +123 -0
  49. package/types/services/databases.d.ts +4 -1
  50. package/types/services/functions.d.ts +4 -1
  51. package/types/services/storage.d.ts +4 -1
  52. package/types/services/tables-db.d.ts +4 -1
  53. package/types/services/teams.d.ts +8 -2
  54. package/.gitpod.yml +0 -10
package/dist/cjs/sdk.js CHANGED
@@ -100,7 +100,7 @@ class Client {
100
100
  'x-sdk-name': 'React Native',
101
101
  'x-sdk-platform': 'client',
102
102
  'x-sdk-language': 'reactnative',
103
- 'x-sdk-version': '0.17.1',
103
+ 'x-sdk-version': '0.19.0',
104
104
  'X-Appwrite-Response-Format': '1.8.0',
105
105
  };
106
106
  this.realtime = {
@@ -569,22 +569,27 @@ class Account extends Service {
569
569
  'content-type': 'application/json',
570
570
  }, payload);
571
571
  }
572
- listIdentities(paramsOrFirst) {
572
+ listIdentities(paramsOrFirst, ...rest) {
573
573
  let params;
574
574
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
575
575
  params = (paramsOrFirst || {});
576
576
  }
577
577
  else {
578
578
  params = {
579
- queries: paramsOrFirst
579
+ queries: paramsOrFirst,
580
+ total: rest[0]
580
581
  };
581
582
  }
582
583
  const queries = params.queries;
584
+ const total = params.total;
583
585
  const apiPath = '/account/identities';
584
586
  const payload = {};
585
587
  if (typeof queries !== 'undefined') {
586
588
  payload['queries'] = queries;
587
589
  }
590
+ if (typeof total !== 'undefined') {
591
+ payload['total'] = total;
592
+ }
588
593
  const uri = new URL(this.client.config.endpoint + apiPath);
589
594
  return this.client.call('get', uri, {}, payload);
590
595
  }
@@ -623,22 +628,27 @@ class Account extends Service {
623
628
  'content-type': 'application/json',
624
629
  }, payload);
625
630
  }
626
- listLogs(paramsOrFirst) {
631
+ listLogs(paramsOrFirst, ...rest) {
627
632
  let params;
628
633
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
629
634
  params = (paramsOrFirst || {});
630
635
  }
631
636
  else {
632
637
  params = {
633
- queries: paramsOrFirst
638
+ queries: paramsOrFirst,
639
+ total: rest[0]
634
640
  };
635
641
  }
636
642
  const queries = params.queries;
643
+ const total = params.total;
637
644
  const apiPath = '/account/logs';
638
645
  const payload = {};
639
646
  if (typeof queries !== 'undefined') {
640
647
  payload['queries'] = queries;
641
648
  }
649
+ if (typeof total !== 'undefined') {
650
+ payload['total'] = total;
651
+ }
642
652
  const uri = new URL(this.client.config.endpoint + apiPath);
643
653
  return this.client.call('get', uri, {}, payload);
644
654
  }
@@ -822,7 +832,7 @@ class Account extends Service {
822
832
  if (typeof factor === 'undefined') {
823
833
  throw new AppwriteException('Missing required parameter: "factor"');
824
834
  }
825
- const apiPath = '/account/mfa/challenge';
835
+ const apiPath = '/account/mfa/challenges';
826
836
  const payload = {};
827
837
  if (typeof factor !== 'undefined') {
828
838
  payload['factor'] = factor;
@@ -846,7 +856,7 @@ class Account extends Service {
846
856
  if (typeof factor === 'undefined') {
847
857
  throw new AppwriteException('Missing required parameter: "factor"');
848
858
  }
849
- const apiPath = '/account/mfa/challenge';
859
+ const apiPath = '/account/mfa/challenges';
850
860
  const payload = {};
851
861
  if (typeof factor !== 'undefined') {
852
862
  payload['factor'] = factor;
@@ -875,7 +885,7 @@ class Account extends Service {
875
885
  if (typeof otp === 'undefined') {
876
886
  throw new AppwriteException('Missing required parameter: "otp"');
877
887
  }
878
- const apiPath = '/account/mfa/challenge';
888
+ const apiPath = '/account/mfa/challenges';
879
889
  const payload = {};
880
890
  if (typeof challengeId !== 'undefined') {
881
891
  payload['challengeId'] = challengeId;
@@ -907,7 +917,7 @@ class Account extends Service {
907
917
  if (typeof otp === 'undefined') {
908
918
  throw new AppwriteException('Missing required parameter: "otp"');
909
919
  }
910
- const apiPath = '/account/mfa/challenge';
920
+ const apiPath = '/account/mfa/challenges';
911
921
  const payload = {};
912
922
  if (typeof challengeId !== 'undefined') {
913
923
  payload['challengeId'] = challengeId;
@@ -2157,6 +2167,127 @@ class Avatars extends Service {
2157
2167
  }
2158
2168
  return this.client.call('get', uri, {}, payload, 'arrayBuffer');
2159
2169
  }
2170
+ getScreenshot(paramsOrFirst, ...rest) {
2171
+ let params;
2172
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2173
+ params = (paramsOrFirst || {});
2174
+ }
2175
+ else {
2176
+ params = {
2177
+ url: paramsOrFirst,
2178
+ headers: rest[0],
2179
+ viewportWidth: rest[1],
2180
+ viewportHeight: rest[2],
2181
+ scale: rest[3],
2182
+ theme: rest[4],
2183
+ userAgent: rest[5],
2184
+ fullpage: rest[6],
2185
+ locale: rest[7],
2186
+ timezone: rest[8],
2187
+ latitude: rest[9],
2188
+ longitude: rest[10],
2189
+ accuracy: rest[11],
2190
+ touch: rest[12],
2191
+ permissions: rest[13],
2192
+ sleep: rest[14],
2193
+ width: rest[15],
2194
+ height: rest[16],
2195
+ quality: rest[17],
2196
+ output: rest[18]
2197
+ };
2198
+ }
2199
+ const url = params.url;
2200
+ const headers = params.headers;
2201
+ const viewportWidth = params.viewportWidth;
2202
+ const viewportHeight = params.viewportHeight;
2203
+ const scale = params.scale;
2204
+ const theme = params.theme;
2205
+ const userAgent = params.userAgent;
2206
+ const fullpage = params.fullpage;
2207
+ const locale = params.locale;
2208
+ const timezone = params.timezone;
2209
+ const latitude = params.latitude;
2210
+ const longitude = params.longitude;
2211
+ const accuracy = params.accuracy;
2212
+ const touch = params.touch;
2213
+ const permissions = params.permissions;
2214
+ const sleep = params.sleep;
2215
+ const width = params.width;
2216
+ const height = params.height;
2217
+ const quality = params.quality;
2218
+ const output = params.output;
2219
+ if (typeof url === 'undefined') {
2220
+ throw new AppwriteException('Missing required parameter: "url"');
2221
+ }
2222
+ const apiPath = '/avatars/screenshots';
2223
+ const payload = {};
2224
+ if (typeof url !== 'undefined') {
2225
+ payload['url'] = url;
2226
+ }
2227
+ if (typeof headers !== 'undefined') {
2228
+ payload['headers'] = headers;
2229
+ }
2230
+ if (typeof viewportWidth !== 'undefined') {
2231
+ payload['viewportWidth'] = viewportWidth;
2232
+ }
2233
+ if (typeof viewportHeight !== 'undefined') {
2234
+ payload['viewportHeight'] = viewportHeight;
2235
+ }
2236
+ if (typeof scale !== 'undefined') {
2237
+ payload['scale'] = scale;
2238
+ }
2239
+ if (typeof theme !== 'undefined') {
2240
+ payload['theme'] = theme;
2241
+ }
2242
+ if (typeof userAgent !== 'undefined') {
2243
+ payload['userAgent'] = userAgent;
2244
+ }
2245
+ if (typeof fullpage !== 'undefined') {
2246
+ payload['fullpage'] = fullpage;
2247
+ }
2248
+ if (typeof locale !== 'undefined') {
2249
+ payload['locale'] = locale;
2250
+ }
2251
+ if (typeof timezone !== 'undefined') {
2252
+ payload['timezone'] = timezone;
2253
+ }
2254
+ if (typeof latitude !== 'undefined') {
2255
+ payload['latitude'] = latitude;
2256
+ }
2257
+ if (typeof longitude !== 'undefined') {
2258
+ payload['longitude'] = longitude;
2259
+ }
2260
+ if (typeof accuracy !== 'undefined') {
2261
+ payload['accuracy'] = accuracy;
2262
+ }
2263
+ if (typeof touch !== 'undefined') {
2264
+ payload['touch'] = touch;
2265
+ }
2266
+ if (typeof permissions !== 'undefined') {
2267
+ payload['permissions'] = permissions;
2268
+ }
2269
+ if (typeof sleep !== 'undefined') {
2270
+ payload['sleep'] = sleep;
2271
+ }
2272
+ if (typeof width !== 'undefined') {
2273
+ payload['width'] = width;
2274
+ }
2275
+ if (typeof height !== 'undefined') {
2276
+ payload['height'] = height;
2277
+ }
2278
+ if (typeof quality !== 'undefined') {
2279
+ payload['quality'] = quality;
2280
+ }
2281
+ if (typeof output !== 'undefined') {
2282
+ payload['output'] = output;
2283
+ }
2284
+ const uri = new URL(this.client.config.endpoint + apiPath);
2285
+ payload['project'] = this.client.config.project;
2286
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
2287
+ uri.searchParams.append(key, value);
2288
+ }
2289
+ return this.client.call('get', uri, {}, payload, 'arrayBuffer');
2290
+ }
2160
2291
  /**
2161
2292
  * You can use this endpoint to show different browser icons to your users.
2162
2293
  * The code argument receives the browser code as it appears in your user [GET
@@ -2412,6 +2543,111 @@ class Avatars extends Service {
2412
2543
  }
2413
2544
  return uri;
2414
2545
  }
2546
+ /**
2547
+ * Use this endpoint to capture a screenshot of any website URL. This endpoint
2548
+ * uses a headless browser to render the webpage and capture it as an image.
2549
+ *
2550
+ * You can configure the browser viewport size, theme, user agent,
2551
+ * geolocation, permissions, and more. Capture either just the viewport or the
2552
+ * full page scroll.
2553
+ *
2554
+ * When width and height are specified, the image is resized accordingly. If
2555
+ * both dimensions are 0, the API provides an image at original size. If
2556
+ * dimensions are not specified, the default viewport size is 1280x720px.
2557
+ *
2558
+ * @param {string} url
2559
+ * @param {object} headers
2560
+ * @param {number} viewportWidth
2561
+ * @param {number} viewportHeight
2562
+ * @param {number} scale
2563
+ * @param {Theme} theme
2564
+ * @param {string} userAgent
2565
+ * @param {boolean} fullpage
2566
+ * @param {string} locale
2567
+ * @param {Timezone} timezone
2568
+ * @param {number} latitude
2569
+ * @param {number} longitude
2570
+ * @param {number} accuracy
2571
+ * @param {boolean} touch
2572
+ * @param {string[]} permissions
2573
+ * @param {number} sleep
2574
+ * @param {number} width
2575
+ * @param {number} height
2576
+ * @param {number} quality
2577
+ * @param {Output} output
2578
+ * @throws {AppwriteException}
2579
+ * @returns {URL}
2580
+ */
2581
+ getScreenshotURL(url, headers, viewportWidth, viewportHeight, scale, theme, userAgent, fullpage, locale, timezone, latitude, longitude, accuracy, touch, permissions, sleep, width, height, quality, output) {
2582
+ const apiPath = '/avatars/screenshots';
2583
+ const payload = {};
2584
+ if (typeof url !== 'undefined') {
2585
+ payload['url'] = url;
2586
+ }
2587
+ if (typeof headers !== 'undefined') {
2588
+ payload['headers'] = headers;
2589
+ }
2590
+ if (typeof viewportWidth !== 'undefined') {
2591
+ payload['viewportWidth'] = viewportWidth;
2592
+ }
2593
+ if (typeof viewportHeight !== 'undefined') {
2594
+ payload['viewportHeight'] = viewportHeight;
2595
+ }
2596
+ if (typeof scale !== 'undefined') {
2597
+ payload['scale'] = scale;
2598
+ }
2599
+ if (typeof theme !== 'undefined') {
2600
+ payload['theme'] = theme;
2601
+ }
2602
+ if (typeof userAgent !== 'undefined') {
2603
+ payload['userAgent'] = userAgent;
2604
+ }
2605
+ if (typeof fullpage !== 'undefined') {
2606
+ payload['fullpage'] = fullpage;
2607
+ }
2608
+ if (typeof locale !== 'undefined') {
2609
+ payload['locale'] = locale;
2610
+ }
2611
+ if (typeof timezone !== 'undefined') {
2612
+ payload['timezone'] = timezone;
2613
+ }
2614
+ if (typeof latitude !== 'undefined') {
2615
+ payload['latitude'] = latitude;
2616
+ }
2617
+ if (typeof longitude !== 'undefined') {
2618
+ payload['longitude'] = longitude;
2619
+ }
2620
+ if (typeof accuracy !== 'undefined') {
2621
+ payload['accuracy'] = accuracy;
2622
+ }
2623
+ if (typeof touch !== 'undefined') {
2624
+ payload['touch'] = touch;
2625
+ }
2626
+ if (typeof permissions !== 'undefined') {
2627
+ payload['permissions'] = permissions;
2628
+ }
2629
+ if (typeof sleep !== 'undefined') {
2630
+ payload['sleep'] = sleep;
2631
+ }
2632
+ if (typeof width !== 'undefined') {
2633
+ payload['width'] = width;
2634
+ }
2635
+ if (typeof height !== 'undefined') {
2636
+ payload['height'] = height;
2637
+ }
2638
+ if (typeof quality !== 'undefined') {
2639
+ payload['quality'] = quality;
2640
+ }
2641
+ if (typeof output !== 'undefined') {
2642
+ payload['output'] = output;
2643
+ }
2644
+ const uri = new URL(this.client.config.endpoint + apiPath);
2645
+ payload['project'] = this.client.config.project;
2646
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
2647
+ uri.searchParams.append(key, value);
2648
+ }
2649
+ return uri;
2650
+ }
2415
2651
  }
2416
2652
 
2417
2653
  class Databases extends Service {
@@ -2565,13 +2801,15 @@ class Databases extends Service {
2565
2801
  databaseId: paramsOrFirst,
2566
2802
  collectionId: rest[0],
2567
2803
  queries: rest[1],
2568
- transactionId: rest[2]
2804
+ transactionId: rest[2],
2805
+ total: rest[3]
2569
2806
  };
2570
2807
  }
2571
2808
  const databaseId = params.databaseId;
2572
2809
  const collectionId = params.collectionId;
2573
2810
  const queries = params.queries;
2574
2811
  const transactionId = params.transactionId;
2812
+ const total = params.total;
2575
2813
  if (typeof databaseId === 'undefined') {
2576
2814
  throw new AppwriteException('Missing required parameter: "databaseId"');
2577
2815
  }
@@ -2586,6 +2824,9 @@ class Databases extends Service {
2586
2824
  if (typeof transactionId !== 'undefined') {
2587
2825
  payload['transactionId'] = transactionId;
2588
2826
  }
2827
+ if (typeof total !== 'undefined') {
2828
+ payload['total'] = total;
2829
+ }
2589
2830
  const uri = new URL(this.client.config.endpoint + apiPath);
2590
2831
  return this.client.call('get', uri, {}, payload);
2591
2832
  }
@@ -2927,11 +3168,13 @@ class Functions extends Service {
2927
3168
  else {
2928
3169
  params = {
2929
3170
  functionId: paramsOrFirst,
2930
- queries: rest[0]
3171
+ queries: rest[0],
3172
+ total: rest[1]
2931
3173
  };
2932
3174
  }
2933
3175
  const functionId = params.functionId;
2934
3176
  const queries = params.queries;
3177
+ const total = params.total;
2935
3178
  if (typeof functionId === 'undefined') {
2936
3179
  throw new AppwriteException('Missing required parameter: "functionId"');
2937
3180
  }
@@ -2940,6 +3183,9 @@ class Functions extends Service {
2940
3183
  if (typeof queries !== 'undefined') {
2941
3184
  payload['queries'] = queries;
2942
3185
  }
3186
+ if (typeof total !== 'undefined') {
3187
+ payload['total'] = total;
3188
+ }
2943
3189
  const uri = new URL(this.client.config.endpoint + apiPath);
2944
3190
  return this.client.call('get', uri, {}, payload);
2945
3191
  }
@@ -3262,12 +3508,14 @@ class Storage extends Service {
3262
3508
  params = {
3263
3509
  bucketId: paramsOrFirst,
3264
3510
  queries: rest[0],
3265
- search: rest[1]
3511
+ search: rest[1],
3512
+ total: rest[2]
3266
3513
  };
3267
3514
  }
3268
3515
  const bucketId = params.bucketId;
3269
3516
  const queries = params.queries;
3270
3517
  const search = params.search;
3518
+ const total = params.total;
3271
3519
  if (typeof bucketId === 'undefined') {
3272
3520
  throw new AppwriteException('Missing required parameter: "bucketId"');
3273
3521
  }
@@ -3279,6 +3527,9 @@ class Storage extends Service {
3279
3527
  if (typeof search !== 'undefined') {
3280
3528
  payload['search'] = search;
3281
3529
  }
3530
+ if (typeof total !== 'undefined') {
3531
+ payload['total'] = total;
3532
+ }
3282
3533
  const uri = new URL(this.client.config.endpoint + apiPath);
3283
3534
  return this.client.call('get', uri, {}, payload);
3284
3535
  }
@@ -3885,13 +4136,15 @@ class TablesDB extends Service {
3885
4136
  databaseId: paramsOrFirst,
3886
4137
  tableId: rest[0],
3887
4138
  queries: rest[1],
3888
- transactionId: rest[2]
4139
+ transactionId: rest[2],
4140
+ total: rest[3]
3889
4141
  };
3890
4142
  }
3891
4143
  const databaseId = params.databaseId;
3892
4144
  const tableId = params.tableId;
3893
4145
  const queries = params.queries;
3894
4146
  const transactionId = params.transactionId;
4147
+ const total = params.total;
3895
4148
  if (typeof databaseId === 'undefined') {
3896
4149
  throw new AppwriteException('Missing required parameter: "databaseId"');
3897
4150
  }
@@ -3906,6 +4159,9 @@ class TablesDB extends Service {
3906
4159
  if (typeof transactionId !== 'undefined') {
3907
4160
  payload['transactionId'] = transactionId;
3908
4161
  }
4162
+ if (typeof total !== 'undefined') {
4163
+ payload['total'] = total;
4164
+ }
3909
4165
  const uri = new URL(this.client.config.endpoint + apiPath);
3910
4166
  return this.client.call('get', uri, {}, payload);
3911
4167
  }
@@ -4244,11 +4500,13 @@ class Teams extends Service {
4244
4500
  else {
4245
4501
  params = {
4246
4502
  queries: paramsOrFirst,
4247
- search: rest[0]
4503
+ search: rest[0],
4504
+ total: rest[1]
4248
4505
  };
4249
4506
  }
4250
4507
  const queries = params.queries;
4251
4508
  const search = params.search;
4509
+ const total = params.total;
4252
4510
  const apiPath = '/teams';
4253
4511
  const payload = {};
4254
4512
  if (typeof queries !== 'undefined') {
@@ -4257,6 +4515,9 @@ class Teams extends Service {
4257
4515
  if (typeof search !== 'undefined') {
4258
4516
  payload['search'] = search;
4259
4517
  }
4518
+ if (typeof total !== 'undefined') {
4519
+ payload['total'] = total;
4520
+ }
4260
4521
  const uri = new URL(this.client.config.endpoint + apiPath);
4261
4522
  return this.client.call('get', uri, {}, payload);
4262
4523
  }
@@ -4375,12 +4636,14 @@ class Teams extends Service {
4375
4636
  params = {
4376
4637
  teamId: paramsOrFirst,
4377
4638
  queries: rest[0],
4378
- search: rest[1]
4639
+ search: rest[1],
4640
+ total: rest[2]
4379
4641
  };
4380
4642
  }
4381
4643
  const teamId = params.teamId;
4382
4644
  const queries = params.queries;
4383
4645
  const search = params.search;
4646
+ const total = params.total;
4384
4647
  if (typeof teamId === 'undefined') {
4385
4648
  throw new AppwriteException('Missing required parameter: "teamId"');
4386
4649
  }
@@ -4392,6 +4655,9 @@ class Teams extends Service {
4392
4655
  if (typeof search !== 'undefined') {
4393
4656
  payload['search'] = search;
4394
4657
  }
4658
+ if (typeof total !== 'undefined') {
4659
+ payload['total'] = total;
4660
+ }
4395
4661
  const uri = new URL(this.client.config.endpoint + apiPath);
4396
4662
  return this.client.call('get', uri, {}, payload);
4397
4663
  }
@@ -4722,14 +4988,14 @@ Query.notEndsWith = (attribute, value) => new Query("notEndsWith", attribute, va
4722
4988
  * @param {string} value
4723
4989
  * @returns {string}
4724
4990
  */
4725
- Query.createdBefore = (value) => new Query("createdBefore", undefined, value).toString();
4991
+ Query.createdBefore = (value) => Query.lessThan("$createdAt", value);
4726
4992
  /**
4727
4993
  * Filter resources where document was created after date.
4728
4994
  *
4729
4995
  * @param {string} value
4730
4996
  * @returns {string}
4731
4997
  */
4732
- Query.createdAfter = (value) => new Query("createdAfter", undefined, value).toString();
4998
+ Query.createdAfter = (value) => Query.greaterThan("$createdAt", value);
4733
4999
  /**
4734
5000
  * Filter resources where document was created between dates.
4735
5001
  *
@@ -4737,21 +5003,21 @@ Query.createdAfter = (value) => new Query("createdAfter", undefined, value).toSt
4737
5003
  * @param {string} end
4738
5004
  * @returns {string}
4739
5005
  */
4740
- Query.createdBetween = (start, end) => new Query("createdBetween", undefined, [start, end]).toString();
5006
+ Query.createdBetween = (start, end) => Query.between("$createdAt", start, end);
4741
5007
  /**
4742
5008
  * Filter resources where document was updated before date.
4743
5009
  *
4744
5010
  * @param {string} value
4745
5011
  * @returns {string}
4746
5012
  */
4747
- Query.updatedBefore = (value) => new Query("updatedBefore", undefined, value).toString();
5013
+ Query.updatedBefore = (value) => Query.lessThan("$updatedAt", value);
4748
5014
  /**
4749
5015
  * Filter resources where document was updated after date.
4750
5016
  *
4751
5017
  * @param {string} value
4752
5018
  * @returns {string}
4753
5019
  */
4754
- Query.updatedAfter = (value) => new Query("updatedAfter", undefined, value).toString();
5020
+ Query.updatedAfter = (value) => Query.greaterThan("$updatedAt", value);
4755
5021
  /**
4756
5022
  * Filter resources where document was updated between dates.
4757
5023
  *
@@ -4759,7 +5025,7 @@ Query.updatedAfter = (value) => new Query("updatedAfter", undefined, value).toSt
4759
5025
  * @param {string} end
4760
5026
  * @returns {string}
4761
5027
  */
4762
- Query.updatedBetween = (start, end) => new Query("updatedBetween", undefined, [start, end]).toString();
5028
+ Query.updatedBetween = (start, end) => Query.between("$updatedAt", start, end);
4763
5029
  Query.or = (queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
4764
5030
  Query.and = (queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
4765
5031
  /**
@@ -5004,6 +5270,271 @@ _a = ID, _ID_hexTimestamp = function _ID_hexTimestamp() {
5004
5270
  return hexTimestamp;
5005
5271
  };
5006
5272
 
5273
+ exports.Condition = void 0;
5274
+ (function (Condition) {
5275
+ Condition["Equal"] = "equal";
5276
+ Condition["NotEqual"] = "notEqual";
5277
+ Condition["GreaterThan"] = "greaterThan";
5278
+ Condition["GreaterThanEqual"] = "greaterThanEqual";
5279
+ Condition["LessThan"] = "lessThan";
5280
+ Condition["LessThanEqual"] = "lessThanEqual";
5281
+ Condition["Contains"] = "contains";
5282
+ Condition["IsNull"] = "isNull";
5283
+ Condition["IsNotNull"] = "isNotNull";
5284
+ })(exports.Condition || (exports.Condition = {}));
5285
+ /**
5286
+ * Helper class to generate operator strings for atomic operations.
5287
+ */
5288
+ class Operator {
5289
+ /**
5290
+ * Constructor for Operator class.
5291
+ *
5292
+ * @param {string} method
5293
+ * @param {OperatorValues} values
5294
+ */
5295
+ constructor(method, values) {
5296
+ this.method = method;
5297
+ if (values !== undefined) {
5298
+ if (Array.isArray(values)) {
5299
+ this.values = values;
5300
+ }
5301
+ else {
5302
+ this.values = [values];
5303
+ }
5304
+ }
5305
+ }
5306
+ /**
5307
+ * Convert the operator object to a JSON string.
5308
+ *
5309
+ * @returns {string}
5310
+ */
5311
+ toString() {
5312
+ return JSON.stringify({
5313
+ method: this.method,
5314
+ values: this.values,
5315
+ });
5316
+ }
5317
+ }
5318
+ /**
5319
+ * Increment a numeric attribute by a specified value.
5320
+ *
5321
+ * @param {number} value
5322
+ * @param {number} max
5323
+ * @returns {string}
5324
+ */
5325
+ Operator.increment = (value = 1, max) => {
5326
+ if (isNaN(value) || !isFinite(value)) {
5327
+ throw new Error("Value cannot be NaN or Infinity");
5328
+ }
5329
+ if (max !== undefined && (isNaN(max) || !isFinite(max))) {
5330
+ throw new Error("Max cannot be NaN or Infinity");
5331
+ }
5332
+ const values = [value];
5333
+ if (max !== undefined) {
5334
+ values.push(max);
5335
+ }
5336
+ return new Operator("increment", values).toString();
5337
+ };
5338
+ /**
5339
+ * Decrement a numeric attribute by a specified value.
5340
+ *
5341
+ * @param {number} value
5342
+ * @param {number} min
5343
+ * @returns {string}
5344
+ */
5345
+ Operator.decrement = (value = 1, min) => {
5346
+ if (isNaN(value) || !isFinite(value)) {
5347
+ throw new Error("Value cannot be NaN or Infinity");
5348
+ }
5349
+ if (min !== undefined && (isNaN(min) || !isFinite(min))) {
5350
+ throw new Error("Min cannot be NaN or Infinity");
5351
+ }
5352
+ const values = [value];
5353
+ if (min !== undefined) {
5354
+ values.push(min);
5355
+ }
5356
+ return new Operator("decrement", values).toString();
5357
+ };
5358
+ /**
5359
+ * Multiply a numeric attribute by a specified factor.
5360
+ *
5361
+ * @param {number} factor
5362
+ * @param {number} max
5363
+ * @returns {string}
5364
+ */
5365
+ Operator.multiply = (factor, max) => {
5366
+ if (isNaN(factor) || !isFinite(factor)) {
5367
+ throw new Error("Factor cannot be NaN or Infinity");
5368
+ }
5369
+ if (max !== undefined && (isNaN(max) || !isFinite(max))) {
5370
+ throw new Error("Max cannot be NaN or Infinity");
5371
+ }
5372
+ const values = [factor];
5373
+ if (max !== undefined) {
5374
+ values.push(max);
5375
+ }
5376
+ return new Operator("multiply", values).toString();
5377
+ };
5378
+ /**
5379
+ * Divide a numeric attribute by a specified divisor.
5380
+ *
5381
+ * @param {number} divisor
5382
+ * @param {number} min
5383
+ * @returns {string}
5384
+ */
5385
+ Operator.divide = (divisor, min) => {
5386
+ if (isNaN(divisor) || !isFinite(divisor)) {
5387
+ throw new Error("Divisor cannot be NaN or Infinity");
5388
+ }
5389
+ if (min !== undefined && (isNaN(min) || !isFinite(min))) {
5390
+ throw new Error("Min cannot be NaN or Infinity");
5391
+ }
5392
+ if (divisor === 0) {
5393
+ throw new Error("Divisor cannot be zero");
5394
+ }
5395
+ const values = [divisor];
5396
+ if (min !== undefined) {
5397
+ values.push(min);
5398
+ }
5399
+ return new Operator("divide", values).toString();
5400
+ };
5401
+ /**
5402
+ * Apply modulo operation on a numeric attribute.
5403
+ *
5404
+ * @param {number} divisor
5405
+ * @returns {string}
5406
+ */
5407
+ Operator.modulo = (divisor) => {
5408
+ if (isNaN(divisor) || !isFinite(divisor)) {
5409
+ throw new Error("Divisor cannot be NaN or Infinity");
5410
+ }
5411
+ if (divisor === 0) {
5412
+ throw new Error("Divisor cannot be zero");
5413
+ }
5414
+ return new Operator("modulo", [divisor]).toString();
5415
+ };
5416
+ /**
5417
+ * Raise a numeric attribute to a specified power.
5418
+ *
5419
+ * @param {number} exponent
5420
+ * @param {number} max
5421
+ * @returns {string}
5422
+ */
5423
+ Operator.power = (exponent, max) => {
5424
+ if (isNaN(exponent) || !isFinite(exponent)) {
5425
+ throw new Error("Exponent cannot be NaN or Infinity");
5426
+ }
5427
+ if (max !== undefined && (isNaN(max) || !isFinite(max))) {
5428
+ throw new Error("Max cannot be NaN or Infinity");
5429
+ }
5430
+ const values = [exponent];
5431
+ if (max !== undefined) {
5432
+ values.push(max);
5433
+ }
5434
+ return new Operator("power", values).toString();
5435
+ };
5436
+ /**
5437
+ * Append values to an array attribute.
5438
+ *
5439
+ * @param {any[]} values
5440
+ * @returns {string}
5441
+ */
5442
+ Operator.arrayAppend = (values) => new Operator("arrayAppend", values).toString();
5443
+ /**
5444
+ * Prepend values to an array attribute.
5445
+ *
5446
+ * @param {any[]} values
5447
+ * @returns {string}
5448
+ */
5449
+ Operator.arrayPrepend = (values) => new Operator("arrayPrepend", values).toString();
5450
+ /**
5451
+ * Insert a value at a specific index in an array attribute.
5452
+ *
5453
+ * @param {number} index
5454
+ * @param {any} value
5455
+ * @returns {string}
5456
+ */
5457
+ Operator.arrayInsert = (index, value) => new Operator("arrayInsert", [index, value]).toString();
5458
+ /**
5459
+ * Remove a value from an array attribute.
5460
+ *
5461
+ * @param {any} value
5462
+ * @returns {string}
5463
+ */
5464
+ Operator.arrayRemove = (value) => new Operator("arrayRemove", [value]).toString();
5465
+ /**
5466
+ * Remove duplicate values from an array attribute.
5467
+ *
5468
+ * @returns {string}
5469
+ */
5470
+ Operator.arrayUnique = () => new Operator("arrayUnique", []).toString();
5471
+ /**
5472
+ * Keep only values that exist in both the current array and the provided array.
5473
+ *
5474
+ * @param {any[]} values
5475
+ * @returns {string}
5476
+ */
5477
+ Operator.arrayIntersect = (values) => new Operator("arrayIntersect", values).toString();
5478
+ /**
5479
+ * Remove values from the array that exist in the provided array.
5480
+ *
5481
+ * @param {any[]} values
5482
+ * @returns {string}
5483
+ */
5484
+ Operator.arrayDiff = (values) => new Operator("arrayDiff", values).toString();
5485
+ /**
5486
+ * Filter array values based on a condition.
5487
+ *
5488
+ * @param {Condition} condition
5489
+ * @param {any} value
5490
+ * @returns {string}
5491
+ */
5492
+ Operator.arrayFilter = (condition, value) => {
5493
+ const values = [condition, value === undefined ? null : value];
5494
+ return new Operator("arrayFilter", values).toString();
5495
+ };
5496
+ /**
5497
+ * Concatenate a value to a string or array attribute.
5498
+ *
5499
+ * @param {any} value
5500
+ * @returns {string}
5501
+ */
5502
+ Operator.stringConcat = (value) => new Operator("stringConcat", [value]).toString();
5503
+ /**
5504
+ * Replace occurrences of a search string with a replacement string.
5505
+ *
5506
+ * @param {string} search
5507
+ * @param {string} replace
5508
+ * @returns {string}
5509
+ */
5510
+ Operator.stringReplace = (search, replace) => new Operator("stringReplace", [search, replace]).toString();
5511
+ /**
5512
+ * Toggle a boolean attribute.
5513
+ *
5514
+ * @returns {string}
5515
+ */
5516
+ Operator.toggle = () => new Operator("toggle", []).toString();
5517
+ /**
5518
+ * Add days to a date attribute.
5519
+ *
5520
+ * @param {number} days
5521
+ * @returns {string}
5522
+ */
5523
+ Operator.dateAddDays = (days) => new Operator("dateAddDays", [days]).toString();
5524
+ /**
5525
+ * Subtract days from a date attribute.
5526
+ *
5527
+ * @param {number} days
5528
+ * @returns {string}
5529
+ */
5530
+ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
5531
+ /**
5532
+ * Set a date attribute to the current date and time.
5533
+ *
5534
+ * @returns {string}
5535
+ */
5536
+ Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
5537
+
5007
5538
  exports.AuthenticatorType = void 0;
5008
5539
  (function (AuthenticatorType) {
5009
5540
  AuthenticatorType["Totp"] = "totp";
@@ -5299,6 +5830,446 @@ exports.Flag = void 0;
5299
5830
  Flag["Zimbabwe"] = "zw";
5300
5831
  })(exports.Flag || (exports.Flag = {}));
5301
5832
 
5833
+ exports.Theme = void 0;
5834
+ (function (Theme) {
5835
+ Theme["Light"] = "light";
5836
+ Theme["Dark"] = "dark";
5837
+ })(exports.Theme || (exports.Theme = {}));
5838
+
5839
+ exports.Timezone = void 0;
5840
+ (function (Timezone) {
5841
+ Timezone["AfricaAbidjan"] = "africa/abidjan";
5842
+ Timezone["AfricaAccra"] = "africa/accra";
5843
+ Timezone["AfricaAddisAbaba"] = "africa/addis_ababa";
5844
+ Timezone["AfricaAlgiers"] = "africa/algiers";
5845
+ Timezone["AfricaAsmara"] = "africa/asmara";
5846
+ Timezone["AfricaBamako"] = "africa/bamako";
5847
+ Timezone["AfricaBangui"] = "africa/bangui";
5848
+ Timezone["AfricaBanjul"] = "africa/banjul";
5849
+ Timezone["AfricaBissau"] = "africa/bissau";
5850
+ Timezone["AfricaBlantyre"] = "africa/blantyre";
5851
+ Timezone["AfricaBrazzaville"] = "africa/brazzaville";
5852
+ Timezone["AfricaBujumbura"] = "africa/bujumbura";
5853
+ Timezone["AfricaCairo"] = "africa/cairo";
5854
+ Timezone["AfricaCasablanca"] = "africa/casablanca";
5855
+ Timezone["AfricaCeuta"] = "africa/ceuta";
5856
+ Timezone["AfricaConakry"] = "africa/conakry";
5857
+ Timezone["AfricaDakar"] = "africa/dakar";
5858
+ Timezone["AfricaDarEsSalaam"] = "africa/dar_es_salaam";
5859
+ Timezone["AfricaDjibouti"] = "africa/djibouti";
5860
+ Timezone["AfricaDouala"] = "africa/douala";
5861
+ Timezone["AfricaElAaiun"] = "africa/el_aaiun";
5862
+ Timezone["AfricaFreetown"] = "africa/freetown";
5863
+ Timezone["AfricaGaborone"] = "africa/gaborone";
5864
+ Timezone["AfricaHarare"] = "africa/harare";
5865
+ Timezone["AfricaJohannesburg"] = "africa/johannesburg";
5866
+ Timezone["AfricaJuba"] = "africa/juba";
5867
+ Timezone["AfricaKampala"] = "africa/kampala";
5868
+ Timezone["AfricaKhartoum"] = "africa/khartoum";
5869
+ Timezone["AfricaKigali"] = "africa/kigali";
5870
+ Timezone["AfricaKinshasa"] = "africa/kinshasa";
5871
+ Timezone["AfricaLagos"] = "africa/lagos";
5872
+ Timezone["AfricaLibreville"] = "africa/libreville";
5873
+ Timezone["AfricaLome"] = "africa/lome";
5874
+ Timezone["AfricaLuanda"] = "africa/luanda";
5875
+ Timezone["AfricaLubumbashi"] = "africa/lubumbashi";
5876
+ Timezone["AfricaLusaka"] = "africa/lusaka";
5877
+ Timezone["AfricaMalabo"] = "africa/malabo";
5878
+ Timezone["AfricaMaputo"] = "africa/maputo";
5879
+ Timezone["AfricaMaseru"] = "africa/maseru";
5880
+ Timezone["AfricaMbabane"] = "africa/mbabane";
5881
+ Timezone["AfricaMogadishu"] = "africa/mogadishu";
5882
+ Timezone["AfricaMonrovia"] = "africa/monrovia";
5883
+ Timezone["AfricaNairobi"] = "africa/nairobi";
5884
+ Timezone["AfricaNdjamena"] = "africa/ndjamena";
5885
+ Timezone["AfricaNiamey"] = "africa/niamey";
5886
+ Timezone["AfricaNouakchott"] = "africa/nouakchott";
5887
+ Timezone["AfricaOuagadougou"] = "africa/ouagadougou";
5888
+ Timezone["AfricaPortoNovo"] = "africa/porto-novo";
5889
+ Timezone["AfricaSaoTome"] = "africa/sao_tome";
5890
+ Timezone["AfricaTripoli"] = "africa/tripoli";
5891
+ Timezone["AfricaTunis"] = "africa/tunis";
5892
+ Timezone["AfricaWindhoek"] = "africa/windhoek";
5893
+ Timezone["AmericaAdak"] = "america/adak";
5894
+ Timezone["AmericaAnchorage"] = "america/anchorage";
5895
+ Timezone["AmericaAnguilla"] = "america/anguilla";
5896
+ Timezone["AmericaAntigua"] = "america/antigua";
5897
+ Timezone["AmericaAraguaina"] = "america/araguaina";
5898
+ Timezone["AmericaArgentinaBuenosAires"] = "america/argentina/buenos_aires";
5899
+ Timezone["AmericaArgentinaCatamarca"] = "america/argentina/catamarca";
5900
+ Timezone["AmericaArgentinaCordoba"] = "america/argentina/cordoba";
5901
+ Timezone["AmericaArgentinaJujuy"] = "america/argentina/jujuy";
5902
+ Timezone["AmericaArgentinaLaRioja"] = "america/argentina/la_rioja";
5903
+ Timezone["AmericaArgentinaMendoza"] = "america/argentina/mendoza";
5904
+ Timezone["AmericaArgentinaRioGallegos"] = "america/argentina/rio_gallegos";
5905
+ Timezone["AmericaArgentinaSalta"] = "america/argentina/salta";
5906
+ Timezone["AmericaArgentinaSanJuan"] = "america/argentina/san_juan";
5907
+ Timezone["AmericaArgentinaSanLuis"] = "america/argentina/san_luis";
5908
+ Timezone["AmericaArgentinaTucuman"] = "america/argentina/tucuman";
5909
+ Timezone["AmericaArgentinaUshuaia"] = "america/argentina/ushuaia";
5910
+ Timezone["AmericaAruba"] = "america/aruba";
5911
+ Timezone["AmericaAsuncion"] = "america/asuncion";
5912
+ Timezone["AmericaAtikokan"] = "america/atikokan";
5913
+ Timezone["AmericaBahia"] = "america/bahia";
5914
+ Timezone["AmericaBahiaBanderas"] = "america/bahia_banderas";
5915
+ Timezone["AmericaBarbados"] = "america/barbados";
5916
+ Timezone["AmericaBelem"] = "america/belem";
5917
+ Timezone["AmericaBelize"] = "america/belize";
5918
+ Timezone["AmericaBlancSablon"] = "america/blanc-sablon";
5919
+ Timezone["AmericaBoaVista"] = "america/boa_vista";
5920
+ Timezone["AmericaBogota"] = "america/bogota";
5921
+ Timezone["AmericaBoise"] = "america/boise";
5922
+ Timezone["AmericaCambridgeBay"] = "america/cambridge_bay";
5923
+ Timezone["AmericaCampoGrande"] = "america/campo_grande";
5924
+ Timezone["AmericaCancun"] = "america/cancun";
5925
+ Timezone["AmericaCaracas"] = "america/caracas";
5926
+ Timezone["AmericaCayenne"] = "america/cayenne";
5927
+ Timezone["AmericaCayman"] = "america/cayman";
5928
+ Timezone["AmericaChicago"] = "america/chicago";
5929
+ Timezone["AmericaChihuahua"] = "america/chihuahua";
5930
+ Timezone["AmericaCiudadJuarez"] = "america/ciudad_juarez";
5931
+ Timezone["AmericaCostaRica"] = "america/costa_rica";
5932
+ Timezone["AmericaCoyhaique"] = "america/coyhaique";
5933
+ Timezone["AmericaCreston"] = "america/creston";
5934
+ Timezone["AmericaCuiaba"] = "america/cuiaba";
5935
+ Timezone["AmericaCuracao"] = "america/curacao";
5936
+ Timezone["AmericaDanmarkshavn"] = "america/danmarkshavn";
5937
+ Timezone["AmericaDawson"] = "america/dawson";
5938
+ Timezone["AmericaDawsonCreek"] = "america/dawson_creek";
5939
+ Timezone["AmericaDenver"] = "america/denver";
5940
+ Timezone["AmericaDetroit"] = "america/detroit";
5941
+ Timezone["AmericaDominica"] = "america/dominica";
5942
+ Timezone["AmericaEdmonton"] = "america/edmonton";
5943
+ Timezone["AmericaEirunepe"] = "america/eirunepe";
5944
+ Timezone["AmericaElSalvador"] = "america/el_salvador";
5945
+ Timezone["AmericaFortNelson"] = "america/fort_nelson";
5946
+ Timezone["AmericaFortaleza"] = "america/fortaleza";
5947
+ Timezone["AmericaGlaceBay"] = "america/glace_bay";
5948
+ Timezone["AmericaGooseBay"] = "america/goose_bay";
5949
+ Timezone["AmericaGrandTurk"] = "america/grand_turk";
5950
+ Timezone["AmericaGrenada"] = "america/grenada";
5951
+ Timezone["AmericaGuadeloupe"] = "america/guadeloupe";
5952
+ Timezone["AmericaGuatemala"] = "america/guatemala";
5953
+ Timezone["AmericaGuayaquil"] = "america/guayaquil";
5954
+ Timezone["AmericaGuyana"] = "america/guyana";
5955
+ Timezone["AmericaHalifax"] = "america/halifax";
5956
+ Timezone["AmericaHavana"] = "america/havana";
5957
+ Timezone["AmericaHermosillo"] = "america/hermosillo";
5958
+ Timezone["AmericaIndianaIndianapolis"] = "america/indiana/indianapolis";
5959
+ Timezone["AmericaIndianaKnox"] = "america/indiana/knox";
5960
+ Timezone["AmericaIndianaMarengo"] = "america/indiana/marengo";
5961
+ Timezone["AmericaIndianaPetersburg"] = "america/indiana/petersburg";
5962
+ Timezone["AmericaIndianaTellCity"] = "america/indiana/tell_city";
5963
+ Timezone["AmericaIndianaVevay"] = "america/indiana/vevay";
5964
+ Timezone["AmericaIndianaVincennes"] = "america/indiana/vincennes";
5965
+ Timezone["AmericaIndianaWinamac"] = "america/indiana/winamac";
5966
+ Timezone["AmericaInuvik"] = "america/inuvik";
5967
+ Timezone["AmericaIqaluit"] = "america/iqaluit";
5968
+ Timezone["AmericaJamaica"] = "america/jamaica";
5969
+ Timezone["AmericaJuneau"] = "america/juneau";
5970
+ Timezone["AmericaKentuckyLouisville"] = "america/kentucky/louisville";
5971
+ Timezone["AmericaKentuckyMonticello"] = "america/kentucky/monticello";
5972
+ Timezone["AmericaKralendijk"] = "america/kralendijk";
5973
+ Timezone["AmericaLaPaz"] = "america/la_paz";
5974
+ Timezone["AmericaLima"] = "america/lima";
5975
+ Timezone["AmericaLosAngeles"] = "america/los_angeles";
5976
+ Timezone["AmericaLowerPrinces"] = "america/lower_princes";
5977
+ Timezone["AmericaMaceio"] = "america/maceio";
5978
+ Timezone["AmericaManagua"] = "america/managua";
5979
+ Timezone["AmericaManaus"] = "america/manaus";
5980
+ Timezone["AmericaMarigot"] = "america/marigot";
5981
+ Timezone["AmericaMartinique"] = "america/martinique";
5982
+ Timezone["AmericaMatamoros"] = "america/matamoros";
5983
+ Timezone["AmericaMazatlan"] = "america/mazatlan";
5984
+ Timezone["AmericaMenominee"] = "america/menominee";
5985
+ Timezone["AmericaMerida"] = "america/merida";
5986
+ Timezone["AmericaMetlakatla"] = "america/metlakatla";
5987
+ Timezone["AmericaMexicoCity"] = "america/mexico_city";
5988
+ Timezone["AmericaMiquelon"] = "america/miquelon";
5989
+ Timezone["AmericaMoncton"] = "america/moncton";
5990
+ Timezone["AmericaMonterrey"] = "america/monterrey";
5991
+ Timezone["AmericaMontevideo"] = "america/montevideo";
5992
+ Timezone["AmericaMontserrat"] = "america/montserrat";
5993
+ Timezone["AmericaNassau"] = "america/nassau";
5994
+ Timezone["AmericaNewYork"] = "america/new_york";
5995
+ Timezone["AmericaNome"] = "america/nome";
5996
+ Timezone["AmericaNoronha"] = "america/noronha";
5997
+ Timezone["AmericaNorthDakotaBeulah"] = "america/north_dakota/beulah";
5998
+ Timezone["AmericaNorthDakotaCenter"] = "america/north_dakota/center";
5999
+ Timezone["AmericaNorthDakotaNewSalem"] = "america/north_dakota/new_salem";
6000
+ Timezone["AmericaNuuk"] = "america/nuuk";
6001
+ Timezone["AmericaOjinaga"] = "america/ojinaga";
6002
+ Timezone["AmericaPanama"] = "america/panama";
6003
+ Timezone["AmericaParamaribo"] = "america/paramaribo";
6004
+ Timezone["AmericaPhoenix"] = "america/phoenix";
6005
+ Timezone["AmericaPortAuPrince"] = "america/port-au-prince";
6006
+ Timezone["AmericaPortOfSpain"] = "america/port_of_spain";
6007
+ Timezone["AmericaPortoVelho"] = "america/porto_velho";
6008
+ Timezone["AmericaPuertoRico"] = "america/puerto_rico";
6009
+ Timezone["AmericaPuntaArenas"] = "america/punta_arenas";
6010
+ Timezone["AmericaRankinInlet"] = "america/rankin_inlet";
6011
+ Timezone["AmericaRecife"] = "america/recife";
6012
+ Timezone["AmericaRegina"] = "america/regina";
6013
+ Timezone["AmericaResolute"] = "america/resolute";
6014
+ Timezone["AmericaRioBranco"] = "america/rio_branco";
6015
+ Timezone["AmericaSantarem"] = "america/santarem";
6016
+ Timezone["AmericaSantiago"] = "america/santiago";
6017
+ Timezone["AmericaSantoDomingo"] = "america/santo_domingo";
6018
+ Timezone["AmericaSaoPaulo"] = "america/sao_paulo";
6019
+ Timezone["AmericaScoresbysund"] = "america/scoresbysund";
6020
+ Timezone["AmericaSitka"] = "america/sitka";
6021
+ Timezone["AmericaStBarthelemy"] = "america/st_barthelemy";
6022
+ Timezone["AmericaStJohns"] = "america/st_johns";
6023
+ Timezone["AmericaStKitts"] = "america/st_kitts";
6024
+ Timezone["AmericaStLucia"] = "america/st_lucia";
6025
+ Timezone["AmericaStThomas"] = "america/st_thomas";
6026
+ Timezone["AmericaStVincent"] = "america/st_vincent";
6027
+ Timezone["AmericaSwiftCurrent"] = "america/swift_current";
6028
+ Timezone["AmericaTegucigalpa"] = "america/tegucigalpa";
6029
+ Timezone["AmericaThule"] = "america/thule";
6030
+ Timezone["AmericaTijuana"] = "america/tijuana";
6031
+ Timezone["AmericaToronto"] = "america/toronto";
6032
+ Timezone["AmericaTortola"] = "america/tortola";
6033
+ Timezone["AmericaVancouver"] = "america/vancouver";
6034
+ Timezone["AmericaWhitehorse"] = "america/whitehorse";
6035
+ Timezone["AmericaWinnipeg"] = "america/winnipeg";
6036
+ Timezone["AmericaYakutat"] = "america/yakutat";
6037
+ Timezone["AntarcticaCasey"] = "antarctica/casey";
6038
+ Timezone["AntarcticaDavis"] = "antarctica/davis";
6039
+ Timezone["AntarcticaDumontdurville"] = "antarctica/dumontdurville";
6040
+ Timezone["AntarcticaMacquarie"] = "antarctica/macquarie";
6041
+ Timezone["AntarcticaMawson"] = "antarctica/mawson";
6042
+ Timezone["AntarcticaMcmurdo"] = "antarctica/mcmurdo";
6043
+ Timezone["AntarcticaPalmer"] = "antarctica/palmer";
6044
+ Timezone["AntarcticaRothera"] = "antarctica/rothera";
6045
+ Timezone["AntarcticaSyowa"] = "antarctica/syowa";
6046
+ Timezone["AntarcticaTroll"] = "antarctica/troll";
6047
+ Timezone["AntarcticaVostok"] = "antarctica/vostok";
6048
+ Timezone["ArcticLongyearbyen"] = "arctic/longyearbyen";
6049
+ Timezone["AsiaAden"] = "asia/aden";
6050
+ Timezone["AsiaAlmaty"] = "asia/almaty";
6051
+ Timezone["AsiaAmman"] = "asia/amman";
6052
+ Timezone["AsiaAnadyr"] = "asia/anadyr";
6053
+ Timezone["AsiaAqtau"] = "asia/aqtau";
6054
+ Timezone["AsiaAqtobe"] = "asia/aqtobe";
6055
+ Timezone["AsiaAshgabat"] = "asia/ashgabat";
6056
+ Timezone["AsiaAtyrau"] = "asia/atyrau";
6057
+ Timezone["AsiaBaghdad"] = "asia/baghdad";
6058
+ Timezone["AsiaBahrain"] = "asia/bahrain";
6059
+ Timezone["AsiaBaku"] = "asia/baku";
6060
+ Timezone["AsiaBangkok"] = "asia/bangkok";
6061
+ Timezone["AsiaBarnaul"] = "asia/barnaul";
6062
+ Timezone["AsiaBeirut"] = "asia/beirut";
6063
+ Timezone["AsiaBishkek"] = "asia/bishkek";
6064
+ Timezone["AsiaBrunei"] = "asia/brunei";
6065
+ Timezone["AsiaChita"] = "asia/chita";
6066
+ Timezone["AsiaColombo"] = "asia/colombo";
6067
+ Timezone["AsiaDamascus"] = "asia/damascus";
6068
+ Timezone["AsiaDhaka"] = "asia/dhaka";
6069
+ Timezone["AsiaDili"] = "asia/dili";
6070
+ Timezone["AsiaDubai"] = "asia/dubai";
6071
+ Timezone["AsiaDushanbe"] = "asia/dushanbe";
6072
+ Timezone["AsiaFamagusta"] = "asia/famagusta";
6073
+ Timezone["AsiaGaza"] = "asia/gaza";
6074
+ Timezone["AsiaHebron"] = "asia/hebron";
6075
+ Timezone["AsiaHoChiMinh"] = "asia/ho_chi_minh";
6076
+ Timezone["AsiaHongKong"] = "asia/hong_kong";
6077
+ Timezone["AsiaHovd"] = "asia/hovd";
6078
+ Timezone["AsiaIrkutsk"] = "asia/irkutsk";
6079
+ Timezone["AsiaJakarta"] = "asia/jakarta";
6080
+ Timezone["AsiaJayapura"] = "asia/jayapura";
6081
+ Timezone["AsiaJerusalem"] = "asia/jerusalem";
6082
+ Timezone["AsiaKabul"] = "asia/kabul";
6083
+ Timezone["AsiaKamchatka"] = "asia/kamchatka";
6084
+ Timezone["AsiaKarachi"] = "asia/karachi";
6085
+ Timezone["AsiaKathmandu"] = "asia/kathmandu";
6086
+ Timezone["AsiaKhandyga"] = "asia/khandyga";
6087
+ Timezone["AsiaKolkata"] = "asia/kolkata";
6088
+ Timezone["AsiaKrasnoyarsk"] = "asia/krasnoyarsk";
6089
+ Timezone["AsiaKualaLumpur"] = "asia/kuala_lumpur";
6090
+ Timezone["AsiaKuching"] = "asia/kuching";
6091
+ Timezone["AsiaKuwait"] = "asia/kuwait";
6092
+ Timezone["AsiaMacau"] = "asia/macau";
6093
+ Timezone["AsiaMagadan"] = "asia/magadan";
6094
+ Timezone["AsiaMakassar"] = "asia/makassar";
6095
+ Timezone["AsiaManila"] = "asia/manila";
6096
+ Timezone["AsiaMuscat"] = "asia/muscat";
6097
+ Timezone["AsiaNicosia"] = "asia/nicosia";
6098
+ Timezone["AsiaNovokuznetsk"] = "asia/novokuznetsk";
6099
+ Timezone["AsiaNovosibirsk"] = "asia/novosibirsk";
6100
+ Timezone["AsiaOmsk"] = "asia/omsk";
6101
+ Timezone["AsiaOral"] = "asia/oral";
6102
+ Timezone["AsiaPhnomPenh"] = "asia/phnom_penh";
6103
+ Timezone["AsiaPontianak"] = "asia/pontianak";
6104
+ Timezone["AsiaPyongyang"] = "asia/pyongyang";
6105
+ Timezone["AsiaQatar"] = "asia/qatar";
6106
+ Timezone["AsiaQostanay"] = "asia/qostanay";
6107
+ Timezone["AsiaQyzylorda"] = "asia/qyzylorda";
6108
+ Timezone["AsiaRiyadh"] = "asia/riyadh";
6109
+ Timezone["AsiaSakhalin"] = "asia/sakhalin";
6110
+ Timezone["AsiaSamarkand"] = "asia/samarkand";
6111
+ Timezone["AsiaSeoul"] = "asia/seoul";
6112
+ Timezone["AsiaShanghai"] = "asia/shanghai";
6113
+ Timezone["AsiaSingapore"] = "asia/singapore";
6114
+ Timezone["AsiaSrednekolymsk"] = "asia/srednekolymsk";
6115
+ Timezone["AsiaTaipei"] = "asia/taipei";
6116
+ Timezone["AsiaTashkent"] = "asia/tashkent";
6117
+ Timezone["AsiaTbilisi"] = "asia/tbilisi";
6118
+ Timezone["AsiaTehran"] = "asia/tehran";
6119
+ Timezone["AsiaThimphu"] = "asia/thimphu";
6120
+ Timezone["AsiaTokyo"] = "asia/tokyo";
6121
+ Timezone["AsiaTomsk"] = "asia/tomsk";
6122
+ Timezone["AsiaUlaanbaatar"] = "asia/ulaanbaatar";
6123
+ Timezone["AsiaUrumqi"] = "asia/urumqi";
6124
+ Timezone["AsiaUstNera"] = "asia/ust-nera";
6125
+ Timezone["AsiaVientiane"] = "asia/vientiane";
6126
+ Timezone["AsiaVladivostok"] = "asia/vladivostok";
6127
+ Timezone["AsiaYakutsk"] = "asia/yakutsk";
6128
+ Timezone["AsiaYangon"] = "asia/yangon";
6129
+ Timezone["AsiaYekaterinburg"] = "asia/yekaterinburg";
6130
+ Timezone["AsiaYerevan"] = "asia/yerevan";
6131
+ Timezone["AtlanticAzores"] = "atlantic/azores";
6132
+ Timezone["AtlanticBermuda"] = "atlantic/bermuda";
6133
+ Timezone["AtlanticCanary"] = "atlantic/canary";
6134
+ Timezone["AtlanticCapeVerde"] = "atlantic/cape_verde";
6135
+ Timezone["AtlanticFaroe"] = "atlantic/faroe";
6136
+ Timezone["AtlanticMadeira"] = "atlantic/madeira";
6137
+ Timezone["AtlanticReykjavik"] = "atlantic/reykjavik";
6138
+ Timezone["AtlanticSouthGeorgia"] = "atlantic/south_georgia";
6139
+ Timezone["AtlanticStHelena"] = "atlantic/st_helena";
6140
+ Timezone["AtlanticStanley"] = "atlantic/stanley";
6141
+ Timezone["AustraliaAdelaide"] = "australia/adelaide";
6142
+ Timezone["AustraliaBrisbane"] = "australia/brisbane";
6143
+ Timezone["AustraliaBrokenHill"] = "australia/broken_hill";
6144
+ Timezone["AustraliaDarwin"] = "australia/darwin";
6145
+ Timezone["AustraliaEucla"] = "australia/eucla";
6146
+ Timezone["AustraliaHobart"] = "australia/hobart";
6147
+ Timezone["AustraliaLindeman"] = "australia/lindeman";
6148
+ Timezone["AustraliaLordHowe"] = "australia/lord_howe";
6149
+ Timezone["AustraliaMelbourne"] = "australia/melbourne";
6150
+ Timezone["AustraliaPerth"] = "australia/perth";
6151
+ Timezone["AustraliaSydney"] = "australia/sydney";
6152
+ Timezone["EuropeAmsterdam"] = "europe/amsterdam";
6153
+ Timezone["EuropeAndorra"] = "europe/andorra";
6154
+ Timezone["EuropeAstrakhan"] = "europe/astrakhan";
6155
+ Timezone["EuropeAthens"] = "europe/athens";
6156
+ Timezone["EuropeBelgrade"] = "europe/belgrade";
6157
+ Timezone["EuropeBerlin"] = "europe/berlin";
6158
+ Timezone["EuropeBratislava"] = "europe/bratislava";
6159
+ Timezone["EuropeBrussels"] = "europe/brussels";
6160
+ Timezone["EuropeBucharest"] = "europe/bucharest";
6161
+ Timezone["EuropeBudapest"] = "europe/budapest";
6162
+ Timezone["EuropeBusingen"] = "europe/busingen";
6163
+ Timezone["EuropeChisinau"] = "europe/chisinau";
6164
+ Timezone["EuropeCopenhagen"] = "europe/copenhagen";
6165
+ Timezone["EuropeDublin"] = "europe/dublin";
6166
+ Timezone["EuropeGibraltar"] = "europe/gibraltar";
6167
+ Timezone["EuropeGuernsey"] = "europe/guernsey";
6168
+ Timezone["EuropeHelsinki"] = "europe/helsinki";
6169
+ Timezone["EuropeIsleOfMan"] = "europe/isle_of_man";
6170
+ Timezone["EuropeIstanbul"] = "europe/istanbul";
6171
+ Timezone["EuropeJersey"] = "europe/jersey";
6172
+ Timezone["EuropeKaliningrad"] = "europe/kaliningrad";
6173
+ Timezone["EuropeKirov"] = "europe/kirov";
6174
+ Timezone["EuropeKyiv"] = "europe/kyiv";
6175
+ Timezone["EuropeLisbon"] = "europe/lisbon";
6176
+ Timezone["EuropeLjubljana"] = "europe/ljubljana";
6177
+ Timezone["EuropeLondon"] = "europe/london";
6178
+ Timezone["EuropeLuxembourg"] = "europe/luxembourg";
6179
+ Timezone["EuropeMadrid"] = "europe/madrid";
6180
+ Timezone["EuropeMalta"] = "europe/malta";
6181
+ Timezone["EuropeMariehamn"] = "europe/mariehamn";
6182
+ Timezone["EuropeMinsk"] = "europe/minsk";
6183
+ Timezone["EuropeMonaco"] = "europe/monaco";
6184
+ Timezone["EuropeMoscow"] = "europe/moscow";
6185
+ Timezone["EuropeOslo"] = "europe/oslo";
6186
+ Timezone["EuropeParis"] = "europe/paris";
6187
+ Timezone["EuropePodgorica"] = "europe/podgorica";
6188
+ Timezone["EuropePrague"] = "europe/prague";
6189
+ Timezone["EuropeRiga"] = "europe/riga";
6190
+ Timezone["EuropeRome"] = "europe/rome";
6191
+ Timezone["EuropeSamara"] = "europe/samara";
6192
+ Timezone["EuropeSanMarino"] = "europe/san_marino";
6193
+ Timezone["EuropeSarajevo"] = "europe/sarajevo";
6194
+ Timezone["EuropeSaratov"] = "europe/saratov";
6195
+ Timezone["EuropeSimferopol"] = "europe/simferopol";
6196
+ Timezone["EuropeSkopje"] = "europe/skopje";
6197
+ Timezone["EuropeSofia"] = "europe/sofia";
6198
+ Timezone["EuropeStockholm"] = "europe/stockholm";
6199
+ Timezone["EuropeTallinn"] = "europe/tallinn";
6200
+ Timezone["EuropeTirane"] = "europe/tirane";
6201
+ Timezone["EuropeUlyanovsk"] = "europe/ulyanovsk";
6202
+ Timezone["EuropeVaduz"] = "europe/vaduz";
6203
+ Timezone["EuropeVatican"] = "europe/vatican";
6204
+ Timezone["EuropeVienna"] = "europe/vienna";
6205
+ Timezone["EuropeVilnius"] = "europe/vilnius";
6206
+ Timezone["EuropeVolgograd"] = "europe/volgograd";
6207
+ Timezone["EuropeWarsaw"] = "europe/warsaw";
6208
+ Timezone["EuropeZagreb"] = "europe/zagreb";
6209
+ Timezone["EuropeZurich"] = "europe/zurich";
6210
+ Timezone["IndianAntananarivo"] = "indian/antananarivo";
6211
+ Timezone["IndianChagos"] = "indian/chagos";
6212
+ Timezone["IndianChristmas"] = "indian/christmas";
6213
+ Timezone["IndianCocos"] = "indian/cocos";
6214
+ Timezone["IndianComoro"] = "indian/comoro";
6215
+ Timezone["IndianKerguelen"] = "indian/kerguelen";
6216
+ Timezone["IndianMahe"] = "indian/mahe";
6217
+ Timezone["IndianMaldives"] = "indian/maldives";
6218
+ Timezone["IndianMauritius"] = "indian/mauritius";
6219
+ Timezone["IndianMayotte"] = "indian/mayotte";
6220
+ Timezone["IndianReunion"] = "indian/reunion";
6221
+ Timezone["PacificApia"] = "pacific/apia";
6222
+ Timezone["PacificAuckland"] = "pacific/auckland";
6223
+ Timezone["PacificBougainville"] = "pacific/bougainville";
6224
+ Timezone["PacificChatham"] = "pacific/chatham";
6225
+ Timezone["PacificChuuk"] = "pacific/chuuk";
6226
+ Timezone["PacificEaster"] = "pacific/easter";
6227
+ Timezone["PacificEfate"] = "pacific/efate";
6228
+ Timezone["PacificFakaofo"] = "pacific/fakaofo";
6229
+ Timezone["PacificFiji"] = "pacific/fiji";
6230
+ Timezone["PacificFunafuti"] = "pacific/funafuti";
6231
+ Timezone["PacificGalapagos"] = "pacific/galapagos";
6232
+ Timezone["PacificGambier"] = "pacific/gambier";
6233
+ Timezone["PacificGuadalcanal"] = "pacific/guadalcanal";
6234
+ Timezone["PacificGuam"] = "pacific/guam";
6235
+ Timezone["PacificHonolulu"] = "pacific/honolulu";
6236
+ Timezone["PacificKanton"] = "pacific/kanton";
6237
+ Timezone["PacificKiritimati"] = "pacific/kiritimati";
6238
+ Timezone["PacificKosrae"] = "pacific/kosrae";
6239
+ Timezone["PacificKwajalein"] = "pacific/kwajalein";
6240
+ Timezone["PacificMajuro"] = "pacific/majuro";
6241
+ Timezone["PacificMarquesas"] = "pacific/marquesas";
6242
+ Timezone["PacificMidway"] = "pacific/midway";
6243
+ Timezone["PacificNauru"] = "pacific/nauru";
6244
+ Timezone["PacificNiue"] = "pacific/niue";
6245
+ Timezone["PacificNorfolk"] = "pacific/norfolk";
6246
+ Timezone["PacificNoumea"] = "pacific/noumea";
6247
+ Timezone["PacificPagoPago"] = "pacific/pago_pago";
6248
+ Timezone["PacificPalau"] = "pacific/palau";
6249
+ Timezone["PacificPitcairn"] = "pacific/pitcairn";
6250
+ Timezone["PacificPohnpei"] = "pacific/pohnpei";
6251
+ Timezone["PacificPortMoresby"] = "pacific/port_moresby";
6252
+ Timezone["PacificRarotonga"] = "pacific/rarotonga";
6253
+ Timezone["PacificSaipan"] = "pacific/saipan";
6254
+ Timezone["PacificTahiti"] = "pacific/tahiti";
6255
+ Timezone["PacificTarawa"] = "pacific/tarawa";
6256
+ Timezone["PacificTongatapu"] = "pacific/tongatapu";
6257
+ Timezone["PacificWake"] = "pacific/wake";
6258
+ Timezone["PacificWallis"] = "pacific/wallis";
6259
+ Timezone["Utc"] = "utc";
6260
+ })(exports.Timezone || (exports.Timezone = {}));
6261
+
6262
+ exports.Output = void 0;
6263
+ (function (Output) {
6264
+ Output["Jpg"] = "jpg";
6265
+ Output["Jpeg"] = "jpeg";
6266
+ Output["Png"] = "png";
6267
+ Output["Webp"] = "webp";
6268
+ Output["Heic"] = "heic";
6269
+ Output["Avif"] = "avif";
6270
+ Output["Gif"] = "gif";
6271
+ })(exports.Output || (exports.Output = {}));
6272
+
5302
6273
  exports.ExecutionMethod = void 0;
5303
6274
  (function (ExecutionMethod) {
5304
6275
  ExecutionMethod["GET"] = "GET";
@@ -5334,6 +6305,22 @@ exports.ImageFormat = void 0;
5334
6305
  ImageFormat["Gif"] = "gif";
5335
6306
  })(exports.ImageFormat || (exports.ImageFormat = {}));
5336
6307
 
6308
+ exports.ExecutionTrigger = void 0;
6309
+ (function (ExecutionTrigger) {
6310
+ ExecutionTrigger["Http"] = "http";
6311
+ ExecutionTrigger["Schedule"] = "schedule";
6312
+ ExecutionTrigger["Event"] = "event";
6313
+ })(exports.ExecutionTrigger || (exports.ExecutionTrigger = {}));
6314
+
6315
+ exports.ExecutionStatus = void 0;
6316
+ (function (ExecutionStatus) {
6317
+ ExecutionStatus["Waiting"] = "waiting";
6318
+ ExecutionStatus["Processing"] = "processing";
6319
+ ExecutionStatus["Completed"] = "completed";
6320
+ ExecutionStatus["Failed"] = "failed";
6321
+ ExecutionStatus["Scheduled"] = "scheduled";
6322
+ })(exports.ExecutionStatus || (exports.ExecutionStatus = {}));
6323
+
5337
6324
  exports.Account = Account;
5338
6325
  exports.AppwriteException = AppwriteException;
5339
6326
  exports.Avatars = Avatars;
@@ -5344,6 +6331,7 @@ exports.Graphql = Graphql;
5344
6331
  exports.ID = ID;
5345
6332
  exports.Locale = Locale;
5346
6333
  exports.Messaging = Messaging;
6334
+ exports.Operator = Operator;
5347
6335
  exports.Permission = Permission;
5348
6336
  exports.Query = Query;
5349
6337
  exports.Role = Role;