@wix/auto_sdk_data-backend-public-sdk-poc_data 1.0.51 → 1.0.52
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/package.json +4 -5
- package/build/internal/cjs/index.js +0 -1598
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -1439
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -1206
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1553
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -1394
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -1158
- package/build/internal/es/meta.mjs.map +0 -1
|
@@ -1,1553 +0,0 @@
|
|
|
1
|
-
// src/data-v1-data-service-data.universal.ts
|
|
2
|
-
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
|
-
import {
|
|
4
|
-
renameKeysFromSDKRequestToRESTRequest,
|
|
5
|
-
renameKeysFromRESTResponseToSDKResponse
|
|
6
|
-
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
7
|
-
|
|
8
|
-
// src/data-v1-data-service-data.http.ts
|
|
9
|
-
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
-
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
11
|
-
function resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl(opts) {
|
|
12
|
-
const domainToMappings = {
|
|
13
|
-
"api._api_base_domain_": [
|
|
14
|
-
{
|
|
15
|
-
srcPath: "/cloud-data",
|
|
16
|
-
destPath: ""
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"code._base_domain_": [
|
|
20
|
-
{
|
|
21
|
-
srcPath: "/_api/cloud-data/v1/data-settings",
|
|
22
|
-
destPath: "/v1/data-settings"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
srcPath: "/_api/cloud-data/v1/schemas",
|
|
26
|
-
destPath: "/v1/schemas"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
srcPath: "/_api/cloud-data/v1/connector",
|
|
30
|
-
destPath: "/v1/connector"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
srcPath: "/_api/data/v1/data-settings",
|
|
34
|
-
destPath: "/v1/data-settings"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
srcPath: "/_api/data/v1/schemas",
|
|
38
|
-
destPath: "/v1/schemas"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
srcPath: "/_api/data/v1/connector",
|
|
42
|
-
destPath: "/v1/connector"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
srcPath: "/_api/cloud-data/v1/wix-data",
|
|
46
|
-
destPath: "/v1/wix-data"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"cloud-data.wix-code.com": [
|
|
50
|
-
{
|
|
51
|
-
srcPath: "",
|
|
52
|
-
destPath: ""
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
_: [
|
|
56
|
-
{
|
|
57
|
-
srcPath: "/_api/cloud-data",
|
|
58
|
-
destPath: ""
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"www._base_domain_": [
|
|
62
|
-
{
|
|
63
|
-
srcPath: "/_api/cloud-data",
|
|
64
|
-
destPath: ""
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
srcPath: "/_api/data",
|
|
68
|
-
destPath: ""
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
srcPath: "/_api/cloud-data",
|
|
72
|
-
destPath: ""
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"dev._base_domain_": [
|
|
76
|
-
{
|
|
77
|
-
srcPath: "/_api/cloud-data",
|
|
78
|
-
destPath: ""
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"bo._base_domain_": [
|
|
82
|
-
{
|
|
83
|
-
srcPath: "/_api/cloud-data/v1",
|
|
84
|
-
destPath: "/v1"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
srcPath: "/_api/cloud-data/v2",
|
|
88
|
-
destPath: "/v2"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"wixbo.ai": [
|
|
92
|
-
{
|
|
93
|
-
srcPath: "/_api/cloud-data/v1",
|
|
94
|
-
destPath: "/v1"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
srcPath: "/_api/cloud-data/v2",
|
|
98
|
-
destPath: "/v2"
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"wix-bo.com": [
|
|
102
|
-
{
|
|
103
|
-
srcPath: "/_api/cloud-data/v1",
|
|
104
|
-
destPath: "/v1"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
srcPath: "/_api/cloud-data/v2",
|
|
108
|
-
destPath: "/v2"
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
"manage._base_domain_": [
|
|
112
|
-
{
|
|
113
|
-
srcPath: "/_api/cloud-data",
|
|
114
|
-
destPath: ""
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
srcPath: "/_api/data",
|
|
118
|
-
destPath: ""
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
srcPath: "/_api/cloud-data",
|
|
122
|
-
destPath: ""
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"editor._base_domain_": [
|
|
126
|
-
{
|
|
127
|
-
srcPath: "/_api/cloud-data/v1/schemas",
|
|
128
|
-
destPath: "/v1/schemas"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
srcPath: "/_api/cloud-data/dbs/tasks",
|
|
132
|
-
destPath: "/dbs/tasks"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
srcPath: "/_api/data/v1/schemas",
|
|
136
|
-
destPath: "/v1/schemas"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
srcPath: "/_api/data/dbs/tasks",
|
|
140
|
-
destPath: "/dbs/tasks"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
srcPath: "/_api/cloud-data/v1/wix-data",
|
|
144
|
-
destPath: "/v1/wix-data"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
srcPath: "/_api/cloud-data/v1/data-settings",
|
|
148
|
-
destPath: "/v1/data-settings"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
srcPath: "/_api/data/v2/indexes",
|
|
152
|
-
destPath: "/v2/indexes"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
srcPath: "/_api/cloud-data/v1/external-database-connections",
|
|
156
|
-
destPath: "/v1/external-database-connections"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
srcPath: "/_api/data/v1/data-collection-sharing",
|
|
160
|
-
destPath: "/v1/data-collection-sharing"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
srcPath: "/_api/cloud-data/v2/collections",
|
|
164
|
-
destPath: "/v2/collections"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
srcPath: "/_api/cloud-data/v2/bulk",
|
|
168
|
-
destPath: "/v2/bulk"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
srcPath: "/_api/cloud-data/v2/items",
|
|
172
|
-
destPath: "/v2/items"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
srcPath: "/_api/cloud-data/v2/dbs/tasks",
|
|
176
|
-
destPath: "/v2/dbs/tasks"
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
"blocks._base_domain_": [
|
|
180
|
-
{
|
|
181
|
-
srcPath: "/_api/cloud-data/v1/schemas",
|
|
182
|
-
destPath: "/v1/schemas"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
srcPath: "/_api/cloud-data/dbs/tasks",
|
|
186
|
-
destPath: "/dbs/tasks"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
srcPath: "/_api/data/v1/schemas",
|
|
190
|
-
destPath: "/v1/schemas"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
srcPath: "/_api/data/dbs/tasks",
|
|
194
|
-
destPath: "/dbs/tasks"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
srcPath: "/_api/cloud-data/v1/wix-data",
|
|
198
|
-
destPath: "/v1/wix-data"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
srcPath: "/_api/cloud-data/v1/data-settings",
|
|
202
|
-
destPath: "/v1/data-settings"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
srcPath: "/_api/data/v2/indexes",
|
|
206
|
-
destPath: "/v2/indexes"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
srcPath: "/_api/cloud-data/v1/external-database-connections",
|
|
210
|
-
destPath: "/v1/external-database-connections"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
srcPath: "/_api/data/v1/data-collection-sharing",
|
|
214
|
-
destPath: "/v1/data-collection-sharing"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
srcPath: "/_api/cloud-data/v2/collections",
|
|
218
|
-
destPath: "/v2/collections"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
srcPath: "/_api/cloud-data/v2/bulk",
|
|
222
|
-
destPath: "/v2/bulk"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
srcPath: "/_api/cloud-data/v2/items",
|
|
226
|
-
destPath: "/v2/items"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
srcPath: "/_api/cloud-data/v2/dbs/tasks",
|
|
230
|
-
destPath: "/v2/dbs/tasks"
|
|
231
|
-
}
|
|
232
|
-
],
|
|
233
|
-
"create.editorx": [
|
|
234
|
-
{
|
|
235
|
-
srcPath: "/_api/cloud-data/v1/schemas",
|
|
236
|
-
destPath: "/v1/schemas"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
srcPath: "/_api/cloud-data/dbs/tasks",
|
|
240
|
-
destPath: "/dbs/tasks"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
srcPath: "/_api/data/v1/schemas",
|
|
244
|
-
destPath: "/v1/schemas"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
srcPath: "/_api/data/dbs/tasks",
|
|
248
|
-
destPath: "/dbs/tasks"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
srcPath: "/_api/cloud-data/v1/wix-data",
|
|
252
|
-
destPath: "/v1/wix-data"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
srcPath: "/_api/cloud-data/v1/data-settings",
|
|
256
|
-
destPath: "/v1/data-settings"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
srcPath: "/_api/data/v2/indexes",
|
|
260
|
-
destPath: "/v2/indexes"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
srcPath: "/_api/cloud-data/v1/external-database-connections",
|
|
264
|
-
destPath: "/v1/external-database-connections"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
srcPath: "/_api/data/v1/data-collection-sharing",
|
|
268
|
-
destPath: "/v1/data-collection-sharing"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
srcPath: "/_api/cloud-data/v2/collections",
|
|
272
|
-
destPath: "/v2/collections"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
srcPath: "/_api/cloud-data/v2/bulk",
|
|
276
|
-
destPath: "/v2/bulk"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
srcPath: "/_api/cloud-data/v2/items",
|
|
280
|
-
destPath: "/v2/items"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
srcPath: "/_api/cloud-data/v2/dbs/tasks",
|
|
284
|
-
destPath: "/v2/dbs/tasks"
|
|
285
|
-
}
|
|
286
|
-
],
|
|
287
|
-
"www.wixapis.com": [
|
|
288
|
-
{
|
|
289
|
-
srcPath: "/wix-data/v1/collections",
|
|
290
|
-
destPath: "/v1/wix-data/collections"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
srcPath: "/wix-data/v1/external-database-connections",
|
|
294
|
-
destPath: "/v1/external-database-connections"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
srcPath: "/wix-data/v2/indexes",
|
|
298
|
-
destPath: "/v2/indexes"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
srcPath: "/wix-data/v1/items",
|
|
302
|
-
destPath: "/v1/items"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
srcPath: "/wix-data/v1/bulk",
|
|
306
|
-
destPath: "/v1/bulk"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
srcPath: "/wix-data/v1/external-databases",
|
|
310
|
-
destPath: "/v1/external-databases"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
srcPath: "/wix-data/v2",
|
|
314
|
-
destPath: "/v2"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
srcPath: "/data/v2/collections",
|
|
318
|
-
destPath: "/v2/collections"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
srcPath: "/data/v2/items",
|
|
322
|
-
destPath: "/v2/items"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
srcPath: "/data/v2/bulk/items",
|
|
326
|
-
destPath: "/v2/bulk/items"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
srcPath: "/data/v2/indexes",
|
|
330
|
-
destPath: "/v2/indexes"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
srcPath: "/data/v1/external-database-connections",
|
|
334
|
-
destPath: "/v1/external-database-connections"
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
srcPath: "/data/v1/data-collection-sharing",
|
|
338
|
-
destPath: "/v1/data-collection-sharing"
|
|
339
|
-
}
|
|
340
|
-
],
|
|
341
|
-
"www.wixgateway.com": [
|
|
342
|
-
{
|
|
343
|
-
srcPath: "/wix-data/v1/items",
|
|
344
|
-
destPath: "/v1/items"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
srcPath: "/wix-data/v1/bulk",
|
|
348
|
-
destPath: "/v1/bulk"
|
|
349
|
-
}
|
|
350
|
-
],
|
|
351
|
-
"*.dev.wix-code.com": [
|
|
352
|
-
{
|
|
353
|
-
srcPath: "/_api/cloud-data/v2",
|
|
354
|
-
destPath: "/v2"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
srcPath: "/_api/cloud-data/v1/external-database-connections",
|
|
358
|
-
destPath: "/v1/external-database-connections"
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
srcPath: "/data/v1/data-collection-sharing",
|
|
362
|
-
destPath: "/v1/data-collection-sharing"
|
|
363
|
-
}
|
|
364
|
-
]
|
|
365
|
-
};
|
|
366
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
367
|
-
}
|
|
368
|
-
var PACKAGE_NAME = "@wix/auto_sdk_data-backend-public-sdk-poc_data";
|
|
369
|
-
function insert(payload) {
|
|
370
|
-
function __insert({ host }) {
|
|
371
|
-
const metadata = {
|
|
372
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
373
|
-
method: "POST",
|
|
374
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Insert",
|
|
375
|
-
packageName: PACKAGE_NAME,
|
|
376
|
-
migrationOptions: {
|
|
377
|
-
optInTransformResponse: true
|
|
378
|
-
},
|
|
379
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
380
|
-
protoPath: "/v1/items",
|
|
381
|
-
data: payload,
|
|
382
|
-
host
|
|
383
|
-
}),
|
|
384
|
-
data: payload
|
|
385
|
-
};
|
|
386
|
-
return metadata;
|
|
387
|
-
}
|
|
388
|
-
return __insert;
|
|
389
|
-
}
|
|
390
|
-
function update(payload) {
|
|
391
|
-
function __update({ host }) {
|
|
392
|
-
const metadata = {
|
|
393
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
394
|
-
method: "PUT",
|
|
395
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Update",
|
|
396
|
-
packageName: PACKAGE_NAME,
|
|
397
|
-
migrationOptions: {
|
|
398
|
-
optInTransformResponse: true
|
|
399
|
-
},
|
|
400
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
401
|
-
protoPath: "/v1/items/{itemId}",
|
|
402
|
-
data: payload,
|
|
403
|
-
host
|
|
404
|
-
}),
|
|
405
|
-
data: payload
|
|
406
|
-
};
|
|
407
|
-
return metadata;
|
|
408
|
-
}
|
|
409
|
-
return __update;
|
|
410
|
-
}
|
|
411
|
-
function save(payload) {
|
|
412
|
-
function __save({ host }) {
|
|
413
|
-
const metadata = {
|
|
414
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
415
|
-
method: "POST",
|
|
416
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Save",
|
|
417
|
-
packageName: PACKAGE_NAME,
|
|
418
|
-
migrationOptions: {
|
|
419
|
-
optInTransformResponse: true
|
|
420
|
-
},
|
|
421
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
422
|
-
protoPath: "/v1/items/save",
|
|
423
|
-
data: payload,
|
|
424
|
-
host
|
|
425
|
-
}),
|
|
426
|
-
data: payload
|
|
427
|
-
};
|
|
428
|
-
return metadata;
|
|
429
|
-
}
|
|
430
|
-
return __save;
|
|
431
|
-
}
|
|
432
|
-
function get(payload) {
|
|
433
|
-
function __get({ host }) {
|
|
434
|
-
const metadata = {
|
|
435
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
436
|
-
method: "GET",
|
|
437
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Get",
|
|
438
|
-
packageName: PACKAGE_NAME,
|
|
439
|
-
migrationOptions: {
|
|
440
|
-
optInTransformResponse: true
|
|
441
|
-
},
|
|
442
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
443
|
-
protoPath: "/v1/items/{itemId}",
|
|
444
|
-
data: payload,
|
|
445
|
-
host
|
|
446
|
-
}),
|
|
447
|
-
params: toURLSearchParams(payload, true)
|
|
448
|
-
};
|
|
449
|
-
return metadata;
|
|
450
|
-
}
|
|
451
|
-
return __get;
|
|
452
|
-
}
|
|
453
|
-
function remove(payload) {
|
|
454
|
-
function __remove({ host }) {
|
|
455
|
-
const metadata = {
|
|
456
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
457
|
-
method: "DELETE",
|
|
458
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Remove",
|
|
459
|
-
packageName: PACKAGE_NAME,
|
|
460
|
-
migrationOptions: {
|
|
461
|
-
optInTransformResponse: true
|
|
462
|
-
},
|
|
463
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
464
|
-
protoPath: "/v1/items/{itemId}",
|
|
465
|
-
data: payload,
|
|
466
|
-
host
|
|
467
|
-
}),
|
|
468
|
-
params: toURLSearchParams(payload)
|
|
469
|
-
};
|
|
470
|
-
return metadata;
|
|
471
|
-
}
|
|
472
|
-
return __remove;
|
|
473
|
-
}
|
|
474
|
-
function truncate(payload) {
|
|
475
|
-
function __truncate({ host }) {
|
|
476
|
-
const metadata = {
|
|
477
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
478
|
-
method: "POST",
|
|
479
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Truncate",
|
|
480
|
-
packageName: PACKAGE_NAME,
|
|
481
|
-
migrationOptions: {
|
|
482
|
-
optInTransformResponse: true
|
|
483
|
-
},
|
|
484
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
485
|
-
protoPath: "/v1/items/truncate",
|
|
486
|
-
data: payload,
|
|
487
|
-
host
|
|
488
|
-
}),
|
|
489
|
-
data: payload
|
|
490
|
-
};
|
|
491
|
-
return metadata;
|
|
492
|
-
}
|
|
493
|
-
return __truncate;
|
|
494
|
-
}
|
|
495
|
-
function query(payload) {
|
|
496
|
-
function __query({ host }) {
|
|
497
|
-
const metadata = {
|
|
498
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
499
|
-
method: "GET",
|
|
500
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Query",
|
|
501
|
-
packageName: PACKAGE_NAME,
|
|
502
|
-
migrationOptions: {
|
|
503
|
-
optInTransformResponse: true
|
|
504
|
-
},
|
|
505
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
506
|
-
protoPath: "/v1/items/query",
|
|
507
|
-
data: payload,
|
|
508
|
-
host
|
|
509
|
-
}),
|
|
510
|
-
params: toURLSearchParams(payload, true),
|
|
511
|
-
fallback: [
|
|
512
|
-
{
|
|
513
|
-
method: "POST",
|
|
514
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
515
|
-
protoPath: "/v1/items/query",
|
|
516
|
-
data: payload,
|
|
517
|
-
host
|
|
518
|
-
}),
|
|
519
|
-
data: payload
|
|
520
|
-
}
|
|
521
|
-
]
|
|
522
|
-
};
|
|
523
|
-
return metadata;
|
|
524
|
-
}
|
|
525
|
-
return __query;
|
|
526
|
-
}
|
|
527
|
-
function aggregate(payload) {
|
|
528
|
-
function __aggregate({ host }) {
|
|
529
|
-
const metadata = {
|
|
530
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
531
|
-
method: "POST",
|
|
532
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Aggregate",
|
|
533
|
-
packageName: PACKAGE_NAME,
|
|
534
|
-
migrationOptions: {
|
|
535
|
-
optInTransformResponse: true
|
|
536
|
-
},
|
|
537
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
538
|
-
protoPath: "/v1/items/aggregate",
|
|
539
|
-
data: payload,
|
|
540
|
-
host
|
|
541
|
-
}),
|
|
542
|
-
data: payload
|
|
543
|
-
};
|
|
544
|
-
return metadata;
|
|
545
|
-
}
|
|
546
|
-
return __aggregate;
|
|
547
|
-
}
|
|
548
|
-
function count(payload) {
|
|
549
|
-
function __count({ host }) {
|
|
550
|
-
const metadata = {
|
|
551
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
552
|
-
method: "POST",
|
|
553
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Count",
|
|
554
|
-
packageName: PACKAGE_NAME,
|
|
555
|
-
migrationOptions: {
|
|
556
|
-
optInTransformResponse: true
|
|
557
|
-
},
|
|
558
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
559
|
-
protoPath: "/v1/items/count",
|
|
560
|
-
data: payload,
|
|
561
|
-
host
|
|
562
|
-
}),
|
|
563
|
-
data: payload
|
|
564
|
-
};
|
|
565
|
-
return metadata;
|
|
566
|
-
}
|
|
567
|
-
return __count;
|
|
568
|
-
}
|
|
569
|
-
function distinct(payload) {
|
|
570
|
-
function __distinct({ host }) {
|
|
571
|
-
const metadata = {
|
|
572
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
573
|
-
method: "POST",
|
|
574
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Distinct",
|
|
575
|
-
packageName: PACKAGE_NAME,
|
|
576
|
-
migrationOptions: {
|
|
577
|
-
optInTransformResponse: true
|
|
578
|
-
},
|
|
579
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
580
|
-
protoPath: "/v1/items/distinct",
|
|
581
|
-
data: payload,
|
|
582
|
-
host
|
|
583
|
-
}),
|
|
584
|
-
data: payload
|
|
585
|
-
};
|
|
586
|
-
return metadata;
|
|
587
|
-
}
|
|
588
|
-
return __distinct;
|
|
589
|
-
}
|
|
590
|
-
function bulkInsert(payload) {
|
|
591
|
-
function __bulkInsert({ host }) {
|
|
592
|
-
const metadata = {
|
|
593
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
594
|
-
method: "POST",
|
|
595
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkInsert",
|
|
596
|
-
packageName: PACKAGE_NAME,
|
|
597
|
-
migrationOptions: {
|
|
598
|
-
optInTransformResponse: true
|
|
599
|
-
},
|
|
600
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
601
|
-
protoPath: "/v1/bulk/items/insert",
|
|
602
|
-
data: payload,
|
|
603
|
-
host
|
|
604
|
-
}),
|
|
605
|
-
data: payload
|
|
606
|
-
};
|
|
607
|
-
return metadata;
|
|
608
|
-
}
|
|
609
|
-
return __bulkInsert;
|
|
610
|
-
}
|
|
611
|
-
function bulkSave(payload) {
|
|
612
|
-
function __bulkSave({ host }) {
|
|
613
|
-
const metadata = {
|
|
614
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
615
|
-
method: "POST",
|
|
616
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkSave",
|
|
617
|
-
packageName: PACKAGE_NAME,
|
|
618
|
-
migrationOptions: {
|
|
619
|
-
optInTransformResponse: true
|
|
620
|
-
},
|
|
621
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
622
|
-
protoPath: "/v1/bulk/items/save",
|
|
623
|
-
data: payload,
|
|
624
|
-
host
|
|
625
|
-
}),
|
|
626
|
-
data: payload
|
|
627
|
-
};
|
|
628
|
-
return metadata;
|
|
629
|
-
}
|
|
630
|
-
return __bulkSave;
|
|
631
|
-
}
|
|
632
|
-
function bulkUpdate(payload) {
|
|
633
|
-
function __bulkUpdate({ host }) {
|
|
634
|
-
const metadata = {
|
|
635
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
636
|
-
method: "POST",
|
|
637
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkUpdate",
|
|
638
|
-
packageName: PACKAGE_NAME,
|
|
639
|
-
migrationOptions: {
|
|
640
|
-
optInTransformResponse: true
|
|
641
|
-
},
|
|
642
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
643
|
-
protoPath: "/v1/bulk/items/update",
|
|
644
|
-
data: payload,
|
|
645
|
-
host
|
|
646
|
-
}),
|
|
647
|
-
data: payload
|
|
648
|
-
};
|
|
649
|
-
return metadata;
|
|
650
|
-
}
|
|
651
|
-
return __bulkUpdate;
|
|
652
|
-
}
|
|
653
|
-
function bulkRemove(payload) {
|
|
654
|
-
function __bulkRemove({ host }) {
|
|
655
|
-
const metadata = {
|
|
656
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
657
|
-
method: "POST",
|
|
658
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkRemove",
|
|
659
|
-
packageName: PACKAGE_NAME,
|
|
660
|
-
migrationOptions: {
|
|
661
|
-
optInTransformResponse: true
|
|
662
|
-
},
|
|
663
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
664
|
-
protoPath: "/v1/bulk/items/remove",
|
|
665
|
-
data: payload,
|
|
666
|
-
host
|
|
667
|
-
}),
|
|
668
|
-
data: payload
|
|
669
|
-
};
|
|
670
|
-
return metadata;
|
|
671
|
-
}
|
|
672
|
-
return __bulkRemove;
|
|
673
|
-
}
|
|
674
|
-
function queryReferenced(payload) {
|
|
675
|
-
function __queryReferenced({ host }) {
|
|
676
|
-
const metadata = {
|
|
677
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
678
|
-
method: "POST",
|
|
679
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.QueryReferenced",
|
|
680
|
-
packageName: PACKAGE_NAME,
|
|
681
|
-
migrationOptions: {
|
|
682
|
-
optInTransformResponse: true
|
|
683
|
-
},
|
|
684
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
685
|
-
protoPath: "/v1/items/query-referenced",
|
|
686
|
-
data: payload,
|
|
687
|
-
host
|
|
688
|
-
}),
|
|
689
|
-
data: payload
|
|
690
|
-
};
|
|
691
|
-
return metadata;
|
|
692
|
-
}
|
|
693
|
-
return __queryReferenced;
|
|
694
|
-
}
|
|
695
|
-
function bulkInsertReferences(payload) {
|
|
696
|
-
function __bulkInsertReferences({ host }) {
|
|
697
|
-
const metadata = {
|
|
698
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
699
|
-
method: "POST",
|
|
700
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkInsertReferences",
|
|
701
|
-
packageName: PACKAGE_NAME,
|
|
702
|
-
migrationOptions: {
|
|
703
|
-
optInTransformResponse: true
|
|
704
|
-
},
|
|
705
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
706
|
-
protoPath: "/v1/bulk/references/insert",
|
|
707
|
-
data: payload,
|
|
708
|
-
host
|
|
709
|
-
}),
|
|
710
|
-
data: payload
|
|
711
|
-
};
|
|
712
|
-
return metadata;
|
|
713
|
-
}
|
|
714
|
-
return __bulkInsertReferences;
|
|
715
|
-
}
|
|
716
|
-
function bulkReplaceReferences(payload) {
|
|
717
|
-
function __bulkReplaceReferences({ host }) {
|
|
718
|
-
const metadata = {
|
|
719
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
720
|
-
method: "POST",
|
|
721
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkReplaceReferences",
|
|
722
|
-
packageName: PACKAGE_NAME,
|
|
723
|
-
migrationOptions: {
|
|
724
|
-
optInTransformResponse: true
|
|
725
|
-
},
|
|
726
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
727
|
-
protoPath: "/v1/bulk/references/replace",
|
|
728
|
-
data: payload,
|
|
729
|
-
host
|
|
730
|
-
}),
|
|
731
|
-
data: payload
|
|
732
|
-
};
|
|
733
|
-
return metadata;
|
|
734
|
-
}
|
|
735
|
-
return __bulkReplaceReferences;
|
|
736
|
-
}
|
|
737
|
-
function bulkRemoveReferences(payload) {
|
|
738
|
-
function __bulkRemoveReferences({ host }) {
|
|
739
|
-
const metadata = {
|
|
740
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
741
|
-
method: "POST",
|
|
742
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkRemoveReferences",
|
|
743
|
-
packageName: PACKAGE_NAME,
|
|
744
|
-
migrationOptions: {
|
|
745
|
-
optInTransformResponse: true
|
|
746
|
-
},
|
|
747
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
748
|
-
protoPath: "/v1/bulk/references/remove",
|
|
749
|
-
data: payload,
|
|
750
|
-
host
|
|
751
|
-
}),
|
|
752
|
-
data: payload
|
|
753
|
-
};
|
|
754
|
-
return metadata;
|
|
755
|
-
}
|
|
756
|
-
return __bulkRemoveReferences;
|
|
757
|
-
}
|
|
758
|
-
function isReferenced(payload) {
|
|
759
|
-
function __isReferenced({ host }) {
|
|
760
|
-
const metadata = {
|
|
761
|
-
entityFqdn: "wix.data.v1.data_service",
|
|
762
|
-
method: "POST",
|
|
763
|
-
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.IsReferenced",
|
|
764
|
-
packageName: PACKAGE_NAME,
|
|
765
|
-
migrationOptions: {
|
|
766
|
-
optInTransformResponse: true
|
|
767
|
-
},
|
|
768
|
-
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
769
|
-
protoPath: "/v1/items/is-referenced",
|
|
770
|
-
data: payload,
|
|
771
|
-
host
|
|
772
|
-
}),
|
|
773
|
-
data: payload
|
|
774
|
-
};
|
|
775
|
-
return metadata;
|
|
776
|
-
}
|
|
777
|
-
return __isReferenced;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
// src/data-v1-data-service-data.universal.ts
|
|
781
|
-
var Segment = /* @__PURE__ */ ((Segment2) => {
|
|
782
|
-
Segment2["LIVE"] = "LIVE";
|
|
783
|
-
Segment2["SANDBOX"] = "SANDBOX";
|
|
784
|
-
Segment2["TRASH_LIVE"] = "TRASH_LIVE";
|
|
785
|
-
return Segment2;
|
|
786
|
-
})(Segment || {});
|
|
787
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
788
|
-
SortOrder2["ASC"] = "ASC";
|
|
789
|
-
SortOrder2["DESC"] = "DESC";
|
|
790
|
-
return SortOrder2;
|
|
791
|
-
})(SortOrder || {});
|
|
792
|
-
var Order = /* @__PURE__ */ ((Order2) => {
|
|
793
|
-
Order2["ASC"] = "ASC";
|
|
794
|
-
Order2["DESC"] = "DESC";
|
|
795
|
-
return Order2;
|
|
796
|
-
})(Order || {});
|
|
797
|
-
async function insert2(options) {
|
|
798
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
799
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
800
|
-
item: options?.item,
|
|
801
|
-
dataCollectionId: options?.dataCollectionId
|
|
802
|
-
});
|
|
803
|
-
const reqOpts = insert(payload);
|
|
804
|
-
sideEffects?.onSiteCall?.();
|
|
805
|
-
try {
|
|
806
|
-
const result = await httpClient.request(reqOpts);
|
|
807
|
-
sideEffects?.onSuccess?.(result);
|
|
808
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
809
|
-
} catch (err) {
|
|
810
|
-
const transformedError = sdkTransformError(
|
|
811
|
-
err,
|
|
812
|
-
{
|
|
813
|
-
spreadPathsToArguments: {},
|
|
814
|
-
explicitPathsToArguments: {
|
|
815
|
-
item: "$[0].item",
|
|
816
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
817
|
-
},
|
|
818
|
-
singleArgumentUnchanged: false
|
|
819
|
-
},
|
|
820
|
-
["options"]
|
|
821
|
-
);
|
|
822
|
-
sideEffects?.onError?.(err);
|
|
823
|
-
throw transformedError;
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
async function update2(options) {
|
|
827
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
828
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
829
|
-
item: options?.item,
|
|
830
|
-
dataCollectionId: options?.dataCollectionId
|
|
831
|
-
});
|
|
832
|
-
const reqOpts = update(payload);
|
|
833
|
-
sideEffects?.onSiteCall?.();
|
|
834
|
-
try {
|
|
835
|
-
const result = await httpClient.request(reqOpts);
|
|
836
|
-
sideEffects?.onSuccess?.(result);
|
|
837
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
838
|
-
} catch (err) {
|
|
839
|
-
const transformedError = sdkTransformError(
|
|
840
|
-
err,
|
|
841
|
-
{
|
|
842
|
-
spreadPathsToArguments: {},
|
|
843
|
-
explicitPathsToArguments: {
|
|
844
|
-
item: "$[0].item",
|
|
845
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
846
|
-
},
|
|
847
|
-
singleArgumentUnchanged: false
|
|
848
|
-
},
|
|
849
|
-
["options"]
|
|
850
|
-
);
|
|
851
|
-
sideEffects?.onError?.(err);
|
|
852
|
-
throw transformedError;
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
async function save2(options) {
|
|
856
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
857
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
858
|
-
item: options?.item,
|
|
859
|
-
dataCollectionId: options?.dataCollectionId
|
|
860
|
-
});
|
|
861
|
-
const reqOpts = save(payload);
|
|
862
|
-
sideEffects?.onSiteCall?.();
|
|
863
|
-
try {
|
|
864
|
-
const result = await httpClient.request(reqOpts);
|
|
865
|
-
sideEffects?.onSuccess?.(result);
|
|
866
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
867
|
-
} catch (err) {
|
|
868
|
-
const transformedError = sdkTransformError(
|
|
869
|
-
err,
|
|
870
|
-
{
|
|
871
|
-
spreadPathsToArguments: {},
|
|
872
|
-
explicitPathsToArguments: {
|
|
873
|
-
item: "$[0].item",
|
|
874
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
875
|
-
},
|
|
876
|
-
singleArgumentUnchanged: false
|
|
877
|
-
},
|
|
878
|
-
["options"]
|
|
879
|
-
);
|
|
880
|
-
sideEffects?.onError?.(err);
|
|
881
|
-
throw transformedError;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
async function get2(itemId, options) {
|
|
885
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
886
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
887
|
-
itemId,
|
|
888
|
-
dataCollectionId: options?.dataCollectionId
|
|
889
|
-
});
|
|
890
|
-
const reqOpts = get(payload);
|
|
891
|
-
sideEffects?.onSiteCall?.();
|
|
892
|
-
try {
|
|
893
|
-
const result = await httpClient.request(reqOpts);
|
|
894
|
-
sideEffects?.onSuccess?.(result);
|
|
895
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
896
|
-
} catch (err) {
|
|
897
|
-
const transformedError = sdkTransformError(
|
|
898
|
-
err,
|
|
899
|
-
{
|
|
900
|
-
spreadPathsToArguments: {},
|
|
901
|
-
explicitPathsToArguments: {
|
|
902
|
-
itemId: "$[0]",
|
|
903
|
-
dataCollectionId: "$[1].dataCollectionId"
|
|
904
|
-
},
|
|
905
|
-
singleArgumentUnchanged: false
|
|
906
|
-
},
|
|
907
|
-
["itemId", "options"]
|
|
908
|
-
);
|
|
909
|
-
sideEffects?.onError?.(err);
|
|
910
|
-
throw transformedError;
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
async function remove2(itemId, options) {
|
|
914
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
915
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
916
|
-
itemId,
|
|
917
|
-
dataCollectionId: options?.dataCollectionId
|
|
918
|
-
});
|
|
919
|
-
const reqOpts = remove(payload);
|
|
920
|
-
sideEffects?.onSiteCall?.();
|
|
921
|
-
try {
|
|
922
|
-
const result = await httpClient.request(reqOpts);
|
|
923
|
-
sideEffects?.onSuccess?.(result);
|
|
924
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
925
|
-
} catch (err) {
|
|
926
|
-
const transformedError = sdkTransformError(
|
|
927
|
-
err,
|
|
928
|
-
{
|
|
929
|
-
spreadPathsToArguments: {},
|
|
930
|
-
explicitPathsToArguments: {
|
|
931
|
-
itemId: "$[0]",
|
|
932
|
-
dataCollectionId: "$[1].dataCollectionId"
|
|
933
|
-
},
|
|
934
|
-
singleArgumentUnchanged: false
|
|
935
|
-
},
|
|
936
|
-
["itemId", "options"]
|
|
937
|
-
);
|
|
938
|
-
sideEffects?.onError?.(err);
|
|
939
|
-
throw transformedError;
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
async function truncate2(options) {
|
|
943
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
944
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
945
|
-
dataCollectionId: options?.dataCollectionId
|
|
946
|
-
});
|
|
947
|
-
const reqOpts = truncate(payload);
|
|
948
|
-
sideEffects?.onSiteCall?.();
|
|
949
|
-
try {
|
|
950
|
-
const result = await httpClient.request(reqOpts);
|
|
951
|
-
sideEffects?.onSuccess?.(result);
|
|
952
|
-
} catch (err) {
|
|
953
|
-
const transformedError = sdkTransformError(
|
|
954
|
-
err,
|
|
955
|
-
{
|
|
956
|
-
spreadPathsToArguments: {},
|
|
957
|
-
explicitPathsToArguments: { dataCollectionId: "$[0].dataCollectionId" },
|
|
958
|
-
singleArgumentUnchanged: false
|
|
959
|
-
},
|
|
960
|
-
["options"]
|
|
961
|
-
);
|
|
962
|
-
sideEffects?.onError?.(err);
|
|
963
|
-
throw transformedError;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
async function query2(options) {
|
|
967
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
968
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
969
|
-
dataQuery: options?.dataQuery,
|
|
970
|
-
omitTotalCount: options?.omitTotalCount,
|
|
971
|
-
includeReferencedItems: options?.includeReferencedItems,
|
|
972
|
-
dataCollectionId: options?.dataCollectionId
|
|
973
|
-
});
|
|
974
|
-
const reqOpts = query(payload);
|
|
975
|
-
sideEffects?.onSiteCall?.();
|
|
976
|
-
try {
|
|
977
|
-
const result = await httpClient.request(reqOpts);
|
|
978
|
-
sideEffects?.onSuccess?.(result);
|
|
979
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
980
|
-
} catch (err) {
|
|
981
|
-
const transformedError = sdkTransformError(
|
|
982
|
-
err,
|
|
983
|
-
{
|
|
984
|
-
spreadPathsToArguments: {},
|
|
985
|
-
explicitPathsToArguments: {
|
|
986
|
-
dataQuery: "$[0].dataQuery",
|
|
987
|
-
omitTotalCount: "$[0].omitTotalCount",
|
|
988
|
-
includeReferencedItems: "$[0].includeReferencedItems",
|
|
989
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
990
|
-
},
|
|
991
|
-
singleArgumentUnchanged: false
|
|
992
|
-
},
|
|
993
|
-
["options"]
|
|
994
|
-
);
|
|
995
|
-
sideEffects?.onError?.(err);
|
|
996
|
-
throw transformedError;
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
async function aggregate2(options) {
|
|
1000
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1001
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1002
|
-
paging: options?.paging,
|
|
1003
|
-
initialFilter: options?.initialFilter,
|
|
1004
|
-
aggregation: options?.aggregation,
|
|
1005
|
-
finalFilter: options?.finalFilter,
|
|
1006
|
-
sort: options?.sort,
|
|
1007
|
-
dataCollectionId: options?.dataCollectionId
|
|
1008
|
-
});
|
|
1009
|
-
const reqOpts = aggregate(payload);
|
|
1010
|
-
sideEffects?.onSiteCall?.();
|
|
1011
|
-
try {
|
|
1012
|
-
const result = await httpClient.request(reqOpts);
|
|
1013
|
-
sideEffects?.onSuccess?.(result);
|
|
1014
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1015
|
-
} catch (err) {
|
|
1016
|
-
const transformedError = sdkTransformError(
|
|
1017
|
-
err,
|
|
1018
|
-
{
|
|
1019
|
-
spreadPathsToArguments: {},
|
|
1020
|
-
explicitPathsToArguments: {
|
|
1021
|
-
paging: "$[0].paging",
|
|
1022
|
-
initialFilter: "$[0].initialFilter",
|
|
1023
|
-
aggregation: "$[0].aggregation",
|
|
1024
|
-
finalFilter: "$[0].finalFilter",
|
|
1025
|
-
sort: "$[0].sort",
|
|
1026
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
1027
|
-
},
|
|
1028
|
-
singleArgumentUnchanged: false
|
|
1029
|
-
},
|
|
1030
|
-
["options"]
|
|
1031
|
-
);
|
|
1032
|
-
sideEffects?.onError?.(err);
|
|
1033
|
-
throw transformedError;
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
async function count2(options) {
|
|
1037
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1038
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1039
|
-
filter: options?.filter,
|
|
1040
|
-
dataCollectionId: options?.dataCollectionId
|
|
1041
|
-
});
|
|
1042
|
-
const reqOpts = count(payload);
|
|
1043
|
-
sideEffects?.onSiteCall?.();
|
|
1044
|
-
try {
|
|
1045
|
-
const result = await httpClient.request(reqOpts);
|
|
1046
|
-
sideEffects?.onSuccess?.(result);
|
|
1047
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1048
|
-
} catch (err) {
|
|
1049
|
-
const transformedError = sdkTransformError(
|
|
1050
|
-
err,
|
|
1051
|
-
{
|
|
1052
|
-
spreadPathsToArguments: {},
|
|
1053
|
-
explicitPathsToArguments: {
|
|
1054
|
-
filter: "$[0].filter",
|
|
1055
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
1056
|
-
},
|
|
1057
|
-
singleArgumentUnchanged: false
|
|
1058
|
-
},
|
|
1059
|
-
["options"]
|
|
1060
|
-
);
|
|
1061
|
-
sideEffects?.onError?.(err);
|
|
1062
|
-
throw transformedError;
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
async function distinct2(options) {
|
|
1066
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1067
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1068
|
-
dataQuery: options?.dataQuery,
|
|
1069
|
-
propertyName: options?.propertyName,
|
|
1070
|
-
dataCollectionId: options?.dataCollectionId,
|
|
1071
|
-
omitTotalCount: options?.omitTotalCount
|
|
1072
|
-
});
|
|
1073
|
-
const reqOpts = distinct(payload);
|
|
1074
|
-
sideEffects?.onSiteCall?.();
|
|
1075
|
-
try {
|
|
1076
|
-
const result = await httpClient.request(reqOpts);
|
|
1077
|
-
sideEffects?.onSuccess?.(result);
|
|
1078
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1079
|
-
} catch (err) {
|
|
1080
|
-
const transformedError = sdkTransformError(
|
|
1081
|
-
err,
|
|
1082
|
-
{
|
|
1083
|
-
spreadPathsToArguments: {},
|
|
1084
|
-
explicitPathsToArguments: {
|
|
1085
|
-
dataQuery: "$[0].dataQuery",
|
|
1086
|
-
propertyName: "$[0].propertyName",
|
|
1087
|
-
dataCollectionId: "$[0].dataCollectionId",
|
|
1088
|
-
omitTotalCount: "$[0].omitTotalCount"
|
|
1089
|
-
},
|
|
1090
|
-
singleArgumentUnchanged: false
|
|
1091
|
-
},
|
|
1092
|
-
["options"]
|
|
1093
|
-
);
|
|
1094
|
-
sideEffects?.onError?.(err);
|
|
1095
|
-
throw transformedError;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
async function bulkInsert2(options) {
|
|
1099
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1100
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1101
|
-
items: options?.items,
|
|
1102
|
-
dataCollectionId: options?.dataCollectionId
|
|
1103
|
-
});
|
|
1104
|
-
const reqOpts = bulkInsert(payload);
|
|
1105
|
-
sideEffects?.onSiteCall?.();
|
|
1106
|
-
try {
|
|
1107
|
-
const result = await httpClient.request(reqOpts);
|
|
1108
|
-
sideEffects?.onSuccess?.(result);
|
|
1109
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1110
|
-
} catch (err) {
|
|
1111
|
-
const transformedError = sdkTransformError(
|
|
1112
|
-
err,
|
|
1113
|
-
{
|
|
1114
|
-
spreadPathsToArguments: {},
|
|
1115
|
-
explicitPathsToArguments: {
|
|
1116
|
-
items: "$[0].items",
|
|
1117
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
1118
|
-
},
|
|
1119
|
-
singleArgumentUnchanged: false
|
|
1120
|
-
},
|
|
1121
|
-
["options"]
|
|
1122
|
-
);
|
|
1123
|
-
sideEffects?.onError?.(err);
|
|
1124
|
-
throw transformedError;
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
async function bulkSave2(options) {
|
|
1128
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1129
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1130
|
-
items: options?.items,
|
|
1131
|
-
dataCollectionId: options?.dataCollectionId
|
|
1132
|
-
});
|
|
1133
|
-
const reqOpts = bulkSave(payload);
|
|
1134
|
-
sideEffects?.onSiteCall?.();
|
|
1135
|
-
try {
|
|
1136
|
-
const result = await httpClient.request(reqOpts);
|
|
1137
|
-
sideEffects?.onSuccess?.(result);
|
|
1138
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1139
|
-
} catch (err) {
|
|
1140
|
-
const transformedError = sdkTransformError(
|
|
1141
|
-
err,
|
|
1142
|
-
{
|
|
1143
|
-
spreadPathsToArguments: {},
|
|
1144
|
-
explicitPathsToArguments: {
|
|
1145
|
-
items: "$[0].items",
|
|
1146
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
1147
|
-
},
|
|
1148
|
-
singleArgumentUnchanged: false
|
|
1149
|
-
},
|
|
1150
|
-
["options"]
|
|
1151
|
-
);
|
|
1152
|
-
sideEffects?.onError?.(err);
|
|
1153
|
-
throw transformedError;
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
async function bulkUpdate2(options) {
|
|
1157
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1158
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1159
|
-
items: options?.items,
|
|
1160
|
-
dataCollectionId: options?.dataCollectionId
|
|
1161
|
-
});
|
|
1162
|
-
const reqOpts = bulkUpdate(payload);
|
|
1163
|
-
sideEffects?.onSiteCall?.();
|
|
1164
|
-
try {
|
|
1165
|
-
const result = await httpClient.request(reqOpts);
|
|
1166
|
-
sideEffects?.onSuccess?.(result);
|
|
1167
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1168
|
-
} catch (err) {
|
|
1169
|
-
const transformedError = sdkTransformError(
|
|
1170
|
-
err,
|
|
1171
|
-
{
|
|
1172
|
-
spreadPathsToArguments: {},
|
|
1173
|
-
explicitPathsToArguments: {
|
|
1174
|
-
items: "$[0].items",
|
|
1175
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
1176
|
-
},
|
|
1177
|
-
singleArgumentUnchanged: false
|
|
1178
|
-
},
|
|
1179
|
-
["options"]
|
|
1180
|
-
);
|
|
1181
|
-
sideEffects?.onError?.(err);
|
|
1182
|
-
throw transformedError;
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
async function bulkRemove2(options) {
|
|
1186
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1187
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1188
|
-
entries: options?.entries,
|
|
1189
|
-
dataCollectionId: options?.dataCollectionId
|
|
1190
|
-
});
|
|
1191
|
-
const reqOpts = bulkRemove(payload);
|
|
1192
|
-
sideEffects?.onSiteCall?.();
|
|
1193
|
-
try {
|
|
1194
|
-
const result = await httpClient.request(reqOpts);
|
|
1195
|
-
sideEffects?.onSuccess?.(result);
|
|
1196
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1197
|
-
} catch (err) {
|
|
1198
|
-
const transformedError = sdkTransformError(
|
|
1199
|
-
err,
|
|
1200
|
-
{
|
|
1201
|
-
spreadPathsToArguments: {},
|
|
1202
|
-
explicitPathsToArguments: {
|
|
1203
|
-
entries: "$[0].entries",
|
|
1204
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
1205
|
-
},
|
|
1206
|
-
singleArgumentUnchanged: false
|
|
1207
|
-
},
|
|
1208
|
-
["options"]
|
|
1209
|
-
);
|
|
1210
|
-
sideEffects?.onError?.(err);
|
|
1211
|
-
throw transformedError;
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
async function queryReferenced2(options) {
|
|
1215
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1216
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1217
|
-
referringItemId: options?.referringItemId,
|
|
1218
|
-
propertyName: options?.propertyName,
|
|
1219
|
-
paging: options?.paging,
|
|
1220
|
-
dataCollectionId: options?.dataCollectionId,
|
|
1221
|
-
omitTotalCount: options?.omitTotalCount
|
|
1222
|
-
});
|
|
1223
|
-
const reqOpts = queryReferenced(payload);
|
|
1224
|
-
sideEffects?.onSiteCall?.();
|
|
1225
|
-
try {
|
|
1226
|
-
const result = await httpClient.request(reqOpts);
|
|
1227
|
-
sideEffects?.onSuccess?.(result);
|
|
1228
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1229
|
-
} catch (err) {
|
|
1230
|
-
const transformedError = sdkTransformError(
|
|
1231
|
-
err,
|
|
1232
|
-
{
|
|
1233
|
-
spreadPathsToArguments: {},
|
|
1234
|
-
explicitPathsToArguments: {
|
|
1235
|
-
referringItemId: "$[0].referringItemId",
|
|
1236
|
-
propertyName: "$[0].propertyName",
|
|
1237
|
-
paging: "$[0].paging",
|
|
1238
|
-
dataCollectionId: "$[0].dataCollectionId",
|
|
1239
|
-
omitTotalCount: "$[0].omitTotalCount"
|
|
1240
|
-
},
|
|
1241
|
-
singleArgumentUnchanged: false
|
|
1242
|
-
},
|
|
1243
|
-
["options"]
|
|
1244
|
-
);
|
|
1245
|
-
sideEffects?.onError?.(err);
|
|
1246
|
-
throw transformedError;
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
async function bulkInsertReferences2(options) {
|
|
1250
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1251
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1252
|
-
references: options?.references,
|
|
1253
|
-
dataCollectionId: options?.dataCollectionId
|
|
1254
|
-
});
|
|
1255
|
-
const reqOpts = bulkInsertReferences(payload);
|
|
1256
|
-
sideEffects?.onSiteCall?.();
|
|
1257
|
-
try {
|
|
1258
|
-
const result = await httpClient.request(reqOpts);
|
|
1259
|
-
sideEffects?.onSuccess?.(result);
|
|
1260
|
-
} catch (err) {
|
|
1261
|
-
const transformedError = sdkTransformError(
|
|
1262
|
-
err,
|
|
1263
|
-
{
|
|
1264
|
-
spreadPathsToArguments: {},
|
|
1265
|
-
explicitPathsToArguments: {
|
|
1266
|
-
references: "$[0].references",
|
|
1267
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
1268
|
-
},
|
|
1269
|
-
singleArgumentUnchanged: false
|
|
1270
|
-
},
|
|
1271
|
-
["options"]
|
|
1272
|
-
);
|
|
1273
|
-
sideEffects?.onError?.(err);
|
|
1274
|
-
throw transformedError;
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
async function bulkReplaceReferences2(options) {
|
|
1278
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1279
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1280
|
-
propertyName: options?.propertyName,
|
|
1281
|
-
referringItemId: options?.referringItemId,
|
|
1282
|
-
newReferencedItemIds: options?.newReferencedItemIds,
|
|
1283
|
-
dataCollectionId: options?.dataCollectionId
|
|
1284
|
-
});
|
|
1285
|
-
const reqOpts = bulkReplaceReferences(payload);
|
|
1286
|
-
sideEffects?.onSiteCall?.();
|
|
1287
|
-
try {
|
|
1288
|
-
const result = await httpClient.request(reqOpts);
|
|
1289
|
-
sideEffects?.onSuccess?.(result);
|
|
1290
|
-
} catch (err) {
|
|
1291
|
-
const transformedError = sdkTransformError(
|
|
1292
|
-
err,
|
|
1293
|
-
{
|
|
1294
|
-
spreadPathsToArguments: {},
|
|
1295
|
-
explicitPathsToArguments: {
|
|
1296
|
-
propertyName: "$[0].propertyName",
|
|
1297
|
-
referringItemId: "$[0].referringItemId",
|
|
1298
|
-
newReferencedItemIds: "$[0].newReferencedItemIds",
|
|
1299
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
1300
|
-
},
|
|
1301
|
-
singleArgumentUnchanged: false
|
|
1302
|
-
},
|
|
1303
|
-
["options"]
|
|
1304
|
-
);
|
|
1305
|
-
sideEffects?.onError?.(err);
|
|
1306
|
-
throw transformedError;
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
async function bulkRemoveReferences2(options) {
|
|
1310
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1311
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1312
|
-
references: options?.references,
|
|
1313
|
-
dataCollectionId: options?.dataCollectionId
|
|
1314
|
-
});
|
|
1315
|
-
const reqOpts = bulkRemoveReferences(payload);
|
|
1316
|
-
sideEffects?.onSiteCall?.();
|
|
1317
|
-
try {
|
|
1318
|
-
const result = await httpClient.request(reqOpts);
|
|
1319
|
-
sideEffects?.onSuccess?.(result);
|
|
1320
|
-
} catch (err) {
|
|
1321
|
-
const transformedError = sdkTransformError(
|
|
1322
|
-
err,
|
|
1323
|
-
{
|
|
1324
|
-
spreadPathsToArguments: {},
|
|
1325
|
-
explicitPathsToArguments: {
|
|
1326
|
-
references: "$[0].references",
|
|
1327
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
1328
|
-
},
|
|
1329
|
-
singleArgumentUnchanged: false
|
|
1330
|
-
},
|
|
1331
|
-
["options"]
|
|
1332
|
-
);
|
|
1333
|
-
sideEffects?.onError?.(err);
|
|
1334
|
-
throw transformedError;
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
async function isReferenced2(options) {
|
|
1338
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1339
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1340
|
-
propertyName: options?.propertyName,
|
|
1341
|
-
referringItemId: options?.referringItemId,
|
|
1342
|
-
referencedItemId: options?.referencedItemId,
|
|
1343
|
-
dataCollectionId: options?.dataCollectionId
|
|
1344
|
-
});
|
|
1345
|
-
const reqOpts = isReferenced(payload);
|
|
1346
|
-
sideEffects?.onSiteCall?.();
|
|
1347
|
-
try {
|
|
1348
|
-
const result = await httpClient.request(reqOpts);
|
|
1349
|
-
sideEffects?.onSuccess?.(result);
|
|
1350
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1351
|
-
} catch (err) {
|
|
1352
|
-
const transformedError = sdkTransformError(
|
|
1353
|
-
err,
|
|
1354
|
-
{
|
|
1355
|
-
spreadPathsToArguments: {},
|
|
1356
|
-
explicitPathsToArguments: {
|
|
1357
|
-
propertyName: "$[0].propertyName",
|
|
1358
|
-
referringItemId: "$[0].referringItemId",
|
|
1359
|
-
referencedItemId: "$[0].referencedItemId",
|
|
1360
|
-
dataCollectionId: "$[0].dataCollectionId"
|
|
1361
|
-
},
|
|
1362
|
-
singleArgumentUnchanged: false
|
|
1363
|
-
},
|
|
1364
|
-
["options"]
|
|
1365
|
-
);
|
|
1366
|
-
sideEffects?.onError?.(err);
|
|
1367
|
-
throw transformedError;
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
// src/data-v1-data-service-data.public.ts
|
|
1372
|
-
function insert3(httpClient) {
|
|
1373
|
-
return (options) => insert2(
|
|
1374
|
-
options,
|
|
1375
|
-
// @ts-ignore
|
|
1376
|
-
{ httpClient }
|
|
1377
|
-
);
|
|
1378
|
-
}
|
|
1379
|
-
function update3(httpClient) {
|
|
1380
|
-
return (options) => update2(
|
|
1381
|
-
options,
|
|
1382
|
-
// @ts-ignore
|
|
1383
|
-
{ httpClient }
|
|
1384
|
-
);
|
|
1385
|
-
}
|
|
1386
|
-
function save3(httpClient) {
|
|
1387
|
-
return (options) => save2(
|
|
1388
|
-
options,
|
|
1389
|
-
// @ts-ignore
|
|
1390
|
-
{ httpClient }
|
|
1391
|
-
);
|
|
1392
|
-
}
|
|
1393
|
-
function get3(httpClient) {
|
|
1394
|
-
return (itemId, options) => get2(
|
|
1395
|
-
itemId,
|
|
1396
|
-
options,
|
|
1397
|
-
// @ts-ignore
|
|
1398
|
-
{ httpClient }
|
|
1399
|
-
);
|
|
1400
|
-
}
|
|
1401
|
-
function remove3(httpClient) {
|
|
1402
|
-
return (itemId, options) => remove2(
|
|
1403
|
-
itemId,
|
|
1404
|
-
options,
|
|
1405
|
-
// @ts-ignore
|
|
1406
|
-
{ httpClient }
|
|
1407
|
-
);
|
|
1408
|
-
}
|
|
1409
|
-
function truncate3(httpClient) {
|
|
1410
|
-
return (options) => truncate2(
|
|
1411
|
-
options,
|
|
1412
|
-
// @ts-ignore
|
|
1413
|
-
{ httpClient }
|
|
1414
|
-
);
|
|
1415
|
-
}
|
|
1416
|
-
function query3(httpClient) {
|
|
1417
|
-
return (options) => query2(
|
|
1418
|
-
options,
|
|
1419
|
-
// @ts-ignore
|
|
1420
|
-
{ httpClient }
|
|
1421
|
-
);
|
|
1422
|
-
}
|
|
1423
|
-
function aggregate3(httpClient) {
|
|
1424
|
-
return (options) => aggregate2(
|
|
1425
|
-
options,
|
|
1426
|
-
// @ts-ignore
|
|
1427
|
-
{ httpClient }
|
|
1428
|
-
);
|
|
1429
|
-
}
|
|
1430
|
-
function count3(httpClient) {
|
|
1431
|
-
return (options) => count2(
|
|
1432
|
-
options,
|
|
1433
|
-
// @ts-ignore
|
|
1434
|
-
{ httpClient }
|
|
1435
|
-
);
|
|
1436
|
-
}
|
|
1437
|
-
function distinct3(httpClient) {
|
|
1438
|
-
return (options) => distinct2(
|
|
1439
|
-
options,
|
|
1440
|
-
// @ts-ignore
|
|
1441
|
-
{ httpClient }
|
|
1442
|
-
);
|
|
1443
|
-
}
|
|
1444
|
-
function bulkInsert3(httpClient) {
|
|
1445
|
-
return (options) => bulkInsert2(
|
|
1446
|
-
options,
|
|
1447
|
-
// @ts-ignore
|
|
1448
|
-
{ httpClient }
|
|
1449
|
-
);
|
|
1450
|
-
}
|
|
1451
|
-
function bulkSave3(httpClient) {
|
|
1452
|
-
return (options) => bulkSave2(
|
|
1453
|
-
options,
|
|
1454
|
-
// @ts-ignore
|
|
1455
|
-
{ httpClient }
|
|
1456
|
-
);
|
|
1457
|
-
}
|
|
1458
|
-
function bulkUpdate3(httpClient) {
|
|
1459
|
-
return (options) => bulkUpdate2(
|
|
1460
|
-
options,
|
|
1461
|
-
// @ts-ignore
|
|
1462
|
-
{ httpClient }
|
|
1463
|
-
);
|
|
1464
|
-
}
|
|
1465
|
-
function bulkRemove3(httpClient) {
|
|
1466
|
-
return (options) => bulkRemove2(
|
|
1467
|
-
options,
|
|
1468
|
-
// @ts-ignore
|
|
1469
|
-
{ httpClient }
|
|
1470
|
-
);
|
|
1471
|
-
}
|
|
1472
|
-
function queryReferenced3(httpClient) {
|
|
1473
|
-
return (options) => queryReferenced2(
|
|
1474
|
-
options,
|
|
1475
|
-
// @ts-ignore
|
|
1476
|
-
{ httpClient }
|
|
1477
|
-
);
|
|
1478
|
-
}
|
|
1479
|
-
function bulkInsertReferences3(httpClient) {
|
|
1480
|
-
return (options) => bulkInsertReferences2(
|
|
1481
|
-
options,
|
|
1482
|
-
// @ts-ignore
|
|
1483
|
-
{ httpClient }
|
|
1484
|
-
);
|
|
1485
|
-
}
|
|
1486
|
-
function bulkReplaceReferences3(httpClient) {
|
|
1487
|
-
return (options) => bulkReplaceReferences2(
|
|
1488
|
-
options,
|
|
1489
|
-
// @ts-ignore
|
|
1490
|
-
{ httpClient }
|
|
1491
|
-
);
|
|
1492
|
-
}
|
|
1493
|
-
function bulkRemoveReferences3(httpClient) {
|
|
1494
|
-
return (options) => bulkRemoveReferences2(
|
|
1495
|
-
options,
|
|
1496
|
-
// @ts-ignore
|
|
1497
|
-
{ httpClient }
|
|
1498
|
-
);
|
|
1499
|
-
}
|
|
1500
|
-
function isReferenced3(httpClient) {
|
|
1501
|
-
return (options) => isReferenced2(
|
|
1502
|
-
options,
|
|
1503
|
-
// @ts-ignore
|
|
1504
|
-
{ httpClient }
|
|
1505
|
-
);
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
// src/data-v1-data-service-data.context.ts
|
|
1509
|
-
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
1510
|
-
var insert4 = /* @__PURE__ */ createRESTModule(insert3);
|
|
1511
|
-
var update4 = /* @__PURE__ */ createRESTModule(update3);
|
|
1512
|
-
var save4 = /* @__PURE__ */ createRESTModule(save3);
|
|
1513
|
-
var get4 = /* @__PURE__ */ createRESTModule(get3);
|
|
1514
|
-
var remove4 = /* @__PURE__ */ createRESTModule(remove3);
|
|
1515
|
-
var truncate4 = /* @__PURE__ */ createRESTModule(truncate3);
|
|
1516
|
-
var query4 = /* @__PURE__ */ createRESTModule(query3);
|
|
1517
|
-
var aggregate4 = /* @__PURE__ */ createRESTModule(aggregate3);
|
|
1518
|
-
var count4 = /* @__PURE__ */ createRESTModule(count3);
|
|
1519
|
-
var distinct4 = /* @__PURE__ */ createRESTModule(distinct3);
|
|
1520
|
-
var bulkInsert4 = /* @__PURE__ */ createRESTModule(bulkInsert3);
|
|
1521
|
-
var bulkSave4 = /* @__PURE__ */ createRESTModule(bulkSave3);
|
|
1522
|
-
var bulkUpdate4 = /* @__PURE__ */ createRESTModule(bulkUpdate3);
|
|
1523
|
-
var bulkRemove4 = /* @__PURE__ */ createRESTModule(bulkRemove3);
|
|
1524
|
-
var queryReferenced4 = /* @__PURE__ */ createRESTModule(queryReferenced3);
|
|
1525
|
-
var bulkInsertReferences4 = /* @__PURE__ */ createRESTModule(bulkInsertReferences3);
|
|
1526
|
-
var bulkReplaceReferences4 = /* @__PURE__ */ createRESTModule(bulkReplaceReferences3);
|
|
1527
|
-
var bulkRemoveReferences4 = /* @__PURE__ */ createRESTModule(bulkRemoveReferences3);
|
|
1528
|
-
var isReferenced4 = /* @__PURE__ */ createRESTModule(isReferenced3);
|
|
1529
|
-
export {
|
|
1530
|
-
Order,
|
|
1531
|
-
Segment,
|
|
1532
|
-
SortOrder,
|
|
1533
|
-
aggregate4 as aggregate,
|
|
1534
|
-
bulkInsert4 as bulkInsert,
|
|
1535
|
-
bulkInsertReferences4 as bulkInsertReferences,
|
|
1536
|
-
bulkRemove4 as bulkRemove,
|
|
1537
|
-
bulkRemoveReferences4 as bulkRemoveReferences,
|
|
1538
|
-
bulkReplaceReferences4 as bulkReplaceReferences,
|
|
1539
|
-
bulkSave4 as bulkSave,
|
|
1540
|
-
bulkUpdate4 as bulkUpdate,
|
|
1541
|
-
count4 as count,
|
|
1542
|
-
distinct4 as distinct,
|
|
1543
|
-
get4 as get,
|
|
1544
|
-
insert4 as insert,
|
|
1545
|
-
isReferenced4 as isReferenced,
|
|
1546
|
-
query4 as query,
|
|
1547
|
-
queryReferenced4 as queryReferenced,
|
|
1548
|
-
remove4 as remove,
|
|
1549
|
-
save4 as save,
|
|
1550
|
-
truncate4 as truncate,
|
|
1551
|
-
update4 as update
|
|
1552
|
-
};
|
|
1553
|
-
//# sourceMappingURL=index.mjs.map
|