@appwrite.io/console 8.0.0 → 8.1.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/.github/workflows/publish.yml +1 -1
- package/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/dist/cjs/sdk.js +12 -1
- package/package.json +1 -1
- package/src/client.ts +13 -1
- package/src/models.ts +122 -0
- package/src/services/vcs.ts +10 -10
- package/dist/cjs/sdk.js.map +0 -1
- package/dist/esm/sdk.js +0 -29694
- package/dist/esm/sdk.js.map +0 -1
- package/dist/iife/sdk.js +0 -33504
- package/types/channel.d.ts +0 -74
- package/types/client.d.ts +0 -293
- package/types/enums/adapter.d.ts +0 -4
- package/types/enums/api-service.d.ts +0 -15
- package/types/enums/api.d.ts +0 -5
- package/types/enums/appwrite-migration-resource.d.ts +0 -27
- package/types/enums/attribute-status.d.ts +0 -7
- package/types/enums/auth-method.d.ts +0 -9
- package/types/enums/authentication-factor.d.ts +0 -6
- package/types/enums/authenticator-type.d.ts +0 -3
- package/types/enums/backup-services.d.ts +0 -8
- package/types/enums/billing-plan-group.d.ts +0 -5
- package/types/enums/browser-permission.d.ts +0 -22
- package/types/enums/browser.d.ts +0 -16
- package/types/enums/build-runtime.d.ts +0 -88
- package/types/enums/column-status.d.ts +0 -7
- package/types/enums/compression.d.ts +0 -5
- package/types/enums/console-resource-type.d.ts +0 -3
- package/types/enums/credit-card.d.ts +0 -19
- package/types/enums/database-type.d.ts +0 -6
- package/types/enums/databases-index-type.d.ts +0 -6
- package/types/enums/deployment-download-type.d.ts +0 -4
- package/types/enums/deployment-status.d.ts +0 -8
- package/types/enums/domain-purchase-status.d.ts +0 -6
- package/types/enums/domain-transfer-status-enum.d.ts +0 -10
- package/types/enums/email-template-locale.d.ts +0 -133
- package/types/enums/email-template-type.d.ts +0 -9
- package/types/enums/execution-method.d.ts +0 -9
- package/types/enums/execution-status.d.ts +0 -7
- package/types/enums/execution-trigger.d.ts +0 -5
- package/types/enums/filter-type.d.ts +0 -4
- package/types/enums/firebase-migration-resource.d.ts +0 -12
- package/types/enums/flag.d.ts +0 -197
- package/types/enums/framework.d.ts +0 -17
- package/types/enums/frameworks.d.ts +0 -17
- package/types/enums/health-antivirus-status.d.ts +0 -5
- package/types/enums/health-check-status.d.ts +0 -4
- package/types/enums/image-format.d.ts +0 -9
- package/types/enums/image-gravity.d.ts +0 -11
- package/types/enums/index-status.d.ts +0 -7
- package/types/enums/message-priority.d.ts +0 -4
- package/types/enums/message-status.d.ts +0 -7
- package/types/enums/messaging-provider-type.d.ts +0 -5
- package/types/enums/n-host-migration-resource.d.ts +0 -13
- package/types/enums/name.d.ts +0 -15
- package/types/enums/o-auth-provider.d.ts +0 -41
- package/types/enums/order-by.d.ts +0 -4
- package/types/enums/password-hash.d.ts +0 -13
- package/types/enums/platform-type.d.ts +0 -17
- package/types/enums/platform.d.ts +0 -4
- package/types/enums/project-usage-range.d.ts +0 -4
- package/types/enums/proxy-resource-type.d.ts +0 -4
- package/types/enums/proxy-rule-deployment-resource-type.d.ts +0 -4
- package/types/enums/proxy-rule-status.d.ts +0 -6
- package/types/enums/region.d.ts +0 -8
- package/types/enums/registration-type.d.ts +0 -6
- package/types/enums/relation-mutate.d.ts +0 -5
- package/types/enums/relationship-type.d.ts +0 -6
- package/types/enums/resource-type.d.ts +0 -6
- package/types/enums/runtime.d.ts +0 -88
- package/types/enums/runtimes.d.ts +0 -88
- package/types/enums/scopes.d.ts +0 -81
- package/types/enums/sms-template-locale.d.ts +0 -133
- package/types/enums/sms-template-type.d.ts +0 -6
- package/types/enums/smtp-encryption.d.ts +0 -5
- package/types/enums/smtp-secure.d.ts +0 -4
- package/types/enums/status-code.d.ts +0 -6
- package/types/enums/status.d.ts +0 -3
- package/types/enums/supabase-migration-resource.d.ts +0 -13
- package/types/enums/tables-db-index-type.d.ts +0 -6
- package/types/enums/template-reference-type.d.ts +0 -5
- package/types/enums/theme.d.ts +0 -4
- package/types/enums/timezone.d.ts +0 -421
- package/types/enums/usage-range.d.ts +0 -5
- package/types/enums/use-cases.d.ts +0 -16
- package/types/enums/vcs-detection-type.d.ts +0 -4
- package/types/enums/vcs-reference-type.d.ts +0 -5
- package/types/id.d.ts +0 -20
- package/types/index.d.ts +0 -118
- package/types/models.d.ts +0 -9120
- package/types/operator.d.ts +0 -180
- package/types/permission.d.ts +0 -43
- package/types/query.d.ts +0 -442
- package/types/role.d.ts +0 -70
- package/types/service.d.ts +0 -11
- package/types/services/account.d.ts +0 -1536
- package/types/services/activities.d.ts +0 -46
- package/types/services/assistant.d.ts +0 -24
- package/types/services/avatars.d.ts +0 -320
- package/types/services/backups.d.ts +0 -277
- package/types/services/console.d.ts +0 -248
- package/types/services/databases.d.ts +0 -2435
- package/types/services/domains.d.ts +0 -1527
- package/types/services/functions.d.ts +0 -842
- package/types/services/graphql.d.ts +0 -43
- package/types/services/health.d.ts +0 -475
- package/types/services/locale.d.ts +0 -64
- package/types/services/messaging.d.ts +0 -1989
- package/types/services/migrations.d.ts +0 -417
- package/types/services/organizations.d.ts +0 -1009
- package/types/services/project.d.ts +0 -148
- package/types/services/projects.d.ts +0 -1626
- package/types/services/proxy.d.ts +0 -190
- package/types/services/realtime.d.ts +0 -134
- package/types/services/sites.d.ts +0 -800
- package/types/services/storage.d.ts +0 -467
- package/types/services/tables-db.d.ts +0 -2352
- package/types/services/teams.d.ts +0 -366
- package/types/services/tokens.d.ts +0 -119
- package/types/services/users.d.ts +0 -1208
- package/types/services/vcs.d.ts +0 -252
- package/types/services/webhooks.d.ts +0 -165
package/types/operator.d.ts
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
type OperatorValuesSingle = string | number | boolean;
|
|
2
|
-
export type OperatorValuesList = string[] | number[] | boolean[] | any[];
|
|
3
|
-
export type OperatorValues = OperatorValuesSingle | OperatorValuesList;
|
|
4
|
-
export declare enum Condition {
|
|
5
|
-
Equal = "equal",
|
|
6
|
-
NotEqual = "notEqual",
|
|
7
|
-
GreaterThan = "greaterThan",
|
|
8
|
-
GreaterThanEqual = "greaterThanEqual",
|
|
9
|
-
LessThan = "lessThan",
|
|
10
|
-
LessThanEqual = "lessThanEqual",
|
|
11
|
-
Contains = "contains",
|
|
12
|
-
IsNull = "isNull",
|
|
13
|
-
IsNotNull = "isNotNull"
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Helper class to generate operator strings for atomic operations.
|
|
17
|
-
*/
|
|
18
|
-
export declare class Operator {
|
|
19
|
-
method: string;
|
|
20
|
-
values: OperatorValuesList | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Constructor for Operator class.
|
|
23
|
-
*
|
|
24
|
-
* @param {string} method
|
|
25
|
-
* @param {OperatorValues} values
|
|
26
|
-
*/
|
|
27
|
-
constructor(method: string, values?: OperatorValues);
|
|
28
|
-
/**
|
|
29
|
-
* Convert the operator object to a JSON string.
|
|
30
|
-
*
|
|
31
|
-
* @returns {string}
|
|
32
|
-
*/
|
|
33
|
-
toString(): string;
|
|
34
|
-
/**
|
|
35
|
-
* Increment a numeric attribute by a specified value.
|
|
36
|
-
*
|
|
37
|
-
* @param {number} value
|
|
38
|
-
* @param {number} max
|
|
39
|
-
* @returns {string}
|
|
40
|
-
*/
|
|
41
|
-
static increment: (value?: number, max?: number) => string;
|
|
42
|
-
/**
|
|
43
|
-
* Decrement a numeric attribute by a specified value.
|
|
44
|
-
*
|
|
45
|
-
* @param {number} value
|
|
46
|
-
* @param {number} min
|
|
47
|
-
* @returns {string}
|
|
48
|
-
*/
|
|
49
|
-
static decrement: (value?: number, min?: number) => string;
|
|
50
|
-
/**
|
|
51
|
-
* Multiply a numeric attribute by a specified factor.
|
|
52
|
-
*
|
|
53
|
-
* @param {number} factor
|
|
54
|
-
* @param {number} max
|
|
55
|
-
* @returns {string}
|
|
56
|
-
*/
|
|
57
|
-
static multiply: (factor: number, max?: number) => string;
|
|
58
|
-
/**
|
|
59
|
-
* Divide a numeric attribute by a specified divisor.
|
|
60
|
-
*
|
|
61
|
-
* @param {number} divisor
|
|
62
|
-
* @param {number} min
|
|
63
|
-
* @returns {string}
|
|
64
|
-
*/
|
|
65
|
-
static divide: (divisor: number, min?: number) => string;
|
|
66
|
-
/**
|
|
67
|
-
* Apply modulo operation on a numeric attribute.
|
|
68
|
-
*
|
|
69
|
-
* @param {number} divisor
|
|
70
|
-
* @returns {string}
|
|
71
|
-
*/
|
|
72
|
-
static modulo: (divisor: number) => string;
|
|
73
|
-
/**
|
|
74
|
-
* Raise a numeric attribute to a specified power.
|
|
75
|
-
*
|
|
76
|
-
* @param {number} exponent
|
|
77
|
-
* @param {number} max
|
|
78
|
-
* @returns {string}
|
|
79
|
-
*/
|
|
80
|
-
static power: (exponent: number, max?: number) => string;
|
|
81
|
-
/**
|
|
82
|
-
* Append values to an array attribute.
|
|
83
|
-
*
|
|
84
|
-
* @param {any[]} values
|
|
85
|
-
* @returns {string}
|
|
86
|
-
*/
|
|
87
|
-
static arrayAppend: (values: any[]) => string;
|
|
88
|
-
/**
|
|
89
|
-
* Prepend values to an array attribute.
|
|
90
|
-
*
|
|
91
|
-
* @param {any[]} values
|
|
92
|
-
* @returns {string}
|
|
93
|
-
*/
|
|
94
|
-
static arrayPrepend: (values: any[]) => string;
|
|
95
|
-
/**
|
|
96
|
-
* Insert a value at a specific index in an array attribute.
|
|
97
|
-
*
|
|
98
|
-
* @param {number} index
|
|
99
|
-
* @param {any} value
|
|
100
|
-
* @returns {string}
|
|
101
|
-
*/
|
|
102
|
-
static arrayInsert: (index: number, value: any) => string;
|
|
103
|
-
/**
|
|
104
|
-
* Remove a value from an array attribute.
|
|
105
|
-
*
|
|
106
|
-
* @param {any} value
|
|
107
|
-
* @returns {string}
|
|
108
|
-
*/
|
|
109
|
-
static arrayRemove: (value: any) => string;
|
|
110
|
-
/**
|
|
111
|
-
* Remove duplicate values from an array attribute.
|
|
112
|
-
*
|
|
113
|
-
* @returns {string}
|
|
114
|
-
*/
|
|
115
|
-
static arrayUnique: () => string;
|
|
116
|
-
/**
|
|
117
|
-
* Keep only values that exist in both the current array and the provided array.
|
|
118
|
-
*
|
|
119
|
-
* @param {any[]} values
|
|
120
|
-
* @returns {string}
|
|
121
|
-
*/
|
|
122
|
-
static arrayIntersect: (values: any[]) => string;
|
|
123
|
-
/**
|
|
124
|
-
* Remove values from the array that exist in the provided array.
|
|
125
|
-
*
|
|
126
|
-
* @param {any[]} values
|
|
127
|
-
* @returns {string}
|
|
128
|
-
*/
|
|
129
|
-
static arrayDiff: (values: any[]) => string;
|
|
130
|
-
/**
|
|
131
|
-
* Filter array values based on a condition.
|
|
132
|
-
*
|
|
133
|
-
* @param {Condition} condition
|
|
134
|
-
* @param {any} value
|
|
135
|
-
* @returns {string}
|
|
136
|
-
*/
|
|
137
|
-
static arrayFilter: (condition: Condition, value?: any) => string;
|
|
138
|
-
/**
|
|
139
|
-
* Concatenate a value to a string or array attribute.
|
|
140
|
-
*
|
|
141
|
-
* @param {any} value
|
|
142
|
-
* @returns {string}
|
|
143
|
-
*/
|
|
144
|
-
static stringConcat: (value: any) => string;
|
|
145
|
-
/**
|
|
146
|
-
* Replace occurrences of a search string with a replacement string.
|
|
147
|
-
*
|
|
148
|
-
* @param {string} search
|
|
149
|
-
* @param {string} replace
|
|
150
|
-
* @returns {string}
|
|
151
|
-
*/
|
|
152
|
-
static stringReplace: (search: string, replace: string) => string;
|
|
153
|
-
/**
|
|
154
|
-
* Toggle a boolean attribute.
|
|
155
|
-
*
|
|
156
|
-
* @returns {string}
|
|
157
|
-
*/
|
|
158
|
-
static toggle: () => string;
|
|
159
|
-
/**
|
|
160
|
-
* Add days to a date attribute.
|
|
161
|
-
*
|
|
162
|
-
* @param {number} days
|
|
163
|
-
* @returns {string}
|
|
164
|
-
*/
|
|
165
|
-
static dateAddDays: (days: number) => string;
|
|
166
|
-
/**
|
|
167
|
-
* Subtract days from a date attribute.
|
|
168
|
-
*
|
|
169
|
-
* @param {number} days
|
|
170
|
-
* @returns {string}
|
|
171
|
-
*/
|
|
172
|
-
static dateSubDays: (days: number) => string;
|
|
173
|
-
/**
|
|
174
|
-
* Set a date attribute to the current date and time.
|
|
175
|
-
*
|
|
176
|
-
* @returns {string}
|
|
177
|
-
*/
|
|
178
|
-
static dateSetNow: () => string;
|
|
179
|
-
}
|
|
180
|
-
export {};
|
package/types/permission.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helper class to generate permission strings for resources.
|
|
3
|
-
*/
|
|
4
|
-
export declare class Permission {
|
|
5
|
-
/**
|
|
6
|
-
* Generate read permission string for the provided role.
|
|
7
|
-
*
|
|
8
|
-
* @param {string} role
|
|
9
|
-
* @returns {string}
|
|
10
|
-
*/
|
|
11
|
-
static read: (role: string) => string;
|
|
12
|
-
/**
|
|
13
|
-
* Generate write permission string for the provided role.
|
|
14
|
-
*
|
|
15
|
-
* This is an alias of update, delete, and possibly create.
|
|
16
|
-
* Don't use write in combination with update, delete, or create.
|
|
17
|
-
*
|
|
18
|
-
* @param {string} role
|
|
19
|
-
* @returns {string}
|
|
20
|
-
*/
|
|
21
|
-
static write: (role: string) => string;
|
|
22
|
-
/**
|
|
23
|
-
* Generate create permission string for the provided role.
|
|
24
|
-
*
|
|
25
|
-
* @param {string} role
|
|
26
|
-
* @returns {string}
|
|
27
|
-
*/
|
|
28
|
-
static create: (role: string) => string;
|
|
29
|
-
/**
|
|
30
|
-
* Generate update permission string for the provided role.
|
|
31
|
-
*
|
|
32
|
-
* @param {string} role
|
|
33
|
-
* @returns {string}
|
|
34
|
-
*/
|
|
35
|
-
static update: (role: string) => string;
|
|
36
|
-
/**
|
|
37
|
-
* Generate delete permission string for the provided role.
|
|
38
|
-
*
|
|
39
|
-
* @param {string} role
|
|
40
|
-
* @returns {string}
|
|
41
|
-
*/
|
|
42
|
-
static delete: (role: string) => string;
|
|
43
|
-
}
|
package/types/query.d.ts
DELETED
|
@@ -1,442 +0,0 @@
|
|
|
1
|
-
type QueryTypesSingle = string | number | bigint | boolean;
|
|
2
|
-
export type QueryTypesList = string[] | number[] | bigint[] | boolean[] | Query[] | any[];
|
|
3
|
-
export type QueryTypes = QueryTypesSingle | QueryTypesList;
|
|
4
|
-
type AttributesTypes = string | string[];
|
|
5
|
-
/**
|
|
6
|
-
* Helper class to generate query strings.
|
|
7
|
-
*/
|
|
8
|
-
export declare class Query {
|
|
9
|
-
method: string;
|
|
10
|
-
attribute: AttributesTypes | undefined;
|
|
11
|
-
values: QueryTypesList | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Constructor for Query class.
|
|
14
|
-
*
|
|
15
|
-
* @param {string} method
|
|
16
|
-
* @param {AttributesTypes} attribute
|
|
17
|
-
* @param {QueryTypes} values
|
|
18
|
-
*/
|
|
19
|
-
constructor(method: string, attribute?: AttributesTypes, values?: QueryTypes);
|
|
20
|
-
/**
|
|
21
|
-
* Convert the query object to a JSON string.
|
|
22
|
-
*
|
|
23
|
-
* @returns {string}
|
|
24
|
-
*/
|
|
25
|
-
toString(): string;
|
|
26
|
-
/**
|
|
27
|
-
* Filter resources where attribute is equal to value.
|
|
28
|
-
*
|
|
29
|
-
* @param {string} attribute
|
|
30
|
-
* @param {QueryTypes} value
|
|
31
|
-
* @returns {string}
|
|
32
|
-
*/
|
|
33
|
-
static equal: (attribute: string, value: QueryTypes) => string;
|
|
34
|
-
/**
|
|
35
|
-
* Filter resources where attribute is not equal to value.
|
|
36
|
-
*
|
|
37
|
-
* @param {string} attribute
|
|
38
|
-
* @param {QueryTypes} value
|
|
39
|
-
* @returns {string}
|
|
40
|
-
*/
|
|
41
|
-
static notEqual: (attribute: string, value: QueryTypes) => string;
|
|
42
|
-
/**
|
|
43
|
-
* Filter resources where attribute matches a regular expression pattern.
|
|
44
|
-
*
|
|
45
|
-
* @param {string} attribute The attribute to filter on.
|
|
46
|
-
* @param {string} pattern The regular expression pattern to match.
|
|
47
|
-
* @returns {string}
|
|
48
|
-
*/
|
|
49
|
-
static regex: (attribute: string, pattern: string) => string;
|
|
50
|
-
/**
|
|
51
|
-
* Filter resources where attribute is less than value.
|
|
52
|
-
*
|
|
53
|
-
* @param {string} attribute
|
|
54
|
-
* @param {QueryTypes} value
|
|
55
|
-
* @returns {string}
|
|
56
|
-
*/
|
|
57
|
-
static lessThan: (attribute: string, value: QueryTypes) => string;
|
|
58
|
-
/**
|
|
59
|
-
* Filter resources where attribute is less than or equal to value.
|
|
60
|
-
*
|
|
61
|
-
* @param {string} attribute
|
|
62
|
-
* @param {QueryTypes} value
|
|
63
|
-
* @returns {string}
|
|
64
|
-
*/
|
|
65
|
-
static lessThanEqual: (attribute: string, value: QueryTypes) => string;
|
|
66
|
-
/**
|
|
67
|
-
* Filter resources where attribute is greater than value.
|
|
68
|
-
*
|
|
69
|
-
* @param {string} attribute
|
|
70
|
-
* @param {QueryTypes} value
|
|
71
|
-
* @returns {string}
|
|
72
|
-
*/
|
|
73
|
-
static greaterThan: (attribute: string, value: QueryTypes) => string;
|
|
74
|
-
/**
|
|
75
|
-
* Filter resources where attribute is greater than or equal to value.
|
|
76
|
-
*
|
|
77
|
-
* @param {string} attribute
|
|
78
|
-
* @param {QueryTypes} value
|
|
79
|
-
* @returns {string}
|
|
80
|
-
*/
|
|
81
|
-
static greaterThanEqual: (attribute: string, value: QueryTypes) => string;
|
|
82
|
-
/**
|
|
83
|
-
* Filter resources where attribute is null.
|
|
84
|
-
*
|
|
85
|
-
* @param {string} attribute
|
|
86
|
-
* @returns {string}
|
|
87
|
-
*/
|
|
88
|
-
static isNull: (attribute: string) => string;
|
|
89
|
-
/**
|
|
90
|
-
* Filter resources where attribute is not null.
|
|
91
|
-
*
|
|
92
|
-
* @param {string} attribute
|
|
93
|
-
* @returns {string}
|
|
94
|
-
*/
|
|
95
|
-
static isNotNull: (attribute: string) => string;
|
|
96
|
-
/**
|
|
97
|
-
* Filter resources where the specified attributes exist.
|
|
98
|
-
*
|
|
99
|
-
* @param {string[]} attributes The list of attributes that must exist.
|
|
100
|
-
* @returns {string}
|
|
101
|
-
*/
|
|
102
|
-
static exists: (attributes: string[]) => string;
|
|
103
|
-
/**
|
|
104
|
-
* Filter resources where the specified attributes do not exist.
|
|
105
|
-
*
|
|
106
|
-
* @param {string[]} attributes The list of attributes that must not exist.
|
|
107
|
-
* @returns {string}
|
|
108
|
-
*/
|
|
109
|
-
static notExists: (attributes: string[]) => string;
|
|
110
|
-
/**
|
|
111
|
-
* Filter resources where attribute is between start and end (inclusive).
|
|
112
|
-
*
|
|
113
|
-
* @param {string} attribute
|
|
114
|
-
* @param {string | number | bigint} start
|
|
115
|
-
* @param {string | number | bigint} end
|
|
116
|
-
* @returns {string}
|
|
117
|
-
*/
|
|
118
|
-
static between: (attribute: string, start: string | number | bigint, end: string | number | bigint) => string;
|
|
119
|
-
/**
|
|
120
|
-
* Filter resources where attribute starts with value.
|
|
121
|
-
*
|
|
122
|
-
* @param {string} attribute
|
|
123
|
-
* @param {string} value
|
|
124
|
-
* @returns {string}
|
|
125
|
-
*/
|
|
126
|
-
static startsWith: (attribute: string, value: string) => string;
|
|
127
|
-
/**
|
|
128
|
-
* Filter resources where attribute ends with value.
|
|
129
|
-
*
|
|
130
|
-
* @param {string} attribute
|
|
131
|
-
* @param {string} value
|
|
132
|
-
* @returns {string}
|
|
133
|
-
*/
|
|
134
|
-
static endsWith: (attribute: string, value: string) => string;
|
|
135
|
-
/**
|
|
136
|
-
* Specify which attributes should be returned by the API call.
|
|
137
|
-
*
|
|
138
|
-
* @param {string[]} attributes
|
|
139
|
-
* @returns {string}
|
|
140
|
-
*/
|
|
141
|
-
static select: (attributes: string[]) => string;
|
|
142
|
-
/**
|
|
143
|
-
* Filter resources by searching attribute for value.
|
|
144
|
-
* A fulltext index on attribute is required for this query to work.
|
|
145
|
-
*
|
|
146
|
-
* @param {string} attribute
|
|
147
|
-
* @param {string} value
|
|
148
|
-
* @returns {string}
|
|
149
|
-
*/
|
|
150
|
-
static search: (attribute: string, value: string) => string;
|
|
151
|
-
/**
|
|
152
|
-
* Sort results by attribute descending.
|
|
153
|
-
*
|
|
154
|
-
* @param {string} attribute
|
|
155
|
-
* @returns {string}
|
|
156
|
-
*/
|
|
157
|
-
static orderDesc: (attribute: string) => string;
|
|
158
|
-
/**
|
|
159
|
-
* Sort results by attribute ascending.
|
|
160
|
-
*
|
|
161
|
-
* @param {string} attribute
|
|
162
|
-
* @returns {string}
|
|
163
|
-
*/
|
|
164
|
-
static orderAsc: (attribute: string) => string;
|
|
165
|
-
/**
|
|
166
|
-
* Sort results randomly.
|
|
167
|
-
*
|
|
168
|
-
* @returns {string}
|
|
169
|
-
*/
|
|
170
|
-
static orderRandom: () => string;
|
|
171
|
-
/**
|
|
172
|
-
* Return results after documentId.
|
|
173
|
-
*
|
|
174
|
-
* @param {string} documentId
|
|
175
|
-
* @returns {string}
|
|
176
|
-
*/
|
|
177
|
-
static cursorAfter: (documentId: string) => string;
|
|
178
|
-
/**
|
|
179
|
-
* Return results before documentId.
|
|
180
|
-
*
|
|
181
|
-
* @param {string} documentId
|
|
182
|
-
* @returns {string}
|
|
183
|
-
*/
|
|
184
|
-
static cursorBefore: (documentId: string) => string;
|
|
185
|
-
/**
|
|
186
|
-
* Return only limit results.
|
|
187
|
-
*
|
|
188
|
-
* @param {number} limit
|
|
189
|
-
* @returns {string}
|
|
190
|
-
*/
|
|
191
|
-
static limit: (limit: number) => string;
|
|
192
|
-
/**
|
|
193
|
-
* Filter resources by skipping the first offset results.
|
|
194
|
-
*
|
|
195
|
-
* @param {number} offset
|
|
196
|
-
* @returns {string}
|
|
197
|
-
*/
|
|
198
|
-
static offset: (offset: number) => string;
|
|
199
|
-
/**
|
|
200
|
-
* Filter resources where attribute contains the specified value.
|
|
201
|
-
* For string attributes, checks if the string contains the substring.
|
|
202
|
-
*
|
|
203
|
-
* Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
|
|
204
|
-
* @param {string} attribute
|
|
205
|
-
* @param {string | string[]} value
|
|
206
|
-
* @returns {string}
|
|
207
|
-
*/
|
|
208
|
-
static contains: (attribute: string, value: string | any[]) => string;
|
|
209
|
-
/**
|
|
210
|
-
* Filter resources where attribute contains ANY of the specified values.
|
|
211
|
-
* For array and relationship attributes, matches documents where the attribute
|
|
212
|
-
* contains at least one of the given values.
|
|
213
|
-
*
|
|
214
|
-
* @param {string} attribute
|
|
215
|
-
* @param {any[]} value
|
|
216
|
-
* @returns {string}
|
|
217
|
-
*/
|
|
218
|
-
static containsAny: (attribute: string, value: any[]) => string;
|
|
219
|
-
/**
|
|
220
|
-
* Filter resources where attribute contains ALL of the specified values.
|
|
221
|
-
* For array and relationship attributes, matches documents where the attribute
|
|
222
|
-
* contains every one of the given values.
|
|
223
|
-
*
|
|
224
|
-
* @param {string} attribute
|
|
225
|
-
* @param {any[]} value
|
|
226
|
-
* @returns {string}
|
|
227
|
-
*/
|
|
228
|
-
static containsAll: (attribute: string, value: any[]) => string;
|
|
229
|
-
/**
|
|
230
|
-
* Filter resources where attribute does not contain the specified value.
|
|
231
|
-
*
|
|
232
|
-
* @param {string} attribute
|
|
233
|
-
* @param {string | any[]} value
|
|
234
|
-
* @returns {string}
|
|
235
|
-
*/
|
|
236
|
-
static notContains: (attribute: string, value: string | any[]) => string;
|
|
237
|
-
/**
|
|
238
|
-
* Filter resources by searching attribute for value (inverse of search).
|
|
239
|
-
* A fulltext index on attribute is required for this query to work.
|
|
240
|
-
*
|
|
241
|
-
* @param {string} attribute
|
|
242
|
-
* @param {string} value
|
|
243
|
-
* @returns {string}
|
|
244
|
-
*/
|
|
245
|
-
static notSearch: (attribute: string, value: string) => string;
|
|
246
|
-
/**
|
|
247
|
-
* Filter resources where attribute is not between start and end (exclusive).
|
|
248
|
-
*
|
|
249
|
-
* @param {string} attribute
|
|
250
|
-
* @param {string | number | bigint} start
|
|
251
|
-
* @param {string | number | bigint} end
|
|
252
|
-
* @returns {string}
|
|
253
|
-
*/
|
|
254
|
-
static notBetween: (attribute: string, start: string | number | bigint, end: string | number | bigint) => string;
|
|
255
|
-
/**
|
|
256
|
-
* Filter resources where attribute does not start with value.
|
|
257
|
-
*
|
|
258
|
-
* @param {string} attribute
|
|
259
|
-
* @param {string} value
|
|
260
|
-
* @returns {string}
|
|
261
|
-
*/
|
|
262
|
-
static notStartsWith: (attribute: string, value: string) => string;
|
|
263
|
-
/**
|
|
264
|
-
* Filter resources where attribute does not end with value.
|
|
265
|
-
*
|
|
266
|
-
* @param {string} attribute
|
|
267
|
-
* @param {string} value
|
|
268
|
-
* @returns {string}
|
|
269
|
-
*/
|
|
270
|
-
static notEndsWith: (attribute: string, value: string) => string;
|
|
271
|
-
/**
|
|
272
|
-
* Filter resources where document was created before date.
|
|
273
|
-
*
|
|
274
|
-
* @param {string} value
|
|
275
|
-
* @returns {string}
|
|
276
|
-
*/
|
|
277
|
-
static createdBefore: (value: string) => string;
|
|
278
|
-
/**
|
|
279
|
-
* Filter resources where document was created after date.
|
|
280
|
-
*
|
|
281
|
-
* @param {string} value
|
|
282
|
-
* @returns {string}
|
|
283
|
-
*/
|
|
284
|
-
static createdAfter: (value: string) => string;
|
|
285
|
-
/**
|
|
286
|
-
* Filter resources where document was created between dates.
|
|
287
|
-
*
|
|
288
|
-
* @param {string} start
|
|
289
|
-
* @param {string} end
|
|
290
|
-
* @returns {string}
|
|
291
|
-
*/
|
|
292
|
-
static createdBetween: (start: string, end: string) => string;
|
|
293
|
-
/**
|
|
294
|
-
* Filter resources where document was updated before date.
|
|
295
|
-
*
|
|
296
|
-
* @param {string} value
|
|
297
|
-
* @returns {string}
|
|
298
|
-
*/
|
|
299
|
-
static updatedBefore: (value: string) => string;
|
|
300
|
-
/**
|
|
301
|
-
* Filter resources where document was updated after date.
|
|
302
|
-
*
|
|
303
|
-
* @param {string} value
|
|
304
|
-
* @returns {string}
|
|
305
|
-
*/
|
|
306
|
-
static updatedAfter: (value: string) => string;
|
|
307
|
-
/**
|
|
308
|
-
* Filter resources where document was updated between dates.
|
|
309
|
-
*
|
|
310
|
-
* @param {string} start
|
|
311
|
-
* @param {string} end
|
|
312
|
-
* @returns {string}
|
|
313
|
-
*/
|
|
314
|
-
static updatedBetween: (start: string, end: string) => string;
|
|
315
|
-
/**
|
|
316
|
-
* Combine multiple queries using logical OR operator.
|
|
317
|
-
*
|
|
318
|
-
* @param {string[]} queries
|
|
319
|
-
* @returns {string}
|
|
320
|
-
*/
|
|
321
|
-
static or: (queries: string[]) => string;
|
|
322
|
-
/**
|
|
323
|
-
* Combine multiple queries using logical AND operator.
|
|
324
|
-
*
|
|
325
|
-
* @param {string[]} queries
|
|
326
|
-
* @returns {string}
|
|
327
|
-
*/
|
|
328
|
-
static and: (queries: string[]) => string;
|
|
329
|
-
/**
|
|
330
|
-
* Filter array elements where at least one element matches all the specified queries.
|
|
331
|
-
*
|
|
332
|
-
* @param {string} attribute The attribute containing the array to filter on.
|
|
333
|
-
* @param {string[]} queries The list of query strings to match against array elements.
|
|
334
|
-
* @returns {string}
|
|
335
|
-
*/
|
|
336
|
-
static elemMatch: (attribute: string, queries: string[]) => string;
|
|
337
|
-
/**
|
|
338
|
-
* Filter resources where attribute is at a specific distance from the given coordinates.
|
|
339
|
-
*
|
|
340
|
-
* @param {string} attribute
|
|
341
|
-
* @param {any[]} values
|
|
342
|
-
* @param {number} distance
|
|
343
|
-
* @param {boolean} meters
|
|
344
|
-
* @returns {string}
|
|
345
|
-
*/
|
|
346
|
-
static distanceEqual: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
|
|
347
|
-
/**
|
|
348
|
-
* Filter resources where attribute is not at a specific distance from the given coordinates.
|
|
349
|
-
*
|
|
350
|
-
* @param {string} attribute
|
|
351
|
-
* @param {any[]} values
|
|
352
|
-
* @param {number} distance
|
|
353
|
-
* @param {boolean} meters
|
|
354
|
-
* @returns {string}
|
|
355
|
-
*/
|
|
356
|
-
static distanceNotEqual: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
|
|
357
|
-
/**
|
|
358
|
-
* Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
|
|
359
|
-
*
|
|
360
|
-
* @param {string} attribute
|
|
361
|
-
* @param {any[]} values
|
|
362
|
-
* @param {number} distance
|
|
363
|
-
* @param {boolean} meters
|
|
364
|
-
* @returns {string}
|
|
365
|
-
*/
|
|
366
|
-
static distanceGreaterThan: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
|
|
367
|
-
/**
|
|
368
|
-
* Filter resources where attribute is at a distance less than the specified value from the given coordinates.
|
|
369
|
-
*
|
|
370
|
-
* @param {string} attribute
|
|
371
|
-
* @param {any[]} values
|
|
372
|
-
* @param {number} distance
|
|
373
|
-
* @param {boolean} meters
|
|
374
|
-
* @returns {string}
|
|
375
|
-
*/
|
|
376
|
-
static distanceLessThan: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
|
|
377
|
-
/**
|
|
378
|
-
* Filter resources where attribute intersects with the given geometry.
|
|
379
|
-
*
|
|
380
|
-
* @param {string} attribute
|
|
381
|
-
* @param {any[]} values
|
|
382
|
-
* @returns {string}
|
|
383
|
-
*/
|
|
384
|
-
static intersects: (attribute: string, values: any[]) => string;
|
|
385
|
-
/**
|
|
386
|
-
* Filter resources where attribute does not intersect with the given geometry.
|
|
387
|
-
*
|
|
388
|
-
* @param {string} attribute
|
|
389
|
-
* @param {any[]} values
|
|
390
|
-
* @returns {string}
|
|
391
|
-
*/
|
|
392
|
-
static notIntersects: (attribute: string, values: any[]) => string;
|
|
393
|
-
/**
|
|
394
|
-
* Filter resources where attribute crosses the given geometry.
|
|
395
|
-
*
|
|
396
|
-
* @param {string} attribute
|
|
397
|
-
* @param {any[]} values
|
|
398
|
-
* @returns {string}
|
|
399
|
-
*/
|
|
400
|
-
static crosses: (attribute: string, values: any[]) => string;
|
|
401
|
-
/**
|
|
402
|
-
* Filter resources where attribute does not cross the given geometry.
|
|
403
|
-
*
|
|
404
|
-
* @param {string} attribute
|
|
405
|
-
* @param {any[]} values
|
|
406
|
-
* @returns {string}
|
|
407
|
-
*/
|
|
408
|
-
static notCrosses: (attribute: string, values: any[]) => string;
|
|
409
|
-
/**
|
|
410
|
-
* Filter resources where attribute overlaps with the given geometry.
|
|
411
|
-
*
|
|
412
|
-
* @param {string} attribute
|
|
413
|
-
* @param {any[]} values
|
|
414
|
-
* @returns {string}
|
|
415
|
-
*/
|
|
416
|
-
static overlaps: (attribute: string, values: any[]) => string;
|
|
417
|
-
/**
|
|
418
|
-
* Filter resources where attribute does not overlap with the given geometry.
|
|
419
|
-
*
|
|
420
|
-
* @param {string} attribute
|
|
421
|
-
* @param {any[]} values
|
|
422
|
-
* @returns {string}
|
|
423
|
-
*/
|
|
424
|
-
static notOverlaps: (attribute: string, values: any[]) => string;
|
|
425
|
-
/**
|
|
426
|
-
* Filter resources where attribute touches the given geometry.
|
|
427
|
-
*
|
|
428
|
-
* @param {string} attribute
|
|
429
|
-
* @param {any[]} values
|
|
430
|
-
* @returns {string}
|
|
431
|
-
*/
|
|
432
|
-
static touches: (attribute: string, values: any[]) => string;
|
|
433
|
-
/**
|
|
434
|
-
* Filter resources where attribute does not touch the given geometry.
|
|
435
|
-
*
|
|
436
|
-
* @param {string} attribute
|
|
437
|
-
* @param {any[]} values
|
|
438
|
-
* @returns {string}
|
|
439
|
-
*/
|
|
440
|
-
static notTouches: (attribute: string, values: any[]) => string;
|
|
441
|
-
}
|
|
442
|
-
export {};
|