@appwrite.io/console 2.1.0 → 2.1.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/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/dist/cjs/sdk.js +153 -22
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +150 -23
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +3910 -22
- package/docs/examples/domains/list-suggestions.md +18 -0
- package/docs/examples/health/get-queue-audits.md +13 -0
- package/docs/examples/organizations/create.md +2 -2
- package/docs/examples/organizations/estimation-create-organization.md +2 -2
- package/docs/examples/organizations/estimation-update-plan.md +2 -2
- package/docs/examples/organizations/update-plan.md +2 -2
- package/docs/examples/projects/update-labels.md +14 -0
- package/package.json +7 -1
- package/rollup.config.js +40 -24
- package/src/client.ts +20 -10
- package/src/enums/billing-plan.ts +17 -0
- package/src/enums/filter-type.ts +4 -0
- package/src/enums/name.ts +1 -0
- package/src/enums/o-auth-provider.ts +0 -2
- package/src/index.ts +2 -0
- package/src/models.ts +129 -59
- package/src/query.ts +14 -11
- package/src/services/databases.ts +30 -30
- package/src/services/domains.ts +91 -0
- package/src/services/health.ts +55 -6
- package/src/services/organizations.ts +37 -36
- package/src/services/projects.ts +65 -2
- package/src/services/storage.ts +4 -4
- package/src/services/tables-db.ts +30 -30
- package/types/client.d.ts +8 -1
- package/types/enums/billing-plan.d.ts +17 -0
- package/types/enums/filter-type.d.ts +4 -0
- package/types/enums/name.d.ts +1 -0
- package/types/enums/o-auth-provider.d.ts +0 -2
- package/types/index.d.ts +2 -0
- package/types/models.d.ts +126 -59
- package/types/query.d.ts +8 -8
- package/types/services/databases.d.ts +20 -20
- package/types/services/domains.d.ts +35 -0
- package/types/services/health.d.ts +23 -6
- package/types/services/organizations.d.ts +17 -16
- package/types/services/projects.d.ts +24 -2
- package/types/services/storage.d.ts +4 -4
- package/types/services/tables-db.d.ts +20 -20
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
+
import { BillingPlan } from '../enums/billing-plan';
|
|
3
4
|
import { Platform } from '../enums/platform';
|
|
4
5
|
export declare class Organizations {
|
|
5
6
|
client: Client;
|
|
@@ -32,7 +33,7 @@ export declare class Organizations {
|
|
|
32
33
|
*
|
|
33
34
|
* @param {string} params.organizationId - Organization ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
34
35
|
* @param {string} params.name - Organization name. Max length: 128 chars.
|
|
35
|
-
* @param {
|
|
36
|
+
* @param {BillingPlan} params.billingPlan - Organization billing plan chosen
|
|
36
37
|
* @param {string} params.paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
|
|
37
38
|
* @param {string} params.billingAddressId - Unique ID of billing address
|
|
38
39
|
* @param {string[]} params.invites - Additional member invites
|
|
@@ -46,7 +47,7 @@ export declare class Organizations {
|
|
|
46
47
|
create<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
47
48
|
organizationId: string;
|
|
48
49
|
name: string;
|
|
49
|
-
billingPlan:
|
|
50
|
+
billingPlan: BillingPlan;
|
|
50
51
|
paymentMethodId?: string;
|
|
51
52
|
billingAddressId?: string;
|
|
52
53
|
invites?: string[];
|
|
@@ -61,7 +62,7 @@ export declare class Organizations {
|
|
|
61
62
|
*
|
|
62
63
|
* @param {string} organizationId - Organization ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
63
64
|
* @param {string} name - Organization name. Max length: 128 chars.
|
|
64
|
-
* @param {
|
|
65
|
+
* @param {BillingPlan} billingPlan - Organization billing plan chosen
|
|
65
66
|
* @param {string} paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
|
|
66
67
|
* @param {string} billingAddressId - Unique ID of billing address
|
|
67
68
|
* @param {string[]} invites - Additional member invites
|
|
@@ -73,11 +74,11 @@ export declare class Organizations {
|
|
|
73
74
|
* @returns {Promise<Models.Organization<Preferences> | Models.PaymentAuthentication>}
|
|
74
75
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
75
76
|
*/
|
|
76
|
-
create<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string, name: string, billingPlan:
|
|
77
|
+
create<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string, name: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string, invites?: string[], couponId?: string, taxId?: string, budget?: number, platform?: Platform): Promise<Models.Organization<Preferences> | Models.PaymentAuthentication>;
|
|
77
78
|
/**
|
|
78
79
|
* Get estimation for creating an organization.
|
|
79
80
|
*
|
|
80
|
-
* @param {
|
|
81
|
+
* @param {BillingPlan} params.billingPlan - Organization billing plan chosen
|
|
81
82
|
* @param {string} params.paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
|
|
82
83
|
* @param {string[]} params.invites - Additional member invites
|
|
83
84
|
* @param {string} params.couponId - Coupon id
|
|
@@ -86,7 +87,7 @@ export declare class Organizations {
|
|
|
86
87
|
* @returns {Promise<Models.Estimation>}
|
|
87
88
|
*/
|
|
88
89
|
estimationCreateOrganization(params: {
|
|
89
|
-
billingPlan:
|
|
90
|
+
billingPlan: BillingPlan;
|
|
90
91
|
paymentMethodId?: string;
|
|
91
92
|
invites?: string[];
|
|
92
93
|
couponId?: string;
|
|
@@ -95,7 +96,7 @@ export declare class Organizations {
|
|
|
95
96
|
/**
|
|
96
97
|
* Get estimation for creating an organization.
|
|
97
98
|
*
|
|
98
|
-
* @param {
|
|
99
|
+
* @param {BillingPlan} billingPlan - Organization billing plan chosen
|
|
99
100
|
* @param {string} paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
|
|
100
101
|
* @param {string[]} invites - Additional member invites
|
|
101
102
|
* @param {string} couponId - Coupon id
|
|
@@ -104,7 +105,7 @@ export declare class Organizations {
|
|
|
104
105
|
* @returns {Promise<Models.Estimation>}
|
|
105
106
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
106
107
|
*/
|
|
107
|
-
estimationCreateOrganization(billingPlan:
|
|
108
|
+
estimationCreateOrganization(billingPlan: BillingPlan, paymentMethodId?: string, invites?: string[], couponId?: string, platform?: Platform): Promise<Models.Estimation>;
|
|
108
109
|
/**
|
|
109
110
|
* Delete an organization.
|
|
110
111
|
*
|
|
@@ -394,7 +395,7 @@ export declare class Organizations {
|
|
|
394
395
|
* Get estimation for updating the organization plan.
|
|
395
396
|
*
|
|
396
397
|
* @param {string} params.organizationId - Organization ID
|
|
397
|
-
* @param {
|
|
398
|
+
* @param {BillingPlan} params.billingPlan - Organization billing plan chosen
|
|
398
399
|
* @param {string[]} params.invites - Additional member invites
|
|
399
400
|
* @param {string} params.couponId - Coupon id
|
|
400
401
|
* @throws {AppwriteException}
|
|
@@ -402,7 +403,7 @@ export declare class Organizations {
|
|
|
402
403
|
*/
|
|
403
404
|
estimationUpdatePlan(params: {
|
|
404
405
|
organizationId: string;
|
|
405
|
-
billingPlan:
|
|
406
|
+
billingPlan: BillingPlan;
|
|
406
407
|
invites?: string[];
|
|
407
408
|
couponId?: string;
|
|
408
409
|
}): Promise<Models.EstimationUpdatePlan>;
|
|
@@ -410,14 +411,14 @@ export declare class Organizations {
|
|
|
410
411
|
* Get estimation for updating the organization plan.
|
|
411
412
|
*
|
|
412
413
|
* @param {string} organizationId - Organization ID
|
|
413
|
-
* @param {
|
|
414
|
+
* @param {BillingPlan} billingPlan - Organization billing plan chosen
|
|
414
415
|
* @param {string[]} invites - Additional member invites
|
|
415
416
|
* @param {string} couponId - Coupon id
|
|
416
417
|
* @throws {AppwriteException}
|
|
417
418
|
* @returns {Promise<Models.EstimationUpdatePlan>}
|
|
418
419
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
419
420
|
*/
|
|
420
|
-
estimationUpdatePlan(organizationId: string, billingPlan:
|
|
421
|
+
estimationUpdatePlan(organizationId: string, billingPlan: BillingPlan, invites?: string[], couponId?: string): Promise<Models.EstimationUpdatePlan>;
|
|
421
422
|
/**
|
|
422
423
|
* Submit feedback about downgrading from a paid plan to a lower tier. This helps the team understand user experience and improve the platform.
|
|
423
424
|
*
|
|
@@ -715,7 +716,7 @@ export declare class Organizations {
|
|
|
715
716
|
* Update the billing plan for an organization.
|
|
716
717
|
*
|
|
717
718
|
* @param {string} params.organizationId - Organization Unique ID
|
|
718
|
-
* @param {
|
|
719
|
+
* @param {BillingPlan} params.billingPlan - Organization billing plan chosen
|
|
719
720
|
* @param {string} params.paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
|
|
720
721
|
* @param {string} params.billingAddressId - Unique ID of billing address
|
|
721
722
|
* @param {string[]} params.invites - Additional member invites
|
|
@@ -727,7 +728,7 @@ export declare class Organizations {
|
|
|
727
728
|
*/
|
|
728
729
|
updatePlan<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
729
730
|
organizationId: string;
|
|
730
|
-
billingPlan:
|
|
731
|
+
billingPlan: BillingPlan;
|
|
731
732
|
paymentMethodId?: string;
|
|
732
733
|
billingAddressId?: string;
|
|
733
734
|
invites?: string[];
|
|
@@ -739,7 +740,7 @@ export declare class Organizations {
|
|
|
739
740
|
* Update the billing plan for an organization.
|
|
740
741
|
*
|
|
741
742
|
* @param {string} organizationId - Organization Unique ID
|
|
742
|
-
* @param {
|
|
743
|
+
* @param {BillingPlan} billingPlan - Organization billing plan chosen
|
|
743
744
|
* @param {string} paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
|
|
744
745
|
* @param {string} billingAddressId - Unique ID of billing address
|
|
745
746
|
* @param {string[]} invites - Additional member invites
|
|
@@ -750,7 +751,7 @@ export declare class Organizations {
|
|
|
750
751
|
* @returns {Promise<Models.Organization<Preferences>>}
|
|
751
752
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
752
753
|
*/
|
|
753
|
-
updatePlan<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string, billingPlan:
|
|
754
|
+
updatePlan<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string, invites?: string[], couponId?: string, taxId?: string, budget?: number): Promise<Models.Organization<Preferences>>;
|
|
754
755
|
/**
|
|
755
756
|
* Cancel the downgrade initiated for an organization.
|
|
756
757
|
*
|
|
@@ -18,7 +18,7 @@ export declare class Projects {
|
|
|
18
18
|
/**
|
|
19
19
|
* Get a list of all projects. You can use the query params to filter your results.
|
|
20
20
|
*
|
|
21
|
-
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, teamId
|
|
21
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, teamId, labels, search
|
|
22
22
|
* @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
|
|
23
23
|
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
24
24
|
* @throws {AppwriteException}
|
|
@@ -32,7 +32,7 @@ export declare class Projects {
|
|
|
32
32
|
/**
|
|
33
33
|
* Get a list of all projects. You can use the query params to filter your results.
|
|
34
34
|
*
|
|
35
|
-
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, teamId
|
|
35
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, teamId, labels, search
|
|
36
36
|
* @param {string} search - Search term to filter your list results. Max length: 256 chars.
|
|
37
37
|
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
38
38
|
* @throws {AppwriteException}
|
|
@@ -798,6 +798,28 @@ export declare class Projects {
|
|
|
798
798
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
799
799
|
*/
|
|
800
800
|
deleteKey(projectId: string, keyId: string): Promise<{}>;
|
|
801
|
+
/**
|
|
802
|
+
* Update the project labels by its unique ID. Labels can be used to easily filter projects in an organization.
|
|
803
|
+
*
|
|
804
|
+
* @param {string} params.projectId - Project unique ID.
|
|
805
|
+
* @param {string[]} params.labels - Array of project labels. Replaces the previous labels. Maximum of 1000 labels are allowed, each up to 36 alphanumeric characters long.
|
|
806
|
+
* @throws {AppwriteException}
|
|
807
|
+
* @returns {Promise<Models.Project>}
|
|
808
|
+
*/
|
|
809
|
+
updateLabels(params: {
|
|
810
|
+
projectId: string;
|
|
811
|
+
labels: string[];
|
|
812
|
+
}): Promise<Models.Project>;
|
|
813
|
+
/**
|
|
814
|
+
* Update the project labels by its unique ID. Labels can be used to easily filter projects in an organization.
|
|
815
|
+
*
|
|
816
|
+
* @param {string} projectId - Project unique ID.
|
|
817
|
+
* @param {string[]} labels - Array of project labels. Replaces the previous labels. Maximum of 1000 labels are allowed, each up to 36 alphanumeric characters long.
|
|
818
|
+
* @throws {AppwriteException}
|
|
819
|
+
* @returns {Promise<Models.Project>}
|
|
820
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
821
|
+
*/
|
|
822
|
+
updateLabels(projectId: string, labels: string[]): Promise<Models.Project>;
|
|
801
823
|
/**
|
|
802
824
|
* Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
|
|
803
825
|
*
|
|
@@ -42,7 +42,7 @@ export declare class Storage {
|
|
|
42
42
|
* @param {boolean} params.enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
43
43
|
* @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
44
44
|
* @param {string[]} params.allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
45
|
-
* @param {Compression} params.compression - Compression algorithm
|
|
45
|
+
* @param {Compression} params.compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
46
46
|
* @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
47
47
|
* @param {boolean} params.antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
48
48
|
* @param {boolean} params.transformations - Are image transformations enabled?
|
|
@@ -72,7 +72,7 @@ export declare class Storage {
|
|
|
72
72
|
* @param {boolean} enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
73
73
|
* @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
74
74
|
* @param {string[]} allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
75
|
-
* @param {Compression} compression - Compression algorithm
|
|
75
|
+
* @param {Compression} compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
76
76
|
* @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
77
77
|
* @param {boolean} antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
78
78
|
* @param {boolean} transformations - Are image transformations enabled?
|
|
@@ -110,7 +110,7 @@ export declare class Storage {
|
|
|
110
110
|
* @param {boolean} params.enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
111
111
|
* @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
112
112
|
* @param {string[]} params.allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
113
|
-
* @param {Compression} params.compression - Compression algorithm
|
|
113
|
+
* @param {Compression} params.compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
114
114
|
* @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
115
115
|
* @param {boolean} params.antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
116
116
|
* @param {boolean} params.transformations - Are image transformations enabled?
|
|
@@ -140,7 +140,7 @@ export declare class Storage {
|
|
|
140
140
|
* @param {boolean} enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
|
|
141
141
|
* @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
|
|
142
142
|
* @param {string[]} allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
|
|
143
|
-
* @param {Compression} compression - Compression algorithm
|
|
143
|
+
* @param {Compression} compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
|
|
144
144
|
* @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
|
|
145
145
|
* @param {boolean} antivirus - Is virus scanning enabled? For file size above 20MB AntiVirus scanning is skipped even if it's enabled
|
|
146
146
|
* @param {boolean} transformations - Are image transformations enabled?
|
|
@@ -816,9 +816,9 @@ export declare class TablesDB {
|
|
|
816
816
|
* @param {string} params.tableId - Table ID.
|
|
817
817
|
* @param {string} params.key - Column Key.
|
|
818
818
|
* @param {boolean} params.required - Is column required?
|
|
819
|
-
* @param {number} params.min - Minimum value
|
|
820
|
-
* @param {number} params.max - Maximum value
|
|
821
|
-
* @param {number} params.xdefault - Default value. Cannot be set when column is required.
|
|
819
|
+
* @param {number | bigint} params.min - Minimum value
|
|
820
|
+
* @param {number | bigint} params.max - Maximum value
|
|
821
|
+
* @param {number | bigint} params.xdefault - Default value. Cannot be set when column is required.
|
|
822
822
|
* @param {boolean} params.array - Is column an array?
|
|
823
823
|
* @throws {AppwriteException}
|
|
824
824
|
* @returns {Promise<Models.ColumnInteger>}
|
|
@@ -828,9 +828,9 @@ export declare class TablesDB {
|
|
|
828
828
|
tableId: string;
|
|
829
829
|
key: string;
|
|
830
830
|
required: boolean;
|
|
831
|
-
min?: number;
|
|
832
|
-
max?: number;
|
|
833
|
-
xdefault?: number;
|
|
831
|
+
min?: number | bigint;
|
|
832
|
+
max?: number | bigint;
|
|
833
|
+
xdefault?: number | bigint;
|
|
834
834
|
array?: boolean;
|
|
835
835
|
}): Promise<Models.ColumnInteger>;
|
|
836
836
|
/**
|
|
@@ -841,15 +841,15 @@ export declare class TablesDB {
|
|
|
841
841
|
* @param {string} tableId - Table ID.
|
|
842
842
|
* @param {string} key - Column Key.
|
|
843
843
|
* @param {boolean} required - Is column required?
|
|
844
|
-
* @param {number} min - Minimum value
|
|
845
|
-
* @param {number} max - Maximum value
|
|
846
|
-
* @param {number} xdefault - Default value. Cannot be set when column is required.
|
|
844
|
+
* @param {number | bigint} min - Minimum value
|
|
845
|
+
* @param {number | bigint} max - Maximum value
|
|
846
|
+
* @param {number | bigint} xdefault - Default value. Cannot be set when column is required.
|
|
847
847
|
* @param {boolean} array - Is column an array?
|
|
848
848
|
* @throws {AppwriteException}
|
|
849
849
|
* @returns {Promise<Models.ColumnInteger>}
|
|
850
850
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
851
851
|
*/
|
|
852
|
-
createIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean): Promise<Models.ColumnInteger>;
|
|
852
|
+
createIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean): Promise<Models.ColumnInteger>;
|
|
853
853
|
/**
|
|
854
854
|
* Update an integer column. Changing the `default` value will not update already existing rows.
|
|
855
855
|
*
|
|
@@ -858,9 +858,9 @@ export declare class TablesDB {
|
|
|
858
858
|
* @param {string} params.tableId - Table ID.
|
|
859
859
|
* @param {string} params.key - Column Key.
|
|
860
860
|
* @param {boolean} params.required - Is column required?
|
|
861
|
-
* @param {number} params.xdefault - Default value. Cannot be set when column is required.
|
|
862
|
-
* @param {number} params.min - Minimum value
|
|
863
|
-
* @param {number} params.max - Maximum value
|
|
861
|
+
* @param {number | bigint} params.xdefault - Default value. Cannot be set when column is required.
|
|
862
|
+
* @param {number | bigint} params.min - Minimum value
|
|
863
|
+
* @param {number | bigint} params.max - Maximum value
|
|
864
864
|
* @param {string} params.newKey - New Column Key.
|
|
865
865
|
* @throws {AppwriteException}
|
|
866
866
|
* @returns {Promise<Models.ColumnInteger>}
|
|
@@ -870,9 +870,9 @@ export declare class TablesDB {
|
|
|
870
870
|
tableId: string;
|
|
871
871
|
key: string;
|
|
872
872
|
required: boolean;
|
|
873
|
-
xdefault?: number;
|
|
874
|
-
min?: number;
|
|
875
|
-
max?: number;
|
|
873
|
+
xdefault?: number | bigint;
|
|
874
|
+
min?: number | bigint;
|
|
875
|
+
max?: number | bigint;
|
|
876
876
|
newKey?: string;
|
|
877
877
|
}): Promise<Models.ColumnInteger>;
|
|
878
878
|
/**
|
|
@@ -883,15 +883,15 @@ export declare class TablesDB {
|
|
|
883
883
|
* @param {string} tableId - Table ID.
|
|
884
884
|
* @param {string} key - Column Key.
|
|
885
885
|
* @param {boolean} required - Is column required?
|
|
886
|
-
* @param {number} xdefault - Default value. Cannot be set when column is required.
|
|
887
|
-
* @param {number} min - Minimum value
|
|
888
|
-
* @param {number} max - Maximum value
|
|
886
|
+
* @param {number | bigint} xdefault - Default value. Cannot be set when column is required.
|
|
887
|
+
* @param {number | bigint} min - Minimum value
|
|
888
|
+
* @param {number | bigint} max - Maximum value
|
|
889
889
|
* @param {string} newKey - New Column Key.
|
|
890
890
|
* @throws {AppwriteException}
|
|
891
891
|
* @returns {Promise<Models.ColumnInteger>}
|
|
892
892
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
893
893
|
*/
|
|
894
|
-
updateIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.ColumnInteger>;
|
|
894
|
+
updateIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string): Promise<Models.ColumnInteger>;
|
|
895
895
|
/**
|
|
896
896
|
* Create IP address column.
|
|
897
897
|
*
|