@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/README.md +1 -1
- package/dist/cjs/sdk.js +252 -1
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +253 -2
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +3902 -3626
- package/package.json +9 -6
- package/types/enums/addon.d.ts +3 -0
- package/types/enums/build-runtime.d.ts +3 -1
- package/types/enums/runtime.d.ts +3 -1
- package/types/enums/runtimes.d.ts +3 -1
- package/types/index.d.ts +1 -0
- package/types/models.d.ts +132 -4
- package/types/services/health.d.ts +2 -0
- package/types/services/migrations.d.ts +63 -0
- package/types/services/organizations.d.ts +139 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@appwrite.io/console",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
|
|
5
|
-
"version": "8.
|
|
5
|
+
"version": "8.3.0",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
|
@@ -28,17 +28,20 @@
|
|
|
28
28
|
"build:types": "tsc --declaration --emitDeclarationOnly --outDir types",
|
|
29
29
|
"build:libs": "rollup -c"
|
|
30
30
|
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18.0.0"
|
|
33
|
+
},
|
|
31
34
|
"dependencies": {
|
|
32
35
|
"json-bigint": "1.0.0"
|
|
33
36
|
},
|
|
34
37
|
"devDependencies": {
|
|
35
|
-
"@rollup/plugin-commonjs": "
|
|
36
|
-
"@rollup/plugin-node-resolve": "
|
|
37
|
-
"@rollup/plugin-typescript": "
|
|
38
|
+
"@rollup/plugin-commonjs": "29.0.2",
|
|
39
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
40
|
+
"@rollup/plugin-typescript": "12.3.0",
|
|
38
41
|
"@types/json-bigint": "1.0.4",
|
|
39
42
|
"playwright": "1.56.1",
|
|
40
|
-
"rollup": "
|
|
41
|
-
"serve-handler": "6.1.
|
|
43
|
+
"rollup": "4.60.1",
|
|
44
|
+
"serve-handler": "6.1.7",
|
|
42
45
|
"tslib": "2.8.1",
|
|
43
46
|
"typescript": "5.7.3"
|
|
44
47
|
},
|
|
@@ -47,6 +47,7 @@ export declare enum BuildRuntime {
|
|
|
47
47
|
Dart38 = "dart-3.8",
|
|
48
48
|
Dart39 = "dart-3.9",
|
|
49
49
|
Dart310 = "dart-3.10",
|
|
50
|
+
Dart311 = "dart-3.11",
|
|
50
51
|
Dotnet60 = "dotnet-6.0",
|
|
51
52
|
Dotnet70 = "dotnet-7.0",
|
|
52
53
|
Dotnet80 = "dotnet-8.0",
|
|
@@ -84,5 +85,6 @@ export declare enum BuildRuntime {
|
|
|
84
85
|
Flutter329 = "flutter-3.29",
|
|
85
86
|
Flutter332 = "flutter-3.32",
|
|
86
87
|
Flutter335 = "flutter-3.35",
|
|
87
|
-
Flutter338 = "flutter-3.38"
|
|
88
|
+
Flutter338 = "flutter-3.38",
|
|
89
|
+
Flutter341 = "flutter-3.41"
|
|
88
90
|
}
|
package/types/enums/runtime.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare enum Runtime {
|
|
|
47
47
|
Dart38 = "dart-3.8",
|
|
48
48
|
Dart39 = "dart-3.9",
|
|
49
49
|
Dart310 = "dart-3.10",
|
|
50
|
+
Dart311 = "dart-3.11",
|
|
50
51
|
Dotnet60 = "dotnet-6.0",
|
|
51
52
|
Dotnet70 = "dotnet-7.0",
|
|
52
53
|
Dotnet80 = "dotnet-8.0",
|
|
@@ -84,5 +85,6 @@ export declare enum Runtime {
|
|
|
84
85
|
Flutter329 = "flutter-3.29",
|
|
85
86
|
Flutter332 = "flutter-3.32",
|
|
86
87
|
Flutter335 = "flutter-3.35",
|
|
87
|
-
Flutter338 = "flutter-3.38"
|
|
88
|
+
Flutter338 = "flutter-3.38",
|
|
89
|
+
Flutter341 = "flutter-3.41"
|
|
88
90
|
}
|
|
@@ -47,6 +47,7 @@ export declare enum Runtimes {
|
|
|
47
47
|
Dart38 = "dart-3.8",
|
|
48
48
|
Dart39 = "dart-3.9",
|
|
49
49
|
Dart310 = "dart-3.10",
|
|
50
|
+
Dart311 = "dart-3.11",
|
|
50
51
|
Dotnet60 = "dotnet-6.0",
|
|
51
52
|
Dotnet70 = "dotnet-7.0",
|
|
52
53
|
Dotnet80 = "dotnet-8.0",
|
|
@@ -84,5 +85,6 @@ export declare enum Runtimes {
|
|
|
84
85
|
Flutter329 = "flutter-3.29",
|
|
85
86
|
Flutter332 = "flutter-3.32",
|
|
86
87
|
Flutter335 = "flutter-3.35",
|
|
87
|
-
Flutter338 = "flutter-3.38"
|
|
88
|
+
Flutter338 = "flutter-3.38",
|
|
89
|
+
Flutter341 = "flutter-3.41"
|
|
88
90
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export { AppwriteMigrationResource } from './enums/appwrite-migration-resource';
|
|
|
76
76
|
export { FirebaseMigrationResource } from './enums/firebase-migration-resource';
|
|
77
77
|
export { NHostMigrationResource } from './enums/n-host-migration-resource';
|
|
78
78
|
export { SupabaseMigrationResource } from './enums/supabase-migration-resource';
|
|
79
|
+
export { Addon } from './enums/addon';
|
|
79
80
|
export { ProjectUsageRange } from './enums/project-usage-range';
|
|
80
81
|
export { Region } from './enums/region';
|
|
81
82
|
export { Api } from './enums/api';
|
package/types/models.d.ts
CHANGED
|
@@ -4475,6 +4475,18 @@ export declare namespace Models {
|
|
|
4475
4475
|
* Whether or not to check the user password for similarity with their personal data.
|
|
4476
4476
|
*/
|
|
4477
4477
|
authPersonalDataCheck: boolean;
|
|
4478
|
+
/**
|
|
4479
|
+
* Whether or not to disallow disposable email addresses during signup and email updates.
|
|
4480
|
+
*/
|
|
4481
|
+
authDisposableEmails: boolean;
|
|
4482
|
+
/**
|
|
4483
|
+
* Whether or not to require canonical email addresses during signup and email updates.
|
|
4484
|
+
*/
|
|
4485
|
+
authCanonicalEmails: boolean;
|
|
4486
|
+
/**
|
|
4487
|
+
* Whether or not to disallow free email addresses during signup and email updates.
|
|
4488
|
+
*/
|
|
4489
|
+
authFreeEmails: boolean;
|
|
4478
4490
|
/**
|
|
4479
4491
|
* An array of mock numbers and their corresponding verification codes (OTPs).
|
|
4480
4492
|
*/
|
|
@@ -6473,6 +6485,10 @@ export declare namespace Models {
|
|
|
6473
6485
|
* Whether the database adapter uses integer sequence IDs.
|
|
6474
6486
|
*/
|
|
6475
6487
|
supportForIntegerIds: boolean;
|
|
6488
|
+
/**
|
|
6489
|
+
* Whether email verification for console users is required. Can be "true" or "false".
|
|
6490
|
+
*/
|
|
6491
|
+
_APP_CONSOLE_EMAIL_VERIFICATION: string;
|
|
6476
6492
|
};
|
|
6477
6493
|
/**
|
|
6478
6494
|
* MFA Challenge
|
|
@@ -7512,6 +7528,10 @@ export declare namespace Models {
|
|
|
7512
7528
|
* Whether usage addons are calculated per project.
|
|
7513
7529
|
*/
|
|
7514
7530
|
usagePerProject: boolean;
|
|
7531
|
+
/**
|
|
7532
|
+
* Supported addons for this plan
|
|
7533
|
+
*/
|
|
7534
|
+
supportedAddons: BillingPlanSupportedAddons;
|
|
7515
7535
|
/**
|
|
7516
7536
|
* How many policies does plan support
|
|
7517
7537
|
*/
|
|
@@ -7604,6 +7624,15 @@ export declare namespace Models {
|
|
|
7604
7624
|
*/
|
|
7605
7625
|
dailyCredits?: number;
|
|
7606
7626
|
};
|
|
7627
|
+
/**
|
|
7628
|
+
* BillingPlanSupportedAddons
|
|
7629
|
+
*/
|
|
7630
|
+
export type BillingPlanSupportedAddons = {
|
|
7631
|
+
/**
|
|
7632
|
+
* Whether the plan supports BAA (Business Associate Agreement) addon
|
|
7633
|
+
*/
|
|
7634
|
+
baa: boolean;
|
|
7635
|
+
};
|
|
7607
7636
|
/**
|
|
7608
7637
|
* BillingLimits
|
|
7609
7638
|
*/
|
|
@@ -7658,13 +7687,13 @@ export declare namespace Models {
|
|
|
7658
7687
|
*/
|
|
7659
7688
|
resourceId: string;
|
|
7660
7689
|
/**
|
|
7661
|
-
* Reason for the block
|
|
7690
|
+
* Reason for the block. Can be null if no reason was provided.
|
|
7662
7691
|
*/
|
|
7663
|
-
reason
|
|
7692
|
+
reason?: string;
|
|
7664
7693
|
/**
|
|
7665
|
-
* Block expiration date in ISO 8601 format.
|
|
7694
|
+
* Block expiration date in ISO 8601 format. Can be null if the block does not expire.
|
|
7666
7695
|
*/
|
|
7667
|
-
expiredAt
|
|
7696
|
+
expiredAt?: string;
|
|
7668
7697
|
};
|
|
7669
7698
|
/**
|
|
7670
7699
|
* Campaign
|
|
@@ -8175,6 +8204,10 @@ export declare namespace Models {
|
|
|
8175
8204
|
* Invoice ID against which the payment needs to be validated.
|
|
8176
8205
|
*/
|
|
8177
8206
|
invoiceId: string;
|
|
8207
|
+
/**
|
|
8208
|
+
* Addon ID to use when calling the addon validate endpoint. Empty when authentication is not for an addon.
|
|
8209
|
+
*/
|
|
8210
|
+
addonId: string;
|
|
8178
8211
|
};
|
|
8179
8212
|
/**
|
|
8180
8213
|
* paymentMethod
|
|
@@ -9027,6 +9060,88 @@ export declare namespace Models {
|
|
|
9027
9060
|
*/
|
|
9028
9061
|
available: boolean;
|
|
9029
9062
|
};
|
|
9063
|
+
/**
|
|
9064
|
+
* Addon
|
|
9065
|
+
*/
|
|
9066
|
+
export type Addon = {
|
|
9067
|
+
/**
|
|
9068
|
+
* Addon ID.
|
|
9069
|
+
*/
|
|
9070
|
+
$id: string;
|
|
9071
|
+
/**
|
|
9072
|
+
* Addon creation time in ISO 8601 format.
|
|
9073
|
+
*/
|
|
9074
|
+
$createdAt: string;
|
|
9075
|
+
/**
|
|
9076
|
+
* Addon update date in ISO 8601 format.
|
|
9077
|
+
*/
|
|
9078
|
+
$updatedAt: string;
|
|
9079
|
+
/**
|
|
9080
|
+
* Addon permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
9081
|
+
*/
|
|
9082
|
+
$permissions: string[];
|
|
9083
|
+
/**
|
|
9084
|
+
* Addon key
|
|
9085
|
+
*/
|
|
9086
|
+
key: string;
|
|
9087
|
+
/**
|
|
9088
|
+
* Resource type (organization or project)
|
|
9089
|
+
*/
|
|
9090
|
+
resourceType: string;
|
|
9091
|
+
/**
|
|
9092
|
+
* Resource ID
|
|
9093
|
+
*/
|
|
9094
|
+
resourceId: string;
|
|
9095
|
+
/**
|
|
9096
|
+
* Payment status. Possible values: pending (awaiting payment confirmation e.g. 3DS), active (payment confirmed and addon is running).
|
|
9097
|
+
*/
|
|
9098
|
+
status: string;
|
|
9099
|
+
/**
|
|
9100
|
+
* Current value for this billing cycle. For toggle addons: 1 (on) or 0 (off). For numeric addons: the active quantity.
|
|
9101
|
+
*/
|
|
9102
|
+
currentValue: number;
|
|
9103
|
+
/**
|
|
9104
|
+
* Value to apply at the start of the next billing cycle. Null means no change is scheduled. For toggle addons, 0 means the addon will be removed at the next cycle.
|
|
9105
|
+
*/
|
|
9106
|
+
nextValue?: number;
|
|
9107
|
+
};
|
|
9108
|
+
/**
|
|
9109
|
+
* AddonPrice
|
|
9110
|
+
*/
|
|
9111
|
+
export type AddonPrice = {
|
|
9112
|
+
/**
|
|
9113
|
+
* Addon key.
|
|
9114
|
+
*/
|
|
9115
|
+
addonKey: string;
|
|
9116
|
+
/**
|
|
9117
|
+
* Addon display name.
|
|
9118
|
+
*/
|
|
9119
|
+
name: string;
|
|
9120
|
+
/**
|
|
9121
|
+
* Full monthly price of the addon.
|
|
9122
|
+
*/
|
|
9123
|
+
monthlyPrice: number;
|
|
9124
|
+
/**
|
|
9125
|
+
* Calculated prorated amount for the current billing cycle.
|
|
9126
|
+
*/
|
|
9127
|
+
proratedAmount: number;
|
|
9128
|
+
/**
|
|
9129
|
+
* Days remaining in the current billing cycle.
|
|
9130
|
+
*/
|
|
9131
|
+
remainingDays: number;
|
|
9132
|
+
/**
|
|
9133
|
+
* Total days in the billing cycle.
|
|
9134
|
+
*/
|
|
9135
|
+
totalCycleDays: number;
|
|
9136
|
+
/**
|
|
9137
|
+
* Currency code.
|
|
9138
|
+
*/
|
|
9139
|
+
currency: string;
|
|
9140
|
+
/**
|
|
9141
|
+
* When the current billing cycle ends.
|
|
9142
|
+
*/
|
|
9143
|
+
billingCycleEnd: string;
|
|
9144
|
+
};
|
|
9030
9145
|
/**
|
|
9031
9146
|
* domainTransferOut
|
|
9032
9147
|
*/
|
|
@@ -9053,6 +9168,19 @@ export declare namespace Models {
|
|
|
9053
9168
|
*/
|
|
9054
9169
|
timestamp: string;
|
|
9055
9170
|
};
|
|
9171
|
+
/**
|
|
9172
|
+
* Addons list
|
|
9173
|
+
*/
|
|
9174
|
+
export type AddonList = {
|
|
9175
|
+
/**
|
|
9176
|
+
* Total number of addons that matched your query.
|
|
9177
|
+
*/
|
|
9178
|
+
total: number;
|
|
9179
|
+
/**
|
|
9180
|
+
* List of addons.
|
|
9181
|
+
*/
|
|
9182
|
+
addons: Addon[];
|
|
9183
|
+
};
|
|
9056
9184
|
/**
|
|
9057
9185
|
* Activity event list
|
|
9058
9186
|
*/
|
|
@@ -85,6 +85,7 @@ export declare class Health {
|
|
|
85
85
|
/**
|
|
86
86
|
* Get the number of audit logs that are waiting to be processed in the Appwrite internal queue server.
|
|
87
87
|
*
|
|
88
|
+
*
|
|
88
89
|
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
89
90
|
* @throws {AppwriteException}
|
|
90
91
|
* @returns {Promise<Models.HealthQueue>}
|
|
@@ -95,6 +96,7 @@ export declare class Health {
|
|
|
95
96
|
/**
|
|
96
97
|
* Get the number of audit logs that are waiting to be processed in the Appwrite internal queue server.
|
|
97
98
|
*
|
|
99
|
+
*
|
|
98
100
|
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
99
101
|
* @throws {AppwriteException}
|
|
100
102
|
* @returns {Promise<Models.HealthQueue>}
|
|
@@ -203,6 +203,69 @@ export declare class Migrations {
|
|
|
203
203
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
204
204
|
*/
|
|
205
205
|
getFirebaseReport(resources: FirebaseMigrationResource[], serviceAccount: string): Promise<Models.MigrationReport>;
|
|
206
|
+
/**
|
|
207
|
+
* Export documents to a JSON file from your Appwrite database. This endpoint allows you to export documents to a JSON file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.
|
|
208
|
+
*
|
|
209
|
+
*
|
|
210
|
+
* @param {string} params.resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.
|
|
211
|
+
* @param {string} params.filename - The name of the file to be created for the export, excluding the .json extension.
|
|
212
|
+
* @param {string[]} params.columns - List of attributes to export. If empty, all attributes will be exported. You can use the `*` wildcard to export all attributes from the collection.
|
|
213
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
214
|
+
* @param {boolean} params.notify - Set to true to receive an email when the export is complete. Default is true.
|
|
215
|
+
* @throws {AppwriteException}
|
|
216
|
+
* @returns {Promise<Models.Migration>}
|
|
217
|
+
*/
|
|
218
|
+
createJSONExport(params: {
|
|
219
|
+
resourceId: string;
|
|
220
|
+
filename: string;
|
|
221
|
+
columns?: string[];
|
|
222
|
+
queries?: string[];
|
|
223
|
+
notify?: boolean;
|
|
224
|
+
}): Promise<Models.Migration>;
|
|
225
|
+
/**
|
|
226
|
+
* Export documents to a JSON file from your Appwrite database. This endpoint allows you to export documents to a JSON file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.
|
|
227
|
+
*
|
|
228
|
+
*
|
|
229
|
+
* @param {string} resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.
|
|
230
|
+
* @param {string} filename - The name of the file to be created for the export, excluding the .json extension.
|
|
231
|
+
* @param {string[]} columns - List of attributes to export. If empty, all attributes will be exported. You can use the `*` wildcard to export all attributes from the collection.
|
|
232
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
233
|
+
* @param {boolean} notify - Set to true to receive an email when the export is complete. Default is true.
|
|
234
|
+
* @throws {AppwriteException}
|
|
235
|
+
* @returns {Promise<Models.Migration>}
|
|
236
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
237
|
+
*/
|
|
238
|
+
createJSONExport(resourceId: string, filename: string, columns?: string[], queries?: string[], notify?: boolean): Promise<Models.Migration>;
|
|
239
|
+
/**
|
|
240
|
+
* Import documents from a JSON file into your Appwrite database. This endpoint allows you to import documents from a JSON file uploaded to Appwrite Storage bucket.
|
|
241
|
+
*
|
|
242
|
+
*
|
|
243
|
+
* @param {string} params.bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
|
|
244
|
+
* @param {string} params.fileId - File ID.
|
|
245
|
+
* @param {string} params.resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.
|
|
246
|
+
* @param {boolean} params.internalFile - Is the file stored in an internal bucket?
|
|
247
|
+
* @throws {AppwriteException}
|
|
248
|
+
* @returns {Promise<Models.Migration>}
|
|
249
|
+
*/
|
|
250
|
+
createJSONImport(params: {
|
|
251
|
+
bucketId: string;
|
|
252
|
+
fileId: string;
|
|
253
|
+
resourceId: string;
|
|
254
|
+
internalFile?: boolean;
|
|
255
|
+
}): Promise<Models.Migration>;
|
|
256
|
+
/**
|
|
257
|
+
* Import documents from a JSON file into your Appwrite database. This endpoint allows you to import documents from a JSON file uploaded to Appwrite Storage bucket.
|
|
258
|
+
*
|
|
259
|
+
*
|
|
260
|
+
* @param {string} bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
|
|
261
|
+
* @param {string} fileId - File ID.
|
|
262
|
+
* @param {string} resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.
|
|
263
|
+
* @param {boolean} internalFile - Is the file stored in an internal bucket?
|
|
264
|
+
* @throws {AppwriteException}
|
|
265
|
+
* @returns {Promise<Models.Migration>}
|
|
266
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
267
|
+
*/
|
|
268
|
+
createJSONImport(bucketId: string, fileId: string, resourceId: string, internalFile?: boolean): Promise<Models.Migration>;
|
|
206
269
|
/**
|
|
207
270
|
* Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project.
|
|
208
271
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
3
|
import { Platform } from '../enums/platform';
|
|
4
|
+
import { Addon } from '../enums/addon';
|
|
4
5
|
import { Scopes } from '../enums/scopes';
|
|
5
6
|
export declare class Organizations {
|
|
6
7
|
client: Client;
|
|
@@ -125,6 +126,144 @@ export declare class Organizations {
|
|
|
125
126
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
126
127
|
*/
|
|
127
128
|
delete(organizationId: string): Promise<{}>;
|
|
129
|
+
/**
|
|
130
|
+
* List all billing addons for an organization.
|
|
131
|
+
*
|
|
132
|
+
*
|
|
133
|
+
* @param {string} params.organizationId - Organization ID
|
|
134
|
+
* @throws {AppwriteException}
|
|
135
|
+
* @returns {Promise<Models.AddonList>}
|
|
136
|
+
*/
|
|
137
|
+
listAddons(params: {
|
|
138
|
+
organizationId: string;
|
|
139
|
+
}): Promise<Models.AddonList>;
|
|
140
|
+
/**
|
|
141
|
+
* List all billing addons for an organization.
|
|
142
|
+
*
|
|
143
|
+
*
|
|
144
|
+
* @param {string} organizationId - Organization ID
|
|
145
|
+
* @throws {AppwriteException}
|
|
146
|
+
* @returns {Promise<Models.AddonList>}
|
|
147
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
148
|
+
*/
|
|
149
|
+
listAddons(organizationId: string): Promise<Models.AddonList>;
|
|
150
|
+
/**
|
|
151
|
+
* Create the BAA billing addon for an organization.
|
|
152
|
+
*
|
|
153
|
+
*
|
|
154
|
+
* @param {string} params.organizationId - Organization ID
|
|
155
|
+
* @throws {AppwriteException}
|
|
156
|
+
* @returns {Promise<Models.Addon>}
|
|
157
|
+
*/
|
|
158
|
+
createBaaAddon(params: {
|
|
159
|
+
organizationId: string;
|
|
160
|
+
}): Promise<Models.Addon>;
|
|
161
|
+
/**
|
|
162
|
+
* Create the BAA billing addon for an organization.
|
|
163
|
+
*
|
|
164
|
+
*
|
|
165
|
+
* @param {string} organizationId - Organization ID
|
|
166
|
+
* @throws {AppwriteException}
|
|
167
|
+
* @returns {Promise<Models.Addon>}
|
|
168
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
169
|
+
*/
|
|
170
|
+
createBaaAddon(organizationId: string): Promise<Models.Addon>;
|
|
171
|
+
/**
|
|
172
|
+
* Get the details of a billing addon for an organization.
|
|
173
|
+
*
|
|
174
|
+
*
|
|
175
|
+
* @param {string} params.organizationId - Organization ID
|
|
176
|
+
* @param {string} params.addonId - Addon ID
|
|
177
|
+
* @throws {AppwriteException}
|
|
178
|
+
* @returns {Promise<Models.Addon>}
|
|
179
|
+
*/
|
|
180
|
+
getAddon(params: {
|
|
181
|
+
organizationId: string;
|
|
182
|
+
addonId: string;
|
|
183
|
+
}): Promise<Models.Addon>;
|
|
184
|
+
/**
|
|
185
|
+
* Get the details of a billing addon for an organization.
|
|
186
|
+
*
|
|
187
|
+
*
|
|
188
|
+
* @param {string} organizationId - Organization ID
|
|
189
|
+
* @param {string} addonId - Addon ID
|
|
190
|
+
* @throws {AppwriteException}
|
|
191
|
+
* @returns {Promise<Models.Addon>}
|
|
192
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
193
|
+
*/
|
|
194
|
+
getAddon(organizationId: string, addonId: string): Promise<Models.Addon>;
|
|
195
|
+
/**
|
|
196
|
+
* Delete a billing addon for an organization.
|
|
197
|
+
*
|
|
198
|
+
*
|
|
199
|
+
* @param {string} params.organizationId - Organization ID
|
|
200
|
+
* @param {string} params.addonId - Addon ID
|
|
201
|
+
* @throws {AppwriteException}
|
|
202
|
+
* @returns {Promise<{}>}
|
|
203
|
+
*/
|
|
204
|
+
deleteAddon(params: {
|
|
205
|
+
organizationId: string;
|
|
206
|
+
addonId: string;
|
|
207
|
+
}): Promise<{}>;
|
|
208
|
+
/**
|
|
209
|
+
* Delete a billing addon for an organization.
|
|
210
|
+
*
|
|
211
|
+
*
|
|
212
|
+
* @param {string} organizationId - Organization ID
|
|
213
|
+
* @param {string} addonId - Addon ID
|
|
214
|
+
* @throws {AppwriteException}
|
|
215
|
+
* @returns {Promise<{}>}
|
|
216
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
217
|
+
*/
|
|
218
|
+
deleteAddon(organizationId: string, addonId: string): Promise<{}>;
|
|
219
|
+
/**
|
|
220
|
+
* Confirm payment for a billing addon for an organization.
|
|
221
|
+
*
|
|
222
|
+
*
|
|
223
|
+
* @param {string} params.organizationId - Organization ID
|
|
224
|
+
* @param {string} params.addonId - Addon ID
|
|
225
|
+
* @throws {AppwriteException}
|
|
226
|
+
* @returns {Promise<Models.Addon>}
|
|
227
|
+
*/
|
|
228
|
+
confirmAddonPayment(params: {
|
|
229
|
+
organizationId: string;
|
|
230
|
+
addonId: string;
|
|
231
|
+
}): Promise<Models.Addon>;
|
|
232
|
+
/**
|
|
233
|
+
* Confirm payment for a billing addon for an organization.
|
|
234
|
+
*
|
|
235
|
+
*
|
|
236
|
+
* @param {string} organizationId - Organization ID
|
|
237
|
+
* @param {string} addonId - Addon ID
|
|
238
|
+
* @throws {AppwriteException}
|
|
239
|
+
* @returns {Promise<Models.Addon>}
|
|
240
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
241
|
+
*/
|
|
242
|
+
confirmAddonPayment(organizationId: string, addonId: string): Promise<Models.Addon>;
|
|
243
|
+
/**
|
|
244
|
+
* Get the price details for a billing addon for an organization.
|
|
245
|
+
*
|
|
246
|
+
*
|
|
247
|
+
* @param {string} params.organizationId - Organization ID
|
|
248
|
+
* @param {Addon} params.addon - Addon key identifier (e.g. baa).
|
|
249
|
+
* @throws {AppwriteException}
|
|
250
|
+
* @returns {Promise<Models.AddonPrice>}
|
|
251
|
+
*/
|
|
252
|
+
getAddonPrice(params: {
|
|
253
|
+
organizationId: string;
|
|
254
|
+
addon: Addon;
|
|
255
|
+
}): Promise<Models.AddonPrice>;
|
|
256
|
+
/**
|
|
257
|
+
* Get the price details for a billing addon for an organization.
|
|
258
|
+
*
|
|
259
|
+
*
|
|
260
|
+
* @param {string} organizationId - Organization ID
|
|
261
|
+
* @param {Addon} addon - Addon key identifier (e.g. baa).
|
|
262
|
+
* @throws {AppwriteException}
|
|
263
|
+
* @returns {Promise<Models.AddonPrice>}
|
|
264
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
265
|
+
*/
|
|
266
|
+
getAddonPrice(organizationId: string, addon: Addon): Promise<Models.AddonPrice>;
|
|
128
267
|
/**
|
|
129
268
|
* Get a list of all aggregations for an organization.
|
|
130
269
|
*
|