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/esm/sdk.js CHANGED
@@ -78,7 +78,7 @@ class Client {
78
78
  'x-sdk-name': 'React Native',
79
79
  'x-sdk-platform': 'client',
80
80
  'x-sdk-language': 'reactnative',
81
- 'x-sdk-version': '0.17.1',
81
+ 'x-sdk-version': '0.19.0',
82
82
  'X-Appwrite-Response-Format': '1.8.0',
83
83
  };
84
84
  this.realtime = {
@@ -547,22 +547,27 @@ class Account extends Service {
547
547
  'content-type': 'application/json',
548
548
  }, payload);
549
549
  }
550
- listIdentities(paramsOrFirst) {
550
+ listIdentities(paramsOrFirst, ...rest) {
551
551
  let params;
552
552
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
553
553
  params = (paramsOrFirst || {});
554
554
  }
555
555
  else {
556
556
  params = {
557
- queries: paramsOrFirst
557
+ queries: paramsOrFirst,
558
+ total: rest[0]
558
559
  };
559
560
  }
560
561
  const queries = params.queries;
562
+ const total = params.total;
561
563
  const apiPath = '/account/identities';
562
564
  const payload = {};
563
565
  if (typeof queries !== 'undefined') {
564
566
  payload['queries'] = queries;
565
567
  }
568
+ if (typeof total !== 'undefined') {
569
+ payload['total'] = total;
570
+ }
566
571
  const uri = new URL(this.client.config.endpoint + apiPath);
567
572
  return this.client.call('get', uri, {}, payload);
568
573
  }
@@ -601,22 +606,27 @@ class Account extends Service {
601
606
  'content-type': 'application/json',
602
607
  }, payload);
603
608
  }
604
- listLogs(paramsOrFirst) {
609
+ listLogs(paramsOrFirst, ...rest) {
605
610
  let params;
606
611
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
607
612
  params = (paramsOrFirst || {});
608
613
  }
609
614
  else {
610
615
  params = {
611
- queries: paramsOrFirst
616
+ queries: paramsOrFirst,
617
+ total: rest[0]
612
618
  };
613
619
  }
614
620
  const queries = params.queries;
621
+ const total = params.total;
615
622
  const apiPath = '/account/logs';
616
623
  const payload = {};
617
624
  if (typeof queries !== 'undefined') {
618
625
  payload['queries'] = queries;
619
626
  }
627
+ if (typeof total !== 'undefined') {
628
+ payload['total'] = total;
629
+ }
620
630
  const uri = new URL(this.client.config.endpoint + apiPath);
621
631
  return this.client.call('get', uri, {}, payload);
622
632
  }
@@ -800,7 +810,7 @@ class Account extends Service {
800
810
  if (typeof factor === 'undefined') {
801
811
  throw new AppwriteException('Missing required parameter: "factor"');
802
812
  }
803
- const apiPath = '/account/mfa/challenge';
813
+ const apiPath = '/account/mfa/challenges';
804
814
  const payload = {};
805
815
  if (typeof factor !== 'undefined') {
806
816
  payload['factor'] = factor;
@@ -824,7 +834,7 @@ class Account extends Service {
824
834
  if (typeof factor === 'undefined') {
825
835
  throw new AppwriteException('Missing required parameter: "factor"');
826
836
  }
827
- const apiPath = '/account/mfa/challenge';
837
+ const apiPath = '/account/mfa/challenges';
828
838
  const payload = {};
829
839
  if (typeof factor !== 'undefined') {
830
840
  payload['factor'] = factor;
@@ -853,7 +863,7 @@ class Account extends Service {
853
863
  if (typeof otp === 'undefined') {
854
864
  throw new AppwriteException('Missing required parameter: "otp"');
855
865
  }
856
- const apiPath = '/account/mfa/challenge';
866
+ const apiPath = '/account/mfa/challenges';
857
867
  const payload = {};
858
868
  if (typeof challengeId !== 'undefined') {
859
869
  payload['challengeId'] = challengeId;
@@ -885,7 +895,7 @@ class Account extends Service {
885
895
  if (typeof otp === 'undefined') {
886
896
  throw new AppwriteException('Missing required parameter: "otp"');
887
897
  }
888
- const apiPath = '/account/mfa/challenge';
898
+ const apiPath = '/account/mfa/challenges';
889
899
  const payload = {};
890
900
  if (typeof challengeId !== 'undefined') {
891
901
  payload['challengeId'] = challengeId;
@@ -2135,6 +2145,127 @@ class Avatars extends Service {
2135
2145
  }
2136
2146
  return this.client.call('get', uri, {}, payload, 'arrayBuffer');
2137
2147
  }
2148
+ getScreenshot(paramsOrFirst, ...rest) {
2149
+ let params;
2150
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2151
+ params = (paramsOrFirst || {});
2152
+ }
2153
+ else {
2154
+ params = {
2155
+ url: paramsOrFirst,
2156
+ headers: rest[0],
2157
+ viewportWidth: rest[1],
2158
+ viewportHeight: rest[2],
2159
+ scale: rest[3],
2160
+ theme: rest[4],
2161
+ userAgent: rest[5],
2162
+ fullpage: rest[6],
2163
+ locale: rest[7],
2164
+ timezone: rest[8],
2165
+ latitude: rest[9],
2166
+ longitude: rest[10],
2167
+ accuracy: rest[11],
2168
+ touch: rest[12],
2169
+ permissions: rest[13],
2170
+ sleep: rest[14],
2171
+ width: rest[15],
2172
+ height: rest[16],
2173
+ quality: rest[17],
2174
+ output: rest[18]
2175
+ };
2176
+ }
2177
+ const url = params.url;
2178
+ const headers = params.headers;
2179
+ const viewportWidth = params.viewportWidth;
2180
+ const viewportHeight = params.viewportHeight;
2181
+ const scale = params.scale;
2182
+ const theme = params.theme;
2183
+ const userAgent = params.userAgent;
2184
+ const fullpage = params.fullpage;
2185
+ const locale = params.locale;
2186
+ const timezone = params.timezone;
2187
+ const latitude = params.latitude;
2188
+ const longitude = params.longitude;
2189
+ const accuracy = params.accuracy;
2190
+ const touch = params.touch;
2191
+ const permissions = params.permissions;
2192
+ const sleep = params.sleep;
2193
+ const width = params.width;
2194
+ const height = params.height;
2195
+ const quality = params.quality;
2196
+ const output = params.output;
2197
+ if (typeof url === 'undefined') {
2198
+ throw new AppwriteException('Missing required parameter: "url"');
2199
+ }
2200
+ const apiPath = '/avatars/screenshots';
2201
+ const payload = {};
2202
+ if (typeof url !== 'undefined') {
2203
+ payload['url'] = url;
2204
+ }
2205
+ if (typeof headers !== 'undefined') {
2206
+ payload['headers'] = headers;
2207
+ }
2208
+ if (typeof viewportWidth !== 'undefined') {
2209
+ payload['viewportWidth'] = viewportWidth;
2210
+ }
2211
+ if (typeof viewportHeight !== 'undefined') {
2212
+ payload['viewportHeight'] = viewportHeight;
2213
+ }
2214
+ if (typeof scale !== 'undefined') {
2215
+ payload['scale'] = scale;
2216
+ }
2217
+ if (typeof theme !== 'undefined') {
2218
+ payload['theme'] = theme;
2219
+ }
2220
+ if (typeof userAgent !== 'undefined') {
2221
+ payload['userAgent'] = userAgent;
2222
+ }
2223
+ if (typeof fullpage !== 'undefined') {
2224
+ payload['fullpage'] = fullpage;
2225
+ }
2226
+ if (typeof locale !== 'undefined') {
2227
+ payload['locale'] = locale;
2228
+ }
2229
+ if (typeof timezone !== 'undefined') {
2230
+ payload['timezone'] = timezone;
2231
+ }
2232
+ if (typeof latitude !== 'undefined') {
2233
+ payload['latitude'] = latitude;
2234
+ }
2235
+ if (typeof longitude !== 'undefined') {
2236
+ payload['longitude'] = longitude;
2237
+ }
2238
+ if (typeof accuracy !== 'undefined') {
2239
+ payload['accuracy'] = accuracy;
2240
+ }
2241
+ if (typeof touch !== 'undefined') {
2242
+ payload['touch'] = touch;
2243
+ }
2244
+ if (typeof permissions !== 'undefined') {
2245
+ payload['permissions'] = permissions;
2246
+ }
2247
+ if (typeof sleep !== 'undefined') {
2248
+ payload['sleep'] = sleep;
2249
+ }
2250
+ if (typeof width !== 'undefined') {
2251
+ payload['width'] = width;
2252
+ }
2253
+ if (typeof height !== 'undefined') {
2254
+ payload['height'] = height;
2255
+ }
2256
+ if (typeof quality !== 'undefined') {
2257
+ payload['quality'] = quality;
2258
+ }
2259
+ if (typeof output !== 'undefined') {
2260
+ payload['output'] = output;
2261
+ }
2262
+ const uri = new URL(this.client.config.endpoint + apiPath);
2263
+ payload['project'] = this.client.config.project;
2264
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
2265
+ uri.searchParams.append(key, value);
2266
+ }
2267
+ return this.client.call('get', uri, {}, payload, 'arrayBuffer');
2268
+ }
2138
2269
  /**
2139
2270
  * You can use this endpoint to show different browser icons to your users.
2140
2271
  * The code argument receives the browser code as it appears in your user [GET
@@ -2390,6 +2521,111 @@ class Avatars extends Service {
2390
2521
  }
2391
2522
  return uri;
2392
2523
  }
2524
+ /**
2525
+ * Use this endpoint to capture a screenshot of any website URL. This endpoint
2526
+ * uses a headless browser to render the webpage and capture it as an image.
2527
+ *
2528
+ * You can configure the browser viewport size, theme, user agent,
2529
+ * geolocation, permissions, and more. Capture either just the viewport or the
2530
+ * full page scroll.
2531
+ *
2532
+ * When width and height are specified, the image is resized accordingly. If
2533
+ * both dimensions are 0, the API provides an image at original size. If
2534
+ * dimensions are not specified, the default viewport size is 1280x720px.
2535
+ *
2536
+ * @param {string} url
2537
+ * @param {object} headers
2538
+ * @param {number} viewportWidth
2539
+ * @param {number} viewportHeight
2540
+ * @param {number} scale
2541
+ * @param {Theme} theme
2542
+ * @param {string} userAgent
2543
+ * @param {boolean} fullpage
2544
+ * @param {string} locale
2545
+ * @param {Timezone} timezone
2546
+ * @param {number} latitude
2547
+ * @param {number} longitude
2548
+ * @param {number} accuracy
2549
+ * @param {boolean} touch
2550
+ * @param {string[]} permissions
2551
+ * @param {number} sleep
2552
+ * @param {number} width
2553
+ * @param {number} height
2554
+ * @param {number} quality
2555
+ * @param {Output} output
2556
+ * @throws {AppwriteException}
2557
+ * @returns {URL}
2558
+ */
2559
+ getScreenshotURL(url, headers, viewportWidth, viewportHeight, scale, theme, userAgent, fullpage, locale, timezone, latitude, longitude, accuracy, touch, permissions, sleep, width, height, quality, output) {
2560
+ const apiPath = '/avatars/screenshots';
2561
+ const payload = {};
2562
+ if (typeof url !== 'undefined') {
2563
+ payload['url'] = url;
2564
+ }
2565
+ if (typeof headers !== 'undefined') {
2566
+ payload['headers'] = headers;
2567
+ }
2568
+ if (typeof viewportWidth !== 'undefined') {
2569
+ payload['viewportWidth'] = viewportWidth;
2570
+ }
2571
+ if (typeof viewportHeight !== 'undefined') {
2572
+ payload['viewportHeight'] = viewportHeight;
2573
+ }
2574
+ if (typeof scale !== 'undefined') {
2575
+ payload['scale'] = scale;
2576
+ }
2577
+ if (typeof theme !== 'undefined') {
2578
+ payload['theme'] = theme;
2579
+ }
2580
+ if (typeof userAgent !== 'undefined') {
2581
+ payload['userAgent'] = userAgent;
2582
+ }
2583
+ if (typeof fullpage !== 'undefined') {
2584
+ payload['fullpage'] = fullpage;
2585
+ }
2586
+ if (typeof locale !== 'undefined') {
2587
+ payload['locale'] = locale;
2588
+ }
2589
+ if (typeof timezone !== 'undefined') {
2590
+ payload['timezone'] = timezone;
2591
+ }
2592
+ if (typeof latitude !== 'undefined') {
2593
+ payload['latitude'] = latitude;
2594
+ }
2595
+ if (typeof longitude !== 'undefined') {
2596
+ payload['longitude'] = longitude;
2597
+ }
2598
+ if (typeof accuracy !== 'undefined') {
2599
+ payload['accuracy'] = accuracy;
2600
+ }
2601
+ if (typeof touch !== 'undefined') {
2602
+ payload['touch'] = touch;
2603
+ }
2604
+ if (typeof permissions !== 'undefined') {
2605
+ payload['permissions'] = permissions;
2606
+ }
2607
+ if (typeof sleep !== 'undefined') {
2608
+ payload['sleep'] = sleep;
2609
+ }
2610
+ if (typeof width !== 'undefined') {
2611
+ payload['width'] = width;
2612
+ }
2613
+ if (typeof height !== 'undefined') {
2614
+ payload['height'] = height;
2615
+ }
2616
+ if (typeof quality !== 'undefined') {
2617
+ payload['quality'] = quality;
2618
+ }
2619
+ if (typeof output !== 'undefined') {
2620
+ payload['output'] = output;
2621
+ }
2622
+ const uri = new URL(this.client.config.endpoint + apiPath);
2623
+ payload['project'] = this.client.config.project;
2624
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
2625
+ uri.searchParams.append(key, value);
2626
+ }
2627
+ return uri;
2628
+ }
2393
2629
  }
2394
2630
 
2395
2631
  class Databases extends Service {
@@ -2543,13 +2779,15 @@ class Databases extends Service {
2543
2779
  databaseId: paramsOrFirst,
2544
2780
  collectionId: rest[0],
2545
2781
  queries: rest[1],
2546
- transactionId: rest[2]
2782
+ transactionId: rest[2],
2783
+ total: rest[3]
2547
2784
  };
2548
2785
  }
2549
2786
  const databaseId = params.databaseId;
2550
2787
  const collectionId = params.collectionId;
2551
2788
  const queries = params.queries;
2552
2789
  const transactionId = params.transactionId;
2790
+ const total = params.total;
2553
2791
  if (typeof databaseId === 'undefined') {
2554
2792
  throw new AppwriteException('Missing required parameter: "databaseId"');
2555
2793
  }
@@ -2564,6 +2802,9 @@ class Databases extends Service {
2564
2802
  if (typeof transactionId !== 'undefined') {
2565
2803
  payload['transactionId'] = transactionId;
2566
2804
  }
2805
+ if (typeof total !== 'undefined') {
2806
+ payload['total'] = total;
2807
+ }
2567
2808
  const uri = new URL(this.client.config.endpoint + apiPath);
2568
2809
  return this.client.call('get', uri, {}, payload);
2569
2810
  }
@@ -2905,11 +3146,13 @@ class Functions extends Service {
2905
3146
  else {
2906
3147
  params = {
2907
3148
  functionId: paramsOrFirst,
2908
- queries: rest[0]
3149
+ queries: rest[0],
3150
+ total: rest[1]
2909
3151
  };
2910
3152
  }
2911
3153
  const functionId = params.functionId;
2912
3154
  const queries = params.queries;
3155
+ const total = params.total;
2913
3156
  if (typeof functionId === 'undefined') {
2914
3157
  throw new AppwriteException('Missing required parameter: "functionId"');
2915
3158
  }
@@ -2918,6 +3161,9 @@ class Functions extends Service {
2918
3161
  if (typeof queries !== 'undefined') {
2919
3162
  payload['queries'] = queries;
2920
3163
  }
3164
+ if (typeof total !== 'undefined') {
3165
+ payload['total'] = total;
3166
+ }
2921
3167
  const uri = new URL(this.client.config.endpoint + apiPath);
2922
3168
  return this.client.call('get', uri, {}, payload);
2923
3169
  }
@@ -3240,12 +3486,14 @@ class Storage extends Service {
3240
3486
  params = {
3241
3487
  bucketId: paramsOrFirst,
3242
3488
  queries: rest[0],
3243
- search: rest[1]
3489
+ search: rest[1],
3490
+ total: rest[2]
3244
3491
  };
3245
3492
  }
3246
3493
  const bucketId = params.bucketId;
3247
3494
  const queries = params.queries;
3248
3495
  const search = params.search;
3496
+ const total = params.total;
3249
3497
  if (typeof bucketId === 'undefined') {
3250
3498
  throw new AppwriteException('Missing required parameter: "bucketId"');
3251
3499
  }
@@ -3257,6 +3505,9 @@ class Storage extends Service {
3257
3505
  if (typeof search !== 'undefined') {
3258
3506
  payload['search'] = search;
3259
3507
  }
3508
+ if (typeof total !== 'undefined') {
3509
+ payload['total'] = total;
3510
+ }
3260
3511
  const uri = new URL(this.client.config.endpoint + apiPath);
3261
3512
  return this.client.call('get', uri, {}, payload);
3262
3513
  }
@@ -3863,13 +4114,15 @@ class TablesDB extends Service {
3863
4114
  databaseId: paramsOrFirst,
3864
4115
  tableId: rest[0],
3865
4116
  queries: rest[1],
3866
- transactionId: rest[2]
4117
+ transactionId: rest[2],
4118
+ total: rest[3]
3867
4119
  };
3868
4120
  }
3869
4121
  const databaseId = params.databaseId;
3870
4122
  const tableId = params.tableId;
3871
4123
  const queries = params.queries;
3872
4124
  const transactionId = params.transactionId;
4125
+ const total = params.total;
3873
4126
  if (typeof databaseId === 'undefined') {
3874
4127
  throw new AppwriteException('Missing required parameter: "databaseId"');
3875
4128
  }
@@ -3884,6 +4137,9 @@ class TablesDB extends Service {
3884
4137
  if (typeof transactionId !== 'undefined') {
3885
4138
  payload['transactionId'] = transactionId;
3886
4139
  }
4140
+ if (typeof total !== 'undefined') {
4141
+ payload['total'] = total;
4142
+ }
3887
4143
  const uri = new URL(this.client.config.endpoint + apiPath);
3888
4144
  return this.client.call('get', uri, {}, payload);
3889
4145
  }
@@ -4222,11 +4478,13 @@ class Teams extends Service {
4222
4478
  else {
4223
4479
  params = {
4224
4480
  queries: paramsOrFirst,
4225
- search: rest[0]
4481
+ search: rest[0],
4482
+ total: rest[1]
4226
4483
  };
4227
4484
  }
4228
4485
  const queries = params.queries;
4229
4486
  const search = params.search;
4487
+ const total = params.total;
4230
4488
  const apiPath = '/teams';
4231
4489
  const payload = {};
4232
4490
  if (typeof queries !== 'undefined') {
@@ -4235,6 +4493,9 @@ class Teams extends Service {
4235
4493
  if (typeof search !== 'undefined') {
4236
4494
  payload['search'] = search;
4237
4495
  }
4496
+ if (typeof total !== 'undefined') {
4497
+ payload['total'] = total;
4498
+ }
4238
4499
  const uri = new URL(this.client.config.endpoint + apiPath);
4239
4500
  return this.client.call('get', uri, {}, payload);
4240
4501
  }
@@ -4353,12 +4614,14 @@ class Teams extends Service {
4353
4614
  params = {
4354
4615
  teamId: paramsOrFirst,
4355
4616
  queries: rest[0],
4356
- search: rest[1]
4617
+ search: rest[1],
4618
+ total: rest[2]
4357
4619
  };
4358
4620
  }
4359
4621
  const teamId = params.teamId;
4360
4622
  const queries = params.queries;
4361
4623
  const search = params.search;
4624
+ const total = params.total;
4362
4625
  if (typeof teamId === 'undefined') {
4363
4626
  throw new AppwriteException('Missing required parameter: "teamId"');
4364
4627
  }
@@ -4370,6 +4633,9 @@ class Teams extends Service {
4370
4633
  if (typeof search !== 'undefined') {
4371
4634
  payload['search'] = search;
4372
4635
  }
4636
+ if (typeof total !== 'undefined') {
4637
+ payload['total'] = total;
4638
+ }
4373
4639
  const uri = new URL(this.client.config.endpoint + apiPath);
4374
4640
  return this.client.call('get', uri, {}, payload);
4375
4641
  }
@@ -4700,14 +4966,14 @@ Query.notEndsWith = (attribute, value) => new Query("notEndsWith", attribute, va
4700
4966
  * @param {string} value
4701
4967
  * @returns {string}
4702
4968
  */
4703
- Query.createdBefore = (value) => new Query("createdBefore", undefined, value).toString();
4969
+ Query.createdBefore = (value) => Query.lessThan("$createdAt", value);
4704
4970
  /**
4705
4971
  * Filter resources where document was created after date.
4706
4972
  *
4707
4973
  * @param {string} value
4708
4974
  * @returns {string}
4709
4975
  */
4710
- Query.createdAfter = (value) => new Query("createdAfter", undefined, value).toString();
4976
+ Query.createdAfter = (value) => Query.greaterThan("$createdAt", value);
4711
4977
  /**
4712
4978
  * Filter resources where document was created between dates.
4713
4979
  *
@@ -4715,21 +4981,21 @@ Query.createdAfter = (value) => new Query("createdAfter", undefined, value).toSt
4715
4981
  * @param {string} end
4716
4982
  * @returns {string}
4717
4983
  */
4718
- Query.createdBetween = (start, end) => new Query("createdBetween", undefined, [start, end]).toString();
4984
+ Query.createdBetween = (start, end) => Query.between("$createdAt", start, end);
4719
4985
  /**
4720
4986
  * Filter resources where document was updated before date.
4721
4987
  *
4722
4988
  * @param {string} value
4723
4989
  * @returns {string}
4724
4990
  */
4725
- Query.updatedBefore = (value) => new Query("updatedBefore", undefined, value).toString();
4991
+ Query.updatedBefore = (value) => Query.lessThan("$updatedAt", value);
4726
4992
  /**
4727
4993
  * Filter resources where document was updated after date.
4728
4994
  *
4729
4995
  * @param {string} value
4730
4996
  * @returns {string}
4731
4997
  */
4732
- Query.updatedAfter = (value) => new Query("updatedAfter", undefined, value).toString();
4998
+ Query.updatedAfter = (value) => Query.greaterThan("$updatedAt", value);
4733
4999
  /**
4734
5000
  * Filter resources where document was updated between dates.
4735
5001
  *
@@ -4737,7 +5003,7 @@ Query.updatedAfter = (value) => new Query("updatedAfter", undefined, value).toSt
4737
5003
  * @param {string} end
4738
5004
  * @returns {string}
4739
5005
  */
4740
- Query.updatedBetween = (start, end) => new Query("updatedBetween", undefined, [start, end]).toString();
5006
+ Query.updatedBetween = (start, end) => Query.between("$updatedAt", start, end);
4741
5007
  Query.or = (queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
4742
5008
  Query.and = (queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
4743
5009
  /**
@@ -4982,6 +5248,271 @@ _a = ID, _ID_hexTimestamp = function _ID_hexTimestamp() {
4982
5248
  return hexTimestamp;
4983
5249
  };
4984
5250
 
5251
+ var Condition;
5252
+ (function (Condition) {
5253
+ Condition["Equal"] = "equal";
5254
+ Condition["NotEqual"] = "notEqual";
5255
+ Condition["GreaterThan"] = "greaterThan";
5256
+ Condition["GreaterThanEqual"] = "greaterThanEqual";
5257
+ Condition["LessThan"] = "lessThan";
5258
+ Condition["LessThanEqual"] = "lessThanEqual";
5259
+ Condition["Contains"] = "contains";
5260
+ Condition["IsNull"] = "isNull";
5261
+ Condition["IsNotNull"] = "isNotNull";
5262
+ })(Condition || (Condition = {}));
5263
+ /**
5264
+ * Helper class to generate operator strings for atomic operations.
5265
+ */
5266
+ class Operator {
5267
+ /**
5268
+ * Constructor for Operator class.
5269
+ *
5270
+ * @param {string} method
5271
+ * @param {OperatorValues} values
5272
+ */
5273
+ constructor(method, values) {
5274
+ this.method = method;
5275
+ if (values !== undefined) {
5276
+ if (Array.isArray(values)) {
5277
+ this.values = values;
5278
+ }
5279
+ else {
5280
+ this.values = [values];
5281
+ }
5282
+ }
5283
+ }
5284
+ /**
5285
+ * Convert the operator object to a JSON string.
5286
+ *
5287
+ * @returns {string}
5288
+ */
5289
+ toString() {
5290
+ return JSON.stringify({
5291
+ method: this.method,
5292
+ values: this.values,
5293
+ });
5294
+ }
5295
+ }
5296
+ /**
5297
+ * Increment a numeric attribute by a specified value.
5298
+ *
5299
+ * @param {number} value
5300
+ * @param {number} max
5301
+ * @returns {string}
5302
+ */
5303
+ Operator.increment = (value = 1, max) => {
5304
+ if (isNaN(value) || !isFinite(value)) {
5305
+ throw new Error("Value cannot be NaN or Infinity");
5306
+ }
5307
+ if (max !== undefined && (isNaN(max) || !isFinite(max))) {
5308
+ throw new Error("Max cannot be NaN or Infinity");
5309
+ }
5310
+ const values = [value];
5311
+ if (max !== undefined) {
5312
+ values.push(max);
5313
+ }
5314
+ return new Operator("increment", values).toString();
5315
+ };
5316
+ /**
5317
+ * Decrement a numeric attribute by a specified value.
5318
+ *
5319
+ * @param {number} value
5320
+ * @param {number} min
5321
+ * @returns {string}
5322
+ */
5323
+ Operator.decrement = (value = 1, min) => {
5324
+ if (isNaN(value) || !isFinite(value)) {
5325
+ throw new Error("Value cannot be NaN or Infinity");
5326
+ }
5327
+ if (min !== undefined && (isNaN(min) || !isFinite(min))) {
5328
+ throw new Error("Min cannot be NaN or Infinity");
5329
+ }
5330
+ const values = [value];
5331
+ if (min !== undefined) {
5332
+ values.push(min);
5333
+ }
5334
+ return new Operator("decrement", values).toString();
5335
+ };
5336
+ /**
5337
+ * Multiply a numeric attribute by a specified factor.
5338
+ *
5339
+ * @param {number} factor
5340
+ * @param {number} max
5341
+ * @returns {string}
5342
+ */
5343
+ Operator.multiply = (factor, max) => {
5344
+ if (isNaN(factor) || !isFinite(factor)) {
5345
+ throw new Error("Factor cannot be NaN or Infinity");
5346
+ }
5347
+ if (max !== undefined && (isNaN(max) || !isFinite(max))) {
5348
+ throw new Error("Max cannot be NaN or Infinity");
5349
+ }
5350
+ const values = [factor];
5351
+ if (max !== undefined) {
5352
+ values.push(max);
5353
+ }
5354
+ return new Operator("multiply", values).toString();
5355
+ };
5356
+ /**
5357
+ * Divide a numeric attribute by a specified divisor.
5358
+ *
5359
+ * @param {number} divisor
5360
+ * @param {number} min
5361
+ * @returns {string}
5362
+ */
5363
+ Operator.divide = (divisor, min) => {
5364
+ if (isNaN(divisor) || !isFinite(divisor)) {
5365
+ throw new Error("Divisor cannot be NaN or Infinity");
5366
+ }
5367
+ if (min !== undefined && (isNaN(min) || !isFinite(min))) {
5368
+ throw new Error("Min cannot be NaN or Infinity");
5369
+ }
5370
+ if (divisor === 0) {
5371
+ throw new Error("Divisor cannot be zero");
5372
+ }
5373
+ const values = [divisor];
5374
+ if (min !== undefined) {
5375
+ values.push(min);
5376
+ }
5377
+ return new Operator("divide", values).toString();
5378
+ };
5379
+ /**
5380
+ * Apply modulo operation on a numeric attribute.
5381
+ *
5382
+ * @param {number} divisor
5383
+ * @returns {string}
5384
+ */
5385
+ Operator.modulo = (divisor) => {
5386
+ if (isNaN(divisor) || !isFinite(divisor)) {
5387
+ throw new Error("Divisor cannot be NaN or Infinity");
5388
+ }
5389
+ if (divisor === 0) {
5390
+ throw new Error("Divisor cannot be zero");
5391
+ }
5392
+ return new Operator("modulo", [divisor]).toString();
5393
+ };
5394
+ /**
5395
+ * Raise a numeric attribute to a specified power.
5396
+ *
5397
+ * @param {number} exponent
5398
+ * @param {number} max
5399
+ * @returns {string}
5400
+ */
5401
+ Operator.power = (exponent, max) => {
5402
+ if (isNaN(exponent) || !isFinite(exponent)) {
5403
+ throw new Error("Exponent cannot be NaN or Infinity");
5404
+ }
5405
+ if (max !== undefined && (isNaN(max) || !isFinite(max))) {
5406
+ throw new Error("Max cannot be NaN or Infinity");
5407
+ }
5408
+ const values = [exponent];
5409
+ if (max !== undefined) {
5410
+ values.push(max);
5411
+ }
5412
+ return new Operator("power", values).toString();
5413
+ };
5414
+ /**
5415
+ * Append values to an array attribute.
5416
+ *
5417
+ * @param {any[]} values
5418
+ * @returns {string}
5419
+ */
5420
+ Operator.arrayAppend = (values) => new Operator("arrayAppend", values).toString();
5421
+ /**
5422
+ * Prepend values to an array attribute.
5423
+ *
5424
+ * @param {any[]} values
5425
+ * @returns {string}
5426
+ */
5427
+ Operator.arrayPrepend = (values) => new Operator("arrayPrepend", values).toString();
5428
+ /**
5429
+ * Insert a value at a specific index in an array attribute.
5430
+ *
5431
+ * @param {number} index
5432
+ * @param {any} value
5433
+ * @returns {string}
5434
+ */
5435
+ Operator.arrayInsert = (index, value) => new Operator("arrayInsert", [index, value]).toString();
5436
+ /**
5437
+ * Remove a value from an array attribute.
5438
+ *
5439
+ * @param {any} value
5440
+ * @returns {string}
5441
+ */
5442
+ Operator.arrayRemove = (value) => new Operator("arrayRemove", [value]).toString();
5443
+ /**
5444
+ * Remove duplicate values from an array attribute.
5445
+ *
5446
+ * @returns {string}
5447
+ */
5448
+ Operator.arrayUnique = () => new Operator("arrayUnique", []).toString();
5449
+ /**
5450
+ * Keep only values that exist in both the current array and the provided array.
5451
+ *
5452
+ * @param {any[]} values
5453
+ * @returns {string}
5454
+ */
5455
+ Operator.arrayIntersect = (values) => new Operator("arrayIntersect", values).toString();
5456
+ /**
5457
+ * Remove values from the array that exist in the provided array.
5458
+ *
5459
+ * @param {any[]} values
5460
+ * @returns {string}
5461
+ */
5462
+ Operator.arrayDiff = (values) => new Operator("arrayDiff", values).toString();
5463
+ /**
5464
+ * Filter array values based on a condition.
5465
+ *
5466
+ * @param {Condition} condition
5467
+ * @param {any} value
5468
+ * @returns {string}
5469
+ */
5470
+ Operator.arrayFilter = (condition, value) => {
5471
+ const values = [condition, value === undefined ? null : value];
5472
+ return new Operator("arrayFilter", values).toString();
5473
+ };
5474
+ /**
5475
+ * Concatenate a value to a string or array attribute.
5476
+ *
5477
+ * @param {any} value
5478
+ * @returns {string}
5479
+ */
5480
+ Operator.stringConcat = (value) => new Operator("stringConcat", [value]).toString();
5481
+ /**
5482
+ * Replace occurrences of a search string with a replacement string.
5483
+ *
5484
+ * @param {string} search
5485
+ * @param {string} replace
5486
+ * @returns {string}
5487
+ */
5488
+ Operator.stringReplace = (search, replace) => new Operator("stringReplace", [search, replace]).toString();
5489
+ /**
5490
+ * Toggle a boolean attribute.
5491
+ *
5492
+ * @returns {string}
5493
+ */
5494
+ Operator.toggle = () => new Operator("toggle", []).toString();
5495
+ /**
5496
+ * Add days to a date attribute.
5497
+ *
5498
+ * @param {number} days
5499
+ * @returns {string}
5500
+ */
5501
+ Operator.dateAddDays = (days) => new Operator("dateAddDays", [days]).toString();
5502
+ /**
5503
+ * Subtract days from a date attribute.
5504
+ *
5505
+ * @param {number} days
5506
+ * @returns {string}
5507
+ */
5508
+ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
5509
+ /**
5510
+ * Set a date attribute to the current date and time.
5511
+ *
5512
+ * @returns {string}
5513
+ */
5514
+ Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
5515
+
4985
5516
  var AuthenticatorType;
4986
5517
  (function (AuthenticatorType) {
4987
5518
  AuthenticatorType["Totp"] = "totp";
@@ -5277,6 +5808,446 @@ var Flag;
5277
5808
  Flag["Zimbabwe"] = "zw";
5278
5809
  })(Flag || (Flag = {}));
5279
5810
 
5811
+ var Theme;
5812
+ (function (Theme) {
5813
+ Theme["Light"] = "light";
5814
+ Theme["Dark"] = "dark";
5815
+ })(Theme || (Theme = {}));
5816
+
5817
+ var Timezone;
5818
+ (function (Timezone) {
5819
+ Timezone["AfricaAbidjan"] = "africa/abidjan";
5820
+ Timezone["AfricaAccra"] = "africa/accra";
5821
+ Timezone["AfricaAddisAbaba"] = "africa/addis_ababa";
5822
+ Timezone["AfricaAlgiers"] = "africa/algiers";
5823
+ Timezone["AfricaAsmara"] = "africa/asmara";
5824
+ Timezone["AfricaBamako"] = "africa/bamako";
5825
+ Timezone["AfricaBangui"] = "africa/bangui";
5826
+ Timezone["AfricaBanjul"] = "africa/banjul";
5827
+ Timezone["AfricaBissau"] = "africa/bissau";
5828
+ Timezone["AfricaBlantyre"] = "africa/blantyre";
5829
+ Timezone["AfricaBrazzaville"] = "africa/brazzaville";
5830
+ Timezone["AfricaBujumbura"] = "africa/bujumbura";
5831
+ Timezone["AfricaCairo"] = "africa/cairo";
5832
+ Timezone["AfricaCasablanca"] = "africa/casablanca";
5833
+ Timezone["AfricaCeuta"] = "africa/ceuta";
5834
+ Timezone["AfricaConakry"] = "africa/conakry";
5835
+ Timezone["AfricaDakar"] = "africa/dakar";
5836
+ Timezone["AfricaDarEsSalaam"] = "africa/dar_es_salaam";
5837
+ Timezone["AfricaDjibouti"] = "africa/djibouti";
5838
+ Timezone["AfricaDouala"] = "africa/douala";
5839
+ Timezone["AfricaElAaiun"] = "africa/el_aaiun";
5840
+ Timezone["AfricaFreetown"] = "africa/freetown";
5841
+ Timezone["AfricaGaborone"] = "africa/gaborone";
5842
+ Timezone["AfricaHarare"] = "africa/harare";
5843
+ Timezone["AfricaJohannesburg"] = "africa/johannesburg";
5844
+ Timezone["AfricaJuba"] = "africa/juba";
5845
+ Timezone["AfricaKampala"] = "africa/kampala";
5846
+ Timezone["AfricaKhartoum"] = "africa/khartoum";
5847
+ Timezone["AfricaKigali"] = "africa/kigali";
5848
+ Timezone["AfricaKinshasa"] = "africa/kinshasa";
5849
+ Timezone["AfricaLagos"] = "africa/lagos";
5850
+ Timezone["AfricaLibreville"] = "africa/libreville";
5851
+ Timezone["AfricaLome"] = "africa/lome";
5852
+ Timezone["AfricaLuanda"] = "africa/luanda";
5853
+ Timezone["AfricaLubumbashi"] = "africa/lubumbashi";
5854
+ Timezone["AfricaLusaka"] = "africa/lusaka";
5855
+ Timezone["AfricaMalabo"] = "africa/malabo";
5856
+ Timezone["AfricaMaputo"] = "africa/maputo";
5857
+ Timezone["AfricaMaseru"] = "africa/maseru";
5858
+ Timezone["AfricaMbabane"] = "africa/mbabane";
5859
+ Timezone["AfricaMogadishu"] = "africa/mogadishu";
5860
+ Timezone["AfricaMonrovia"] = "africa/monrovia";
5861
+ Timezone["AfricaNairobi"] = "africa/nairobi";
5862
+ Timezone["AfricaNdjamena"] = "africa/ndjamena";
5863
+ Timezone["AfricaNiamey"] = "africa/niamey";
5864
+ Timezone["AfricaNouakchott"] = "africa/nouakchott";
5865
+ Timezone["AfricaOuagadougou"] = "africa/ouagadougou";
5866
+ Timezone["AfricaPortoNovo"] = "africa/porto-novo";
5867
+ Timezone["AfricaSaoTome"] = "africa/sao_tome";
5868
+ Timezone["AfricaTripoli"] = "africa/tripoli";
5869
+ Timezone["AfricaTunis"] = "africa/tunis";
5870
+ Timezone["AfricaWindhoek"] = "africa/windhoek";
5871
+ Timezone["AmericaAdak"] = "america/adak";
5872
+ Timezone["AmericaAnchorage"] = "america/anchorage";
5873
+ Timezone["AmericaAnguilla"] = "america/anguilla";
5874
+ Timezone["AmericaAntigua"] = "america/antigua";
5875
+ Timezone["AmericaAraguaina"] = "america/araguaina";
5876
+ Timezone["AmericaArgentinaBuenosAires"] = "america/argentina/buenos_aires";
5877
+ Timezone["AmericaArgentinaCatamarca"] = "america/argentina/catamarca";
5878
+ Timezone["AmericaArgentinaCordoba"] = "america/argentina/cordoba";
5879
+ Timezone["AmericaArgentinaJujuy"] = "america/argentina/jujuy";
5880
+ Timezone["AmericaArgentinaLaRioja"] = "america/argentina/la_rioja";
5881
+ Timezone["AmericaArgentinaMendoza"] = "america/argentina/mendoza";
5882
+ Timezone["AmericaArgentinaRioGallegos"] = "america/argentina/rio_gallegos";
5883
+ Timezone["AmericaArgentinaSalta"] = "america/argentina/salta";
5884
+ Timezone["AmericaArgentinaSanJuan"] = "america/argentina/san_juan";
5885
+ Timezone["AmericaArgentinaSanLuis"] = "america/argentina/san_luis";
5886
+ Timezone["AmericaArgentinaTucuman"] = "america/argentina/tucuman";
5887
+ Timezone["AmericaArgentinaUshuaia"] = "america/argentina/ushuaia";
5888
+ Timezone["AmericaAruba"] = "america/aruba";
5889
+ Timezone["AmericaAsuncion"] = "america/asuncion";
5890
+ Timezone["AmericaAtikokan"] = "america/atikokan";
5891
+ Timezone["AmericaBahia"] = "america/bahia";
5892
+ Timezone["AmericaBahiaBanderas"] = "america/bahia_banderas";
5893
+ Timezone["AmericaBarbados"] = "america/barbados";
5894
+ Timezone["AmericaBelem"] = "america/belem";
5895
+ Timezone["AmericaBelize"] = "america/belize";
5896
+ Timezone["AmericaBlancSablon"] = "america/blanc-sablon";
5897
+ Timezone["AmericaBoaVista"] = "america/boa_vista";
5898
+ Timezone["AmericaBogota"] = "america/bogota";
5899
+ Timezone["AmericaBoise"] = "america/boise";
5900
+ Timezone["AmericaCambridgeBay"] = "america/cambridge_bay";
5901
+ Timezone["AmericaCampoGrande"] = "america/campo_grande";
5902
+ Timezone["AmericaCancun"] = "america/cancun";
5903
+ Timezone["AmericaCaracas"] = "america/caracas";
5904
+ Timezone["AmericaCayenne"] = "america/cayenne";
5905
+ Timezone["AmericaCayman"] = "america/cayman";
5906
+ Timezone["AmericaChicago"] = "america/chicago";
5907
+ Timezone["AmericaChihuahua"] = "america/chihuahua";
5908
+ Timezone["AmericaCiudadJuarez"] = "america/ciudad_juarez";
5909
+ Timezone["AmericaCostaRica"] = "america/costa_rica";
5910
+ Timezone["AmericaCoyhaique"] = "america/coyhaique";
5911
+ Timezone["AmericaCreston"] = "america/creston";
5912
+ Timezone["AmericaCuiaba"] = "america/cuiaba";
5913
+ Timezone["AmericaCuracao"] = "america/curacao";
5914
+ Timezone["AmericaDanmarkshavn"] = "america/danmarkshavn";
5915
+ Timezone["AmericaDawson"] = "america/dawson";
5916
+ Timezone["AmericaDawsonCreek"] = "america/dawson_creek";
5917
+ Timezone["AmericaDenver"] = "america/denver";
5918
+ Timezone["AmericaDetroit"] = "america/detroit";
5919
+ Timezone["AmericaDominica"] = "america/dominica";
5920
+ Timezone["AmericaEdmonton"] = "america/edmonton";
5921
+ Timezone["AmericaEirunepe"] = "america/eirunepe";
5922
+ Timezone["AmericaElSalvador"] = "america/el_salvador";
5923
+ Timezone["AmericaFortNelson"] = "america/fort_nelson";
5924
+ Timezone["AmericaFortaleza"] = "america/fortaleza";
5925
+ Timezone["AmericaGlaceBay"] = "america/glace_bay";
5926
+ Timezone["AmericaGooseBay"] = "america/goose_bay";
5927
+ Timezone["AmericaGrandTurk"] = "america/grand_turk";
5928
+ Timezone["AmericaGrenada"] = "america/grenada";
5929
+ Timezone["AmericaGuadeloupe"] = "america/guadeloupe";
5930
+ Timezone["AmericaGuatemala"] = "america/guatemala";
5931
+ Timezone["AmericaGuayaquil"] = "america/guayaquil";
5932
+ Timezone["AmericaGuyana"] = "america/guyana";
5933
+ Timezone["AmericaHalifax"] = "america/halifax";
5934
+ Timezone["AmericaHavana"] = "america/havana";
5935
+ Timezone["AmericaHermosillo"] = "america/hermosillo";
5936
+ Timezone["AmericaIndianaIndianapolis"] = "america/indiana/indianapolis";
5937
+ Timezone["AmericaIndianaKnox"] = "america/indiana/knox";
5938
+ Timezone["AmericaIndianaMarengo"] = "america/indiana/marengo";
5939
+ Timezone["AmericaIndianaPetersburg"] = "america/indiana/petersburg";
5940
+ Timezone["AmericaIndianaTellCity"] = "america/indiana/tell_city";
5941
+ Timezone["AmericaIndianaVevay"] = "america/indiana/vevay";
5942
+ Timezone["AmericaIndianaVincennes"] = "america/indiana/vincennes";
5943
+ Timezone["AmericaIndianaWinamac"] = "america/indiana/winamac";
5944
+ Timezone["AmericaInuvik"] = "america/inuvik";
5945
+ Timezone["AmericaIqaluit"] = "america/iqaluit";
5946
+ Timezone["AmericaJamaica"] = "america/jamaica";
5947
+ Timezone["AmericaJuneau"] = "america/juneau";
5948
+ Timezone["AmericaKentuckyLouisville"] = "america/kentucky/louisville";
5949
+ Timezone["AmericaKentuckyMonticello"] = "america/kentucky/monticello";
5950
+ Timezone["AmericaKralendijk"] = "america/kralendijk";
5951
+ Timezone["AmericaLaPaz"] = "america/la_paz";
5952
+ Timezone["AmericaLima"] = "america/lima";
5953
+ Timezone["AmericaLosAngeles"] = "america/los_angeles";
5954
+ Timezone["AmericaLowerPrinces"] = "america/lower_princes";
5955
+ Timezone["AmericaMaceio"] = "america/maceio";
5956
+ Timezone["AmericaManagua"] = "america/managua";
5957
+ Timezone["AmericaManaus"] = "america/manaus";
5958
+ Timezone["AmericaMarigot"] = "america/marigot";
5959
+ Timezone["AmericaMartinique"] = "america/martinique";
5960
+ Timezone["AmericaMatamoros"] = "america/matamoros";
5961
+ Timezone["AmericaMazatlan"] = "america/mazatlan";
5962
+ Timezone["AmericaMenominee"] = "america/menominee";
5963
+ Timezone["AmericaMerida"] = "america/merida";
5964
+ Timezone["AmericaMetlakatla"] = "america/metlakatla";
5965
+ Timezone["AmericaMexicoCity"] = "america/mexico_city";
5966
+ Timezone["AmericaMiquelon"] = "america/miquelon";
5967
+ Timezone["AmericaMoncton"] = "america/moncton";
5968
+ Timezone["AmericaMonterrey"] = "america/monterrey";
5969
+ Timezone["AmericaMontevideo"] = "america/montevideo";
5970
+ Timezone["AmericaMontserrat"] = "america/montserrat";
5971
+ Timezone["AmericaNassau"] = "america/nassau";
5972
+ Timezone["AmericaNewYork"] = "america/new_york";
5973
+ Timezone["AmericaNome"] = "america/nome";
5974
+ Timezone["AmericaNoronha"] = "america/noronha";
5975
+ Timezone["AmericaNorthDakotaBeulah"] = "america/north_dakota/beulah";
5976
+ Timezone["AmericaNorthDakotaCenter"] = "america/north_dakota/center";
5977
+ Timezone["AmericaNorthDakotaNewSalem"] = "america/north_dakota/new_salem";
5978
+ Timezone["AmericaNuuk"] = "america/nuuk";
5979
+ Timezone["AmericaOjinaga"] = "america/ojinaga";
5980
+ Timezone["AmericaPanama"] = "america/panama";
5981
+ Timezone["AmericaParamaribo"] = "america/paramaribo";
5982
+ Timezone["AmericaPhoenix"] = "america/phoenix";
5983
+ Timezone["AmericaPortAuPrince"] = "america/port-au-prince";
5984
+ Timezone["AmericaPortOfSpain"] = "america/port_of_spain";
5985
+ Timezone["AmericaPortoVelho"] = "america/porto_velho";
5986
+ Timezone["AmericaPuertoRico"] = "america/puerto_rico";
5987
+ Timezone["AmericaPuntaArenas"] = "america/punta_arenas";
5988
+ Timezone["AmericaRankinInlet"] = "america/rankin_inlet";
5989
+ Timezone["AmericaRecife"] = "america/recife";
5990
+ Timezone["AmericaRegina"] = "america/regina";
5991
+ Timezone["AmericaResolute"] = "america/resolute";
5992
+ Timezone["AmericaRioBranco"] = "america/rio_branco";
5993
+ Timezone["AmericaSantarem"] = "america/santarem";
5994
+ Timezone["AmericaSantiago"] = "america/santiago";
5995
+ Timezone["AmericaSantoDomingo"] = "america/santo_domingo";
5996
+ Timezone["AmericaSaoPaulo"] = "america/sao_paulo";
5997
+ Timezone["AmericaScoresbysund"] = "america/scoresbysund";
5998
+ Timezone["AmericaSitka"] = "america/sitka";
5999
+ Timezone["AmericaStBarthelemy"] = "america/st_barthelemy";
6000
+ Timezone["AmericaStJohns"] = "america/st_johns";
6001
+ Timezone["AmericaStKitts"] = "america/st_kitts";
6002
+ Timezone["AmericaStLucia"] = "america/st_lucia";
6003
+ Timezone["AmericaStThomas"] = "america/st_thomas";
6004
+ Timezone["AmericaStVincent"] = "america/st_vincent";
6005
+ Timezone["AmericaSwiftCurrent"] = "america/swift_current";
6006
+ Timezone["AmericaTegucigalpa"] = "america/tegucigalpa";
6007
+ Timezone["AmericaThule"] = "america/thule";
6008
+ Timezone["AmericaTijuana"] = "america/tijuana";
6009
+ Timezone["AmericaToronto"] = "america/toronto";
6010
+ Timezone["AmericaTortola"] = "america/tortola";
6011
+ Timezone["AmericaVancouver"] = "america/vancouver";
6012
+ Timezone["AmericaWhitehorse"] = "america/whitehorse";
6013
+ Timezone["AmericaWinnipeg"] = "america/winnipeg";
6014
+ Timezone["AmericaYakutat"] = "america/yakutat";
6015
+ Timezone["AntarcticaCasey"] = "antarctica/casey";
6016
+ Timezone["AntarcticaDavis"] = "antarctica/davis";
6017
+ Timezone["AntarcticaDumontdurville"] = "antarctica/dumontdurville";
6018
+ Timezone["AntarcticaMacquarie"] = "antarctica/macquarie";
6019
+ Timezone["AntarcticaMawson"] = "antarctica/mawson";
6020
+ Timezone["AntarcticaMcmurdo"] = "antarctica/mcmurdo";
6021
+ Timezone["AntarcticaPalmer"] = "antarctica/palmer";
6022
+ Timezone["AntarcticaRothera"] = "antarctica/rothera";
6023
+ Timezone["AntarcticaSyowa"] = "antarctica/syowa";
6024
+ Timezone["AntarcticaTroll"] = "antarctica/troll";
6025
+ Timezone["AntarcticaVostok"] = "antarctica/vostok";
6026
+ Timezone["ArcticLongyearbyen"] = "arctic/longyearbyen";
6027
+ Timezone["AsiaAden"] = "asia/aden";
6028
+ Timezone["AsiaAlmaty"] = "asia/almaty";
6029
+ Timezone["AsiaAmman"] = "asia/amman";
6030
+ Timezone["AsiaAnadyr"] = "asia/anadyr";
6031
+ Timezone["AsiaAqtau"] = "asia/aqtau";
6032
+ Timezone["AsiaAqtobe"] = "asia/aqtobe";
6033
+ Timezone["AsiaAshgabat"] = "asia/ashgabat";
6034
+ Timezone["AsiaAtyrau"] = "asia/atyrau";
6035
+ Timezone["AsiaBaghdad"] = "asia/baghdad";
6036
+ Timezone["AsiaBahrain"] = "asia/bahrain";
6037
+ Timezone["AsiaBaku"] = "asia/baku";
6038
+ Timezone["AsiaBangkok"] = "asia/bangkok";
6039
+ Timezone["AsiaBarnaul"] = "asia/barnaul";
6040
+ Timezone["AsiaBeirut"] = "asia/beirut";
6041
+ Timezone["AsiaBishkek"] = "asia/bishkek";
6042
+ Timezone["AsiaBrunei"] = "asia/brunei";
6043
+ Timezone["AsiaChita"] = "asia/chita";
6044
+ Timezone["AsiaColombo"] = "asia/colombo";
6045
+ Timezone["AsiaDamascus"] = "asia/damascus";
6046
+ Timezone["AsiaDhaka"] = "asia/dhaka";
6047
+ Timezone["AsiaDili"] = "asia/dili";
6048
+ Timezone["AsiaDubai"] = "asia/dubai";
6049
+ Timezone["AsiaDushanbe"] = "asia/dushanbe";
6050
+ Timezone["AsiaFamagusta"] = "asia/famagusta";
6051
+ Timezone["AsiaGaza"] = "asia/gaza";
6052
+ Timezone["AsiaHebron"] = "asia/hebron";
6053
+ Timezone["AsiaHoChiMinh"] = "asia/ho_chi_minh";
6054
+ Timezone["AsiaHongKong"] = "asia/hong_kong";
6055
+ Timezone["AsiaHovd"] = "asia/hovd";
6056
+ Timezone["AsiaIrkutsk"] = "asia/irkutsk";
6057
+ Timezone["AsiaJakarta"] = "asia/jakarta";
6058
+ Timezone["AsiaJayapura"] = "asia/jayapura";
6059
+ Timezone["AsiaJerusalem"] = "asia/jerusalem";
6060
+ Timezone["AsiaKabul"] = "asia/kabul";
6061
+ Timezone["AsiaKamchatka"] = "asia/kamchatka";
6062
+ Timezone["AsiaKarachi"] = "asia/karachi";
6063
+ Timezone["AsiaKathmandu"] = "asia/kathmandu";
6064
+ Timezone["AsiaKhandyga"] = "asia/khandyga";
6065
+ Timezone["AsiaKolkata"] = "asia/kolkata";
6066
+ Timezone["AsiaKrasnoyarsk"] = "asia/krasnoyarsk";
6067
+ Timezone["AsiaKualaLumpur"] = "asia/kuala_lumpur";
6068
+ Timezone["AsiaKuching"] = "asia/kuching";
6069
+ Timezone["AsiaKuwait"] = "asia/kuwait";
6070
+ Timezone["AsiaMacau"] = "asia/macau";
6071
+ Timezone["AsiaMagadan"] = "asia/magadan";
6072
+ Timezone["AsiaMakassar"] = "asia/makassar";
6073
+ Timezone["AsiaManila"] = "asia/manila";
6074
+ Timezone["AsiaMuscat"] = "asia/muscat";
6075
+ Timezone["AsiaNicosia"] = "asia/nicosia";
6076
+ Timezone["AsiaNovokuznetsk"] = "asia/novokuznetsk";
6077
+ Timezone["AsiaNovosibirsk"] = "asia/novosibirsk";
6078
+ Timezone["AsiaOmsk"] = "asia/omsk";
6079
+ Timezone["AsiaOral"] = "asia/oral";
6080
+ Timezone["AsiaPhnomPenh"] = "asia/phnom_penh";
6081
+ Timezone["AsiaPontianak"] = "asia/pontianak";
6082
+ Timezone["AsiaPyongyang"] = "asia/pyongyang";
6083
+ Timezone["AsiaQatar"] = "asia/qatar";
6084
+ Timezone["AsiaQostanay"] = "asia/qostanay";
6085
+ Timezone["AsiaQyzylorda"] = "asia/qyzylorda";
6086
+ Timezone["AsiaRiyadh"] = "asia/riyadh";
6087
+ Timezone["AsiaSakhalin"] = "asia/sakhalin";
6088
+ Timezone["AsiaSamarkand"] = "asia/samarkand";
6089
+ Timezone["AsiaSeoul"] = "asia/seoul";
6090
+ Timezone["AsiaShanghai"] = "asia/shanghai";
6091
+ Timezone["AsiaSingapore"] = "asia/singapore";
6092
+ Timezone["AsiaSrednekolymsk"] = "asia/srednekolymsk";
6093
+ Timezone["AsiaTaipei"] = "asia/taipei";
6094
+ Timezone["AsiaTashkent"] = "asia/tashkent";
6095
+ Timezone["AsiaTbilisi"] = "asia/tbilisi";
6096
+ Timezone["AsiaTehran"] = "asia/tehran";
6097
+ Timezone["AsiaThimphu"] = "asia/thimphu";
6098
+ Timezone["AsiaTokyo"] = "asia/tokyo";
6099
+ Timezone["AsiaTomsk"] = "asia/tomsk";
6100
+ Timezone["AsiaUlaanbaatar"] = "asia/ulaanbaatar";
6101
+ Timezone["AsiaUrumqi"] = "asia/urumqi";
6102
+ Timezone["AsiaUstNera"] = "asia/ust-nera";
6103
+ Timezone["AsiaVientiane"] = "asia/vientiane";
6104
+ Timezone["AsiaVladivostok"] = "asia/vladivostok";
6105
+ Timezone["AsiaYakutsk"] = "asia/yakutsk";
6106
+ Timezone["AsiaYangon"] = "asia/yangon";
6107
+ Timezone["AsiaYekaterinburg"] = "asia/yekaterinburg";
6108
+ Timezone["AsiaYerevan"] = "asia/yerevan";
6109
+ Timezone["AtlanticAzores"] = "atlantic/azores";
6110
+ Timezone["AtlanticBermuda"] = "atlantic/bermuda";
6111
+ Timezone["AtlanticCanary"] = "atlantic/canary";
6112
+ Timezone["AtlanticCapeVerde"] = "atlantic/cape_verde";
6113
+ Timezone["AtlanticFaroe"] = "atlantic/faroe";
6114
+ Timezone["AtlanticMadeira"] = "atlantic/madeira";
6115
+ Timezone["AtlanticReykjavik"] = "atlantic/reykjavik";
6116
+ Timezone["AtlanticSouthGeorgia"] = "atlantic/south_georgia";
6117
+ Timezone["AtlanticStHelena"] = "atlantic/st_helena";
6118
+ Timezone["AtlanticStanley"] = "atlantic/stanley";
6119
+ Timezone["AustraliaAdelaide"] = "australia/adelaide";
6120
+ Timezone["AustraliaBrisbane"] = "australia/brisbane";
6121
+ Timezone["AustraliaBrokenHill"] = "australia/broken_hill";
6122
+ Timezone["AustraliaDarwin"] = "australia/darwin";
6123
+ Timezone["AustraliaEucla"] = "australia/eucla";
6124
+ Timezone["AustraliaHobart"] = "australia/hobart";
6125
+ Timezone["AustraliaLindeman"] = "australia/lindeman";
6126
+ Timezone["AustraliaLordHowe"] = "australia/lord_howe";
6127
+ Timezone["AustraliaMelbourne"] = "australia/melbourne";
6128
+ Timezone["AustraliaPerth"] = "australia/perth";
6129
+ Timezone["AustraliaSydney"] = "australia/sydney";
6130
+ Timezone["EuropeAmsterdam"] = "europe/amsterdam";
6131
+ Timezone["EuropeAndorra"] = "europe/andorra";
6132
+ Timezone["EuropeAstrakhan"] = "europe/astrakhan";
6133
+ Timezone["EuropeAthens"] = "europe/athens";
6134
+ Timezone["EuropeBelgrade"] = "europe/belgrade";
6135
+ Timezone["EuropeBerlin"] = "europe/berlin";
6136
+ Timezone["EuropeBratislava"] = "europe/bratislava";
6137
+ Timezone["EuropeBrussels"] = "europe/brussels";
6138
+ Timezone["EuropeBucharest"] = "europe/bucharest";
6139
+ Timezone["EuropeBudapest"] = "europe/budapest";
6140
+ Timezone["EuropeBusingen"] = "europe/busingen";
6141
+ Timezone["EuropeChisinau"] = "europe/chisinau";
6142
+ Timezone["EuropeCopenhagen"] = "europe/copenhagen";
6143
+ Timezone["EuropeDublin"] = "europe/dublin";
6144
+ Timezone["EuropeGibraltar"] = "europe/gibraltar";
6145
+ Timezone["EuropeGuernsey"] = "europe/guernsey";
6146
+ Timezone["EuropeHelsinki"] = "europe/helsinki";
6147
+ Timezone["EuropeIsleOfMan"] = "europe/isle_of_man";
6148
+ Timezone["EuropeIstanbul"] = "europe/istanbul";
6149
+ Timezone["EuropeJersey"] = "europe/jersey";
6150
+ Timezone["EuropeKaliningrad"] = "europe/kaliningrad";
6151
+ Timezone["EuropeKirov"] = "europe/kirov";
6152
+ Timezone["EuropeKyiv"] = "europe/kyiv";
6153
+ Timezone["EuropeLisbon"] = "europe/lisbon";
6154
+ Timezone["EuropeLjubljana"] = "europe/ljubljana";
6155
+ Timezone["EuropeLondon"] = "europe/london";
6156
+ Timezone["EuropeLuxembourg"] = "europe/luxembourg";
6157
+ Timezone["EuropeMadrid"] = "europe/madrid";
6158
+ Timezone["EuropeMalta"] = "europe/malta";
6159
+ Timezone["EuropeMariehamn"] = "europe/mariehamn";
6160
+ Timezone["EuropeMinsk"] = "europe/minsk";
6161
+ Timezone["EuropeMonaco"] = "europe/monaco";
6162
+ Timezone["EuropeMoscow"] = "europe/moscow";
6163
+ Timezone["EuropeOslo"] = "europe/oslo";
6164
+ Timezone["EuropeParis"] = "europe/paris";
6165
+ Timezone["EuropePodgorica"] = "europe/podgorica";
6166
+ Timezone["EuropePrague"] = "europe/prague";
6167
+ Timezone["EuropeRiga"] = "europe/riga";
6168
+ Timezone["EuropeRome"] = "europe/rome";
6169
+ Timezone["EuropeSamara"] = "europe/samara";
6170
+ Timezone["EuropeSanMarino"] = "europe/san_marino";
6171
+ Timezone["EuropeSarajevo"] = "europe/sarajevo";
6172
+ Timezone["EuropeSaratov"] = "europe/saratov";
6173
+ Timezone["EuropeSimferopol"] = "europe/simferopol";
6174
+ Timezone["EuropeSkopje"] = "europe/skopje";
6175
+ Timezone["EuropeSofia"] = "europe/sofia";
6176
+ Timezone["EuropeStockholm"] = "europe/stockholm";
6177
+ Timezone["EuropeTallinn"] = "europe/tallinn";
6178
+ Timezone["EuropeTirane"] = "europe/tirane";
6179
+ Timezone["EuropeUlyanovsk"] = "europe/ulyanovsk";
6180
+ Timezone["EuropeVaduz"] = "europe/vaduz";
6181
+ Timezone["EuropeVatican"] = "europe/vatican";
6182
+ Timezone["EuropeVienna"] = "europe/vienna";
6183
+ Timezone["EuropeVilnius"] = "europe/vilnius";
6184
+ Timezone["EuropeVolgograd"] = "europe/volgograd";
6185
+ Timezone["EuropeWarsaw"] = "europe/warsaw";
6186
+ Timezone["EuropeZagreb"] = "europe/zagreb";
6187
+ Timezone["EuropeZurich"] = "europe/zurich";
6188
+ Timezone["IndianAntananarivo"] = "indian/antananarivo";
6189
+ Timezone["IndianChagos"] = "indian/chagos";
6190
+ Timezone["IndianChristmas"] = "indian/christmas";
6191
+ Timezone["IndianCocos"] = "indian/cocos";
6192
+ Timezone["IndianComoro"] = "indian/comoro";
6193
+ Timezone["IndianKerguelen"] = "indian/kerguelen";
6194
+ Timezone["IndianMahe"] = "indian/mahe";
6195
+ Timezone["IndianMaldives"] = "indian/maldives";
6196
+ Timezone["IndianMauritius"] = "indian/mauritius";
6197
+ Timezone["IndianMayotte"] = "indian/mayotte";
6198
+ Timezone["IndianReunion"] = "indian/reunion";
6199
+ Timezone["PacificApia"] = "pacific/apia";
6200
+ Timezone["PacificAuckland"] = "pacific/auckland";
6201
+ Timezone["PacificBougainville"] = "pacific/bougainville";
6202
+ Timezone["PacificChatham"] = "pacific/chatham";
6203
+ Timezone["PacificChuuk"] = "pacific/chuuk";
6204
+ Timezone["PacificEaster"] = "pacific/easter";
6205
+ Timezone["PacificEfate"] = "pacific/efate";
6206
+ Timezone["PacificFakaofo"] = "pacific/fakaofo";
6207
+ Timezone["PacificFiji"] = "pacific/fiji";
6208
+ Timezone["PacificFunafuti"] = "pacific/funafuti";
6209
+ Timezone["PacificGalapagos"] = "pacific/galapagos";
6210
+ Timezone["PacificGambier"] = "pacific/gambier";
6211
+ Timezone["PacificGuadalcanal"] = "pacific/guadalcanal";
6212
+ Timezone["PacificGuam"] = "pacific/guam";
6213
+ Timezone["PacificHonolulu"] = "pacific/honolulu";
6214
+ Timezone["PacificKanton"] = "pacific/kanton";
6215
+ Timezone["PacificKiritimati"] = "pacific/kiritimati";
6216
+ Timezone["PacificKosrae"] = "pacific/kosrae";
6217
+ Timezone["PacificKwajalein"] = "pacific/kwajalein";
6218
+ Timezone["PacificMajuro"] = "pacific/majuro";
6219
+ Timezone["PacificMarquesas"] = "pacific/marquesas";
6220
+ Timezone["PacificMidway"] = "pacific/midway";
6221
+ Timezone["PacificNauru"] = "pacific/nauru";
6222
+ Timezone["PacificNiue"] = "pacific/niue";
6223
+ Timezone["PacificNorfolk"] = "pacific/norfolk";
6224
+ Timezone["PacificNoumea"] = "pacific/noumea";
6225
+ Timezone["PacificPagoPago"] = "pacific/pago_pago";
6226
+ Timezone["PacificPalau"] = "pacific/palau";
6227
+ Timezone["PacificPitcairn"] = "pacific/pitcairn";
6228
+ Timezone["PacificPohnpei"] = "pacific/pohnpei";
6229
+ Timezone["PacificPortMoresby"] = "pacific/port_moresby";
6230
+ Timezone["PacificRarotonga"] = "pacific/rarotonga";
6231
+ Timezone["PacificSaipan"] = "pacific/saipan";
6232
+ Timezone["PacificTahiti"] = "pacific/tahiti";
6233
+ Timezone["PacificTarawa"] = "pacific/tarawa";
6234
+ Timezone["PacificTongatapu"] = "pacific/tongatapu";
6235
+ Timezone["PacificWake"] = "pacific/wake";
6236
+ Timezone["PacificWallis"] = "pacific/wallis";
6237
+ Timezone["Utc"] = "utc";
6238
+ })(Timezone || (Timezone = {}));
6239
+
6240
+ var Output;
6241
+ (function (Output) {
6242
+ Output["Jpg"] = "jpg";
6243
+ Output["Jpeg"] = "jpeg";
6244
+ Output["Png"] = "png";
6245
+ Output["Webp"] = "webp";
6246
+ Output["Heic"] = "heic";
6247
+ Output["Avif"] = "avif";
6248
+ Output["Gif"] = "gif";
6249
+ })(Output || (Output = {}));
6250
+
5280
6251
  var ExecutionMethod;
5281
6252
  (function (ExecutionMethod) {
5282
6253
  ExecutionMethod["GET"] = "GET";
@@ -5312,5 +6283,21 @@ var ImageFormat;
5312
6283
  ImageFormat["Gif"] = "gif";
5313
6284
  })(ImageFormat || (ImageFormat = {}));
5314
6285
 
5315
- export { Account, AppwriteException, AuthenticationFactor, AuthenticatorType, Avatars, Browser, Client, CreditCard, Databases, ExecutionMethod, Flag, Functions, Graphql, ID, ImageFormat, ImageGravity, Locale, Messaging, OAuthProvider, Permission, Query, Role, Storage, TablesDB, Teams };
6286
+ var ExecutionTrigger;
6287
+ (function (ExecutionTrigger) {
6288
+ ExecutionTrigger["Http"] = "http";
6289
+ ExecutionTrigger["Schedule"] = "schedule";
6290
+ ExecutionTrigger["Event"] = "event";
6291
+ })(ExecutionTrigger || (ExecutionTrigger = {}));
6292
+
6293
+ var ExecutionStatus;
6294
+ (function (ExecutionStatus) {
6295
+ ExecutionStatus["Waiting"] = "waiting";
6296
+ ExecutionStatus["Processing"] = "processing";
6297
+ ExecutionStatus["Completed"] = "completed";
6298
+ ExecutionStatus["Failed"] = "failed";
6299
+ ExecutionStatus["Scheduled"] = "scheduled";
6300
+ })(ExecutionStatus || (ExecutionStatus = {}));
6301
+
6302
+ export { Account, AppwriteException, AuthenticationFactor, AuthenticatorType, Avatars, Browser, Client, Condition, CreditCard, Databases, ExecutionMethod, ExecutionStatus, ExecutionTrigger, Flag, Functions, Graphql, ID, ImageFormat, ImageGravity, Locale, Messaging, OAuthProvider, Operator, Output, Permission, Query, Role, Storage, TablesDB, Teams, Theme, Timezone };
5316
6303
  //# sourceMappingURL=sdk.js.map