@appwrite.io/console 8.1.1 → 8.3.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.3.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))) {
@@ -15278,6 +15372,152 @@ class Organizations {
15278
15372
  };
15279
15373
  return this.client.call('delete', uri, apiHeaders, payload);
15280
15374
  }
15375
+ listAddons(paramsOrFirst) {
15376
+ let params;
15377
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15378
+ params = (paramsOrFirst || {});
15379
+ }
15380
+ else {
15381
+ params = {
15382
+ organizationId: paramsOrFirst
15383
+ };
15384
+ }
15385
+ const organizationId = params.organizationId;
15386
+ if (typeof organizationId === 'undefined') {
15387
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15388
+ }
15389
+ const apiPath = '/organizations/{organizationId}/addons'.replace('{organizationId}', organizationId);
15390
+ const payload = {};
15391
+ const uri = new URL(this.client.config.endpoint + apiPath);
15392
+ const apiHeaders = {};
15393
+ return this.client.call('get', uri, apiHeaders, payload);
15394
+ }
15395
+ createBaaAddon(paramsOrFirst) {
15396
+ let params;
15397
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15398
+ params = (paramsOrFirst || {});
15399
+ }
15400
+ else {
15401
+ params = {
15402
+ organizationId: paramsOrFirst
15403
+ };
15404
+ }
15405
+ const organizationId = params.organizationId;
15406
+ if (typeof organizationId === 'undefined') {
15407
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15408
+ }
15409
+ const apiPath = '/organizations/{organizationId}/addons/baa'.replace('{organizationId}', organizationId);
15410
+ const payload = {};
15411
+ const uri = new URL(this.client.config.endpoint + apiPath);
15412
+ const apiHeaders = {
15413
+ 'content-type': 'application/json',
15414
+ };
15415
+ return this.client.call('post', uri, apiHeaders, payload);
15416
+ }
15417
+ getAddon(paramsOrFirst, ...rest) {
15418
+ let params;
15419
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15420
+ params = (paramsOrFirst || {});
15421
+ }
15422
+ else {
15423
+ params = {
15424
+ organizationId: paramsOrFirst,
15425
+ addonId: rest[0]
15426
+ };
15427
+ }
15428
+ const organizationId = params.organizationId;
15429
+ const addonId = params.addonId;
15430
+ if (typeof organizationId === 'undefined') {
15431
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15432
+ }
15433
+ if (typeof addonId === 'undefined') {
15434
+ throw new AppwriteException('Missing required parameter: "addonId"');
15435
+ }
15436
+ const apiPath = '/organizations/{organizationId}/addons/{addonId}'.replace('{organizationId}', organizationId).replace('{addonId}', addonId);
15437
+ const payload = {};
15438
+ const uri = new URL(this.client.config.endpoint + apiPath);
15439
+ const apiHeaders = {};
15440
+ return this.client.call('get', uri, apiHeaders, payload);
15441
+ }
15442
+ deleteAddon(paramsOrFirst, ...rest) {
15443
+ let params;
15444
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15445
+ params = (paramsOrFirst || {});
15446
+ }
15447
+ else {
15448
+ params = {
15449
+ organizationId: paramsOrFirst,
15450
+ addonId: rest[0]
15451
+ };
15452
+ }
15453
+ const organizationId = params.organizationId;
15454
+ const addonId = params.addonId;
15455
+ if (typeof organizationId === 'undefined') {
15456
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15457
+ }
15458
+ if (typeof addonId === 'undefined') {
15459
+ throw new AppwriteException('Missing required parameter: "addonId"');
15460
+ }
15461
+ const apiPath = '/organizations/{organizationId}/addons/{addonId}'.replace('{organizationId}', organizationId).replace('{addonId}', addonId);
15462
+ const payload = {};
15463
+ const uri = new URL(this.client.config.endpoint + apiPath);
15464
+ const apiHeaders = {
15465
+ 'content-type': 'application/json',
15466
+ };
15467
+ return this.client.call('delete', uri, apiHeaders, payload);
15468
+ }
15469
+ confirmAddonPayment(paramsOrFirst, ...rest) {
15470
+ let params;
15471
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15472
+ params = (paramsOrFirst || {});
15473
+ }
15474
+ else {
15475
+ params = {
15476
+ organizationId: paramsOrFirst,
15477
+ addonId: rest[0]
15478
+ };
15479
+ }
15480
+ const organizationId = params.organizationId;
15481
+ const addonId = params.addonId;
15482
+ if (typeof organizationId === 'undefined') {
15483
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15484
+ }
15485
+ if (typeof addonId === 'undefined') {
15486
+ throw new AppwriteException('Missing required parameter: "addonId"');
15487
+ }
15488
+ const apiPath = '/organizations/{organizationId}/addons/{addonId}/confirmations'.replace('{organizationId}', organizationId).replace('{addonId}', addonId);
15489
+ const payload = {};
15490
+ const uri = new URL(this.client.config.endpoint + apiPath);
15491
+ const apiHeaders = {
15492
+ 'content-type': 'application/json',
15493
+ };
15494
+ return this.client.call('post', uri, apiHeaders, payload);
15495
+ }
15496
+ getAddonPrice(paramsOrFirst, ...rest) {
15497
+ let params;
15498
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15499
+ params = (paramsOrFirst || {});
15500
+ }
15501
+ else {
15502
+ params = {
15503
+ organizationId: paramsOrFirst,
15504
+ addon: rest[0]
15505
+ };
15506
+ }
15507
+ const organizationId = params.organizationId;
15508
+ const addon = params.addon;
15509
+ if (typeof organizationId === 'undefined') {
15510
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15511
+ }
15512
+ if (typeof addon === 'undefined') {
15513
+ throw new AppwriteException('Missing required parameter: "addon"');
15514
+ }
15515
+ const apiPath = '/organizations/{organizationId}/addons/{addon}/price'.replace('{organizationId}', organizationId).replace('{addon}', addon);
15516
+ const payload = {};
15517
+ const uri = new URL(this.client.config.endpoint + apiPath);
15518
+ const apiHeaders = {};
15519
+ return this.client.call('get', uri, apiHeaders, payload);
15520
+ }
15281
15521
  listAggregations(paramsOrFirst, ...rest) {
15282
15522
  let params;
15283
15523
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -28713,6 +28953,7 @@ var Runtime;
28713
28953
  Runtime["Dart38"] = "dart-3.8";
28714
28954
  Runtime["Dart39"] = "dart-3.9";
28715
28955
  Runtime["Dart310"] = "dart-3.10";
28956
+ Runtime["Dart311"] = "dart-3.11";
28716
28957
  Runtime["Dotnet60"] = "dotnet-6.0";
28717
28958
  Runtime["Dotnet70"] = "dotnet-7.0";
28718
28959
  Runtime["Dotnet80"] = "dotnet-8.0";
@@ -28751,6 +28992,7 @@ var Runtime;
28751
28992
  Runtime["Flutter332"] = "flutter-3.32";
28752
28993
  Runtime["Flutter335"] = "flutter-3.35";
28753
28994
  Runtime["Flutter338"] = "flutter-3.38";
28995
+ Runtime["Flutter341"] = "flutter-3.41";
28754
28996
  })(Runtime || (Runtime = {}));
28755
28997
 
28756
28998
  var Runtimes;
@@ -28803,6 +29045,7 @@ var Runtimes;
28803
29045
  Runtimes["Dart38"] = "dart-3.8";
28804
29046
  Runtimes["Dart39"] = "dart-3.9";
28805
29047
  Runtimes["Dart310"] = "dart-3.10";
29048
+ Runtimes["Dart311"] = "dart-3.11";
28806
29049
  Runtimes["Dotnet60"] = "dotnet-6.0";
28807
29050
  Runtimes["Dotnet70"] = "dotnet-7.0";
28808
29051
  Runtimes["Dotnet80"] = "dotnet-8.0";
@@ -28841,6 +29084,7 @@ var Runtimes;
28841
29084
  Runtimes["Flutter332"] = "flutter-3.32";
28842
29085
  Runtimes["Flutter335"] = "flutter-3.35";
28843
29086
  Runtimes["Flutter338"] = "flutter-3.38";
29087
+ Runtimes["Flutter341"] = "flutter-3.41";
28844
29088
  })(Runtimes || (Runtimes = {}));
28845
29089
 
28846
29090
  var UseCases;
@@ -28995,6 +29239,11 @@ var SupabaseMigrationResource;
28995
29239
  SupabaseMigrationResource["File"] = "file";
28996
29240
  })(SupabaseMigrationResource || (SupabaseMigrationResource = {}));
28997
29241
 
29242
+ var Addon;
29243
+ (function (Addon) {
29244
+ Addon["Baa"] = "baa";
29245
+ })(Addon || (Addon = {}));
29246
+
28998
29247
  var ProjectUsageRange;
28999
29248
  (function (ProjectUsageRange) {
29000
29249
  ProjectUsageRange["OneHour"] = "1h";
@@ -29456,6 +29705,7 @@ var BuildRuntime;
29456
29705
  BuildRuntime["Dart38"] = "dart-3.8";
29457
29706
  BuildRuntime["Dart39"] = "dart-3.9";
29458
29707
  BuildRuntime["Dart310"] = "dart-3.10";
29708
+ BuildRuntime["Dart311"] = "dart-3.11";
29459
29709
  BuildRuntime["Dotnet60"] = "dotnet-6.0";
29460
29710
  BuildRuntime["Dotnet70"] = "dotnet-7.0";
29461
29711
  BuildRuntime["Dotnet80"] = "dotnet-8.0";
@@ -29494,6 +29744,7 @@ var BuildRuntime;
29494
29744
  BuildRuntime["Flutter332"] = "flutter-3.32";
29495
29745
  BuildRuntime["Flutter335"] = "flutter-3.35";
29496
29746
  BuildRuntime["Flutter338"] = "flutter-3.38";
29747
+ BuildRuntime["Flutter341"] = "flutter-3.41";
29497
29748
  })(BuildRuntime || (BuildRuntime = {}));
29498
29749
 
29499
29750
  var Adapter;
@@ -29701,5 +29952,5 @@ var DomainPurchaseStatus;
29701
29952
  DomainPurchaseStatus["Cancelled"] = "cancelled";
29702
29953
  })(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
29703
29954
 
29704
- export { Account, Activities, Adapter, Api, ApiService, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DomainPurchaseStatus, DomainTransferStatusEnum, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, FirebaseMigrationResource, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, Locale, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, NHostMigrationResource, Name, OAuthProvider, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, ResourceType, Role, Runtime, Runtimes, SMTPSecure, Scopes, Sites, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs, Webhooks };
29955
+ export { Account, Activities, Adapter, Addon, Api, ApiService, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DomainPurchaseStatus, DomainTransferStatusEnum, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, FirebaseMigrationResource, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, Locale, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, NHostMigrationResource, Name, OAuthProvider, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, ResourceType, Role, Runtime, Runtimes, SMTPSecure, Scopes, Sites, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs, Webhooks };
29705
29956
  //# sourceMappingURL=sdk.js.map