@appwrite.io/console 8.2.0 → 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/README.md +1 -1
- package/dist/cjs/sdk.js +152 -1
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +153 -2
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +152 -1
- package/package.json +1 -1
- package/types/enums/addon.d.ts +3 -0
- package/types/index.d.ts +1 -0
- package/types/models.d.ts +134 -6
- package/types/services/migrations.d.ts +8 -0
- package/types/services/organizations.d.ts +139 -0
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.
|
|
581
|
+
'x-sdk-version': '8.3.0',
|
|
582
582
|
'X-Appwrite-Response-Format': '1.9.0',
|
|
583
583
|
};
|
|
584
584
|
this.realtime = {
|
|
@@ -15372,6 +15372,152 @@ class Organizations {
|
|
|
15372
15372
|
};
|
|
15373
15373
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
15374
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
|
+
}
|
|
15375
15521
|
listAggregations(paramsOrFirst, ...rest) {
|
|
15376
15522
|
let params;
|
|
15377
15523
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -29093,6 +29239,11 @@ var SupabaseMigrationResource;
|
|
|
29093
29239
|
SupabaseMigrationResource["File"] = "file";
|
|
29094
29240
|
})(SupabaseMigrationResource || (SupabaseMigrationResource = {}));
|
|
29095
29241
|
|
|
29242
|
+
var Addon;
|
|
29243
|
+
(function (Addon) {
|
|
29244
|
+
Addon["Baa"] = "baa";
|
|
29245
|
+
})(Addon || (Addon = {}));
|
|
29246
|
+
|
|
29096
29247
|
var ProjectUsageRange;
|
|
29097
29248
|
(function (ProjectUsageRange) {
|
|
29098
29249
|
ProjectUsageRange["OneHour"] = "1h";
|
|
@@ -29801,5 +29952,5 @@ var DomainPurchaseStatus;
|
|
|
29801
29952
|
DomainPurchaseStatus["Cancelled"] = "cancelled";
|
|
29802
29953
|
})(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
|
|
29803
29954
|
|
|
29804
|
-
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 };
|
|
29805
29956
|
//# sourceMappingURL=sdk.js.map
|