@wix/data 1.0.180 → 1.0.182
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/build/es/context.d.ts +1 -0
- package/build/es/context.js +1 -0
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +2 -2
- package/build/es/index.js +2 -2
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -1
- package/build/es/meta.js +1 -1
- package/build/es/meta.js.map +1 -1
- package/{build/cjs/context.d.ts → context.d.ts} +1 -0
- package/{build/cjs/context.js → context.js} +2 -1
- package/context.js.map +1 -0
- package/context.ts +4 -0
- package/{build/cjs/index.d.ts → index.d.ts} +2 -2
- package/{build/cjs/index.js → index.js} +3 -3
- package/index.js.map +1 -0
- package/index.ts +6 -0
- package/{build/cjs/meta.d.ts → meta.d.ts} +1 -1
- package/{build/cjs/meta.js → meta.js} +2 -2
- package/meta.js.map +1 -0
- package/meta.ts +4 -0
- package/package.json +35 -23
- package/service-plugins-context.js.map +1 -0
- package/service-plugins-context.ts +1 -0
- package/service-plugins.js.map +1 -0
- package/service-plugins.ts +1 -0
- package/build/cjs/context.js.map +0 -1
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/service-plugins-context.js.map +0 -1
- package/build/cjs/service-plugins.js.map +0 -1
- package/context/package.json +0 -7
- package/meta/package.json +0 -7
- package/service-plugins/context/package.json +0 -7
- package/service-plugins/package.json +0 -7
- package/type-bundles/context.bundle.d.ts +0 -2766
- package/type-bundles/index.bundle.d.ts +0 -4625
- package/type-bundles/meta.bundle.d.ts +0 -3346
- package/type-bundles/service-plugins-context.bundle.d.ts +0 -1330
- package/type-bundles/service-plugins.bundle.d.ts +0 -1330
- /package/{build/cjs/service-plugins-context.d.ts → service-plugins-context.d.ts} +0 -0
- /package/{build/cjs/service-plugins-context.js → service-plugins-context.js} +0 -0
- /package/{build/cjs/service-plugins.d.ts → service-plugins.d.ts} +0 -0
- /package/{build/cjs/service-plugins.js → service-plugins.js} +0 -0
|
@@ -1,1330 +0,0 @@
|
|
|
1
|
-
/** Dummy entity. */
|
|
2
|
-
interface MainEntity {
|
|
3
|
-
/**
|
|
4
|
-
* Dummy ID.
|
|
5
|
-
* @readonly
|
|
6
|
-
*/
|
|
7
|
-
_id?: string;
|
|
8
|
-
}
|
|
9
|
-
interface QueryDataItemsRequest {
|
|
10
|
-
/** ID of the collection to query. */
|
|
11
|
-
collectionId: string;
|
|
12
|
-
/** Query preferences. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for information about handling data queries. */
|
|
13
|
-
query: QueryV2;
|
|
14
|
-
/**
|
|
15
|
-
* Fields for which to include the full referenced items in the query's results, rather than just their IDs.
|
|
16
|
-
* Returned items are sorted in ascending order by the creation date of the reference.
|
|
17
|
-
* If the field being querried is a multi-reference field and the array is empty, the response does not return any items.
|
|
18
|
-
*/
|
|
19
|
-
includeReferencedItems?: ReferencedItemToInclude[];
|
|
20
|
-
/** Whether to retrieve data from the primary database instance. This decreases performance but ensures data retrieved is up-to-date even immediately after an update. Applicable if the external database is eventually consistent. */
|
|
21
|
-
consistentRead: boolean;
|
|
22
|
-
/** When `true`, the query response must include the total number of items that match the query. */
|
|
23
|
-
returnTotalCount: boolean;
|
|
24
|
-
}
|
|
25
|
-
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
26
|
-
/** Paging options to limit and skip the number of items. Paging mode is defined when the collection is created. */
|
|
27
|
-
paging?: Paging;
|
|
28
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. Paging mode is defined when the collection is created. */
|
|
29
|
-
cursorPaging?: CursorPaging;
|
|
30
|
-
/**
|
|
31
|
-
* Filter object in the following format:
|
|
32
|
-
* `"filter" : {
|
|
33
|
-
* "fieldName1": "value1",
|
|
34
|
-
* "fieldName2":{"$operator":"value2"}
|
|
35
|
-
* }`
|
|
36
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
37
|
-
*
|
|
38
|
-
* **Note:** Your endpoint must properly handle requests with filtering preferences that adhere to Wix Data data types. For example, a query request that includes filtering by a field whose type is Date and Time would contain an object in the following format: `"someDateAndTimeFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data).
|
|
39
|
-
*/
|
|
40
|
-
filter?: Record<string, any> | null;
|
|
41
|
-
/**
|
|
42
|
-
* Sort object in the following format:
|
|
43
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
44
|
-
*/
|
|
45
|
-
sort?: Sorting[];
|
|
46
|
-
/** Array of projected fields. A list of specific field names to return. */
|
|
47
|
-
fields?: string[];
|
|
48
|
-
}
|
|
49
|
-
/** @oneof */
|
|
50
|
-
interface QueryV2PagingMethodOneOf {
|
|
51
|
-
/** Paging options to limit and skip the number of items. Paging mode is defined when the collection is created. */
|
|
52
|
-
paging?: Paging;
|
|
53
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. Paging mode is defined when the collection is created. */
|
|
54
|
-
cursorPaging?: CursorPaging;
|
|
55
|
-
}
|
|
56
|
-
interface Sorting {
|
|
57
|
-
/** Name of the field to sort by. */
|
|
58
|
-
fieldName?: string;
|
|
59
|
-
/** Sort order. */
|
|
60
|
-
order?: SortOrder;
|
|
61
|
-
}
|
|
62
|
-
declare enum SortOrder {
|
|
63
|
-
ASC = "ASC",
|
|
64
|
-
DESC = "DESC"
|
|
65
|
-
}
|
|
66
|
-
interface Paging {
|
|
67
|
-
/** Number of items to load. */
|
|
68
|
-
limit?: number | null;
|
|
69
|
-
/** Number of items to skip in the current sort order. */
|
|
70
|
-
offset?: number | null;
|
|
71
|
-
}
|
|
72
|
-
interface CursorPaging {
|
|
73
|
-
/** Number of items to load. */
|
|
74
|
-
limit?: number | null;
|
|
75
|
-
/**
|
|
76
|
-
* Pointer to the next or previous page in the list of results.
|
|
77
|
-
*
|
|
78
|
-
* You can get the relevant cursor token
|
|
79
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
80
|
-
* Not relevant for the first request.
|
|
81
|
-
*/
|
|
82
|
-
cursor?: string | null;
|
|
83
|
-
}
|
|
84
|
-
interface ReferencedItemToInclude {
|
|
85
|
-
/** Field name in the referencing collection. */
|
|
86
|
-
fieldKey?: string;
|
|
87
|
-
/** Maximum number of referenced items to return. */
|
|
88
|
-
limit?: number;
|
|
89
|
-
/** Filter criteria to specify which items to include in the response. */
|
|
90
|
-
filter?: Record<string, any> | null;
|
|
91
|
-
}
|
|
92
|
-
interface QueryDataItemsResponse {
|
|
93
|
-
/** Retrieved items. */
|
|
94
|
-
items?: Record<string, any>[] | null;
|
|
95
|
-
/** Pagination information. */
|
|
96
|
-
pagingMetadata?: PagingMetadataV2;
|
|
97
|
-
}
|
|
98
|
-
interface PagingMetadataV2 {
|
|
99
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
100
|
-
total?: number | null;
|
|
101
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
102
|
-
cursors?: Cursors;
|
|
103
|
-
}
|
|
104
|
-
interface Cursors {
|
|
105
|
-
/** Cursor pointing to next page in the list of results. */
|
|
106
|
-
next?: string | null;
|
|
107
|
-
/** Cursor pointing to previous page in the list of results. */
|
|
108
|
-
prev?: string | null;
|
|
109
|
-
}
|
|
110
|
-
interface ItemAlreadyExistsError {
|
|
111
|
-
/** ID of the item that already exists. */
|
|
112
|
-
itemId?: string;
|
|
113
|
-
}
|
|
114
|
-
interface ItemNotFoundError {
|
|
115
|
-
/** ID of the item that was not found. */
|
|
116
|
-
itemId?: string;
|
|
117
|
-
}
|
|
118
|
-
interface CollectionAlreadyExistsError {
|
|
119
|
-
/** ID of the collection that already exists. */
|
|
120
|
-
collectionId?: string;
|
|
121
|
-
}
|
|
122
|
-
interface CollectionNotFoundError {
|
|
123
|
-
/** ID of the collection that was not found. */
|
|
124
|
-
collectionId?: string;
|
|
125
|
-
}
|
|
126
|
-
interface ReferenceAlreadyExistsError {
|
|
127
|
-
/** ID of the referring item. */
|
|
128
|
-
referringItemId?: string;
|
|
129
|
-
/** ID of the referenced item. */
|
|
130
|
-
referencedItemId?: string;
|
|
131
|
-
}
|
|
132
|
-
interface ReferenceNotFoundError {
|
|
133
|
-
/** ID of the referring item. */
|
|
134
|
-
referringItemId?: string;
|
|
135
|
-
/** ID of the referenced item. */
|
|
136
|
-
referencedItemId?: string;
|
|
137
|
-
}
|
|
138
|
-
interface ValidationError {
|
|
139
|
-
/** Violations that caused the validation to fail. */
|
|
140
|
-
violations?: ValidationViolation[];
|
|
141
|
-
}
|
|
142
|
-
interface ValidationViolation {
|
|
143
|
-
/** Path to the invalid field that caused the violation. */
|
|
144
|
-
fieldPath?: string | null;
|
|
145
|
-
/** The rejected value. */
|
|
146
|
-
rejectedValue?: string | null;
|
|
147
|
-
/** Error message that describes the violation. */
|
|
148
|
-
message?: string;
|
|
149
|
-
}
|
|
150
|
-
interface CollectionChangeNotSupported {
|
|
151
|
-
/** Errors that caused the change to fail. Learn more about [errors](data/cloud-data-spi/proto-spi/docs/errors.md) in the External Database Connections service plugin. */
|
|
152
|
-
errors?: CollectionChangeNotSupportedError[];
|
|
153
|
-
}
|
|
154
|
-
interface CollectionChangeNotSupportedError {
|
|
155
|
-
/** Key of collection field that can't be changed. */
|
|
156
|
-
fieldKey?: string | null;
|
|
157
|
-
/** Error message with additional details. */
|
|
158
|
-
message?: string;
|
|
159
|
-
}
|
|
160
|
-
interface CountDataItemsRequest {
|
|
161
|
-
/** ID of the collection to query. */
|
|
162
|
-
collectionId: string;
|
|
163
|
-
/** Filter to specify which items to count. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) for more information about handling data queries. */
|
|
164
|
-
filter: Record<string, any> | null;
|
|
165
|
-
/** Whether to retrieve data from the primary database instance. This decreases performance but ensures data retrieved is up-to-date even immediately after an update. Applicable if the external database is eventually consistent. */
|
|
166
|
-
consistentRead: boolean;
|
|
167
|
-
}
|
|
168
|
-
interface CountDataItemsResponse {
|
|
169
|
-
/** Number of items that match the query. */
|
|
170
|
-
totalCount?: number;
|
|
171
|
-
}
|
|
172
|
-
interface AggregateDataItemsRequest extends AggregateDataItemsRequestPagingMethodOneOf {
|
|
173
|
-
paging?: Paging;
|
|
174
|
-
cursorPaging?: CursorPaging;
|
|
175
|
-
/** ID of the collection on which to run the aggregation. */
|
|
176
|
-
collectionId: string;
|
|
177
|
-
/** Filter to apply to the collection's data before aggregation. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) for more information about handling data queries. */
|
|
178
|
-
initialFilter?: Record<string, any> | null;
|
|
179
|
-
/** Aggregation to apply to the data. */
|
|
180
|
-
aggregation?: Aggregation;
|
|
181
|
-
/** Filter to apply to the processed data after aggregation. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) for more information about handling data queries. */
|
|
182
|
-
finalFilter?: Record<string, any> | null;
|
|
183
|
-
/** Sorting configuration. */
|
|
184
|
-
sort?: Sorting[];
|
|
185
|
-
/** Whether to retrieve data from the primary database instance. This decreases performance but ensures data retrieved is up-to-date even immediately after an update. Applicable if the external database is eventually consistent. */
|
|
186
|
-
consistentRead: boolean;
|
|
187
|
-
/** When `true`, the query response must include the total number of items that match the query. */
|
|
188
|
-
returnTotalCount: boolean;
|
|
189
|
-
}
|
|
190
|
-
/** @oneof */
|
|
191
|
-
interface AggregateDataItemsRequestPagingMethodOneOf {
|
|
192
|
-
paging?: Paging;
|
|
193
|
-
cursorPaging?: CursorPaging;
|
|
194
|
-
}
|
|
195
|
-
interface Operation extends OperationCalculateOneOf {
|
|
196
|
-
/** Calculate the average value of a specified field for all items in the grouping. */
|
|
197
|
-
average?: Average;
|
|
198
|
-
/** Calculate the minimum value of a specified field for all items in the grouping. */
|
|
199
|
-
min?: Min;
|
|
200
|
-
/** Calculate the maximum value of a specified field for all items in the grouping. */
|
|
201
|
-
max?: Max;
|
|
202
|
-
/** Calculate the sum of values of a specified field for all items in the grouping. */
|
|
203
|
-
sum?: Sum;
|
|
204
|
-
/** Calculate the number of items in the grouping. */
|
|
205
|
-
itemCount?: Count;
|
|
206
|
-
/** Name of the field that contains the results of the operation. */
|
|
207
|
-
resultFieldName?: string;
|
|
208
|
-
}
|
|
209
|
-
/** @oneof */
|
|
210
|
-
interface OperationCalculateOneOf {
|
|
211
|
-
/** Calculate the average value of a specified field for all items in the grouping. */
|
|
212
|
-
average?: Average;
|
|
213
|
-
/** Calculate the minimum value of a specified field for all items in the grouping. */
|
|
214
|
-
min?: Min;
|
|
215
|
-
/** Calculate the maximum value of a specified field for all items in the grouping. */
|
|
216
|
-
max?: Max;
|
|
217
|
-
/** Calculate the sum of values of a specified field for all items in the grouping. */
|
|
218
|
-
sum?: Sum;
|
|
219
|
-
/** Calculate the number of items in the grouping. */
|
|
220
|
-
itemCount?: Count;
|
|
221
|
-
}
|
|
222
|
-
interface Average {
|
|
223
|
-
/** Name of the field for which to calculate the average value. */
|
|
224
|
-
itemFieldName?: string;
|
|
225
|
-
}
|
|
226
|
-
interface Min {
|
|
227
|
-
/** Name of the field for which to calculate the minimum value. */
|
|
228
|
-
itemFieldName?: string;
|
|
229
|
-
}
|
|
230
|
-
interface Max {
|
|
231
|
-
/** Name of the field for which to calculate the maximum value. */
|
|
232
|
-
itemFieldName?: string;
|
|
233
|
-
}
|
|
234
|
-
interface Sum {
|
|
235
|
-
/** Name of the field for which to calculate the sum. */
|
|
236
|
-
itemFieldName?: string;
|
|
237
|
-
}
|
|
238
|
-
interface Count {
|
|
239
|
-
}
|
|
240
|
-
interface Aggregation {
|
|
241
|
-
/** Fields by which to group items for the aggregation, in the order they appear in the array. If empty, the aggregation must be applied to the entire collection. */
|
|
242
|
-
groupingFields?: string[];
|
|
243
|
-
/** Operations to carry out on the data in each grouping. */
|
|
244
|
-
operations?: Operation[];
|
|
245
|
-
}
|
|
246
|
-
interface AggregateDataItemsResponse {
|
|
247
|
-
/** Aggregation results. Each result must contain a field for each `groupingFields` value, and a field for each `operations.resultFieldName` value. */
|
|
248
|
-
items?: Record<string, any>[] | null;
|
|
249
|
-
/** Paging information. */
|
|
250
|
-
pagingMetadata?: PagingMetadataV2;
|
|
251
|
-
}
|
|
252
|
-
interface QueryDistinctValuesRequest extends QueryDistinctValuesRequestPagingMethodOneOf {
|
|
253
|
-
paging?: Paging;
|
|
254
|
-
cursorPaging?: CursorPaging;
|
|
255
|
-
/** ID of the collection to query. */
|
|
256
|
-
collectionId: string;
|
|
257
|
-
/** Filter to apply to the collection's data before aggregation. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) for more information about handling data queries. */
|
|
258
|
-
filter?: Record<string, any> | null;
|
|
259
|
-
/** Item field name for which to return all distinct values. */
|
|
260
|
-
fieldName: string;
|
|
261
|
-
/** Order to by which to sort the results. Valid values are `ASC` and `DESC`. */
|
|
262
|
-
order?: SortOrder;
|
|
263
|
-
/** Whether to retrieve data from the primary database instance. This decreases performance but ensures data retrieved is up-to-date even immediately after an update. Applicable if the external database is eventually consistent. */
|
|
264
|
-
consistentRead: boolean;
|
|
265
|
-
/** When `true`, the query response must include the total number of items that match the query. */
|
|
266
|
-
returnTotalCount: boolean;
|
|
267
|
-
}
|
|
268
|
-
/** @oneof */
|
|
269
|
-
interface QueryDistinctValuesRequestPagingMethodOneOf {
|
|
270
|
-
paging?: Paging;
|
|
271
|
-
cursorPaging?: CursorPaging;
|
|
272
|
-
}
|
|
273
|
-
interface QueryDistinctValuesResponse {
|
|
274
|
-
/**
|
|
275
|
-
* List of distinct values contained in the field specified in `fieldName`. Values can be of any JSON type.
|
|
276
|
-
* If the field is an array, values must be unwound, independent values. For example, if the field name contains `["a", "b", "c"]`, the result must contain `"a"`, `"b"` and `"c"` as separate values.
|
|
277
|
-
*/
|
|
278
|
-
distinctValues?: any[];
|
|
279
|
-
/** Paging information. */
|
|
280
|
-
pagingMetadata?: PagingMetadataV2;
|
|
281
|
-
}
|
|
282
|
-
interface InsertDataItemsRequest {
|
|
283
|
-
/** ID of the collection in which to insert the items. */
|
|
284
|
-
collectionId: string;
|
|
285
|
-
/** Items to insert. */
|
|
286
|
-
items: Record<string, any>[] | null;
|
|
287
|
-
}
|
|
288
|
-
interface InsertDataItemsResponse {
|
|
289
|
-
/** Response must include either the inserted item or an error. */
|
|
290
|
-
results?: DataItemModificationResult[];
|
|
291
|
-
}
|
|
292
|
-
interface DataItemModificationResult extends DataItemModificationResultResultOneOf {
|
|
293
|
-
/** Item that was inserted, updated or removed. */
|
|
294
|
-
item?: Record<string, any> | null;
|
|
295
|
-
/** Error indicating why the operation failed for a particular item. Learn more about [error types](https://dev.wix.com/docs/rest/assets/data/external-database-spi/understanding-error-types-in-the-external-database-connections-spi) in the External Database Connections service plugin. */
|
|
296
|
-
error?: Error$1;
|
|
297
|
-
}
|
|
298
|
-
/** @oneof */
|
|
299
|
-
interface DataItemModificationResultResultOneOf {
|
|
300
|
-
/** Item that was inserted, updated or removed. */
|
|
301
|
-
item?: Record<string, any> | null;
|
|
302
|
-
/** Error indicating why the operation failed for a particular item. Learn more about [error types](https://dev.wix.com/docs/rest/assets/data/external-database-spi/understanding-error-types-in-the-external-database-connections-spi) in the External Database Connections service plugin. */
|
|
303
|
-
error?: Error$1;
|
|
304
|
-
}
|
|
305
|
-
interface Error$1 {
|
|
306
|
-
/** Error code. */
|
|
307
|
-
errorCode?: string;
|
|
308
|
-
/** Error description. */
|
|
309
|
-
errorMessage?: string | null;
|
|
310
|
-
/** Additional error data specific to the error code. */
|
|
311
|
-
data?: Record<string, any> | null;
|
|
312
|
-
}
|
|
313
|
-
interface UpdateDataItemsRequest {
|
|
314
|
-
/** ID of the collection in which to update the items. */
|
|
315
|
-
collectionId: string;
|
|
316
|
-
/** Items to update. */
|
|
317
|
-
items: Record<string, any>[] | null;
|
|
318
|
-
}
|
|
319
|
-
interface UpdateDataItemsResponse {
|
|
320
|
-
/** Response must include either the updated item or an error. */
|
|
321
|
-
results?: DataItemModificationResult[];
|
|
322
|
-
}
|
|
323
|
-
interface RemoveDataItemsRequest {
|
|
324
|
-
/** ID of the collection from which to remove items. */
|
|
325
|
-
collectionId: string;
|
|
326
|
-
/** IDs of items to remove. */
|
|
327
|
-
itemIds: string[];
|
|
328
|
-
}
|
|
329
|
-
interface RemoveDataItemsResponse {
|
|
330
|
-
/** Response must include either the removed item or an error. */
|
|
331
|
-
results?: DataItemModificationResult[];
|
|
332
|
-
}
|
|
333
|
-
interface TruncateDataItemsRequest {
|
|
334
|
-
/** ID of the collection from which to remove all items. */
|
|
335
|
-
collectionId: string;
|
|
336
|
-
}
|
|
337
|
-
interface TruncateDataItemsResponse {
|
|
338
|
-
}
|
|
339
|
-
interface QueryReferencedDataItemsRequest extends QueryReferencedDataItemsRequestPagingMethodOneOf {
|
|
340
|
-
/** Offset-based paging */
|
|
341
|
-
paging?: Paging;
|
|
342
|
-
/** Cursor-based paging */
|
|
343
|
-
cursorPaging?: CursorPaging;
|
|
344
|
-
/** ID of the collection to query. */
|
|
345
|
-
collectionId: string;
|
|
346
|
-
/** IDs of the referring items. If the array is empty, return results for all referring items. */
|
|
347
|
-
referringItemIds?: string[];
|
|
348
|
-
/** IDs of the referenced items. If the array is empty, return all referenced items for the referring items. */
|
|
349
|
-
referencedItemIds?: string[];
|
|
350
|
-
/** Order to by which to sort the results. Valid values are `ASC` and `DESC`. */
|
|
351
|
-
order?: SortOrder;
|
|
352
|
-
/** Field ID to query in the referring collection. */
|
|
353
|
-
referringFieldKey: string;
|
|
354
|
-
/** Whether to retrieve data from the primary database instance. This decreases performance but ensures data retrieved is up-to-date even immediately after an update. Applicable if the external database is eventually consistent. */
|
|
355
|
-
consistentRead: boolean;
|
|
356
|
-
/** Fields to return in the referenced item. If the array is empty or not provided, all fields in the referenced item are returned. */
|
|
357
|
-
fieldsToReturn?: string[];
|
|
358
|
-
/** When `true`, the response includes the total number of the items that match the query. */
|
|
359
|
-
returnTotalCount: boolean;
|
|
360
|
-
/** When `true`, the response includes the full referenced items. When `false`, only the IDs of referenced items be returned. */
|
|
361
|
-
includeReferencedItems: boolean;
|
|
362
|
-
}
|
|
363
|
-
/** @oneof */
|
|
364
|
-
interface QueryReferencedDataItemsRequestPagingMethodOneOf {
|
|
365
|
-
/** Offset-based paging */
|
|
366
|
-
paging?: Paging;
|
|
367
|
-
/** Cursor-based paging */
|
|
368
|
-
cursorPaging?: CursorPaging;
|
|
369
|
-
}
|
|
370
|
-
interface QueryReferencedDataItemsResponse {
|
|
371
|
-
/** Retrieved references. */
|
|
372
|
-
items?: ReferencedItem[];
|
|
373
|
-
/** Paging information. */
|
|
374
|
-
pagingMetadata?: PagingMetadataV2;
|
|
375
|
-
}
|
|
376
|
-
interface ReferencedItem {
|
|
377
|
-
/** ID of the item in the referring collection. */
|
|
378
|
-
referringItemId?: string;
|
|
379
|
-
/** ID of the item in the referenced collection. */
|
|
380
|
-
referencedItemId?: string;
|
|
381
|
-
/** Item in the referenced collection. If the external database does not support returning referenced items, this field can remain empty. */
|
|
382
|
-
referencedItem?: Record<string, any> | null;
|
|
383
|
-
}
|
|
384
|
-
interface InsertDataItemReferencesRequest {
|
|
385
|
-
/** ID of the referring collection. */
|
|
386
|
-
collectionId: string;
|
|
387
|
-
/** Field ID of the field in the referring collection to insert references into. */
|
|
388
|
-
referringFieldKey: string;
|
|
389
|
-
/** References to insert. */
|
|
390
|
-
references: ReferenceId[];
|
|
391
|
-
}
|
|
392
|
-
interface ReferenceId {
|
|
393
|
-
/** ID of the item in the referring collection. */
|
|
394
|
-
referringItemId?: string;
|
|
395
|
-
/** ID of the item in the referenced collection. */
|
|
396
|
-
referencedItemId?: string;
|
|
397
|
-
}
|
|
398
|
-
interface InsertDataItemReferencesResponse {
|
|
399
|
-
/** Response must include either the inserted reference or an error. */
|
|
400
|
-
results?: ReferenceModificationResult[];
|
|
401
|
-
}
|
|
402
|
-
interface ReferenceModificationResult extends ReferenceModificationResultResultOneOf {
|
|
403
|
-
/** Reference that was inserted or removed. */
|
|
404
|
-
reference?: ReferenceId;
|
|
405
|
-
/** Error indicating why the operation failed for a particular item. Learn more about [error types](https://dev.wix.com/docs/rest/assets/data/external-database-spi/understanding-error-types-in-the-external-database-connections-spi) in the External Database Connections service plugin. */
|
|
406
|
-
error?: Error$1;
|
|
407
|
-
}
|
|
408
|
-
/** @oneof */
|
|
409
|
-
interface ReferenceModificationResultResultOneOf {
|
|
410
|
-
/** Reference that was inserted or removed. */
|
|
411
|
-
reference?: ReferenceId;
|
|
412
|
-
/** Error indicating why the operation failed for a particular item. Learn more about [error types](https://dev.wix.com/docs/rest/assets/data/external-database-spi/understanding-error-types-in-the-external-database-connections-spi) in the External Database Connections service plugin. */
|
|
413
|
-
error?: Error$1;
|
|
414
|
-
}
|
|
415
|
-
interface RemoveDataItemReferencesRequest {
|
|
416
|
-
/** ID of the referring collection. */
|
|
417
|
-
collectionId: string;
|
|
418
|
-
/** Field ID of the field in the referring collection to remove references from. */
|
|
419
|
-
referringFieldKey: string;
|
|
420
|
-
/** References to remove. */
|
|
421
|
-
references: ReferenceId[];
|
|
422
|
-
}
|
|
423
|
-
interface RemoveDataItemReferencesResponse {
|
|
424
|
-
/** Response must include either the removed reference or an error. */
|
|
425
|
-
results?: ReferenceModificationResult[];
|
|
426
|
-
}
|
|
427
|
-
interface ListCollectionsRequest {
|
|
428
|
-
/** IDs of collections to retrieve. If empty, all available collections are retrieved. */
|
|
429
|
-
collectionIds?: string[];
|
|
430
|
-
}
|
|
431
|
-
interface ListCollectionsResponse {
|
|
432
|
-
/** List of the retrieved collections. */
|
|
433
|
-
collections?: Collection[];
|
|
434
|
-
}
|
|
435
|
-
interface Collection {
|
|
436
|
-
/** ID of the collection. */
|
|
437
|
-
_id?: string;
|
|
438
|
-
/** Collection display name as it appears in the CMS. For example, `My First Collection`. */
|
|
439
|
-
displayName?: string | null;
|
|
440
|
-
/** Collection fields. */
|
|
441
|
-
fields?: Field[];
|
|
442
|
-
/**
|
|
443
|
-
* Capabilities the collection supports. This is set by the external database, and is ignored in the body of the request.
|
|
444
|
-
* @readonly
|
|
445
|
-
*/
|
|
446
|
-
capabilities?: CollectionCapabilities;
|
|
447
|
-
/** Levels of permission for accessing and modifying data. These are defined by the lowest role needed to perform each action. */
|
|
448
|
-
permissions?: Permissions;
|
|
449
|
-
/**
|
|
450
|
-
* Whether the collection supports cursor- or offset-based paging. Each paging mode requires different configuration parameters.
|
|
451
|
-
* @readonly
|
|
452
|
-
*/
|
|
453
|
-
pagingMode?: PagingMode;
|
|
454
|
-
}
|
|
455
|
-
interface Field extends FieldTypeOptionsOneOf {
|
|
456
|
-
singleReferenceOptions?: SingleReferenceOptions;
|
|
457
|
-
multiReferenceOptions?: MultiReferenceOptions;
|
|
458
|
-
arrayOptions?: ArrayOptions;
|
|
459
|
-
objectOptions?: ObjectOptions;
|
|
460
|
-
/** Field identifier. */
|
|
461
|
-
key?: string;
|
|
462
|
-
/** Field display name as it appears in the CMS. For example, `First Name`. */
|
|
463
|
-
displayName?: string | null;
|
|
464
|
-
/** Field description. */
|
|
465
|
-
description?: string | null;
|
|
466
|
-
/** Field type. */
|
|
467
|
-
type?: FieldType;
|
|
468
|
-
/**
|
|
469
|
-
* Capabilities the collection supports. This is set by the external database and is ignored in the body of the request.
|
|
470
|
-
* @readonly
|
|
471
|
-
*/
|
|
472
|
-
capabilities?: FieldCapabilities;
|
|
473
|
-
/** Whether the field value is encrypted and sent as an object. Encryption and decryption are handled by Wix. Default: `false`. */
|
|
474
|
-
encrypted?: boolean;
|
|
475
|
-
}
|
|
476
|
-
/** @oneof */
|
|
477
|
-
interface FieldTypeOptionsOneOf {
|
|
478
|
-
singleReferenceOptions?: SingleReferenceOptions;
|
|
479
|
-
multiReferenceOptions?: MultiReferenceOptions;
|
|
480
|
-
arrayOptions?: ArrayOptions;
|
|
481
|
-
objectOptions?: ObjectOptions;
|
|
482
|
-
}
|
|
483
|
-
declare enum FieldType {
|
|
484
|
-
UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
|
|
485
|
-
TEXT = "TEXT",
|
|
486
|
-
NUMBER = "NUMBER",
|
|
487
|
-
DATE = "DATE",
|
|
488
|
-
DATETIME = "DATETIME",
|
|
489
|
-
IMAGE = "IMAGE",
|
|
490
|
-
BOOLEAN = "BOOLEAN",
|
|
491
|
-
DOCUMENT = "DOCUMENT",
|
|
492
|
-
URL = "URL",
|
|
493
|
-
RICH_TEXT = "RICH_TEXT",
|
|
494
|
-
VIDEO = "VIDEO",
|
|
495
|
-
ANY = "ANY",
|
|
496
|
-
ARRAY_STRING = "ARRAY_STRING",
|
|
497
|
-
ARRAY_DOCUMENT = "ARRAY_DOCUMENT",
|
|
498
|
-
AUDIO = "AUDIO",
|
|
499
|
-
TIME = "TIME",
|
|
500
|
-
LANGUAGE = "LANGUAGE",
|
|
501
|
-
RICH_CONTENT = "RICH_CONTENT",
|
|
502
|
-
MEDIA_GALLERY = "MEDIA_GALLERY",
|
|
503
|
-
ADDRESS = "ADDRESS",
|
|
504
|
-
REFERENCE = "REFERENCE",
|
|
505
|
-
MULTI_REFERENCE = "MULTI_REFERENCE",
|
|
506
|
-
OBJECT = "OBJECT",
|
|
507
|
-
ARRAY = "ARRAY"
|
|
508
|
-
}
|
|
509
|
-
interface FieldCapabilities {
|
|
510
|
-
/** Whether the field can be used to sort the items in a collection. Default: `false`. */
|
|
511
|
-
sortable?: boolean;
|
|
512
|
-
/** Query operators that can be used for this field. */
|
|
513
|
-
queryOperators?: QueryOperator[];
|
|
514
|
-
}
|
|
515
|
-
declare enum QueryOperator {
|
|
516
|
-
EQ = "EQ",
|
|
517
|
-
LT = "LT",
|
|
518
|
-
GT = "GT",
|
|
519
|
-
NE = "NE",
|
|
520
|
-
LTE = "LTE",
|
|
521
|
-
GTE = "GTE",
|
|
522
|
-
STARTS_WITH = "STARTS_WITH",
|
|
523
|
-
ENDS_WITH = "ENDS_WITH",
|
|
524
|
-
CONTAINS = "CONTAINS",
|
|
525
|
-
HAS_SOME = "HAS_SOME",
|
|
526
|
-
HAS_ALL = "HAS_ALL",
|
|
527
|
-
EXISTS = "EXISTS",
|
|
528
|
-
URLIZED = "URLIZED"
|
|
529
|
-
}
|
|
530
|
-
interface SingleReferenceOptions {
|
|
531
|
-
/**
|
|
532
|
-
* ID of the referenced collection.
|
|
533
|
-
*
|
|
534
|
-
* When the referring field is a single-reference field, it refers to the `_id` field of the referenced collection.
|
|
535
|
-
*/
|
|
536
|
-
referencedCollectionId?: string;
|
|
537
|
-
}
|
|
538
|
-
interface MultiReferenceOptions {
|
|
539
|
-
/** ID of the referenced collection. */
|
|
540
|
-
referencedCollectionId?: string;
|
|
541
|
-
/** Field ID of the referenced field in the referenced collection. */
|
|
542
|
-
referencedCollectionFieldKey?: string | null;
|
|
543
|
-
/** Field display name of the referenced field in the referenced collection. */
|
|
544
|
-
referencedCollectionFieldDisplayName?: string | null;
|
|
545
|
-
}
|
|
546
|
-
interface ArrayOptions extends ArrayOptionsTypeOptionsOneOf {
|
|
547
|
-
singleReferenceOptions?: SingleReferenceOptions;
|
|
548
|
-
multiReferenceOptions?: MultiReferenceOptions;
|
|
549
|
-
arrayOptions?: ArrayOptions;
|
|
550
|
-
objectOptions?: ObjectOptions;
|
|
551
|
-
/** Element data type. */
|
|
552
|
-
elementType?: FieldType;
|
|
553
|
-
}
|
|
554
|
-
/** @oneof */
|
|
555
|
-
interface ArrayOptionsTypeOptionsOneOf {
|
|
556
|
-
singleReferenceOptions?: SingleReferenceOptions;
|
|
557
|
-
multiReferenceOptions?: MultiReferenceOptions;
|
|
558
|
-
arrayOptions?: ArrayOptions;
|
|
559
|
-
objectOptions?: ObjectOptions;
|
|
560
|
-
}
|
|
561
|
-
interface ObjectOptions {
|
|
562
|
-
/** Fields within the object. */
|
|
563
|
-
fields?: ObjectField[];
|
|
564
|
-
}
|
|
565
|
-
interface ObjectField extends ObjectFieldTypeOptionsOneOf {
|
|
566
|
-
singleReferenceOptions?: SingleReferenceOptions;
|
|
567
|
-
multiReferenceOptions?: MultiReferenceOptions;
|
|
568
|
-
arrayOptions?: ArrayOptions;
|
|
569
|
-
objectOptions?: ObjectOptions;
|
|
570
|
-
/** Field ID. */
|
|
571
|
-
key?: string;
|
|
572
|
-
/** Field display name. */
|
|
573
|
-
displayName?: string | null;
|
|
574
|
-
/** Field type. */
|
|
575
|
-
type?: FieldType;
|
|
576
|
-
/**
|
|
577
|
-
* Capabilities the object field supports.
|
|
578
|
-
* @readonly
|
|
579
|
-
*/
|
|
580
|
-
capabilities?: FieldCapabilities;
|
|
581
|
-
}
|
|
582
|
-
/** @oneof */
|
|
583
|
-
interface ObjectFieldTypeOptionsOneOf {
|
|
584
|
-
singleReferenceOptions?: SingleReferenceOptions;
|
|
585
|
-
multiReferenceOptions?: MultiReferenceOptions;
|
|
586
|
-
arrayOptions?: ArrayOptions;
|
|
587
|
-
objectOptions?: ObjectOptions;
|
|
588
|
-
}
|
|
589
|
-
interface CollectionCapabilities {
|
|
590
|
-
/** Data operations that can be performed on items in the collection. */
|
|
591
|
-
dataOperations?: DataOperation[];
|
|
592
|
-
}
|
|
593
|
-
declare enum DataOperation {
|
|
594
|
-
QUERY = "QUERY",
|
|
595
|
-
COUNT = "COUNT",
|
|
596
|
-
QUERY_REFERENCED = "QUERY_REFERENCED",
|
|
597
|
-
AGGREGATE = "AGGREGATE",
|
|
598
|
-
DISTINCT = "DISTINCT",
|
|
599
|
-
INSERT = "INSERT",
|
|
600
|
-
UPDATE = "UPDATE",
|
|
601
|
-
REMOVE = "REMOVE",
|
|
602
|
-
TRUNCATE = "TRUNCATE",
|
|
603
|
-
INSERT_REFERENCES = "INSERT_REFERENCES",
|
|
604
|
-
REMOVE_REFERENCES = "REMOVE_REFERENCES"
|
|
605
|
-
}
|
|
606
|
-
interface Permissions {
|
|
607
|
-
/** Lowest role required to add a collection. */
|
|
608
|
-
insert?: Role;
|
|
609
|
-
/** Lowest role required to update a collection. */
|
|
610
|
-
update?: Role;
|
|
611
|
-
/** Lowest role required to remove a collection. */
|
|
612
|
-
remove?: Role;
|
|
613
|
-
/** Lowest role required to read a collection. */
|
|
614
|
-
read?: Role;
|
|
615
|
-
}
|
|
616
|
-
declare enum Role {
|
|
617
|
-
/** Site administrator. */
|
|
618
|
-
ADMIN = "ADMIN",
|
|
619
|
-
/** A signed-in user who inserted content to this collection. */
|
|
620
|
-
SITE_MEMBER_AUTHOR = "SITE_MEMBER_AUTHOR",
|
|
621
|
-
/** Any signed-in user. */
|
|
622
|
-
SITE_MEMBER = "SITE_MEMBER",
|
|
623
|
-
/** Any site visitor. */
|
|
624
|
-
ANYONE = "ANYONE"
|
|
625
|
-
}
|
|
626
|
-
declare enum PagingMode {
|
|
627
|
-
UNKNOWN_PAGING_MODE = "UNKNOWN_PAGING_MODE",
|
|
628
|
-
/** Offset-based paging. */
|
|
629
|
-
OFFSET = "OFFSET",
|
|
630
|
-
/** Cursor-based paging. */
|
|
631
|
-
CURSOR = "CURSOR"
|
|
632
|
-
}
|
|
633
|
-
interface CreateCollectionRequest {
|
|
634
|
-
/** Details of the collection to create. */
|
|
635
|
-
collection?: Collection;
|
|
636
|
-
}
|
|
637
|
-
interface CreateCollectionResponse {
|
|
638
|
-
/** Details of the created collection. */
|
|
639
|
-
collection?: Collection;
|
|
640
|
-
}
|
|
641
|
-
interface UpdateCollectionRequest {
|
|
642
|
-
/** Updated structure details for the specified collection. */
|
|
643
|
-
collection?: Collection;
|
|
644
|
-
}
|
|
645
|
-
interface UpdateCollectionResponse {
|
|
646
|
-
/** Updated collection details. */
|
|
647
|
-
collection?: Collection;
|
|
648
|
-
}
|
|
649
|
-
interface DeleteCollectionRequest {
|
|
650
|
-
/** ID of the collection to delete. */
|
|
651
|
-
collectionId: string;
|
|
652
|
-
}
|
|
653
|
-
interface DeleteCollectionResponse {
|
|
654
|
-
}
|
|
655
|
-
interface GetCapabilitiesRequest {
|
|
656
|
-
}
|
|
657
|
-
interface GetCapabilitiesResponse {
|
|
658
|
-
/** Whether the external database supports creating new collections, updating the structure of existing collections, or deleting them. */
|
|
659
|
-
supportsCollectionModifications?: boolean;
|
|
660
|
-
/** Field types the external database supports. This field only applies when `supportsCollectionModifications` is true. */
|
|
661
|
-
supportedFieldTypes?: FieldType[];
|
|
662
|
-
}
|
|
663
|
-
interface IndexOptions {
|
|
664
|
-
/** Whether the external database supports creating, listing and removing indexes. */
|
|
665
|
-
supportsIndexes?: boolean;
|
|
666
|
-
/** Maximum number of regular (non-unique) indexes allowed for this collection. */
|
|
667
|
-
maxNumberOfRegularIndexesPerCollection?: number;
|
|
668
|
-
/** Maximum number of unique indexes allowed for this collection. */
|
|
669
|
-
maxNumberOfUniqueIndexesPerCollection?: number;
|
|
670
|
-
/** Maximum number of regular and unique indexes allowed for this collection. */
|
|
671
|
-
maxNumberOfIndexesPerCollection?: number;
|
|
672
|
-
}
|
|
673
|
-
interface ListIndexesRequest {
|
|
674
|
-
/** collection to list indexes from */
|
|
675
|
-
collectionId: string;
|
|
676
|
-
}
|
|
677
|
-
interface ListIndexesResponse {
|
|
678
|
-
/** list of indexes */
|
|
679
|
-
indexes?: Index[];
|
|
680
|
-
}
|
|
681
|
-
interface Index {
|
|
682
|
-
/** Index name */
|
|
683
|
-
name?: string;
|
|
684
|
-
/** Fields over which the index is defined */
|
|
685
|
-
fields?: IndexField[];
|
|
686
|
-
/**
|
|
687
|
-
* Indicates current status of index
|
|
688
|
-
* @readonly
|
|
689
|
-
*/
|
|
690
|
-
status?: Status;
|
|
691
|
-
/** If true index will enforce that values in the field are unique in scope of a collection. Default is false. */
|
|
692
|
-
unique?: boolean;
|
|
693
|
-
/** If true index will be case-insensitive. Default is false. */
|
|
694
|
-
caseInsensitive?: boolean;
|
|
695
|
-
/**
|
|
696
|
-
* Contains details about failure reason when index is in *FAILED* status
|
|
697
|
-
* @readonly
|
|
698
|
-
*/
|
|
699
|
-
failure?: Error$1;
|
|
700
|
-
}
|
|
701
|
-
/**
|
|
702
|
-
* Order determines how values are ordered in the index. This is important when
|
|
703
|
-
* ordering and/or range querying by indexed fields.
|
|
704
|
-
*/
|
|
705
|
-
declare enum Order {
|
|
706
|
-
ASC = "ASC",
|
|
707
|
-
DESC = "DESC"
|
|
708
|
-
}
|
|
709
|
-
interface IndexField {
|
|
710
|
-
/** Field to index. For example: title, options.price */
|
|
711
|
-
path?: string;
|
|
712
|
-
/** Order in which to keep the values. Default is ASC. */
|
|
713
|
-
order?: Order;
|
|
714
|
-
}
|
|
715
|
-
declare enum Status {
|
|
716
|
-
/** Place holder. Never returned by the service. */
|
|
717
|
-
UNKNOWN = "UNKNOWN",
|
|
718
|
-
/** Index creation is in progress. */
|
|
719
|
-
BUILDING = "BUILDING",
|
|
720
|
-
/** Index has been successfully created. It can be used in queries. */
|
|
721
|
-
ACTIVE = "ACTIVE",
|
|
722
|
-
/** Index is being dropped. */
|
|
723
|
-
DROPPING = "DROPPING",
|
|
724
|
-
/** Index is successfully dropped. */
|
|
725
|
-
DROPPED = "DROPPED",
|
|
726
|
-
/** Index creation has failed. */
|
|
727
|
-
FAILED = "FAILED",
|
|
728
|
-
/** Index contains incorrectly indexed data. */
|
|
729
|
-
INVALID = "INVALID"
|
|
730
|
-
}
|
|
731
|
-
interface CreateIndexRequest {
|
|
732
|
-
/** collection to list indexes from */
|
|
733
|
-
collectionId: string;
|
|
734
|
-
/** index definition */
|
|
735
|
-
index: Index;
|
|
736
|
-
}
|
|
737
|
-
interface CreateIndexResponse {
|
|
738
|
-
/** created index and its status */
|
|
739
|
-
index?: Index;
|
|
740
|
-
}
|
|
741
|
-
interface RemoveIndexRequest {
|
|
742
|
-
/** collection to delete index from */
|
|
743
|
-
collectionId: string;
|
|
744
|
-
/** index name */
|
|
745
|
-
indexName: string;
|
|
746
|
-
}
|
|
747
|
-
interface RemoveIndexResponse {
|
|
748
|
-
}
|
|
749
|
-
interface ExternalDatabaseSpiConfig {
|
|
750
|
-
/** The URI where the service provider is deployed. */
|
|
751
|
-
uriConfig?: SpiBaseUri;
|
|
752
|
-
/** The namespace of the external database. This can be used to access collections within the database, for example `namespace/collectionId`. */
|
|
753
|
-
namespace?: string;
|
|
754
|
-
}
|
|
755
|
-
interface SpiBaseUri {
|
|
756
|
-
/**
|
|
757
|
-
* Base URI where the methods are called. Wix appends the path to the `baseUri`.
|
|
758
|
-
* For example, to call the Get Shipping Rates method at `https://my-shipping-provider.com/v1/getRates`, the base URI you provide here is `https://my-shipping-provider.com/`.
|
|
759
|
-
*/
|
|
760
|
-
baseUri?: string;
|
|
761
|
-
/** Alternate, custom URIs to replace the default URIs for specific service plugin methods. */
|
|
762
|
-
alternativeUris?: AlternativeUri[];
|
|
763
|
-
}
|
|
764
|
-
interface AlternativeUri {
|
|
765
|
-
/**
|
|
766
|
-
* Name of the method to create a custom URI for.
|
|
767
|
-
*
|
|
768
|
-
* For `methodName`, use the name of the method in PascalCase.
|
|
769
|
-
* For example, for Get Shipping Rates use `GetShippingRates`.
|
|
770
|
-
*/
|
|
771
|
-
methodName?: string;
|
|
772
|
-
/**
|
|
773
|
-
* Custom URI that Wix uses to call your server for this method. The path-suffix documented in the method will not be appended to this URI.
|
|
774
|
-
* Must be a secured endpoint beginning with `https://`. For example, `https://www.my-shipping-provider.com/my-shipping-rates`.
|
|
775
|
-
*/
|
|
776
|
-
absoluteUri?: string;
|
|
777
|
-
}
|
|
778
|
-
/**
|
|
779
|
-
* this message is not directly used by any service,
|
|
780
|
-
* it exists to describe the expected parameters that SHOULD be provided to invoked Velo methods as part of open-platform.
|
|
781
|
-
* e.g. SPIs, event-handlers, etc..
|
|
782
|
-
* NOTE: this context object MUST be provided as the last argument in each Velo method signature.
|
|
783
|
-
*
|
|
784
|
-
* Example:
|
|
785
|
-
* ```typescript
|
|
786
|
-
* export function wixStores_onOrderCanceled({ event, metadata }: OrderCanceledEvent) {
|
|
787
|
-
* ...
|
|
788
|
-
* }
|
|
789
|
-
* ```
|
|
790
|
-
*/
|
|
791
|
-
interface Context {
|
|
792
|
-
/** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */
|
|
793
|
-
requestId?: string | null;
|
|
794
|
-
/** [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code. */
|
|
795
|
-
currency?: string | null;
|
|
796
|
-
/** An object that describes the identity that triggered this request. */
|
|
797
|
-
identity?: IdentificationData;
|
|
798
|
-
/** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
|
|
799
|
-
languages?: string[];
|
|
800
|
-
/** The service provider app's instance ID. */
|
|
801
|
-
instanceId?: string | null;
|
|
802
|
-
}
|
|
803
|
-
declare enum IdentityType {
|
|
804
|
-
UNKNOWN = "UNKNOWN",
|
|
805
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
806
|
-
MEMBER = "MEMBER",
|
|
807
|
-
WIX_USER = "WIX_USER",
|
|
808
|
-
APP = "APP"
|
|
809
|
-
}
|
|
810
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
811
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
812
|
-
anonymousVisitorId?: string;
|
|
813
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
814
|
-
memberId?: string;
|
|
815
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
816
|
-
wixUserId?: string;
|
|
817
|
-
/** ID of an app. */
|
|
818
|
-
appId?: string;
|
|
819
|
-
/** @readonly */
|
|
820
|
-
identityType?: IdentityType;
|
|
821
|
-
}
|
|
822
|
-
/** @oneof */
|
|
823
|
-
interface IdentificationDataIdOneOf {
|
|
824
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
825
|
-
anonymousVisitorId?: string;
|
|
826
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
827
|
-
memberId?: string;
|
|
828
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
829
|
-
wixUserId?: string;
|
|
830
|
-
/** ID of an app. */
|
|
831
|
-
appId?: string;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
declare class ItemAlreadyExistsWixError extends Error {
|
|
835
|
-
/** @hidden */
|
|
836
|
-
httpCode: number;
|
|
837
|
-
/** @hidden */
|
|
838
|
-
statusCode: string;
|
|
839
|
-
/** @hidden */
|
|
840
|
-
applicationCode: string;
|
|
841
|
-
/** @hidden */
|
|
842
|
-
name: string;
|
|
843
|
-
/** @hidden */
|
|
844
|
-
errorSchemaName: string;
|
|
845
|
-
/** @hidden */
|
|
846
|
-
errorType: string;
|
|
847
|
-
/** @hidden */
|
|
848
|
-
spiErrorData: object;
|
|
849
|
-
data: ItemAlreadyExistsError;
|
|
850
|
-
constructor(data?: ItemAlreadyExistsError);
|
|
851
|
-
/** @hidden */
|
|
852
|
-
static readonly __type = "wix_spi_error";
|
|
853
|
-
}
|
|
854
|
-
declare class ItemNotFoundWixError extends Error {
|
|
855
|
-
/** @hidden */
|
|
856
|
-
httpCode: number;
|
|
857
|
-
/** @hidden */
|
|
858
|
-
statusCode: string;
|
|
859
|
-
/** @hidden */
|
|
860
|
-
applicationCode: string;
|
|
861
|
-
/** @hidden */
|
|
862
|
-
name: string;
|
|
863
|
-
/** @hidden */
|
|
864
|
-
errorSchemaName: string;
|
|
865
|
-
/** @hidden */
|
|
866
|
-
errorType: string;
|
|
867
|
-
/** @hidden */
|
|
868
|
-
spiErrorData: object;
|
|
869
|
-
data: ItemNotFoundError;
|
|
870
|
-
constructor(data?: ItemNotFoundError);
|
|
871
|
-
/** @hidden */
|
|
872
|
-
static readonly __type = "wix_spi_error";
|
|
873
|
-
}
|
|
874
|
-
declare class CollectionAlreadyExistsWixError extends Error {
|
|
875
|
-
/** @hidden */
|
|
876
|
-
httpCode: number;
|
|
877
|
-
/** @hidden */
|
|
878
|
-
statusCode: string;
|
|
879
|
-
/** @hidden */
|
|
880
|
-
applicationCode: string;
|
|
881
|
-
/** @hidden */
|
|
882
|
-
name: string;
|
|
883
|
-
/** @hidden */
|
|
884
|
-
errorSchemaName: string;
|
|
885
|
-
/** @hidden */
|
|
886
|
-
errorType: string;
|
|
887
|
-
/** @hidden */
|
|
888
|
-
spiErrorData: object;
|
|
889
|
-
data: CollectionAlreadyExistsError;
|
|
890
|
-
constructor(data?: CollectionAlreadyExistsError);
|
|
891
|
-
/** @hidden */
|
|
892
|
-
static readonly __type = "wix_spi_error";
|
|
893
|
-
}
|
|
894
|
-
declare class CollectionNotFoundWixError extends Error {
|
|
895
|
-
/** @hidden */
|
|
896
|
-
httpCode: number;
|
|
897
|
-
/** @hidden */
|
|
898
|
-
statusCode: string;
|
|
899
|
-
/** @hidden */
|
|
900
|
-
applicationCode: string;
|
|
901
|
-
/** @hidden */
|
|
902
|
-
name: string;
|
|
903
|
-
/** @hidden */
|
|
904
|
-
errorSchemaName: string;
|
|
905
|
-
/** @hidden */
|
|
906
|
-
errorType: string;
|
|
907
|
-
/** @hidden */
|
|
908
|
-
spiErrorData: object;
|
|
909
|
-
data: CollectionNotFoundError;
|
|
910
|
-
constructor(data?: CollectionNotFoundError);
|
|
911
|
-
/** @hidden */
|
|
912
|
-
static readonly __type = "wix_spi_error";
|
|
913
|
-
}
|
|
914
|
-
declare class ReferenceAlreadyExistsWixError extends Error {
|
|
915
|
-
/** @hidden */
|
|
916
|
-
httpCode: number;
|
|
917
|
-
/** @hidden */
|
|
918
|
-
statusCode: string;
|
|
919
|
-
/** @hidden */
|
|
920
|
-
applicationCode: string;
|
|
921
|
-
/** @hidden */
|
|
922
|
-
name: string;
|
|
923
|
-
/** @hidden */
|
|
924
|
-
errorSchemaName: string;
|
|
925
|
-
/** @hidden */
|
|
926
|
-
errorType: string;
|
|
927
|
-
/** @hidden */
|
|
928
|
-
spiErrorData: object;
|
|
929
|
-
data: ReferenceAlreadyExistsError;
|
|
930
|
-
constructor(data?: ReferenceAlreadyExistsError);
|
|
931
|
-
/** @hidden */
|
|
932
|
-
static readonly __type = "wix_spi_error";
|
|
933
|
-
}
|
|
934
|
-
declare class ReferenceNotFoundWixError extends Error {
|
|
935
|
-
/** @hidden */
|
|
936
|
-
httpCode: number;
|
|
937
|
-
/** @hidden */
|
|
938
|
-
statusCode: string;
|
|
939
|
-
/** @hidden */
|
|
940
|
-
applicationCode: string;
|
|
941
|
-
/** @hidden */
|
|
942
|
-
name: string;
|
|
943
|
-
/** @hidden */
|
|
944
|
-
errorSchemaName: string;
|
|
945
|
-
/** @hidden */
|
|
946
|
-
errorType: string;
|
|
947
|
-
/** @hidden */
|
|
948
|
-
spiErrorData: object;
|
|
949
|
-
data: ReferenceNotFoundError;
|
|
950
|
-
constructor(data?: ReferenceNotFoundError);
|
|
951
|
-
/** @hidden */
|
|
952
|
-
static readonly __type = "wix_spi_error";
|
|
953
|
-
}
|
|
954
|
-
declare class ValidationWixError extends Error {
|
|
955
|
-
/** @hidden */
|
|
956
|
-
httpCode: number;
|
|
957
|
-
/** @hidden */
|
|
958
|
-
statusCode: string;
|
|
959
|
-
/** @hidden */
|
|
960
|
-
applicationCode: string;
|
|
961
|
-
/** @hidden */
|
|
962
|
-
name: string;
|
|
963
|
-
/** @hidden */
|
|
964
|
-
errorSchemaName: string;
|
|
965
|
-
/** @hidden */
|
|
966
|
-
errorType: string;
|
|
967
|
-
/** @hidden */
|
|
968
|
-
spiErrorData: object;
|
|
969
|
-
data: ValidationError;
|
|
970
|
-
constructor(data?: ValidationError);
|
|
971
|
-
/** @hidden */
|
|
972
|
-
static readonly __type = "wix_spi_error";
|
|
973
|
-
}
|
|
974
|
-
declare class CollectionChangeNotSupportedWixError extends Error {
|
|
975
|
-
/** @hidden */
|
|
976
|
-
httpCode: number;
|
|
977
|
-
/** @hidden */
|
|
978
|
-
statusCode: string;
|
|
979
|
-
/** @hidden */
|
|
980
|
-
applicationCode: string;
|
|
981
|
-
/** @hidden */
|
|
982
|
-
name: string;
|
|
983
|
-
/** @hidden */
|
|
984
|
-
errorSchemaName: string;
|
|
985
|
-
/** @hidden */
|
|
986
|
-
errorType: string;
|
|
987
|
-
/** @hidden */
|
|
988
|
-
spiErrorData: object;
|
|
989
|
-
data: CollectionChangeNotSupported;
|
|
990
|
-
constructor(data?: CollectionChangeNotSupported);
|
|
991
|
-
/** @hidden */
|
|
992
|
-
static readonly __type = "wix_spi_error";
|
|
993
|
-
}
|
|
994
|
-
declare class BadRequestWixError extends Error {
|
|
995
|
-
/** @hidden */
|
|
996
|
-
httpCode: number;
|
|
997
|
-
/** @hidden */
|
|
998
|
-
statusCode: string;
|
|
999
|
-
/** @hidden */
|
|
1000
|
-
applicationCode: string;
|
|
1001
|
-
/** @hidden */
|
|
1002
|
-
name: string;
|
|
1003
|
-
/** @hidden */
|
|
1004
|
-
errorType: string;
|
|
1005
|
-
/** @hidden */
|
|
1006
|
-
spiErrorData: object;
|
|
1007
|
-
constructor();
|
|
1008
|
-
/** @hidden */
|
|
1009
|
-
static readonly __type = "wix_spi_error";
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
type ServicePluginMethodInput = {
|
|
1013
|
-
request: any;
|
|
1014
|
-
metadata: any;
|
|
1015
|
-
};
|
|
1016
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
1017
|
-
type ServicePluginMethodMetadata = {
|
|
1018
|
-
name: string;
|
|
1019
|
-
primaryHttpMappingPath: string;
|
|
1020
|
-
transformations: {
|
|
1021
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
1022
|
-
toREST: (...args: unknown[]) => unknown;
|
|
1023
|
-
};
|
|
1024
|
-
};
|
|
1025
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
1026
|
-
__type: 'service-plugin-definition';
|
|
1027
|
-
componentType: string;
|
|
1028
|
-
methods: ServicePluginMethodMetadata[];
|
|
1029
|
-
__contract: Contract;
|
|
1030
|
-
};
|
|
1031
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
1032
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
1033
|
-
|
|
1034
|
-
declare global {
|
|
1035
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1036
|
-
interface SymbolConstructor {
|
|
1037
|
-
readonly observable: symbol;
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
declare global {
|
|
1042
|
-
interface ContextualClient {
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
interface QueryDataItemsEnvelope {
|
|
1047
|
-
request: QueryDataItemsRequest;
|
|
1048
|
-
metadata: Context;
|
|
1049
|
-
}
|
|
1050
|
-
interface CountDataItemsEnvelope {
|
|
1051
|
-
request: CountDataItemsRequest;
|
|
1052
|
-
metadata: Context;
|
|
1053
|
-
}
|
|
1054
|
-
interface AggregateDataItemsEnvelope {
|
|
1055
|
-
request: AggregateDataItemsRequest;
|
|
1056
|
-
metadata: Context;
|
|
1057
|
-
}
|
|
1058
|
-
interface QueryDistinctValuesEnvelope {
|
|
1059
|
-
request: QueryDistinctValuesRequest;
|
|
1060
|
-
metadata: Context;
|
|
1061
|
-
}
|
|
1062
|
-
interface InsertDataItemsEnvelope {
|
|
1063
|
-
request: InsertDataItemsRequest;
|
|
1064
|
-
metadata: Context;
|
|
1065
|
-
}
|
|
1066
|
-
interface UpdateDataItemsEnvelope {
|
|
1067
|
-
request: UpdateDataItemsRequest;
|
|
1068
|
-
metadata: Context;
|
|
1069
|
-
}
|
|
1070
|
-
interface RemoveDataItemsEnvelope {
|
|
1071
|
-
request: RemoveDataItemsRequest;
|
|
1072
|
-
metadata: Context;
|
|
1073
|
-
}
|
|
1074
|
-
interface TruncateDataItemsEnvelope {
|
|
1075
|
-
request: TruncateDataItemsRequest;
|
|
1076
|
-
metadata: Context;
|
|
1077
|
-
}
|
|
1078
|
-
interface QueryReferencedDataItemsEnvelope {
|
|
1079
|
-
request: QueryReferencedDataItemsRequest;
|
|
1080
|
-
metadata: Context;
|
|
1081
|
-
}
|
|
1082
|
-
interface InsertDataItemReferencesEnvelope {
|
|
1083
|
-
request: InsertDataItemReferencesRequest;
|
|
1084
|
-
metadata: Context;
|
|
1085
|
-
}
|
|
1086
|
-
interface RemoveDataItemReferencesEnvelope {
|
|
1087
|
-
request: RemoveDataItemReferencesRequest;
|
|
1088
|
-
metadata: Context;
|
|
1089
|
-
}
|
|
1090
|
-
interface ListCollectionsEnvelope {
|
|
1091
|
-
request: ListCollectionsRequest;
|
|
1092
|
-
metadata: Context;
|
|
1093
|
-
}
|
|
1094
|
-
interface CreateCollectionEnvelope {
|
|
1095
|
-
request: CreateCollectionRequest;
|
|
1096
|
-
metadata: Context;
|
|
1097
|
-
}
|
|
1098
|
-
interface UpdateCollectionEnvelope {
|
|
1099
|
-
request: UpdateCollectionRequest;
|
|
1100
|
-
metadata: Context;
|
|
1101
|
-
}
|
|
1102
|
-
interface DeleteCollectionEnvelope {
|
|
1103
|
-
request: DeleteCollectionRequest;
|
|
1104
|
-
metadata: Context;
|
|
1105
|
-
}
|
|
1106
|
-
interface GetCapabilitiesEnvelope {
|
|
1107
|
-
request: GetCapabilitiesRequest;
|
|
1108
|
-
metadata: Context;
|
|
1109
|
-
}
|
|
1110
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
1111
|
-
/**
|
|
1112
|
-
*
|
|
1113
|
-
* Retrieves a list of items based on the provided filtering, sorting, and paging preferences. */
|
|
1114
|
-
queryDataItems(payload: QueryDataItemsEnvelope): QueryDataItemsResponse | Promise<QueryDataItemsResponse>;
|
|
1115
|
-
/**
|
|
1116
|
-
* Counts the number of items in the specified data collection that match the filtering preferences. */
|
|
1117
|
-
countDataItems(payload: CountDataItemsEnvelope): CountDataItemsResponse | Promise<CountDataItemsResponse>;
|
|
1118
|
-
/**
|
|
1119
|
-
* Runs an aggregation query on the specified data collection and returns the resulting list of items. */
|
|
1120
|
-
aggregateDataItems(payload: AggregateDataItemsEnvelope): AggregateDataItemsResponse | Promise<AggregateDataItemsResponse>;
|
|
1121
|
-
/**
|
|
1122
|
-
*
|
|
1123
|
-
* Retrieves a list of distinct values for a given field for all items that match the query, without duplicates.
|
|
1124
|
-
*
|
|
1125
|
-
* As with [`queryDataItems()`](/external-database/query-data-items), this function retrieves items based on the filtering, sorting, and paging preferences provided. However, this function does not return the full items that match the query. Rather, for items that match the query, it returns all unique values in the field specified in `fieldName`. If more than one item has the same value in that field, that value appears only once. */
|
|
1126
|
-
queryDistinctValues(payload: QueryDistinctValuesEnvelope): QueryDistinctValuesResponse | Promise<QueryDistinctValuesResponse>;
|
|
1127
|
-
/**
|
|
1128
|
-
*
|
|
1129
|
-
* Adds one or more items to a collection.
|
|
1130
|
-
*
|
|
1131
|
-
* A data item object contains the `_id` and `_owner` fields. The response array must include the same items that were inserted, and each returned item must be added the `_createdDate` and `_updatedDate` fields.
|
|
1132
|
-
*
|
|
1133
|
-
* However, data items can also be inserted without an `_id` field. In that case, it is the service provider's responsibility to generate a unique ID for each item. */
|
|
1134
|
-
insertDataItems(payload: InsertDataItemsEnvelope): InsertDataItemsResponse | Promise<InsertDataItemsResponse>;
|
|
1135
|
-
/**
|
|
1136
|
-
*
|
|
1137
|
-
* Updates one or more items in a collection. Items must be completely replaced.
|
|
1138
|
-
*
|
|
1139
|
-
* The response array must include the same items that were updated, and each returned item must be added the `_createdDate` and `_updatedDate` fields. */
|
|
1140
|
-
updateDataItems(payload: UpdateDataItemsEnvelope): UpdateDataItemsResponse | Promise<UpdateDataItemsResponse>;
|
|
1141
|
-
/**
|
|
1142
|
-
* Removes one or more items from a collection. The response object must contain the removed item. */
|
|
1143
|
-
removeDataItems(payload: RemoveDataItemsEnvelope): RemoveDataItemsResponse | Promise<RemoveDataItemsResponse>;
|
|
1144
|
-
/**
|
|
1145
|
-
* Removes all items from a collection. */
|
|
1146
|
-
truncateDataItems(payload: TruncateDataItemsEnvelope): TruncateDataItemsResponse | Promise<TruncateDataItemsResponse>;
|
|
1147
|
-
/**
|
|
1148
|
-
*
|
|
1149
|
-
* Retrieves the items referenced in the specified field of a referring item. Reference fields refer to items that exist in different collections. Implement this function so callers can retrieve the full details of the referenced items.
|
|
1150
|
-
*
|
|
1151
|
-
* This service plugin supports item multi-references, which means that data collections can have many-to-many relationships with other collections. For example, consider a scenario where a **Movies** collection includes a multi-reference **Actors** field, which might refer to several **Actor** items in an **Actors** collection. Users can therefore query the **Movies** collection to retrieve the **Actor** items referenced in each **Movie** item.
|
|
1152
|
-
*
|
|
1153
|
-
* > **Notes:**
|
|
1154
|
-
* > - This function does not retrieve the full referenced items of referenced items. For example, the referenced **Actors** collection might itself contain a multi-reference field with references to **Award** items in an **Awards** collection. When calling this function to retrieve the referenced items of any **Movie** item, the response contains the referenced **Actor** items, but only the IDs of the **Award** items. To retrieve the full **Award** items, the user must either call this function for the **Actors** collection, or the [`queryDataItems()`](/external-database/query-data-items) function for the **Awards** collection.
|
|
1155
|
-
* > - This function might also be called when a user calls the [`isReferenced()`](https://dev.wix.com/docs/sdk/backend-modules/data/items/is-referenced-data-item) function of the Data API. */
|
|
1156
|
-
queryReferencedDataItems(payload: QueryReferencedDataItemsEnvelope): QueryReferencedDataItemsResponse | Promise<QueryReferencedDataItemsResponse>;
|
|
1157
|
-
/**
|
|
1158
|
-
* Inserts one or more item references into a referring field of the specified item. */
|
|
1159
|
-
insertDataItemReferences(payload: InsertDataItemReferencesEnvelope): InsertDataItemReferencesResponse | Promise<InsertDataItemReferencesResponse>;
|
|
1160
|
-
/**
|
|
1161
|
-
* Removes one or more item references from a referring field of the specified item. */
|
|
1162
|
-
removeDataItemReferences(payload: RemoveDataItemReferencesEnvelope): RemoveDataItemReferencesResponse | Promise<RemoveDataItemReferencesResponse>;
|
|
1163
|
-
/**
|
|
1164
|
-
*
|
|
1165
|
-
* Retrieves a list of data collections and their details.
|
|
1166
|
-
*
|
|
1167
|
-
* When `collectionIds` is empty, all existing collections are returned.
|
|
1168
|
-
* If a specified collection does not exist, that collection can be ignored. */
|
|
1169
|
-
listCollections(payload: ListCollectionsEnvelope): ListCollectionsResponse | Promise<ListCollectionsResponse>;
|
|
1170
|
-
/**
|
|
1171
|
-
* Creates a new data collection. */
|
|
1172
|
-
createCollection(payload: CreateCollectionEnvelope): CreateCollectionResponse | Promise<CreateCollectionResponse>;
|
|
1173
|
-
/**
|
|
1174
|
-
*
|
|
1175
|
-
* Updates the structure of an existing data collection.
|
|
1176
|
-
*
|
|
1177
|
-
* Some parameters, such as `capabilities` and `pagingMode`, are determined by the service provider. If the collection passed in the request contains these parameters, their values must be ignored. However, these fields must be included in the response collection with relevant values. */
|
|
1178
|
-
updateCollection(payload: UpdateCollectionEnvelope): UpdateCollectionResponse | Promise<UpdateCollectionResponse>;
|
|
1179
|
-
/**
|
|
1180
|
-
* Deletes a data collection. */
|
|
1181
|
-
deleteCollection(payload: DeleteCollectionEnvelope): DeleteCollectionResponse | Promise<DeleteCollectionResponse>;
|
|
1182
|
-
/**
|
|
1183
|
-
* Lists the global capabilities the external database supports. */
|
|
1184
|
-
getCapabilities(payload: GetCapabilitiesEnvelope): GetCapabilitiesResponse | Promise<GetCapabilitiesResponse>;
|
|
1185
|
-
}>;
|
|
1186
|
-
|
|
1187
|
-
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
1188
|
-
|
|
1189
|
-
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
1190
|
-
declare const provideHandlers: ReturnType<typeof createServicePluginModule<_publicProvideHandlersType>>;
|
|
1191
|
-
|
|
1192
|
-
type context_AggregateDataItemsRequest = AggregateDataItemsRequest;
|
|
1193
|
-
type context_AggregateDataItemsRequestPagingMethodOneOf = AggregateDataItemsRequestPagingMethodOneOf;
|
|
1194
|
-
type context_AggregateDataItemsResponse = AggregateDataItemsResponse;
|
|
1195
|
-
type context_Aggregation = Aggregation;
|
|
1196
|
-
type context_AlternativeUri = AlternativeUri;
|
|
1197
|
-
type context_ArrayOptions = ArrayOptions;
|
|
1198
|
-
type context_ArrayOptionsTypeOptionsOneOf = ArrayOptionsTypeOptionsOneOf;
|
|
1199
|
-
type context_Average = Average;
|
|
1200
|
-
type context_BadRequestWixError = BadRequestWixError;
|
|
1201
|
-
declare const context_BadRequestWixError: typeof BadRequestWixError;
|
|
1202
|
-
type context_Collection = Collection;
|
|
1203
|
-
type context_CollectionAlreadyExistsError = CollectionAlreadyExistsError;
|
|
1204
|
-
type context_CollectionAlreadyExistsWixError = CollectionAlreadyExistsWixError;
|
|
1205
|
-
declare const context_CollectionAlreadyExistsWixError: typeof CollectionAlreadyExistsWixError;
|
|
1206
|
-
type context_CollectionCapabilities = CollectionCapabilities;
|
|
1207
|
-
type context_CollectionChangeNotSupported = CollectionChangeNotSupported;
|
|
1208
|
-
type context_CollectionChangeNotSupportedError = CollectionChangeNotSupportedError;
|
|
1209
|
-
type context_CollectionChangeNotSupportedWixError = CollectionChangeNotSupportedWixError;
|
|
1210
|
-
declare const context_CollectionChangeNotSupportedWixError: typeof CollectionChangeNotSupportedWixError;
|
|
1211
|
-
type context_CollectionNotFoundError = CollectionNotFoundError;
|
|
1212
|
-
type context_CollectionNotFoundWixError = CollectionNotFoundWixError;
|
|
1213
|
-
declare const context_CollectionNotFoundWixError: typeof CollectionNotFoundWixError;
|
|
1214
|
-
type context_Context = Context;
|
|
1215
|
-
type context_Count = Count;
|
|
1216
|
-
type context_CountDataItemsRequest = CountDataItemsRequest;
|
|
1217
|
-
type context_CountDataItemsResponse = CountDataItemsResponse;
|
|
1218
|
-
type context_CreateCollectionRequest = CreateCollectionRequest;
|
|
1219
|
-
type context_CreateCollectionResponse = CreateCollectionResponse;
|
|
1220
|
-
type context_CreateIndexRequest = CreateIndexRequest;
|
|
1221
|
-
type context_CreateIndexResponse = CreateIndexResponse;
|
|
1222
|
-
type context_CursorPaging = CursorPaging;
|
|
1223
|
-
type context_Cursors = Cursors;
|
|
1224
|
-
type context_DataItemModificationResult = DataItemModificationResult;
|
|
1225
|
-
type context_DataItemModificationResultResultOneOf = DataItemModificationResultResultOneOf;
|
|
1226
|
-
type context_DataOperation = DataOperation;
|
|
1227
|
-
declare const context_DataOperation: typeof DataOperation;
|
|
1228
|
-
type context_DeleteCollectionRequest = DeleteCollectionRequest;
|
|
1229
|
-
type context_DeleteCollectionResponse = DeleteCollectionResponse;
|
|
1230
|
-
type context_ExternalDatabaseSpiConfig = ExternalDatabaseSpiConfig;
|
|
1231
|
-
type context_Field = Field;
|
|
1232
|
-
type context_FieldCapabilities = FieldCapabilities;
|
|
1233
|
-
type context_FieldType = FieldType;
|
|
1234
|
-
declare const context_FieldType: typeof FieldType;
|
|
1235
|
-
type context_FieldTypeOptionsOneOf = FieldTypeOptionsOneOf;
|
|
1236
|
-
type context_GetCapabilitiesRequest = GetCapabilitiesRequest;
|
|
1237
|
-
type context_GetCapabilitiesResponse = GetCapabilitiesResponse;
|
|
1238
|
-
type context_IdentificationData = IdentificationData;
|
|
1239
|
-
type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
1240
|
-
type context_IdentityType = IdentityType;
|
|
1241
|
-
declare const context_IdentityType: typeof IdentityType;
|
|
1242
|
-
type context_Index = Index;
|
|
1243
|
-
type context_IndexField = IndexField;
|
|
1244
|
-
type context_IndexOptions = IndexOptions;
|
|
1245
|
-
type context_InsertDataItemReferencesRequest = InsertDataItemReferencesRequest;
|
|
1246
|
-
type context_InsertDataItemReferencesResponse = InsertDataItemReferencesResponse;
|
|
1247
|
-
type context_InsertDataItemsRequest = InsertDataItemsRequest;
|
|
1248
|
-
type context_InsertDataItemsResponse = InsertDataItemsResponse;
|
|
1249
|
-
type context_ItemAlreadyExistsError = ItemAlreadyExistsError;
|
|
1250
|
-
type context_ItemAlreadyExistsWixError = ItemAlreadyExistsWixError;
|
|
1251
|
-
declare const context_ItemAlreadyExistsWixError: typeof ItemAlreadyExistsWixError;
|
|
1252
|
-
type context_ItemNotFoundError = ItemNotFoundError;
|
|
1253
|
-
type context_ItemNotFoundWixError = ItemNotFoundWixError;
|
|
1254
|
-
declare const context_ItemNotFoundWixError: typeof ItemNotFoundWixError;
|
|
1255
|
-
type context_ListCollectionsRequest = ListCollectionsRequest;
|
|
1256
|
-
type context_ListCollectionsResponse = ListCollectionsResponse;
|
|
1257
|
-
type context_ListIndexesRequest = ListIndexesRequest;
|
|
1258
|
-
type context_ListIndexesResponse = ListIndexesResponse;
|
|
1259
|
-
type context_MainEntity = MainEntity;
|
|
1260
|
-
type context_Max = Max;
|
|
1261
|
-
type context_Min = Min;
|
|
1262
|
-
type context_MultiReferenceOptions = MultiReferenceOptions;
|
|
1263
|
-
type context_ObjectField = ObjectField;
|
|
1264
|
-
type context_ObjectFieldTypeOptionsOneOf = ObjectFieldTypeOptionsOneOf;
|
|
1265
|
-
type context_ObjectOptions = ObjectOptions;
|
|
1266
|
-
type context_Operation = Operation;
|
|
1267
|
-
type context_OperationCalculateOneOf = OperationCalculateOneOf;
|
|
1268
|
-
type context_Order = Order;
|
|
1269
|
-
declare const context_Order: typeof Order;
|
|
1270
|
-
type context_Paging = Paging;
|
|
1271
|
-
type context_PagingMetadataV2 = PagingMetadataV2;
|
|
1272
|
-
type context_PagingMode = PagingMode;
|
|
1273
|
-
declare const context_PagingMode: typeof PagingMode;
|
|
1274
|
-
type context_Permissions = Permissions;
|
|
1275
|
-
type context_QueryDataItemsRequest = QueryDataItemsRequest;
|
|
1276
|
-
type context_QueryDataItemsResponse = QueryDataItemsResponse;
|
|
1277
|
-
type context_QueryDistinctValuesRequest = QueryDistinctValuesRequest;
|
|
1278
|
-
type context_QueryDistinctValuesRequestPagingMethodOneOf = QueryDistinctValuesRequestPagingMethodOneOf;
|
|
1279
|
-
type context_QueryDistinctValuesResponse = QueryDistinctValuesResponse;
|
|
1280
|
-
type context_QueryOperator = QueryOperator;
|
|
1281
|
-
declare const context_QueryOperator: typeof QueryOperator;
|
|
1282
|
-
type context_QueryReferencedDataItemsRequest = QueryReferencedDataItemsRequest;
|
|
1283
|
-
type context_QueryReferencedDataItemsRequestPagingMethodOneOf = QueryReferencedDataItemsRequestPagingMethodOneOf;
|
|
1284
|
-
type context_QueryReferencedDataItemsResponse = QueryReferencedDataItemsResponse;
|
|
1285
|
-
type context_QueryV2 = QueryV2;
|
|
1286
|
-
type context_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
|
|
1287
|
-
type context_ReferenceAlreadyExistsError = ReferenceAlreadyExistsError;
|
|
1288
|
-
type context_ReferenceAlreadyExistsWixError = ReferenceAlreadyExistsWixError;
|
|
1289
|
-
declare const context_ReferenceAlreadyExistsWixError: typeof ReferenceAlreadyExistsWixError;
|
|
1290
|
-
type context_ReferenceId = ReferenceId;
|
|
1291
|
-
type context_ReferenceModificationResult = ReferenceModificationResult;
|
|
1292
|
-
type context_ReferenceModificationResultResultOneOf = ReferenceModificationResultResultOneOf;
|
|
1293
|
-
type context_ReferenceNotFoundError = ReferenceNotFoundError;
|
|
1294
|
-
type context_ReferenceNotFoundWixError = ReferenceNotFoundWixError;
|
|
1295
|
-
declare const context_ReferenceNotFoundWixError: typeof ReferenceNotFoundWixError;
|
|
1296
|
-
type context_ReferencedItem = ReferencedItem;
|
|
1297
|
-
type context_ReferencedItemToInclude = ReferencedItemToInclude;
|
|
1298
|
-
type context_RemoveDataItemReferencesRequest = RemoveDataItemReferencesRequest;
|
|
1299
|
-
type context_RemoveDataItemReferencesResponse = RemoveDataItemReferencesResponse;
|
|
1300
|
-
type context_RemoveDataItemsRequest = RemoveDataItemsRequest;
|
|
1301
|
-
type context_RemoveDataItemsResponse = RemoveDataItemsResponse;
|
|
1302
|
-
type context_RemoveIndexRequest = RemoveIndexRequest;
|
|
1303
|
-
type context_RemoveIndexResponse = RemoveIndexResponse;
|
|
1304
|
-
type context_Role = Role;
|
|
1305
|
-
declare const context_Role: typeof Role;
|
|
1306
|
-
type context_SingleReferenceOptions = SingleReferenceOptions;
|
|
1307
|
-
type context_SortOrder = SortOrder;
|
|
1308
|
-
declare const context_SortOrder: typeof SortOrder;
|
|
1309
|
-
type context_Sorting = Sorting;
|
|
1310
|
-
type context_SpiBaseUri = SpiBaseUri;
|
|
1311
|
-
type context_Status = Status;
|
|
1312
|
-
declare const context_Status: typeof Status;
|
|
1313
|
-
type context_Sum = Sum;
|
|
1314
|
-
type context_TruncateDataItemsRequest = TruncateDataItemsRequest;
|
|
1315
|
-
type context_TruncateDataItemsResponse = TruncateDataItemsResponse;
|
|
1316
|
-
type context_UpdateCollectionRequest = UpdateCollectionRequest;
|
|
1317
|
-
type context_UpdateCollectionResponse = UpdateCollectionResponse;
|
|
1318
|
-
type context_UpdateDataItemsRequest = UpdateDataItemsRequest;
|
|
1319
|
-
type context_UpdateDataItemsResponse = UpdateDataItemsResponse;
|
|
1320
|
-
type context_ValidationError = ValidationError;
|
|
1321
|
-
type context_ValidationViolation = ValidationViolation;
|
|
1322
|
-
type context_ValidationWixError = ValidationWixError;
|
|
1323
|
-
declare const context_ValidationWixError: typeof ValidationWixError;
|
|
1324
|
-
type context__publicProvideHandlersType = _publicProvideHandlersType;
|
|
1325
|
-
declare const context_provideHandlers: typeof provideHandlers;
|
|
1326
|
-
declare namespace context {
|
|
1327
|
-
export { type context_AggregateDataItemsRequest as AggregateDataItemsRequest, type context_AggregateDataItemsRequestPagingMethodOneOf as AggregateDataItemsRequestPagingMethodOneOf, type context_AggregateDataItemsResponse as AggregateDataItemsResponse, type context_Aggregation as Aggregation, type context_AlternativeUri as AlternativeUri, type context_ArrayOptions as ArrayOptions, type context_ArrayOptionsTypeOptionsOneOf as ArrayOptionsTypeOptionsOneOf, type context_Average as Average, context_BadRequestWixError as BadRequestWixError, type context_Collection as Collection, type context_CollectionAlreadyExistsError as CollectionAlreadyExistsError, context_CollectionAlreadyExistsWixError as CollectionAlreadyExistsWixError, type context_CollectionCapabilities as CollectionCapabilities, type context_CollectionChangeNotSupported as CollectionChangeNotSupported, type context_CollectionChangeNotSupportedError as CollectionChangeNotSupportedError, context_CollectionChangeNotSupportedWixError as CollectionChangeNotSupportedWixError, type context_CollectionNotFoundError as CollectionNotFoundError, context_CollectionNotFoundWixError as CollectionNotFoundWixError, type context_Context as Context, type context_Count as Count, type context_CountDataItemsRequest as CountDataItemsRequest, type context_CountDataItemsResponse as CountDataItemsResponse, type context_CreateCollectionRequest as CreateCollectionRequest, type context_CreateCollectionResponse as CreateCollectionResponse, type context_CreateIndexRequest as CreateIndexRequest, type context_CreateIndexResponse as CreateIndexResponse, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_DataItemModificationResult as DataItemModificationResult, type context_DataItemModificationResultResultOneOf as DataItemModificationResultResultOneOf, context_DataOperation as DataOperation, type context_DeleteCollectionRequest as DeleteCollectionRequest, type context_DeleteCollectionResponse as DeleteCollectionResponse, type Error$1 as Error, type context_ExternalDatabaseSpiConfig as ExternalDatabaseSpiConfig, type context_Field as Field, type context_FieldCapabilities as FieldCapabilities, context_FieldType as FieldType, type context_FieldTypeOptionsOneOf as FieldTypeOptionsOneOf, type context_GetCapabilitiesRequest as GetCapabilitiesRequest, type context_GetCapabilitiesResponse as GetCapabilitiesResponse, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, type context_Index as Index, type context_IndexField as IndexField, type context_IndexOptions as IndexOptions, type context_InsertDataItemReferencesRequest as InsertDataItemReferencesRequest, type context_InsertDataItemReferencesResponse as InsertDataItemReferencesResponse, type context_InsertDataItemsRequest as InsertDataItemsRequest, type context_InsertDataItemsResponse as InsertDataItemsResponse, type context_ItemAlreadyExistsError as ItemAlreadyExistsError, context_ItemAlreadyExistsWixError as ItemAlreadyExistsWixError, type context_ItemNotFoundError as ItemNotFoundError, context_ItemNotFoundWixError as ItemNotFoundWixError, type context_ListCollectionsRequest as ListCollectionsRequest, type context_ListCollectionsResponse as ListCollectionsResponse, type context_ListIndexesRequest as ListIndexesRequest, type context_ListIndexesResponse as ListIndexesResponse, type context_MainEntity as MainEntity, type context_Max as Max, type context_Min as Min, type context_MultiReferenceOptions as MultiReferenceOptions, type context_ObjectField as ObjectField, type context_ObjectFieldTypeOptionsOneOf as ObjectFieldTypeOptionsOneOf, type context_ObjectOptions as ObjectOptions, type context_Operation as Operation, type context_OperationCalculateOneOf as OperationCalculateOneOf, context_Order as Order, type context_Paging as Paging, type context_PagingMetadataV2 as PagingMetadataV2, context_PagingMode as PagingMode, type context_Permissions as Permissions, type context_QueryDataItemsRequest as QueryDataItemsRequest, type context_QueryDataItemsResponse as QueryDataItemsResponse, type context_QueryDistinctValuesRequest as QueryDistinctValuesRequest, type context_QueryDistinctValuesRequestPagingMethodOneOf as QueryDistinctValuesRequestPagingMethodOneOf, type context_QueryDistinctValuesResponse as QueryDistinctValuesResponse, context_QueryOperator as QueryOperator, type context_QueryReferencedDataItemsRequest as QueryReferencedDataItemsRequest, type context_QueryReferencedDataItemsRequestPagingMethodOneOf as QueryReferencedDataItemsRequestPagingMethodOneOf, type context_QueryReferencedDataItemsResponse as QueryReferencedDataItemsResponse, type context_QueryV2 as QueryV2, type context_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context_ReferenceAlreadyExistsError as ReferenceAlreadyExistsError, context_ReferenceAlreadyExistsWixError as ReferenceAlreadyExistsWixError, type context_ReferenceId as ReferenceId, type context_ReferenceModificationResult as ReferenceModificationResult, type context_ReferenceModificationResultResultOneOf as ReferenceModificationResultResultOneOf, type context_ReferenceNotFoundError as ReferenceNotFoundError, context_ReferenceNotFoundWixError as ReferenceNotFoundWixError, type context_ReferencedItem as ReferencedItem, type context_ReferencedItemToInclude as ReferencedItemToInclude, type context_RemoveDataItemReferencesRequest as RemoveDataItemReferencesRequest, type context_RemoveDataItemReferencesResponse as RemoveDataItemReferencesResponse, type context_RemoveDataItemsRequest as RemoveDataItemsRequest, type context_RemoveDataItemsResponse as RemoveDataItemsResponse, type context_RemoveIndexRequest as RemoveIndexRequest, type context_RemoveIndexResponse as RemoveIndexResponse, context_Role as Role, type context_SingleReferenceOptions as SingleReferenceOptions, context_SortOrder as SortOrder, type context_Sorting as Sorting, type context_SpiBaseUri as SpiBaseUri, context_Status as Status, type context_Sum as Sum, type context_TruncateDataItemsRequest as TruncateDataItemsRequest, type context_TruncateDataItemsResponse as TruncateDataItemsResponse, type context_UpdateCollectionRequest as UpdateCollectionRequest, type context_UpdateCollectionResponse as UpdateCollectionResponse, type context_UpdateDataItemsRequest as UpdateDataItemsRequest, type context_UpdateDataItemsResponse as UpdateDataItemsResponse, type context_ValidationError as ValidationError, type context_ValidationViolation as ValidationViolation, context_ValidationWixError as ValidationWixError, type context__publicProvideHandlersType as _publicProvideHandlersType, context_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
export { context as externalDatabase };
|