@appwrite.io/console 1.5.1 → 1.5.2
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 +2 -2
- package/dist/cjs/sdk.js +57 -51
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +57 -51
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +57 -51
- package/docs/examples/databases/update-float-attribute.md +2 -2
- package/docs/examples/databases/update-integer-attribute.md +2 -2
- package/docs/examples/health/{get-queue-usage-count.md → get-queue-stats-resources.md} +1 -1
- package/docs/examples/health/{get-queue-usage-dump.md → get-queue-stats-usage-dump.md} +1 -1
- package/docs/examples/organizations/create.md +5 -1
- package/docs/examples/organizations/update-plan.md +5 -1
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/credit-card.ts +1 -0
- package/src/enums/name.ts +3 -2
- package/src/enums/runtime.ts +3 -0
- package/src/models.ts +86 -1
- package/src/services/databases.ts +5 -16
- package/src/services/health.ts +10 -37
- package/src/services/organizations.ts +34 -2
- package/types/enums/credit-card.d.ts +2 -1
- package/types/enums/name.d.ts +3 -2
- package/types/enums/runtime.d.ts +3 -0
- package/types/models.d.ts +86 -1
- package/types/services/databases.d.ts +5 -4
- package/types/services/health.d.ts +7 -16
- package/types/services/organizations.d.ts +10 -2
- package/docs/examples/health/get-queue.md +0 -11
package/src/services/health.ts
CHANGED
|
@@ -169,33 +169,6 @@ export class Health {
|
|
|
169
169
|
payload['project'] = this.client.config.project;
|
|
170
170
|
|
|
171
171
|
|
|
172
|
-
return await this.client.call(
|
|
173
|
-
'get',
|
|
174
|
-
uri,
|
|
175
|
-
apiHeaders,
|
|
176
|
-
payload
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Get queue
|
|
181
|
-
*
|
|
182
|
-
* Check the Appwrite queue messaging servers are up and connection is successful.
|
|
183
|
-
*
|
|
184
|
-
* @throws {AppwriteException}
|
|
185
|
-
* @returns {Promise<Models.HealthStatus>}
|
|
186
|
-
*/
|
|
187
|
-
async getQueue(): Promise<Models.HealthStatus> {
|
|
188
|
-
const apiPath = '/health/queue';
|
|
189
|
-
const payload: Payload = {};
|
|
190
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
191
|
-
|
|
192
|
-
const apiHeaders: { [header: string]: string } = {
|
|
193
|
-
'content-type': 'application/json',
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
payload['project'] = this.client.config.project;
|
|
197
|
-
|
|
198
|
-
|
|
199
172
|
return await this.client.call(
|
|
200
173
|
'get',
|
|
201
174
|
uri,
|
|
@@ -585,16 +558,16 @@ export class Health {
|
|
|
585
558
|
);
|
|
586
559
|
}
|
|
587
560
|
/**
|
|
588
|
-
* Get
|
|
561
|
+
* Get stats resources queue
|
|
589
562
|
*
|
|
590
|
-
* Get the number of metrics that are waiting to be processed in the Appwrite
|
|
563
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
|
|
591
564
|
*
|
|
592
565
|
* @param {number} threshold
|
|
593
566
|
* @throws {AppwriteException}
|
|
594
567
|
* @returns {Promise<Models.HealthQueue>}
|
|
595
568
|
*/
|
|
596
|
-
async
|
|
597
|
-
const apiPath = '/health/queue/
|
|
569
|
+
async getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue> {
|
|
570
|
+
const apiPath = '/health/queue/stats-resources';
|
|
598
571
|
const payload: Payload = {};
|
|
599
572
|
if (typeof threshold !== 'undefined') {
|
|
600
573
|
payload['threshold'] = threshold;
|
|
@@ -616,16 +589,16 @@ export class Health {
|
|
|
616
589
|
);
|
|
617
590
|
}
|
|
618
591
|
/**
|
|
619
|
-
* Get usage
|
|
592
|
+
* Get stats usage queue
|
|
620
593
|
*
|
|
621
|
-
* Get the
|
|
594
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
|
|
622
595
|
*
|
|
623
596
|
* @param {number} threshold
|
|
624
597
|
* @throws {AppwriteException}
|
|
625
598
|
* @returns {Promise<Models.HealthQueue>}
|
|
626
599
|
*/
|
|
627
|
-
async
|
|
628
|
-
const apiPath = '/health/queue/usage
|
|
600
|
+
async getQueueUsage(threshold?: number): Promise<Models.HealthQueue> {
|
|
601
|
+
const apiPath = '/health/queue/stats-usage';
|
|
629
602
|
const payload: Payload = {};
|
|
630
603
|
if (typeof threshold !== 'undefined') {
|
|
631
604
|
payload['threshold'] = threshold;
|
|
@@ -655,8 +628,8 @@ export class Health {
|
|
|
655
628
|
* @throws {AppwriteException}
|
|
656
629
|
* @returns {Promise<Models.HealthQueue>}
|
|
657
630
|
*/
|
|
658
|
-
async
|
|
659
|
-
const apiPath = '/health/queue/usage-dump';
|
|
631
|
+
async getQueueStatsUsageDump(threshold?: number): Promise<Models.HealthQueue> {
|
|
632
|
+
const apiPath = '/health/queue/stats-usage-dump';
|
|
660
633
|
const payload: Payload = {};
|
|
661
634
|
if (typeof threshold !== 'undefined') {
|
|
662
635
|
payload['threshold'] = threshold;
|
|
@@ -56,10 +56,14 @@ export class Organizations {
|
|
|
56
56
|
* @param {BillingPlan} billingPlan
|
|
57
57
|
* @param {string} paymentMethodId
|
|
58
58
|
* @param {string} billingAddressId
|
|
59
|
+
* @param {string[]} invites
|
|
60
|
+
* @param {string} couponId
|
|
61
|
+
* @param {string} taxId
|
|
62
|
+
* @param {number} budget
|
|
59
63
|
* @throws {AppwriteException}
|
|
60
64
|
* @returns {Promise<Models.Organization<Preferences>>}
|
|
61
65
|
*/
|
|
62
|
-
async create<Preferences extends Models.Preferences>(organizationId: string, name: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string): Promise<Models.Organization<Preferences>> {
|
|
66
|
+
async create<Preferences extends Models.Preferences>(organizationId: string, name: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string, invites?: string[], couponId?: string, taxId?: string, budget?: number): Promise<Models.Organization<Preferences>> {
|
|
63
67
|
if (typeof organizationId === 'undefined') {
|
|
64
68
|
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
65
69
|
}
|
|
@@ -86,6 +90,18 @@ export class Organizations {
|
|
|
86
90
|
if (typeof billingAddressId !== 'undefined') {
|
|
87
91
|
payload['billingAddressId'] = billingAddressId;
|
|
88
92
|
}
|
|
93
|
+
if (typeof invites !== 'undefined') {
|
|
94
|
+
payload['invites'] = invites;
|
|
95
|
+
}
|
|
96
|
+
if (typeof couponId !== 'undefined') {
|
|
97
|
+
payload['couponId'] = couponId;
|
|
98
|
+
}
|
|
99
|
+
if (typeof taxId !== 'undefined') {
|
|
100
|
+
payload['taxId'] = taxId;
|
|
101
|
+
}
|
|
102
|
+
if (typeof budget !== 'undefined') {
|
|
103
|
+
payload['budget'] = budget;
|
|
104
|
+
}
|
|
89
105
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
90
106
|
|
|
91
107
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -892,10 +908,14 @@ export class Organizations {
|
|
|
892
908
|
* @param {BillingPlan} billingPlan
|
|
893
909
|
* @param {string} paymentMethodId
|
|
894
910
|
* @param {string} billingAddressId
|
|
911
|
+
* @param {string[]} invites
|
|
912
|
+
* @param {string} couponId
|
|
913
|
+
* @param {string} taxId
|
|
914
|
+
* @param {number} budget
|
|
895
915
|
* @throws {AppwriteException}
|
|
896
916
|
* @returns {Promise<Models.Organization<Preferences>>}
|
|
897
917
|
*/
|
|
898
|
-
async updatePlan<Preferences extends Models.Preferences>(organizationId: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string): Promise<Models.Organization<Preferences>> {
|
|
918
|
+
async updatePlan<Preferences extends Models.Preferences>(organizationId: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string, invites?: string[], couponId?: string, taxId?: string, budget?: number): Promise<Models.Organization<Preferences>> {
|
|
899
919
|
if (typeof organizationId === 'undefined') {
|
|
900
920
|
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
901
921
|
}
|
|
@@ -913,6 +933,18 @@ export class Organizations {
|
|
|
913
933
|
if (typeof billingAddressId !== 'undefined') {
|
|
914
934
|
payload['billingAddressId'] = billingAddressId;
|
|
915
935
|
}
|
|
936
|
+
if (typeof invites !== 'undefined') {
|
|
937
|
+
payload['invites'] = invites;
|
|
938
|
+
}
|
|
939
|
+
if (typeof couponId !== 'undefined') {
|
|
940
|
+
payload['couponId'] = couponId;
|
|
941
|
+
}
|
|
942
|
+
if (typeof taxId !== 'undefined') {
|
|
943
|
+
payload['taxId'] = taxId;
|
|
944
|
+
}
|
|
945
|
+
if (typeof budget !== 'undefined') {
|
|
946
|
+
payload['budget'] = budget;
|
|
947
|
+
}
|
|
916
948
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
917
949
|
|
|
918
950
|
const apiHeaders: { [header: string]: string } = {
|
package/types/enums/name.d.ts
CHANGED
|
@@ -4,8 +4,9 @@ export declare enum Name {
|
|
|
4
4
|
V1audits = "v1-audits",
|
|
5
5
|
V1mails = "v1-mails",
|
|
6
6
|
V1functions = "v1-functions",
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
V1statsresources = "v1-stats-resources",
|
|
8
|
+
V1statsusage = "v1-stats-usage",
|
|
9
|
+
V1statsusagedump = "v1-stats-usage-dump",
|
|
9
10
|
V1webhooks = "v1-webhooks",
|
|
10
11
|
V1certificates = "v1-certificates",
|
|
11
12
|
V1builds = "v1-builds",
|
package/types/enums/runtime.d.ts
CHANGED
|
@@ -20,6 +20,9 @@ export declare enum Runtime {
|
|
|
20
20
|
Python311 = "python-3.11",
|
|
21
21
|
Python312 = "python-3.12",
|
|
22
22
|
Pythonml311 = "python-ml-3.11",
|
|
23
|
+
Deno121 = "deno-1.21",
|
|
24
|
+
Deno124 = "deno-1.24",
|
|
25
|
+
Deno135 = "deno-1.35",
|
|
23
26
|
Deno140 = "deno-1.40",
|
|
24
27
|
Deno146 = "deno-1.46",
|
|
25
28
|
Deno20 = "deno-2.0",
|
package/types/models.d.ts
CHANGED
|
@@ -3316,6 +3316,14 @@ export declare namespace Models {
|
|
|
3316
3316
|
* Aggregated number of bucket storage files (in bytes) per period.
|
|
3317
3317
|
*/
|
|
3318
3318
|
storage: Metric[];
|
|
3319
|
+
/**
|
|
3320
|
+
* Aggregated number of files transformations per period.
|
|
3321
|
+
*/
|
|
3322
|
+
imageTransformations: Metric[];
|
|
3323
|
+
/**
|
|
3324
|
+
* Total aggregated number of files transformations.
|
|
3325
|
+
*/
|
|
3326
|
+
imageTransformationsTotal: number;
|
|
3319
3327
|
};
|
|
3320
3328
|
/**
|
|
3321
3329
|
* UsageFunctions
|
|
@@ -3607,6 +3615,14 @@ export declare namespace Models {
|
|
|
3607
3615
|
* An array of aggregated number of database writes.
|
|
3608
3616
|
*/
|
|
3609
3617
|
databasesWrites: Metric[];
|
|
3618
|
+
/**
|
|
3619
|
+
* An array of aggregated number of image transformations.
|
|
3620
|
+
*/
|
|
3621
|
+
imageTransformations: Metric[];
|
|
3622
|
+
/**
|
|
3623
|
+
* Total aggregated number of image transformations.
|
|
3624
|
+
*/
|
|
3625
|
+
imageTransformationsTotal: number;
|
|
3610
3626
|
};
|
|
3611
3627
|
/**
|
|
3612
3628
|
* Headers
|
|
@@ -4254,6 +4270,10 @@ export declare namespace Models {
|
|
|
4254
4270
|
* Additional realtime usage cost
|
|
4255
4271
|
*/
|
|
4256
4272
|
additionalRealtimeAmount: number;
|
|
4273
|
+
/**
|
|
4274
|
+
* Billing plan
|
|
4275
|
+
*/
|
|
4276
|
+
plan: string;
|
|
4257
4277
|
/**
|
|
4258
4278
|
* Aggregated amount
|
|
4259
4279
|
*/
|
|
@@ -4357,6 +4377,10 @@ export declare namespace Models {
|
|
|
4357
4377
|
* Plan name
|
|
4358
4378
|
*/
|
|
4359
4379
|
name: string;
|
|
4380
|
+
/**
|
|
4381
|
+
* Plan description
|
|
4382
|
+
*/
|
|
4383
|
+
desc: string;
|
|
4360
4384
|
/**
|
|
4361
4385
|
* Plan order
|
|
4362
4386
|
*/
|
|
@@ -4377,6 +4401,10 @@ export declare namespace Models {
|
|
|
4377
4401
|
* Storage
|
|
4378
4402
|
*/
|
|
4379
4403
|
storage: number;
|
|
4404
|
+
/**
|
|
4405
|
+
* Image Transformations
|
|
4406
|
+
*/
|
|
4407
|
+
imageTransformations: number;
|
|
4380
4408
|
/**
|
|
4381
4409
|
* Members
|
|
4382
4410
|
*/
|
|
@@ -4428,7 +4456,11 @@ export declare namespace Models {
|
|
|
4428
4456
|
/**
|
|
4429
4457
|
* Additional resources
|
|
4430
4458
|
*/
|
|
4431
|
-
|
|
4459
|
+
usage: AdditionalResource[];
|
|
4460
|
+
/**
|
|
4461
|
+
* Addons
|
|
4462
|
+
*/
|
|
4463
|
+
addons: BillingPlanAddon[];
|
|
4432
4464
|
/**
|
|
4433
4465
|
* Custom SMTP
|
|
4434
4466
|
*/
|
|
@@ -4465,6 +4497,10 @@ export declare namespace Models {
|
|
|
4465
4497
|
* Does plan support mock numbers
|
|
4466
4498
|
*/
|
|
4467
4499
|
supportsMockNumbers: boolean;
|
|
4500
|
+
/**
|
|
4501
|
+
* Does plan support credit
|
|
4502
|
+
*/
|
|
4503
|
+
supportsCredits: boolean;
|
|
4468
4504
|
/**
|
|
4469
4505
|
* Does plan support backup policies.
|
|
4470
4506
|
*/
|
|
@@ -4474,6 +4510,35 @@ export declare namespace Models {
|
|
|
4474
4510
|
*/
|
|
4475
4511
|
backupPolicies: number;
|
|
4476
4512
|
};
|
|
4513
|
+
/**
|
|
4514
|
+
* BillingPlanAddon
|
|
4515
|
+
*/
|
|
4516
|
+
type BillingPlanAddon = {
|
|
4517
|
+
/**
|
|
4518
|
+
* Is the addon supported in the plan?
|
|
4519
|
+
*/
|
|
4520
|
+
supported: boolean;
|
|
4521
|
+
/**
|
|
4522
|
+
* Addon limit
|
|
4523
|
+
*/
|
|
4524
|
+
limit: number;
|
|
4525
|
+
/**
|
|
4526
|
+
* Addon type
|
|
4527
|
+
*/
|
|
4528
|
+
type: string;
|
|
4529
|
+
/**
|
|
4530
|
+
* Price currency
|
|
4531
|
+
*/
|
|
4532
|
+
currency: string;
|
|
4533
|
+
/**
|
|
4534
|
+
* Price
|
|
4535
|
+
*/
|
|
4536
|
+
price: number;
|
|
4537
|
+
/**
|
|
4538
|
+
* Resource value
|
|
4539
|
+
*/
|
|
4540
|
+
value: number;
|
|
4541
|
+
};
|
|
4477
4542
|
/**
|
|
4478
4543
|
* Campaign
|
|
4479
4544
|
*/
|
|
@@ -4787,6 +4852,10 @@ export declare namespace Models {
|
|
|
4787
4852
|
* Current active aggregation id.
|
|
4788
4853
|
*/
|
|
4789
4854
|
billingAggregationId: string;
|
|
4855
|
+
/**
|
|
4856
|
+
* Current active aggregation id.
|
|
4857
|
+
*/
|
|
4858
|
+
billingInvoiceId: string;
|
|
4790
4859
|
/**
|
|
4791
4860
|
* Default payment method.
|
|
4792
4861
|
*/
|
|
@@ -4799,6 +4868,14 @@ export declare namespace Models {
|
|
|
4799
4868
|
* Backup payment method.
|
|
4800
4869
|
*/
|
|
4801
4870
|
backupPaymentMethodId: string;
|
|
4871
|
+
/**
|
|
4872
|
+
* Team status.
|
|
4873
|
+
*/
|
|
4874
|
+
status: string;
|
|
4875
|
+
/**
|
|
4876
|
+
* Remarks on team status.
|
|
4877
|
+
*/
|
|
4878
|
+
remarks: string;
|
|
4802
4879
|
/**
|
|
4803
4880
|
* Organization agreements
|
|
4804
4881
|
*/
|
|
@@ -5098,6 +5175,14 @@ export declare namespace Models {
|
|
|
5098
5175
|
* Aggregated stats for database writes.
|
|
5099
5176
|
*/
|
|
5100
5177
|
databasesWrites: Metric[];
|
|
5178
|
+
/**
|
|
5179
|
+
* Aggregated stats for file transformations.
|
|
5180
|
+
*/
|
|
5181
|
+
imageTransformations: Metric[];
|
|
5182
|
+
/**
|
|
5183
|
+
* Aggregated stats for total file transformations.
|
|
5184
|
+
*/
|
|
5185
|
+
imageTransformationsTotal: number;
|
|
5101
5186
|
/**
|
|
5102
5187
|
* Aggregated stats for total users.
|
|
5103
5188
|
*/
|
|
@@ -304,14 +304,14 @@ export declare class Databases {
|
|
|
304
304
|
* @param {string} collectionId
|
|
305
305
|
* @param {string} key
|
|
306
306
|
* @param {boolean} required
|
|
307
|
+
* @param {number} xdefault
|
|
307
308
|
* @param {number} min
|
|
308
309
|
* @param {number} max
|
|
309
|
-
* @param {number} xdefault
|
|
310
310
|
* @param {string} newKey
|
|
311
311
|
* @throws {AppwriteException}
|
|
312
312
|
* @returns {Promise<Models.AttributeFloat>}
|
|
313
313
|
*/
|
|
314
|
-
updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean,
|
|
314
|
+
updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.AttributeFloat>;
|
|
315
315
|
/**
|
|
316
316
|
* Create integer attribute
|
|
317
317
|
*
|
|
@@ -340,14 +340,14 @@ export declare class Databases {
|
|
|
340
340
|
* @param {string} collectionId
|
|
341
341
|
* @param {string} key
|
|
342
342
|
* @param {boolean} required
|
|
343
|
+
* @param {number} xdefault
|
|
343
344
|
* @param {number} min
|
|
344
345
|
* @param {number} max
|
|
345
|
-
* @param {number} xdefault
|
|
346
346
|
* @param {string} newKey
|
|
347
347
|
* @throws {AppwriteException}
|
|
348
348
|
* @returns {Promise<Models.AttributeInteger>}
|
|
349
349
|
*/
|
|
350
|
-
updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean,
|
|
350
|
+
updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.AttributeInteger>;
|
|
351
351
|
/**
|
|
352
352
|
* Create IP address attribute
|
|
353
353
|
*
|
|
@@ -520,6 +520,7 @@ export declare class Databases {
|
|
|
520
520
|
* Create document
|
|
521
521
|
*
|
|
522
522
|
* Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
|
|
523
|
+
|
|
523
524
|
*
|
|
524
525
|
* @param {string} databaseId
|
|
525
526
|
* @param {string} collectionId
|
|
@@ -59,15 +59,6 @@ export declare class Health {
|
|
|
59
59
|
* @returns {Promise<Models.HealthStatus>}
|
|
60
60
|
*/
|
|
61
61
|
getPubSub(): Promise<Models.HealthStatus>;
|
|
62
|
-
/**
|
|
63
|
-
* Get queue
|
|
64
|
-
*
|
|
65
|
-
* Check the Appwrite queue messaging servers are up and connection is successful.
|
|
66
|
-
*
|
|
67
|
-
* @throws {AppwriteException}
|
|
68
|
-
* @returns {Promise<Models.HealthStatus>}
|
|
69
|
-
*/
|
|
70
|
-
getQueue(): Promise<Models.HealthStatus>;
|
|
71
62
|
/**
|
|
72
63
|
* Get billing aggregation queue
|
|
73
64
|
*
|
|
@@ -192,25 +183,25 @@ export declare class Health {
|
|
|
192
183
|
*/
|
|
193
184
|
getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
|
|
194
185
|
/**
|
|
195
|
-
* Get
|
|
186
|
+
* Get stats resources queue
|
|
196
187
|
*
|
|
197
|
-
* Get the number of metrics that are waiting to be processed in the Appwrite
|
|
188
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
|
|
198
189
|
*
|
|
199
190
|
* @param {number} threshold
|
|
200
191
|
* @throws {AppwriteException}
|
|
201
192
|
* @returns {Promise<Models.HealthQueue>}
|
|
202
193
|
*/
|
|
203
|
-
|
|
194
|
+
getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue>;
|
|
204
195
|
/**
|
|
205
|
-
* Get usage
|
|
196
|
+
* Get stats usage queue
|
|
206
197
|
*
|
|
207
|
-
* Get the
|
|
198
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
|
|
208
199
|
*
|
|
209
200
|
* @param {number} threshold
|
|
210
201
|
* @throws {AppwriteException}
|
|
211
202
|
* @returns {Promise<Models.HealthQueue>}
|
|
212
203
|
*/
|
|
213
|
-
|
|
204
|
+
getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
|
|
214
205
|
/**
|
|
215
206
|
* Get usage dump queue
|
|
216
207
|
*
|
|
@@ -220,7 +211,7 @@ export declare class Health {
|
|
|
220
211
|
* @throws {AppwriteException}
|
|
221
212
|
* @returns {Promise<Models.HealthQueue>}
|
|
222
213
|
*/
|
|
223
|
-
|
|
214
|
+
getQueueStatsUsageDump(threshold?: number): Promise<Models.HealthQueue>;
|
|
224
215
|
/**
|
|
225
216
|
* Get webhooks queue
|
|
226
217
|
*
|
|
@@ -26,10 +26,14 @@ export declare class Organizations {
|
|
|
26
26
|
* @param {BillingPlan} billingPlan
|
|
27
27
|
* @param {string} paymentMethodId
|
|
28
28
|
* @param {string} billingAddressId
|
|
29
|
+
* @param {string[]} invites
|
|
30
|
+
* @param {string} couponId
|
|
31
|
+
* @param {string} taxId
|
|
32
|
+
* @param {number} budget
|
|
29
33
|
* @throws {AppwriteException}
|
|
30
34
|
* @returns {Promise<Models.Organization<Preferences>>}
|
|
31
35
|
*/
|
|
32
|
-
create<Preferences extends Models.Preferences>(organizationId: string, name: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string): Promise<Models.Organization<Preferences>>;
|
|
36
|
+
create<Preferences extends Models.Preferences>(organizationId: string, name: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string, invites?: string[], couponId?: string, taxId?: string, budget?: number): Promise<Models.Organization<Preferences>>;
|
|
33
37
|
/**
|
|
34
38
|
* Delete team
|
|
35
39
|
*
|
|
@@ -280,10 +284,14 @@ export declare class Organizations {
|
|
|
280
284
|
* @param {BillingPlan} billingPlan
|
|
281
285
|
* @param {string} paymentMethodId
|
|
282
286
|
* @param {string} billingAddressId
|
|
287
|
+
* @param {string[]} invites
|
|
288
|
+
* @param {string} couponId
|
|
289
|
+
* @param {string} taxId
|
|
290
|
+
* @param {number} budget
|
|
283
291
|
* @throws {AppwriteException}
|
|
284
292
|
* @returns {Promise<Models.Organization<Preferences>>}
|
|
285
293
|
*/
|
|
286
|
-
updatePlan<Preferences extends Models.Preferences>(organizationId: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string): Promise<Models.Organization<Preferences>>;
|
|
294
|
+
updatePlan<Preferences extends Models.Preferences>(organizationId: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string, invites?: string[], couponId?: string, taxId?: string, budget?: number): Promise<Models.Organization<Preferences>>;
|
|
287
295
|
/**
|
|
288
296
|
* Get Scopes
|
|
289
297
|
*
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Client, Health } from "@appwrite.io/console";
|
|
2
|
-
|
|
3
|
-
const client = new Client()
|
|
4
|
-
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
5
|
-
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
6
|
-
|
|
7
|
-
const health = new Health(client);
|
|
8
|
-
|
|
9
|
-
const result = await health.getQueue();
|
|
10
|
-
|
|
11
|
-
console.log(result);
|