appbuild-oceanbase-console 1.10.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.
Files changed (105) hide show
  1. package/LICENSE +12 -0
  2. package/README.md +191 -0
  3. package/dist/cjs/package.json +3 -0
  4. package/dist/cjs/sdk.js +27712 -0
  5. package/dist/cjs/sdk.js.map +1 -0
  6. package/dist/esm/package.json +3 -0
  7. package/dist/esm/sdk.js +27675 -0
  8. package/dist/esm/sdk.js.map +1 -0
  9. package/dist/iife/sdk.js +27716 -0
  10. package/package.json +47 -0
  11. package/types/client.d.ts +211 -0
  12. package/types/enums/adapter.d.ts +4 -0
  13. package/types/enums/api-service.d.ts +15 -0
  14. package/types/enums/api.d.ts +5 -0
  15. package/types/enums/attribute-status.d.ts +7 -0
  16. package/types/enums/auth-method.d.ts +9 -0
  17. package/types/enums/authentication-factor.d.ts +6 -0
  18. package/types/enums/authenticator-type.d.ts +3 -0
  19. package/types/enums/billing-plan.d.ts +10 -0
  20. package/types/enums/browser.d.ts +16 -0
  21. package/types/enums/build-runtime.d.ts +66 -0
  22. package/types/enums/column-status.d.ts +7 -0
  23. package/types/enums/compression.d.ts +5 -0
  24. package/types/enums/console-resource-type.d.ts +3 -0
  25. package/types/enums/credit-card.d.ts +19 -0
  26. package/types/enums/database-type.d.ts +4 -0
  27. package/types/enums/deployment-download-type.d.ts +4 -0
  28. package/types/enums/deployment-status.d.ts +7 -0
  29. package/types/enums/email-template-locale.d.ts +133 -0
  30. package/types/enums/email-template-type.d.ts +9 -0
  31. package/types/enums/execution-method.d.ts +9 -0
  32. package/types/enums/execution-status.d.ts +7 -0
  33. package/types/enums/execution-trigger.d.ts +5 -0
  34. package/types/enums/flag.d.ts +197 -0
  35. package/types/enums/framework.d.ts +17 -0
  36. package/types/enums/health-antivirus-status.d.ts +5 -0
  37. package/types/enums/health-check-status.d.ts +4 -0
  38. package/types/enums/image-format.d.ts +9 -0
  39. package/types/enums/image-gravity.d.ts +11 -0
  40. package/types/enums/index-status.d.ts +7 -0
  41. package/types/enums/index-type.d.ts +6 -0
  42. package/types/enums/message-priority.d.ts +4 -0
  43. package/types/enums/message-status.d.ts +7 -0
  44. package/types/enums/messaging-provider-type.d.ts +5 -0
  45. package/types/enums/name.d.ts +14 -0
  46. package/types/enums/o-auth-provider.d.ts +43 -0
  47. package/types/enums/output.d.ts +9 -0
  48. package/types/enums/password-hash.d.ts +13 -0
  49. package/types/enums/platform-type.d.ts +17 -0
  50. package/types/enums/platform.d.ts +4 -0
  51. package/types/enums/project-usage-range.d.ts +4 -0
  52. package/types/enums/proxy-resource-type.d.ts +4 -0
  53. package/types/enums/proxy-rule-deployment-resource-type.d.ts +4 -0
  54. package/types/enums/proxy-rule-status.d.ts +6 -0
  55. package/types/enums/region.d.ts +8 -0
  56. package/types/enums/relation-mutate.d.ts +5 -0
  57. package/types/enums/relationship-type.d.ts +6 -0
  58. package/types/enums/runtime.d.ts +66 -0
  59. package/types/enums/sms-template-locale.d.ts +133 -0
  60. package/types/enums/sms-template-type.d.ts +6 -0
  61. package/types/enums/smtp-encryption.d.ts +5 -0
  62. package/types/enums/smtp-secure.d.ts +4 -0
  63. package/types/enums/status-code.d.ts +6 -0
  64. package/types/enums/status.d.ts +4 -0
  65. package/types/enums/theme.d.ts +4 -0
  66. package/types/enums/timezone.d.ts +421 -0
  67. package/types/enums/type.d.ts +5 -0
  68. package/types/enums/usage-range.d.ts +5 -0
  69. package/types/enums/vcs-deployment-type.d.ts +5 -0
  70. package/types/enums/vcs-detection-type.d.ts +4 -0
  71. package/types/id.d.ts +20 -0
  72. package/types/index.d.ts +102 -0
  73. package/types/migrations.d.ts +240 -0
  74. package/types/models.d.ts +7945 -0
  75. package/types/operator.d.ts +180 -0
  76. package/types/permission.d.ts +43 -0
  77. package/types/query.d.ts +390 -0
  78. package/types/role.d.ts +70 -0
  79. package/types/sdk.d.ts +108 -0
  80. package/types/service.d.ts +11 -0
  81. package/types/services/account.d.ts +1413 -0
  82. package/types/services/assistant.d.ts +24 -0
  83. package/types/services/avatars.d.ts +319 -0
  84. package/types/services/backups.d.ts +276 -0
  85. package/types/services/console.d.ts +210 -0
  86. package/types/services/databases.d.ts +2119 -0
  87. package/types/services/domains.d.ts +1276 -0
  88. package/types/services/functions.d.ts +827 -0
  89. package/types/services/graphql.d.ts +43 -0
  90. package/types/services/health.d.ts +432 -0
  91. package/types/services/locale.d.ts +64 -0
  92. package/types/services/messaging.d.ts +1989 -0
  93. package/types/services/migrations.d.ts +413 -0
  94. package/types/services/organizations.d.ts +842 -0
  95. package/types/services/project.d.ts +130 -0
  96. package/types/services/projects.d.ts +1663 -0
  97. package/types/services/proxy.d.ts +190 -0
  98. package/types/services/realtime.d.ts +118 -0
  99. package/types/services/sites.d.ts +780 -0
  100. package/types/services/storage.d.ts +467 -0
  101. package/types/services/tables-db.d.ts +2034 -0
  102. package/types/services/teams.d.ts +366 -0
  103. package/types/services/tokens.d.ts +119 -0
  104. package/types/services/users.d.ts +1184 -0
  105. package/types/services/vcs.d.ts +249 -0
@@ -0,0 +1,180 @@
1
+ declare type OperatorValuesSingle = string | number | boolean;
2
+ export declare type OperatorValuesList = string[] | number[] | boolean[] | any[];
3
+ export declare 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 {};
@@ -0,0 +1,43 @@
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
+ }
@@ -0,0 +1,390 @@
1
+ declare type QueryTypesSingle = string | number | boolean;
2
+ export declare type QueryTypesList = string[] | number[] | boolean[] | Query[] | any[];
3
+ export declare type QueryTypes = QueryTypesSingle | QueryTypesList;
4
+ declare 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 is less than value.
44
+ *
45
+ * @param {string} attribute
46
+ * @param {QueryTypes} value
47
+ * @returns {string}
48
+ */
49
+ static lessThan: (attribute: string, value: QueryTypes) => string;
50
+ /**
51
+ * Filter resources where attribute is less than or equal to value.
52
+ *
53
+ * @param {string} attribute
54
+ * @param {QueryTypes} value
55
+ * @returns {string}
56
+ */
57
+ static lessThanEqual: (attribute: string, value: QueryTypes) => string;
58
+ /**
59
+ * Filter resources where attribute is greater than value.
60
+ *
61
+ * @param {string} attribute
62
+ * @param {QueryTypes} value
63
+ * @returns {string}
64
+ */
65
+ static greaterThan: (attribute: string, value: QueryTypes) => string;
66
+ /**
67
+ * Filter resources where attribute is greater than or equal to value.
68
+ *
69
+ * @param {string} attribute
70
+ * @param {QueryTypes} value
71
+ * @returns {string}
72
+ */
73
+ static greaterThanEqual: (attribute: string, value: QueryTypes) => string;
74
+ /**
75
+ * Filter resources where attribute is null.
76
+ *
77
+ * @param {string} attribute
78
+ * @returns {string}
79
+ */
80
+ static isNull: (attribute: string) => string;
81
+ /**
82
+ * Filter resources where attribute is not null.
83
+ *
84
+ * @param {string} attribute
85
+ * @returns {string}
86
+ */
87
+ static isNotNull: (attribute: string) => string;
88
+ /**
89
+ * Filter resources where attribute is between start and end (inclusive).
90
+ *
91
+ * @param {string} attribute
92
+ * @param {string | number} start
93
+ * @param {string | number} end
94
+ * @returns {string}
95
+ */
96
+ static between: (attribute: string, start: string | number, end: string | number) => string;
97
+ /**
98
+ * Filter resources where attribute starts with value.
99
+ *
100
+ * @param {string} attribute
101
+ * @param {string} value
102
+ * @returns {string}
103
+ */
104
+ static startsWith: (attribute: string, value: string) => string;
105
+ /**
106
+ * Filter resources where attribute ends with value.
107
+ *
108
+ * @param {string} attribute
109
+ * @param {string} value
110
+ * @returns {string}
111
+ */
112
+ static endsWith: (attribute: string, value: string) => string;
113
+ /**
114
+ * Specify which attributes should be returned by the API call.
115
+ *
116
+ * @param {string[]} attributes
117
+ * @returns {string}
118
+ */
119
+ static select: (attributes: string[]) => string;
120
+ /**
121
+ * Filter resources by searching attribute for value.
122
+ * A fulltext index on attribute is required for this query to work.
123
+ *
124
+ * @param {string} attribute
125
+ * @param {string} value
126
+ * @returns {string}
127
+ */
128
+ static search: (attribute: string, value: string) => string;
129
+ /**
130
+ * Sort results by attribute descending.
131
+ *
132
+ * @param {string} attribute
133
+ * @returns {string}
134
+ */
135
+ static orderDesc: (attribute: string) => string;
136
+ /**
137
+ * Sort results by attribute ascending.
138
+ *
139
+ * @param {string} attribute
140
+ * @returns {string}
141
+ */
142
+ static orderAsc: (attribute: string) => string;
143
+ /**
144
+ * Sort results randomly.
145
+ *
146
+ * @returns {string}
147
+ */
148
+ static orderRandom: () => string;
149
+ /**
150
+ * Return results after documentId.
151
+ *
152
+ * @param {string} documentId
153
+ * @returns {string}
154
+ */
155
+ static cursorAfter: (documentId: string) => string;
156
+ /**
157
+ * Return results before documentId.
158
+ *
159
+ * @param {string} documentId
160
+ * @returns {string}
161
+ */
162
+ static cursorBefore: (documentId: string) => string;
163
+ /**
164
+ * Return only limit results.
165
+ *
166
+ * @param {number} limit
167
+ * @returns {string}
168
+ */
169
+ static limit: (limit: number) => string;
170
+ /**
171
+ * Filter resources by skipping the first offset results.
172
+ *
173
+ * @param {number} offset
174
+ * @returns {string}
175
+ */
176
+ static offset: (offset: number) => string;
177
+ /**
178
+ * Filter resources where attribute contains the specified value.
179
+ *
180
+ * @param {string} attribute
181
+ * @param {string | string[]} value
182
+ * @returns {string}
183
+ */
184
+ static contains: (attribute: string, value: string | any[]) => string;
185
+ /**
186
+ * Filter resources where attribute does not contain the specified value.
187
+ *
188
+ * @param {string} attribute
189
+ * @param {string | any[]} value
190
+ * @returns {string}
191
+ */
192
+ static notContains: (attribute: string, value: string | any[]) => string;
193
+ /**
194
+ * Filter resources by searching attribute for value (inverse of search).
195
+ * A fulltext index on attribute is required for this query to work.
196
+ *
197
+ * @param {string} attribute
198
+ * @param {string} value
199
+ * @returns {string}
200
+ */
201
+ static notSearch: (attribute: string, value: string) => string;
202
+ /**
203
+ * Filter resources where attribute is not between start and end (exclusive).
204
+ *
205
+ * @param {string} attribute
206
+ * @param {string | number} start
207
+ * @param {string | number} end
208
+ * @returns {string}
209
+ */
210
+ static notBetween: (attribute: string, start: string | number, end: string | number) => string;
211
+ /**
212
+ * Filter resources where attribute does not start with value.
213
+ *
214
+ * @param {string} attribute
215
+ * @param {string} value
216
+ * @returns {string}
217
+ */
218
+ static notStartsWith: (attribute: string, value: string) => string;
219
+ /**
220
+ * Filter resources where attribute does not end with value.
221
+ *
222
+ * @param {string} attribute
223
+ * @param {string} value
224
+ * @returns {string}
225
+ */
226
+ static notEndsWith: (attribute: string, value: string) => string;
227
+ /**
228
+ * Filter resources where document was created before date.
229
+ *
230
+ * @param {string} value
231
+ * @returns {string}
232
+ */
233
+ static createdBefore: (value: string) => string;
234
+ /**
235
+ * Filter resources where document was created after date.
236
+ *
237
+ * @param {string} value
238
+ * @returns {string}
239
+ */
240
+ static createdAfter: (value: string) => string;
241
+ /**
242
+ * Filter resources where document was created between dates.
243
+ *
244
+ * @param {string} start
245
+ * @param {string} end
246
+ * @returns {string}
247
+ */
248
+ static createdBetween: (start: string, end: string) => string;
249
+ /**
250
+ * Filter resources where document was updated before date.
251
+ *
252
+ * @param {string} value
253
+ * @returns {string}
254
+ */
255
+ static updatedBefore: (value: string) => string;
256
+ /**
257
+ * Filter resources where document was updated after date.
258
+ *
259
+ * @param {string} value
260
+ * @returns {string}
261
+ */
262
+ static updatedAfter: (value: string) => string;
263
+ /**
264
+ * Filter resources where document was updated between dates.
265
+ *
266
+ * @param {string} start
267
+ * @param {string} end
268
+ * @returns {string}
269
+ */
270
+ static updatedBetween: (start: string, end: string) => string;
271
+ /**
272
+ * Combine multiple queries using logical OR operator.
273
+ *
274
+ * @param {string[]} queries
275
+ * @returns {string}
276
+ */
277
+ static or: (queries: string[]) => string;
278
+ /**
279
+ * Combine multiple queries using logical AND operator.
280
+ *
281
+ * @param {string[]} queries
282
+ * @returns {string}
283
+ */
284
+ static and: (queries: string[]) => string;
285
+ /**
286
+ * Filter resources where attribute is at a specific distance from the given coordinates.
287
+ *
288
+ * @param {string} attribute
289
+ * @param {any[]} values
290
+ * @param {number} distance
291
+ * @param {boolean} meters
292
+ * @returns {string}
293
+ */
294
+ static distanceEqual: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
295
+ /**
296
+ * Filter resources where attribute is not at a specific distance from the given coordinates.
297
+ *
298
+ * @param {string} attribute
299
+ * @param {any[]} values
300
+ * @param {number} distance
301
+ * @param {boolean} meters
302
+ * @returns {string}
303
+ */
304
+ static distanceNotEqual: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
305
+ /**
306
+ * Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
307
+ *
308
+ * @param {string} attribute
309
+ * @param {any[]} values
310
+ * @param {number} distance
311
+ * @param {boolean} meters
312
+ * @returns {string}
313
+ */
314
+ static distanceGreaterThan: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
315
+ /**
316
+ * Filter resources where attribute is at a distance less than the specified value from the given coordinates.
317
+ *
318
+ * @param {string} attribute
319
+ * @param {any[]} values
320
+ * @param {number} distance
321
+ * @param {boolean} meters
322
+ * @returns {string}
323
+ */
324
+ static distanceLessThan: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
325
+ /**
326
+ * Filter resources where attribute intersects with the given geometry.
327
+ *
328
+ * @param {string} attribute
329
+ * @param {any[]} values
330
+ * @returns {string}
331
+ */
332
+ static intersects: (attribute: string, values: any[]) => string;
333
+ /**
334
+ * Filter resources where attribute does not intersect with the given geometry.
335
+ *
336
+ * @param {string} attribute
337
+ * @param {any[]} values
338
+ * @returns {string}
339
+ */
340
+ static notIntersects: (attribute: string, values: any[]) => string;
341
+ /**
342
+ * Filter resources where attribute crosses the given geometry.
343
+ *
344
+ * @param {string} attribute
345
+ * @param {any[]} values
346
+ * @returns {string}
347
+ */
348
+ static crosses: (attribute: string, values: any[]) => string;
349
+ /**
350
+ * Filter resources where attribute does not cross the given geometry.
351
+ *
352
+ * @param {string} attribute
353
+ * @param {any[]} values
354
+ * @returns {string}
355
+ */
356
+ static notCrosses: (attribute: string, values: any[]) => string;
357
+ /**
358
+ * Filter resources where attribute overlaps with the given geometry.
359
+ *
360
+ * @param {string} attribute
361
+ * @param {any[]} values
362
+ * @returns {string}
363
+ */
364
+ static overlaps: (attribute: string, values: any[]) => string;
365
+ /**
366
+ * Filter resources where attribute does not overlap with the given geometry.
367
+ *
368
+ * @param {string} attribute
369
+ * @param {any[]} values
370
+ * @returns {string}
371
+ */
372
+ static notOverlaps: (attribute: string, values: any[]) => string;
373
+ /**
374
+ * Filter resources where attribute touches the given geometry.
375
+ *
376
+ * @param {string} attribute
377
+ * @param {any[]} values
378
+ * @returns {string}
379
+ */
380
+ static touches: (attribute: string, values: any[]) => string;
381
+ /**
382
+ * Filter resources where attribute does not touch the given geometry.
383
+ *
384
+ * @param {string} attribute
385
+ * @param {any[]} values
386
+ * @returns {string}
387
+ */
388
+ static notTouches: (attribute: string, values: any[]) => string;
389
+ }
390
+ export {};
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Helper class to generate role strings for `Permission`.
3
+ */
4
+ export declare class Role {
5
+ /**
6
+ * Grants access to anyone.
7
+ *
8
+ * This includes authenticated and unauthenticated users.
9
+ *
10
+ * @returns {string}
11
+ */
12
+ static any(): string;
13
+ /**
14
+ * Grants access to a specific user by user ID.
15
+ *
16
+ * You can optionally pass verified or unverified for
17
+ * `status` to target specific types of users.
18
+ *
19
+ * @param {string} id
20
+ * @param {string} status
21
+ * @returns {string}
22
+ */
23
+ static user(id: string, status?: string): string;
24
+ /**
25
+ * Grants access to any authenticated or anonymous user.
26
+ *
27
+ * You can optionally pass verified or unverified for
28
+ * `status` to target specific types of users.
29
+ *
30
+ * @param {string} status
31
+ * @returns {string}
32
+ */
33
+ static users(status?: string): string;
34
+ /**
35
+ * Grants access to any guest user without a session.
36
+ *
37
+ * Authenticated users don't have access to this role.
38
+ *
39
+ * @returns {string}
40
+ */
41
+ static guests(): string;
42
+ /**
43
+ * Grants access to a team by team ID.
44
+ *
45
+ * You can optionally pass a role for `role` to target
46
+ * team members with the specified role.
47
+ *
48
+ * @param {string} id
49
+ * @param {string} role
50
+ * @returns {string}
51
+ */
52
+ static team(id: string, role?: string): string;
53
+ /**
54
+ * Grants access to a specific member of a team.
55
+ *
56
+ * When the member is removed from the team, they will
57
+ * no longer have access.
58
+ *
59
+ * @param {string} id
60
+ * @returns {string}
61
+ */
62
+ static member(id: string): string;
63
+ /**
64
+ * Grants access to a user with the specified label.
65
+ *
66
+ * @param {string} name
67
+ * @returns {string}
68
+ */
69
+ static label(name: string): string;
70
+ }