@appwrite.io/console 8.1.1 → 8.2.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.
package/dist/esm/sdk.js CHANGED
@@ -578,7 +578,7 @@ class Client {
578
578
  'x-sdk-name': 'Console',
579
579
  'x-sdk-platform': 'console',
580
580
  'x-sdk-language': 'web',
581
- 'x-sdk-version': '8.1.1',
581
+ 'x-sdk-version': '8.2.0',
582
582
  'X-Appwrite-Response-Format': '1.9.0',
583
583
  };
584
584
  this.realtime = {
@@ -14748,6 +14748,100 @@ class Migrations {
14748
14748
  const apiHeaders = {};
14749
14749
  return this.client.call('get', uri, apiHeaders, payload);
14750
14750
  }
14751
+ createJSONExport(paramsOrFirst, ...rest) {
14752
+ let params;
14753
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14754
+ params = (paramsOrFirst || {});
14755
+ }
14756
+ else {
14757
+ params = {
14758
+ resourceId: paramsOrFirst,
14759
+ filename: rest[0],
14760
+ columns: rest[1],
14761
+ queries: rest[2],
14762
+ notify: rest[3]
14763
+ };
14764
+ }
14765
+ const resourceId = params.resourceId;
14766
+ const filename = params.filename;
14767
+ const columns = params.columns;
14768
+ const queries = params.queries;
14769
+ const notify = params.notify;
14770
+ if (typeof resourceId === 'undefined') {
14771
+ throw new AppwriteException('Missing required parameter: "resourceId"');
14772
+ }
14773
+ if (typeof filename === 'undefined') {
14774
+ throw new AppwriteException('Missing required parameter: "filename"');
14775
+ }
14776
+ const apiPath = '/migrations/json/exports';
14777
+ const payload = {};
14778
+ if (typeof resourceId !== 'undefined') {
14779
+ payload['resourceId'] = resourceId;
14780
+ }
14781
+ if (typeof filename !== 'undefined') {
14782
+ payload['filename'] = filename;
14783
+ }
14784
+ if (typeof columns !== 'undefined') {
14785
+ payload['columns'] = columns;
14786
+ }
14787
+ if (typeof queries !== 'undefined') {
14788
+ payload['queries'] = queries;
14789
+ }
14790
+ if (typeof notify !== 'undefined') {
14791
+ payload['notify'] = notify;
14792
+ }
14793
+ const uri = new URL(this.client.config.endpoint + apiPath);
14794
+ const apiHeaders = {
14795
+ 'content-type': 'application/json',
14796
+ };
14797
+ return this.client.call('post', uri, apiHeaders, payload);
14798
+ }
14799
+ createJSONImport(paramsOrFirst, ...rest) {
14800
+ let params;
14801
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14802
+ params = (paramsOrFirst || {});
14803
+ }
14804
+ else {
14805
+ params = {
14806
+ bucketId: paramsOrFirst,
14807
+ fileId: rest[0],
14808
+ resourceId: rest[1],
14809
+ internalFile: rest[2]
14810
+ };
14811
+ }
14812
+ const bucketId = params.bucketId;
14813
+ const fileId = params.fileId;
14814
+ const resourceId = params.resourceId;
14815
+ const internalFile = params.internalFile;
14816
+ if (typeof bucketId === 'undefined') {
14817
+ throw new AppwriteException('Missing required parameter: "bucketId"');
14818
+ }
14819
+ if (typeof fileId === 'undefined') {
14820
+ throw new AppwriteException('Missing required parameter: "fileId"');
14821
+ }
14822
+ if (typeof resourceId === 'undefined') {
14823
+ throw new AppwriteException('Missing required parameter: "resourceId"');
14824
+ }
14825
+ const apiPath = '/migrations/json/imports';
14826
+ const payload = {};
14827
+ if (typeof bucketId !== 'undefined') {
14828
+ payload['bucketId'] = bucketId;
14829
+ }
14830
+ if (typeof fileId !== 'undefined') {
14831
+ payload['fileId'] = fileId;
14832
+ }
14833
+ if (typeof resourceId !== 'undefined') {
14834
+ payload['resourceId'] = resourceId;
14835
+ }
14836
+ if (typeof internalFile !== 'undefined') {
14837
+ payload['internalFile'] = internalFile;
14838
+ }
14839
+ const uri = new URL(this.client.config.endpoint + apiPath);
14840
+ const apiHeaders = {
14841
+ 'content-type': 'application/json',
14842
+ };
14843
+ return this.client.call('post', uri, apiHeaders, payload);
14844
+ }
14751
14845
  createNHostMigration(paramsOrFirst, ...rest) {
14752
14846
  let params;
14753
14847
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resources' in paramsOrFirst || 'subdomain' in paramsOrFirst || 'region' in paramsOrFirst || 'adminSecret' in paramsOrFirst || 'database' in paramsOrFirst || 'username' in paramsOrFirst || 'password' in paramsOrFirst || 'port' in paramsOrFirst))) {
@@ -28713,6 +28807,7 @@ var Runtime;
28713
28807
  Runtime["Dart38"] = "dart-3.8";
28714
28808
  Runtime["Dart39"] = "dart-3.9";
28715
28809
  Runtime["Dart310"] = "dart-3.10";
28810
+ Runtime["Dart311"] = "dart-3.11";
28716
28811
  Runtime["Dotnet60"] = "dotnet-6.0";
28717
28812
  Runtime["Dotnet70"] = "dotnet-7.0";
28718
28813
  Runtime["Dotnet80"] = "dotnet-8.0";
@@ -28751,6 +28846,7 @@ var Runtime;
28751
28846
  Runtime["Flutter332"] = "flutter-3.32";
28752
28847
  Runtime["Flutter335"] = "flutter-3.35";
28753
28848
  Runtime["Flutter338"] = "flutter-3.38";
28849
+ Runtime["Flutter341"] = "flutter-3.41";
28754
28850
  })(Runtime || (Runtime = {}));
28755
28851
 
28756
28852
  var Runtimes;
@@ -28803,6 +28899,7 @@ var Runtimes;
28803
28899
  Runtimes["Dart38"] = "dart-3.8";
28804
28900
  Runtimes["Dart39"] = "dart-3.9";
28805
28901
  Runtimes["Dart310"] = "dart-3.10";
28902
+ Runtimes["Dart311"] = "dart-3.11";
28806
28903
  Runtimes["Dotnet60"] = "dotnet-6.0";
28807
28904
  Runtimes["Dotnet70"] = "dotnet-7.0";
28808
28905
  Runtimes["Dotnet80"] = "dotnet-8.0";
@@ -28841,6 +28938,7 @@ var Runtimes;
28841
28938
  Runtimes["Flutter332"] = "flutter-3.32";
28842
28939
  Runtimes["Flutter335"] = "flutter-3.35";
28843
28940
  Runtimes["Flutter338"] = "flutter-3.38";
28941
+ Runtimes["Flutter341"] = "flutter-3.41";
28844
28942
  })(Runtimes || (Runtimes = {}));
28845
28943
 
28846
28944
  var UseCases;
@@ -29456,6 +29554,7 @@ var BuildRuntime;
29456
29554
  BuildRuntime["Dart38"] = "dart-3.8";
29457
29555
  BuildRuntime["Dart39"] = "dart-3.9";
29458
29556
  BuildRuntime["Dart310"] = "dart-3.10";
29557
+ BuildRuntime["Dart311"] = "dart-3.11";
29459
29558
  BuildRuntime["Dotnet60"] = "dotnet-6.0";
29460
29559
  BuildRuntime["Dotnet70"] = "dotnet-7.0";
29461
29560
  BuildRuntime["Dotnet80"] = "dotnet-8.0";
@@ -29494,6 +29593,7 @@ var BuildRuntime;
29494
29593
  BuildRuntime["Flutter332"] = "flutter-3.32";
29495
29594
  BuildRuntime["Flutter335"] = "flutter-3.35";
29496
29595
  BuildRuntime["Flutter338"] = "flutter-3.38";
29596
+ BuildRuntime["Flutter341"] = "flutter-3.41";
29497
29597
  })(BuildRuntime || (BuildRuntime = {}));
29498
29598
 
29499
29599
  var Adapter;