@wix/auto_sdk_data-backend-public-sdk-poc_data 1.0.30 → 1.0.31
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/{cjs/src/data-v1-data-service-data.universal.d.ts → data-v1-data-service-data.universal-DwJ77xKF.d.mts} +91 -104
- package/build/{es/src/data-v1-data-service-data.universal.d.ts → data-v1-data-service-data.universal-DwJ77xKF.d.ts} +91 -104
- package/build/index.d.mts +18 -0
- package/build/index.d.ts +18 -0
- package/build/index.js +1509 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1464 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/data-v1-data-service-data.universal-B0E_2MN6.d.mts +789 -0
- package/build/internal/data-v1-data-service-data.universal-B0E_2MN6.d.ts +789 -0
- package/build/internal/{cjs/src/data-v1-data-service-data.public.d.ts → index.d.mts} +63 -25
- package/build/internal/{es/src/data-v1-data-service-data.public.d.ts → index.d.ts} +63 -25
- package/build/internal/index.js +1509 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1464 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/data-v1-data-service-data.types.d.ts → internal/meta.d.mts} +94 -167
- package/build/internal/{es/src/data-v1-data-service-data.types.d.ts → meta.d.ts} +94 -167
- package/build/internal/meta.js +1093 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +1048 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/data-v1-data-service-data.types.d.ts → meta.d.mts} +94 -167
- package/build/{internal/cjs/src/data-v1-data-service-data.types.d.ts → meta.d.ts} +94 -167
- package/build/meta.js +1093 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +1048 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.context.d.ts +0 -5
- package/build/cjs/src/data-v1-data-service-data.context.js +0 -47
- package/build/cjs/src/data-v1-data-service-data.context.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.http.d.ts +0 -188
- package/build/cjs/src/data-v1-data-service-data.http.js +0 -872
- package/build/cjs/src/data-v1-data-service-data.http.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.meta.d.ts +0 -37
- package/build/cjs/src/data-v1-data-service-data.meta.js +0 -389
- package/build/cjs/src/data-v1-data-service-data.meta.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.public.d.ts +0 -16
- package/build/cjs/src/data-v1-data-service-data.public.js +0 -142
- package/build/cjs/src/data-v1-data-service-data.public.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.types.js +0 -23
- package/build/cjs/src/data-v1-data-service-data.types.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.universal.js +0 -930
- package/build/cjs/src/data-v1-data-service-data.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/data-v1-data-service-data.context.d.ts +0 -5
- package/build/es/src/data-v1-data-service-data.context.js +0 -41
- package/build/es/src/data-v1-data-service-data.context.js.map +0 -1
- package/build/es/src/data-v1-data-service-data.http.d.ts +0 -188
- package/build/es/src/data-v1-data-service-data.http.js +0 -850
- package/build/es/src/data-v1-data-service-data.http.js.map +0 -1
- package/build/es/src/data-v1-data-service-data.meta.d.ts +0 -37
- package/build/es/src/data-v1-data-service-data.meta.js +0 -344
- package/build/es/src/data-v1-data-service-data.meta.js.map +0 -1
- package/build/es/src/data-v1-data-service-data.public.d.ts +0 -16
- package/build/es/src/data-v1-data-service-data.public.js +0 -117
- package/build/es/src/data-v1-data-service-data.public.js.map +0 -1
- package/build/es/src/data-v1-data-service-data.types.js +0 -20
- package/build/es/src/data-v1-data-service-data.types.js.map +0 -1
- package/build/es/src/data-v1-data-service-data.universal.js +0 -885
- package/build/es/src/data-v1-data-service-data.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.context.d.ts +0 -41
- package/build/internal/cjs/src/data-v1-data-service-data.context.js +0 -47
- package/build/internal/cjs/src/data-v1-data-service-data.context.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.http.d.ts +0 -188
- package/build/internal/cjs/src/data-v1-data-service-data.http.js +0 -872
- package/build/internal/cjs/src/data-v1-data-service-data.http.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.meta.d.ts +0 -37
- package/build/internal/cjs/src/data-v1-data-service-data.meta.js +0 -389
- package/build/internal/cjs/src/data-v1-data-service-data.meta.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.public.js +0 -142
- package/build/internal/cjs/src/data-v1-data-service-data.public.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.types.js +0 -23
- package/build/internal/cjs/src/data-v1-data-service-data.types.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.universal.d.ts +0 -1136
- package/build/internal/cjs/src/data-v1-data-service-data.universal.js +0 -930
- package/build/internal/cjs/src/data-v1-data-service-data.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.context.d.ts +0 -41
- package/build/internal/es/src/data-v1-data-service-data.context.js +0 -41
- package/build/internal/es/src/data-v1-data-service-data.context.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.http.d.ts +0 -188
- package/build/internal/es/src/data-v1-data-service-data.http.js +0 -850
- package/build/internal/es/src/data-v1-data-service-data.http.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.meta.d.ts +0 -37
- package/build/internal/es/src/data-v1-data-service-data.meta.js +0 -344
- package/build/internal/es/src/data-v1-data-service-data.meta.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.public.js +0 -117
- package/build/internal/es/src/data-v1-data-service-data.public.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.types.js +0 -20
- package/build/internal/es/src/data-v1-data-service-data.types.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.universal.d.ts +0 -1136
- package/build/internal/es/src/data-v1-data-service-data.universal.js +0 -885
- package/build/internal/es/src/data-v1-data-service-data.universal.js.map +0 -1
|
@@ -1,108 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface InsertRequest {
|
|
1
|
+
import { E as InsertRequest$1, a as InsertResponse$1, H as UpdateRequest$1, b as UpdateResponse$1, J as SaveRequest$1, c as SaveResponse$1, N as GetRequest$1, d as GetResponse$1, W as RemoveRequest$1, e as RemoveResponse$1, X as TruncateRequest$1, Y as TruncateResponse$1, Z as QueryRequest$1, f as QueryResponse$1, a6 as AggregationRequest$1, g as AggregationResponse$1, a7 as CountRequest$1, h as CountResponse$1, a8 as DistinctRequest$1, i as DistinctResponse$1, a9 as BulkInsertRequest$1, j as BulkInsertResponse$1, ad as BulkSaveRequest$1, l as BulkSaveResponse$1, ae as BulkUpdateRequest$1, n as BulkUpdateResponse$1, ai as BulkRemoveRequest$1, p as BulkRemoveResponse$1, ak as QueryReferencedRequest$1, r as QueryReferencedResponse$1, an as BulkInsertReferencesRequest$1, ap as BulkInsertReferencesResponse$1, aq as BulkReplaceReferencesRequest$1, ar as BulkReplaceReferencesResponse$1, as as BulkRemoveReferencesRequest$1, at as BulkRemoveReferencesResponse$1, au as IsReferencedRequest$1, w as IsReferencedResponse$1 } from './data-v1-data-service-data.universal-B0E_2MN6.mjs';
|
|
2
|
+
|
|
3
|
+
interface InsertRequest {
|
|
5
4
|
/** Item to insert. */
|
|
6
5
|
item?: Record<string, any> | null;
|
|
7
6
|
/** ID of the collection in which to insert the item. */
|
|
8
7
|
dataCollectionId?: string;
|
|
9
8
|
}
|
|
10
|
-
|
|
11
|
-
/** Access database used in the Live site. */
|
|
12
|
-
LIVE = "LIVE",
|
|
13
|
-
/** Access staging (sandbox) database used in the editor. */
|
|
14
|
-
SANDBOX = "SANDBOX",
|
|
15
|
-
/** Access deleted database used in the Live site. */
|
|
16
|
-
TRASH_LIVE = "TRASH_LIVE"
|
|
17
|
-
}
|
|
18
|
-
/** @enumType */
|
|
19
|
-
export type SegmentWithLiterals = Segment | 'LIVE' | 'SANDBOX' | 'TRASH_LIVE';
|
|
20
|
-
export interface Options {
|
|
21
|
-
}
|
|
22
|
-
export interface InsertResponse {
|
|
9
|
+
interface InsertResponse {
|
|
23
10
|
/** Inserted item. */
|
|
24
11
|
item?: Record<string, any> | null;
|
|
25
12
|
}
|
|
26
|
-
|
|
13
|
+
interface UpdateRequest {
|
|
27
14
|
/** Item to update. The existing item is replaced with this version. */
|
|
28
15
|
item: Record<string, any> | null;
|
|
29
16
|
/** ID of the collection containing the existing item. */
|
|
30
17
|
dataCollectionId?: string;
|
|
31
18
|
}
|
|
32
|
-
|
|
19
|
+
interface UpdateResponse {
|
|
33
20
|
/** Updated item */
|
|
34
21
|
item?: Record<string, any> | null;
|
|
35
22
|
}
|
|
36
|
-
|
|
23
|
+
interface SaveRequest {
|
|
37
24
|
/** Item to insert or update. */
|
|
38
25
|
item?: Record<string, any> | null;
|
|
39
26
|
/** ID of the collection in which to insert or update the item. */
|
|
40
27
|
dataCollectionId?: string;
|
|
41
28
|
}
|
|
42
|
-
|
|
29
|
+
interface SaveResponse {
|
|
43
30
|
/** Inserted or updated item. */
|
|
44
31
|
item?: Record<string, any> | null;
|
|
45
32
|
}
|
|
46
|
-
|
|
47
|
-
/** item id to patch */
|
|
48
|
-
itemId?: string;
|
|
49
|
-
/** Patch data */
|
|
50
|
-
patch?: Record<string, any> | null;
|
|
51
|
-
/** Data access options */
|
|
52
|
-
options?: Options;
|
|
53
|
-
/** ID of the collection */
|
|
54
|
-
dataCollectionId?: string;
|
|
55
|
-
}
|
|
56
|
-
export interface PatchResponse {
|
|
57
|
-
/** Patched item */
|
|
58
|
-
item?: Record<string, any> | null;
|
|
59
|
-
}
|
|
60
|
-
export interface PatchWhereRequest {
|
|
61
|
-
/** Data segment */
|
|
62
|
-
segment?: SegmentWithLiterals;
|
|
63
|
-
/** filter items to patch */
|
|
64
|
-
filter?: any;
|
|
65
|
-
/** Patch data */
|
|
66
|
-
patch?: Record<string, any> | null;
|
|
67
|
-
/** Data access options */
|
|
68
|
-
options?: Options;
|
|
69
|
-
/** ID of the collection */
|
|
70
|
-
dataCollectionId?: string;
|
|
71
|
-
}
|
|
72
|
-
export interface PatchWhereResponse {
|
|
73
|
-
/** Number of patched items */
|
|
74
|
-
totalCount?: number;
|
|
75
|
-
totalAffectedValues?: number;
|
|
76
|
-
}
|
|
77
|
-
export interface GetRequest {
|
|
33
|
+
interface GetRequest {
|
|
78
34
|
/** ID of the item to retrieve. */
|
|
79
35
|
itemId: string;
|
|
80
36
|
/** ID of the collection from which to retrieve the item. */
|
|
81
37
|
dataCollectionId?: string;
|
|
82
38
|
}
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
export interface GetResponse {
|
|
39
|
+
interface GetResponse {
|
|
86
40
|
/** Retrieved item. */
|
|
87
41
|
item?: Record<string, any> | null;
|
|
88
42
|
}
|
|
89
|
-
|
|
43
|
+
interface RemoveRequest {
|
|
90
44
|
/** ID of the item to remove. */
|
|
91
45
|
itemId: string;
|
|
92
46
|
/** ID of the collection from which to remove the item. */
|
|
93
47
|
dataCollectionId?: string;
|
|
94
48
|
}
|
|
95
|
-
|
|
49
|
+
interface RemoveResponse {
|
|
96
50
|
/** Removed item. */
|
|
97
51
|
item?: Record<string, any> | null;
|
|
98
52
|
}
|
|
99
|
-
|
|
53
|
+
interface TruncateRequest {
|
|
100
54
|
/** ID of the collection to truncate. */
|
|
101
55
|
dataCollectionId?: string;
|
|
102
56
|
}
|
|
103
|
-
|
|
57
|
+
interface TruncateResponse {
|
|
104
58
|
}
|
|
105
|
-
|
|
59
|
+
interface QueryRequest {
|
|
106
60
|
/** Query preferences. For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */
|
|
107
61
|
dataQuery?: QueryV2;
|
|
108
62
|
/**
|
|
@@ -121,39 +75,19 @@ export interface QueryRequest {
|
|
|
121
75
|
/** ID of the collection to query. */
|
|
122
76
|
dataCollectionId?: string;
|
|
123
77
|
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Filter object in the following format:
|
|
127
|
-
* `"filter" : {
|
|
128
|
-
* "fieldName1": "value1",
|
|
129
|
-
* "fieldName2":{"$operator":"value2"}
|
|
130
|
-
* }`
|
|
131
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
132
|
-
*/
|
|
133
|
-
filter?: any;
|
|
134
|
-
/**
|
|
135
|
-
* Sort object in the following format:
|
|
136
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
137
|
-
*/
|
|
138
|
-
sort?: Sorting[];
|
|
139
|
-
/** Paging options to limit and skip the number of items. */
|
|
140
|
-
paging?: Paging;
|
|
141
|
-
/** Array of projected fields. A list of specific field names to return. */
|
|
142
|
-
fields?: string[];
|
|
143
|
-
}
|
|
144
|
-
export interface Sorting {
|
|
78
|
+
interface Sorting {
|
|
145
79
|
/** Name of the field to sort by. */
|
|
146
80
|
fieldName?: string;
|
|
147
81
|
/** Sort order. */
|
|
148
82
|
order?: SortOrderWithLiterals;
|
|
149
83
|
}
|
|
150
|
-
|
|
84
|
+
declare enum SortOrder {
|
|
151
85
|
ASC = "ASC",
|
|
152
86
|
DESC = "DESC"
|
|
153
87
|
}
|
|
154
88
|
/** @enumType */
|
|
155
|
-
|
|
156
|
-
|
|
89
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
90
|
+
interface Paging {
|
|
157
91
|
/**
|
|
158
92
|
* Number of items to load.
|
|
159
93
|
* @max 1000
|
|
@@ -162,7 +96,7 @@ export interface Paging {
|
|
|
162
96
|
/** Number of items to skip in the current sort order. */
|
|
163
97
|
offset?: number | null;
|
|
164
98
|
}
|
|
165
|
-
|
|
99
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
166
100
|
/** Paging options to limit and skip the number of items. */
|
|
167
101
|
paging?: Paging;
|
|
168
102
|
/** 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`. */
|
|
@@ -185,13 +119,13 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
185
119
|
fields?: string[];
|
|
186
120
|
}
|
|
187
121
|
/** @oneof */
|
|
188
|
-
|
|
122
|
+
interface QueryV2PagingMethodOneOf {
|
|
189
123
|
/** Paging options to limit and skip the number of items. */
|
|
190
124
|
paging?: Paging;
|
|
191
125
|
/** 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`. */
|
|
192
126
|
cursorPaging?: CursorPaging;
|
|
193
127
|
}
|
|
194
|
-
|
|
128
|
+
interface CursorPaging {
|
|
195
129
|
/**
|
|
196
130
|
* Number of items to load.
|
|
197
131
|
* @max 1000
|
|
@@ -206,7 +140,7 @@ export interface CursorPaging {
|
|
|
206
140
|
*/
|
|
207
141
|
cursor?: string | null;
|
|
208
142
|
}
|
|
209
|
-
|
|
143
|
+
interface QueryResponse {
|
|
210
144
|
/** Retrieved items. */
|
|
211
145
|
items?: Record<string, any>[] | null;
|
|
212
146
|
/**
|
|
@@ -224,7 +158,7 @@ export interface QueryResponse {
|
|
|
224
158
|
/** Paging information. */
|
|
225
159
|
pagingMetadata?: PagingMetadataV2;
|
|
226
160
|
}
|
|
227
|
-
|
|
161
|
+
interface PagingMetadataV2 {
|
|
228
162
|
/** Number of items returned in the response. */
|
|
229
163
|
count?: number | null;
|
|
230
164
|
/** Offset that was requested. */
|
|
@@ -236,13 +170,13 @@ export interface PagingMetadataV2 {
|
|
|
236
170
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
237
171
|
cursors?: Cursors;
|
|
238
172
|
}
|
|
239
|
-
|
|
173
|
+
interface Cursors {
|
|
240
174
|
/** Cursor pointing to next page in the list of results. */
|
|
241
175
|
next?: string | null;
|
|
242
176
|
/** Cursor pointing to previous page in the list of results. */
|
|
243
177
|
prev?: string | null;
|
|
244
178
|
}
|
|
245
|
-
|
|
179
|
+
interface AggregationRequest {
|
|
246
180
|
/** Paging preferences. */
|
|
247
181
|
paging?: Paging;
|
|
248
182
|
/** Filter applied to the collection's data prior to running the aggregation. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_the-filter-section) for information on how to structure a filter object. */
|
|
@@ -305,19 +239,19 @@ export interface AggregationRequest {
|
|
|
305
239
|
/** ID of the collection on which to run the aggregation. */
|
|
306
240
|
dataCollectionId?: string;
|
|
307
241
|
}
|
|
308
|
-
|
|
242
|
+
interface AggregationResponse {
|
|
309
243
|
/** Aggregation results. */
|
|
310
244
|
items?: Record<string, any>[] | null;
|
|
311
245
|
/** Paging information. */
|
|
312
246
|
pagingMetadata?: PagingMetadataV2;
|
|
313
247
|
}
|
|
314
|
-
|
|
248
|
+
interface CountRequest {
|
|
315
249
|
/** Filter preferences defining the query. For more information on how to structure a filter object, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_the-filter-section). */
|
|
316
250
|
filter?: Record<string, any> | null;
|
|
317
251
|
/** ID of the collection for which to count query results. */
|
|
318
252
|
dataCollectionId?: string;
|
|
319
253
|
}
|
|
320
|
-
|
|
254
|
+
interface CountResponse {
|
|
321
255
|
/** Count of items matching the query. */
|
|
322
256
|
totalCount?: number;
|
|
323
257
|
/**
|
|
@@ -326,7 +260,7 @@ export interface CountResponse {
|
|
|
326
260
|
*/
|
|
327
261
|
totalResults?: number;
|
|
328
262
|
}
|
|
329
|
-
|
|
263
|
+
interface DistinctRequest {
|
|
330
264
|
/** Query preferences. For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */
|
|
331
265
|
dataQuery?: QueryV2;
|
|
332
266
|
/** Property name for which to return all distinct values. */
|
|
@@ -341,25 +275,25 @@ export interface DistinctRequest {
|
|
|
341
275
|
*/
|
|
342
276
|
omitTotalCount?: boolean;
|
|
343
277
|
}
|
|
344
|
-
|
|
278
|
+
interface DistinctResponse {
|
|
345
279
|
/** List of distinct values contained in the property specified in `propertyName`. */
|
|
346
280
|
items?: any[];
|
|
347
281
|
/** Paging information. */
|
|
348
282
|
pagingMetadata?: PagingMetadataV2;
|
|
349
283
|
}
|
|
350
|
-
|
|
284
|
+
interface BulkInsertRequest {
|
|
351
285
|
/** Items to insert. */
|
|
352
286
|
items: Record<string, any>[] | null;
|
|
353
287
|
/** ID of the collection in which to insert the items. */
|
|
354
288
|
dataCollectionId?: string;
|
|
355
289
|
}
|
|
356
|
-
|
|
290
|
+
interface BulkInsertResponse {
|
|
357
291
|
/** IDs of items inserted. */
|
|
358
292
|
insertedItemIds?: string[];
|
|
359
293
|
/** Error details for items that couldn't be inserted. */
|
|
360
294
|
errors?: BulkError[];
|
|
361
295
|
}
|
|
362
|
-
|
|
296
|
+
interface BulkError {
|
|
363
297
|
/** ID of the item that couldn't be inserted. */
|
|
364
298
|
itemId?: string | null;
|
|
365
299
|
/** Error message. */
|
|
@@ -369,7 +303,7 @@ export interface BulkError {
|
|
|
369
303
|
/** Index of the failed item in the `items` paramater of the request. */
|
|
370
304
|
originalIndex?: number;
|
|
371
305
|
}
|
|
372
|
-
|
|
306
|
+
interface ApplicationError {
|
|
373
307
|
/** Error code. */
|
|
374
308
|
code?: string;
|
|
375
309
|
/** Error description. */
|
|
@@ -377,17 +311,17 @@ export interface ApplicationError {
|
|
|
377
311
|
/** Error data. */
|
|
378
312
|
data?: Record<string, any> | null;
|
|
379
313
|
}
|
|
380
|
-
|
|
314
|
+
interface Details {
|
|
381
315
|
/** Application error. */
|
|
382
316
|
applicationError?: ApplicationError;
|
|
383
317
|
}
|
|
384
|
-
|
|
318
|
+
interface BulkSaveRequest {
|
|
385
319
|
/** Items to insert or update. */
|
|
386
320
|
items: Record<string, any>[] | null;
|
|
387
321
|
/** ID of the collection in which to insert or update the items. */
|
|
388
322
|
dataCollectionId?: string;
|
|
389
323
|
}
|
|
390
|
-
|
|
324
|
+
interface BulkSaveResponse {
|
|
391
325
|
/** IDs of items inserted. */
|
|
392
326
|
insertedItemIds?: string[];
|
|
393
327
|
/** IDs of items updated. */
|
|
@@ -395,55 +329,35 @@ export interface BulkSaveResponse {
|
|
|
395
329
|
/** Errors for items that couldn't be inserted or updated. */
|
|
396
330
|
errors?: BulkError[];
|
|
397
331
|
}
|
|
398
|
-
|
|
332
|
+
interface BulkUpdateRequest {
|
|
399
333
|
/** Items to update. */
|
|
400
334
|
items: Record<string, any>[] | null;
|
|
401
335
|
/** ID of the collection in which to update items. */
|
|
402
336
|
dataCollectionId?: string;
|
|
403
337
|
}
|
|
404
|
-
|
|
338
|
+
interface BulkUpdateResponse {
|
|
405
339
|
/** IDs of items updated. */
|
|
406
340
|
updatedItemIds?: string[];
|
|
407
341
|
/** Errors for items that couldn't be updated. */
|
|
408
342
|
errors?: BulkError[];
|
|
409
343
|
}
|
|
410
|
-
|
|
411
|
-
/** List of items and their patches */
|
|
412
|
-
entries?: Entry[];
|
|
413
|
-
/** Data access options */
|
|
414
|
-
options?: Options;
|
|
415
|
-
/** ID of the collection */
|
|
416
|
-
dataCollectionId?: string;
|
|
417
|
-
}
|
|
418
|
-
export interface Entry {
|
|
419
|
-
/** item id to patch */
|
|
420
|
-
itemId?: string;
|
|
421
|
-
/** Patch data */
|
|
422
|
-
patch?: Record<string, any> | null;
|
|
423
|
-
}
|
|
424
|
-
export interface BulkPatchResponse {
|
|
425
|
-
/** Patched item ids */
|
|
426
|
-
patchedItemIds?: string[];
|
|
427
|
-
/** Errors */
|
|
428
|
-
errors?: BulkError[];
|
|
429
|
-
}
|
|
430
|
-
export interface BulkRemoveRequest {
|
|
344
|
+
interface BulkRemoveRequest {
|
|
431
345
|
/** IDs of items to remove. */
|
|
432
346
|
entries?: BulkRemoveRequestEntry[];
|
|
433
347
|
/** ID of the collection from which to remove the items. */
|
|
434
348
|
dataCollectionId?: string;
|
|
435
349
|
}
|
|
436
|
-
|
|
350
|
+
interface BulkRemoveRequestEntry {
|
|
437
351
|
/** ID of item to remove. */
|
|
438
352
|
itemId?: string;
|
|
439
353
|
}
|
|
440
|
-
|
|
354
|
+
interface BulkRemoveResponse {
|
|
441
355
|
/** IDs of items removed. */
|
|
442
356
|
removedItemIds?: string[];
|
|
443
357
|
/** Errors for items that couldn't be removed. */
|
|
444
358
|
errors?: BulkError[];
|
|
445
359
|
}
|
|
446
|
-
|
|
360
|
+
interface QueryReferencedRequest {
|
|
447
361
|
/** ID of the referring item. */
|
|
448
362
|
referringItemId: string;
|
|
449
363
|
/** Property containing the references to the referenced items. */
|
|
@@ -460,13 +374,7 @@ export interface QueryReferencedRequest {
|
|
|
460
374
|
*/
|
|
461
375
|
omitTotalCount?: boolean;
|
|
462
376
|
}
|
|
463
|
-
|
|
464
|
-
ASC = "ASC",
|
|
465
|
-
DESC = "DESC"
|
|
466
|
-
}
|
|
467
|
-
/** @enumType */
|
|
468
|
-
export type OrderWithLiterals = Order | 'ASC' | 'DESC';
|
|
469
|
-
export interface QueryReferencedResponse {
|
|
377
|
+
interface QueryReferencedResponse {
|
|
470
378
|
/**
|
|
471
379
|
* *Deprecated.** Refer to `entities` instead. List of referenced items.
|
|
472
380
|
* @deprecated
|
|
@@ -487,20 +395,20 @@ export interface QueryReferencedResponse {
|
|
|
487
395
|
/** Paging information. */
|
|
488
396
|
pagingMetadata?: PagingMetadataV2;
|
|
489
397
|
}
|
|
490
|
-
|
|
398
|
+
interface ReferencedEntity extends ReferencedEntityEntityOneOf {
|
|
491
399
|
/** Data item referenced. */
|
|
492
400
|
item?: Record<string, any> | null;
|
|
493
401
|
/** Unresolved ID. Appears instead of the data item when the reference doesn't resolve. For example, when an ID isn't found or if an item is in draft state. */
|
|
494
402
|
referenceId?: string;
|
|
495
403
|
}
|
|
496
404
|
/** @oneof */
|
|
497
|
-
|
|
405
|
+
interface ReferencedEntityEntityOneOf {
|
|
498
406
|
/** Data item referenced. */
|
|
499
407
|
item?: Record<string, any> | null;
|
|
500
408
|
/** Unresolved ID. Appears instead of the data item when the reference doesn't resolve. For example, when an ID isn't found or if an item is in draft state. */
|
|
501
409
|
referenceId?: string;
|
|
502
410
|
}
|
|
503
|
-
|
|
411
|
+
interface BulkInsertReferencesRequest {
|
|
504
412
|
/**
|
|
505
413
|
* References to insert.
|
|
506
414
|
* @minSize 1
|
|
@@ -509,7 +417,7 @@ export interface BulkInsertReferencesRequest {
|
|
|
509
417
|
/** ID of the collection containing the referring item. */
|
|
510
418
|
dataCollectionId?: string;
|
|
511
419
|
}
|
|
512
|
-
|
|
420
|
+
interface Reference {
|
|
513
421
|
/** Property containing the references to the referenced items. */
|
|
514
422
|
propertyName?: string;
|
|
515
423
|
/** ID of the referring item. */
|
|
@@ -517,9 +425,9 @@ export interface Reference {
|
|
|
517
425
|
/** ID of the referenced item. */
|
|
518
426
|
referencedItemId?: string;
|
|
519
427
|
}
|
|
520
|
-
|
|
428
|
+
interface BulkInsertReferencesResponse {
|
|
521
429
|
}
|
|
522
|
-
|
|
430
|
+
interface BulkReplaceReferencesRequest {
|
|
523
431
|
/** Property containing the references to the referenced items. */
|
|
524
432
|
propertyName: string;
|
|
525
433
|
/** ID of the referring item. */
|
|
@@ -529,9 +437,9 @@ export interface BulkReplaceReferencesRequest {
|
|
|
529
437
|
/** ID of the collection containing the referring item. */
|
|
530
438
|
dataCollectionId?: string;
|
|
531
439
|
}
|
|
532
|
-
|
|
440
|
+
interface BulkReplaceReferencesResponse {
|
|
533
441
|
}
|
|
534
|
-
|
|
442
|
+
interface BulkRemoveReferencesRequest {
|
|
535
443
|
/**
|
|
536
444
|
* References to be removed.
|
|
537
445
|
* @minSize 1
|
|
@@ -540,9 +448,9 @@ export interface BulkRemoveReferencesRequest {
|
|
|
540
448
|
/** ID of the collection containing the referring item. */
|
|
541
449
|
dataCollectionId?: string;
|
|
542
450
|
}
|
|
543
|
-
|
|
451
|
+
interface BulkRemoveReferencesResponse {
|
|
544
452
|
}
|
|
545
|
-
|
|
453
|
+
interface IsReferencedRequest {
|
|
546
454
|
/** Property that may contain a reference to the specified item. */
|
|
547
455
|
propertyName: string;
|
|
548
456
|
/** ID of the referring item. */
|
|
@@ -552,26 +460,45 @@ export interface IsReferencedRequest {
|
|
|
552
460
|
/** ID of the collection containing the referring item. */
|
|
553
461
|
dataCollectionId?: string;
|
|
554
462
|
}
|
|
555
|
-
|
|
463
|
+
interface IsReferencedResponse {
|
|
556
464
|
/** Whether the specified property of the referring item contains a reference to the specified referenced item. */
|
|
557
465
|
isReferenced?: boolean;
|
|
558
466
|
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
}
|
|
467
|
+
|
|
468
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
469
|
+
getUrl: (context: any) => string;
|
|
470
|
+
httpMethod: K;
|
|
471
|
+
path: string;
|
|
472
|
+
pathParams: M;
|
|
473
|
+
__requestType: T;
|
|
474
|
+
__originalRequestType: S;
|
|
475
|
+
__responseType: Q;
|
|
476
|
+
__originalResponseType: R;
|
|
477
|
+
};
|
|
478
|
+
declare function insert(): __PublicMethodMetaInfo<'POST', {}, InsertRequest$1, InsertRequest, InsertResponse$1, InsertResponse>;
|
|
479
|
+
declare function update(): __PublicMethodMetaInfo<'PUT', {
|
|
480
|
+
itemId: string;
|
|
481
|
+
}, UpdateRequest$1, UpdateRequest, UpdateResponse$1, UpdateResponse>;
|
|
482
|
+
declare function save(): __PublicMethodMetaInfo<'POST', {}, SaveRequest$1, SaveRequest, SaveResponse$1, SaveResponse>;
|
|
483
|
+
declare function get(): __PublicMethodMetaInfo<'GET', {
|
|
484
|
+
itemId: string;
|
|
485
|
+
}, GetRequest$1, GetRequest, GetResponse$1, GetResponse>;
|
|
486
|
+
declare function remove(): __PublicMethodMetaInfo<'DELETE', {
|
|
487
|
+
itemId: string;
|
|
488
|
+
}, RemoveRequest$1, RemoveRequest, RemoveResponse$1, RemoveResponse>;
|
|
489
|
+
declare function truncate(): __PublicMethodMetaInfo<'POST', {}, TruncateRequest$1, TruncateRequest, TruncateResponse$1, TruncateResponse>;
|
|
490
|
+
declare function query(): __PublicMethodMetaInfo<'GET', {}, QueryRequest$1, QueryRequest, QueryResponse$1, QueryResponse>;
|
|
491
|
+
declare function aggregate(): __PublicMethodMetaInfo<'POST', {}, AggregationRequest$1, AggregationRequest, AggregationResponse$1, AggregationResponse>;
|
|
492
|
+
declare function count(): __PublicMethodMetaInfo<'POST', {}, CountRequest$1, CountRequest, CountResponse$1, CountResponse>;
|
|
493
|
+
declare function distinct(): __PublicMethodMetaInfo<'POST', {}, DistinctRequest$1, DistinctRequest, DistinctResponse$1, DistinctResponse>;
|
|
494
|
+
declare function bulkInsert(): __PublicMethodMetaInfo<'POST', {}, BulkInsertRequest$1, BulkInsertRequest, BulkInsertResponse$1, BulkInsertResponse>;
|
|
495
|
+
declare function bulkSave(): __PublicMethodMetaInfo<'POST', {}, BulkSaveRequest$1, BulkSaveRequest, BulkSaveResponse$1, BulkSaveResponse>;
|
|
496
|
+
declare function bulkUpdate(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateRequest$1, BulkUpdateRequest, BulkUpdateResponse$1, BulkUpdateResponse>;
|
|
497
|
+
declare function bulkRemove(): __PublicMethodMetaInfo<'POST', {}, BulkRemoveRequest$1, BulkRemoveRequest, BulkRemoveResponse$1, BulkRemoveResponse>;
|
|
498
|
+
declare function queryReferenced(): __PublicMethodMetaInfo<'POST', {}, QueryReferencedRequest$1, QueryReferencedRequest, QueryReferencedResponse$1, QueryReferencedResponse>;
|
|
499
|
+
declare function bulkInsertReferences(): __PublicMethodMetaInfo<'POST', {}, BulkInsertReferencesRequest$1, BulkInsertReferencesRequest, BulkInsertReferencesResponse$1, BulkInsertReferencesResponse>;
|
|
500
|
+
declare function bulkReplaceReferences(): __PublicMethodMetaInfo<'POST', {}, BulkReplaceReferencesRequest$1, BulkReplaceReferencesRequest, BulkReplaceReferencesResponse$1, BulkReplaceReferencesResponse>;
|
|
501
|
+
declare function bulkRemoveReferences(): __PublicMethodMetaInfo<'POST', {}, BulkRemoveReferencesRequest$1, BulkRemoveReferencesRequest, BulkRemoveReferencesResponse$1, BulkRemoveReferencesResponse>;
|
|
502
|
+
declare function isReferenced(): __PublicMethodMetaInfo<'POST', {}, IsReferencedRequest$1, IsReferencedRequest, IsReferencedResponse$1, IsReferencedResponse>;
|
|
503
|
+
|
|
504
|
+
export { type __PublicMethodMetaInfo, aggregate, bulkInsert, bulkInsertReferences, bulkRemove, bulkRemoveReferences, bulkReplaceReferences, bulkSave, bulkUpdate, count, distinct, get, insert, isReferenced, query, queryReferenced, remove, save, truncate, update };
|