@wix/auto_sdk_data-backend-public-sdk-poc_data 1.0.32 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +4 -4
  2. package/build/cjs/index.js +6 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/{data-v1-data-service-data.universal-DwJ77xKF.d.ts → index.typings.d.ts} +17 -1
  5. package/build/cjs/index.typings.js +1354 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +2 -1
  8. package/build/cjs/meta.js +6 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +4 -4
  11. package/build/es/index.mjs +6 -2
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/{data-v1-data-service-data.universal-DwJ77xKF.d.mts → index.typings.d.mts} +17 -1
  14. package/build/es/index.typings.mjs +1309 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +2 -1
  17. package/build/es/meta.mjs +6 -2
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +22 -22
  20. package/build/internal/cjs/index.js +6 -2
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/{data-v1-data-service-data.universal-B0E_2MN6.d.ts → index.typings.d.ts} +323 -1
  23. package/build/internal/cjs/index.typings.js +1354 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -0
  25. package/build/internal/cjs/meta.d.ts +2 -1
  26. package/build/internal/cjs/meta.js +6 -2
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +22 -22
  29. package/build/internal/es/index.mjs +6 -2
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/{data-v1-data-service-data.universal-B0E_2MN6.d.mts → index.typings.d.mts} +323 -1
  32. package/build/internal/es/index.typings.mjs +1309 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/internal/es/meta.d.mts +2 -1
  35. package/build/internal/es/meta.mjs +6 -2
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +5 -4
@@ -0,0 +1,1309 @@
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
+ "www.wixgateway.com": [
318
+ {
319
+ srcPath: "/wix-data/v1/items",
320
+ destPath: "/v1/items"
321
+ },
322
+ {
323
+ srcPath: "/wix-data/v1/bulk",
324
+ destPath: "/v1/bulk"
325
+ }
326
+ ],
327
+ "*.dev.wix-code.com": [
328
+ {
329
+ srcPath: "/_api/cloud-data/v2",
330
+ destPath: "/v2"
331
+ },
332
+ {
333
+ srcPath: "/_api/cloud-data/v1/external-database-connections",
334
+ destPath: "/v1/external-database-connections"
335
+ }
336
+ ]
337
+ };
338
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
339
+ }
340
+ var PACKAGE_NAME = "@wix/auto_sdk_data-backend-public-sdk-poc_data";
341
+ function insert(payload) {
342
+ function __insert({ host }) {
343
+ const metadata = {
344
+ entityFqdn: "wix.data.v1.data_service",
345
+ method: "POST",
346
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Insert",
347
+ packageName: PACKAGE_NAME,
348
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
349
+ protoPath: "/v1/items",
350
+ data: payload,
351
+ host
352
+ }),
353
+ data: payload
354
+ };
355
+ return metadata;
356
+ }
357
+ return __insert;
358
+ }
359
+ function update(payload) {
360
+ function __update({ host }) {
361
+ const metadata = {
362
+ entityFqdn: "wix.data.v1.data_service",
363
+ method: "PUT",
364
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Update",
365
+ packageName: PACKAGE_NAME,
366
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
367
+ protoPath: "/v1/items/{itemId}",
368
+ data: payload,
369
+ host
370
+ }),
371
+ data: payload
372
+ };
373
+ return metadata;
374
+ }
375
+ return __update;
376
+ }
377
+ function save(payload) {
378
+ function __save({ host }) {
379
+ const metadata = {
380
+ entityFqdn: "wix.data.v1.data_service",
381
+ method: "POST",
382
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Save",
383
+ packageName: PACKAGE_NAME,
384
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
385
+ protoPath: "/v1/items/save",
386
+ data: payload,
387
+ host
388
+ }),
389
+ data: payload
390
+ };
391
+ return metadata;
392
+ }
393
+ return __save;
394
+ }
395
+ function get(payload) {
396
+ function __get({ host }) {
397
+ const metadata = {
398
+ entityFqdn: "wix.data.v1.data_service",
399
+ method: "GET",
400
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Get",
401
+ packageName: PACKAGE_NAME,
402
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
403
+ protoPath: "/v1/items/{itemId}",
404
+ data: payload,
405
+ host
406
+ }),
407
+ params: toURLSearchParams(payload, true)
408
+ };
409
+ return metadata;
410
+ }
411
+ return __get;
412
+ }
413
+ function remove(payload) {
414
+ function __remove({ host }) {
415
+ const metadata = {
416
+ entityFqdn: "wix.data.v1.data_service",
417
+ method: "DELETE",
418
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Remove",
419
+ packageName: PACKAGE_NAME,
420
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
421
+ protoPath: "/v1/items/{itemId}",
422
+ data: payload,
423
+ host
424
+ }),
425
+ params: toURLSearchParams(payload)
426
+ };
427
+ return metadata;
428
+ }
429
+ return __remove;
430
+ }
431
+ function truncate(payload) {
432
+ function __truncate({ host }) {
433
+ const metadata = {
434
+ entityFqdn: "wix.data.v1.data_service",
435
+ method: "POST",
436
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Truncate",
437
+ packageName: PACKAGE_NAME,
438
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
439
+ protoPath: "/v1/items/truncate",
440
+ data: payload,
441
+ host
442
+ }),
443
+ data: payload
444
+ };
445
+ return metadata;
446
+ }
447
+ return __truncate;
448
+ }
449
+ function query(payload) {
450
+ function __query({ host }) {
451
+ const metadata = {
452
+ entityFqdn: "wix.data.v1.data_service",
453
+ method: "GET",
454
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Query",
455
+ packageName: PACKAGE_NAME,
456
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
457
+ protoPath: "/v1/items/query",
458
+ data: payload,
459
+ host
460
+ }),
461
+ params: toURLSearchParams(payload, true),
462
+ fallback: [
463
+ {
464
+ method: "POST",
465
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
466
+ protoPath: "/v1/items/query",
467
+ data: payload,
468
+ host
469
+ }),
470
+ data: payload
471
+ }
472
+ ]
473
+ };
474
+ return metadata;
475
+ }
476
+ return __query;
477
+ }
478
+ function aggregate(payload) {
479
+ function __aggregate({ host }) {
480
+ const metadata = {
481
+ entityFqdn: "wix.data.v1.data_service",
482
+ method: "POST",
483
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Aggregate",
484
+ packageName: PACKAGE_NAME,
485
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
486
+ protoPath: "/v1/items/aggregate",
487
+ data: payload,
488
+ host
489
+ }),
490
+ data: payload
491
+ };
492
+ return metadata;
493
+ }
494
+ return __aggregate;
495
+ }
496
+ function count(payload) {
497
+ function __count({ host }) {
498
+ const metadata = {
499
+ entityFqdn: "wix.data.v1.data_service",
500
+ method: "POST",
501
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Count",
502
+ packageName: PACKAGE_NAME,
503
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
504
+ protoPath: "/v1/items/count",
505
+ data: payload,
506
+ host
507
+ }),
508
+ data: payload
509
+ };
510
+ return metadata;
511
+ }
512
+ return __count;
513
+ }
514
+ function distinct(payload) {
515
+ function __distinct({ host }) {
516
+ const metadata = {
517
+ entityFqdn: "wix.data.v1.data_service",
518
+ method: "POST",
519
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Distinct",
520
+ packageName: PACKAGE_NAME,
521
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
522
+ protoPath: "/v1/items/distinct",
523
+ data: payload,
524
+ host
525
+ }),
526
+ data: payload
527
+ };
528
+ return metadata;
529
+ }
530
+ return __distinct;
531
+ }
532
+ function bulkInsert(payload) {
533
+ function __bulkInsert({ host }) {
534
+ const metadata = {
535
+ entityFqdn: "wix.data.v1.data_service",
536
+ method: "POST",
537
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkInsert",
538
+ packageName: PACKAGE_NAME,
539
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
540
+ protoPath: "/v1/bulk/items/insert",
541
+ data: payload,
542
+ host
543
+ }),
544
+ data: payload
545
+ };
546
+ return metadata;
547
+ }
548
+ return __bulkInsert;
549
+ }
550
+ function bulkSave(payload) {
551
+ function __bulkSave({ host }) {
552
+ const metadata = {
553
+ entityFqdn: "wix.data.v1.data_service",
554
+ method: "POST",
555
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkSave",
556
+ packageName: PACKAGE_NAME,
557
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
558
+ protoPath: "/v1/bulk/items/save",
559
+ data: payload,
560
+ host
561
+ }),
562
+ data: payload
563
+ };
564
+ return metadata;
565
+ }
566
+ return __bulkSave;
567
+ }
568
+ function bulkUpdate(payload) {
569
+ function __bulkUpdate({ host }) {
570
+ const metadata = {
571
+ entityFqdn: "wix.data.v1.data_service",
572
+ method: "POST",
573
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkUpdate",
574
+ packageName: PACKAGE_NAME,
575
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
576
+ protoPath: "/v1/bulk/items/update",
577
+ data: payload,
578
+ host
579
+ }),
580
+ data: payload
581
+ };
582
+ return metadata;
583
+ }
584
+ return __bulkUpdate;
585
+ }
586
+ function bulkRemove(payload) {
587
+ function __bulkRemove({ host }) {
588
+ const metadata = {
589
+ entityFqdn: "wix.data.v1.data_service",
590
+ method: "POST",
591
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkRemove",
592
+ packageName: PACKAGE_NAME,
593
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
594
+ protoPath: "/v1/bulk/items/remove",
595
+ data: payload,
596
+ host
597
+ }),
598
+ data: payload
599
+ };
600
+ return metadata;
601
+ }
602
+ return __bulkRemove;
603
+ }
604
+ function queryReferenced(payload) {
605
+ function __queryReferenced({ host }) {
606
+ const metadata = {
607
+ entityFqdn: "wix.data.v1.data_service",
608
+ method: "POST",
609
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.QueryReferenced",
610
+ packageName: PACKAGE_NAME,
611
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
612
+ protoPath: "/v1/items/query-referenced",
613
+ data: payload,
614
+ host
615
+ }),
616
+ data: payload
617
+ };
618
+ return metadata;
619
+ }
620
+ return __queryReferenced;
621
+ }
622
+ function bulkInsertReferences(payload) {
623
+ function __bulkInsertReferences({ host }) {
624
+ const metadata = {
625
+ entityFqdn: "wix.data.v1.data_service",
626
+ method: "POST",
627
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkInsertReferences",
628
+ packageName: PACKAGE_NAME,
629
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
630
+ protoPath: "/v1/bulk/references/insert",
631
+ data: payload,
632
+ host
633
+ }),
634
+ data: payload
635
+ };
636
+ return metadata;
637
+ }
638
+ return __bulkInsertReferences;
639
+ }
640
+ function bulkReplaceReferences(payload) {
641
+ function __bulkReplaceReferences({ host }) {
642
+ const metadata = {
643
+ entityFqdn: "wix.data.v1.data_service",
644
+ method: "POST",
645
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkReplaceReferences",
646
+ packageName: PACKAGE_NAME,
647
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
648
+ protoPath: "/v1/bulk/references/replace",
649
+ data: payload,
650
+ host
651
+ }),
652
+ data: payload
653
+ };
654
+ return metadata;
655
+ }
656
+ return __bulkReplaceReferences;
657
+ }
658
+ function bulkRemoveReferences(payload) {
659
+ function __bulkRemoveReferences({ host }) {
660
+ const metadata = {
661
+ entityFqdn: "wix.data.v1.data_service",
662
+ method: "POST",
663
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkRemoveReferences",
664
+ packageName: PACKAGE_NAME,
665
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
666
+ protoPath: "/v1/bulk/references/remove",
667
+ data: payload,
668
+ host
669
+ }),
670
+ data: payload
671
+ };
672
+ return metadata;
673
+ }
674
+ return __bulkRemoveReferences;
675
+ }
676
+ function isReferenced(payload) {
677
+ function __isReferenced({ host }) {
678
+ const metadata = {
679
+ entityFqdn: "wix.data.v1.data_service",
680
+ method: "POST",
681
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.IsReferenced",
682
+ packageName: PACKAGE_NAME,
683
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
684
+ protoPath: "/v1/items/is-referenced",
685
+ data: payload,
686
+ host
687
+ }),
688
+ data: payload
689
+ };
690
+ return metadata;
691
+ }
692
+ return __isReferenced;
693
+ }
694
+
695
+ // src/data-v1-data-service-data.universal.ts
696
+ var Segment = /* @__PURE__ */ ((Segment2) => {
697
+ Segment2["LIVE"] = "LIVE";
698
+ Segment2["SANDBOX"] = "SANDBOX";
699
+ Segment2["TRASH_LIVE"] = "TRASH_LIVE";
700
+ return Segment2;
701
+ })(Segment || {});
702
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
703
+ SortOrder2["ASC"] = "ASC";
704
+ SortOrder2["DESC"] = "DESC";
705
+ return SortOrder2;
706
+ })(SortOrder || {});
707
+ var Order = /* @__PURE__ */ ((Order2) => {
708
+ Order2["ASC"] = "ASC";
709
+ Order2["DESC"] = "DESC";
710
+ return Order2;
711
+ })(Order || {});
712
+ async function insert2(options) {
713
+ const { httpClient, sideEffects } = arguments[1];
714
+ const payload = renameKeysFromSDKRequestToRESTRequest({
715
+ item: options?.item,
716
+ dataCollectionId: options?.dataCollectionId
717
+ });
718
+ const reqOpts = insert(payload);
719
+ sideEffects?.onSiteCall?.();
720
+ try {
721
+ const result = await httpClient.request(reqOpts);
722
+ sideEffects?.onSuccess?.(result);
723
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
724
+ } catch (err) {
725
+ const transformedError = sdkTransformError(
726
+ err,
727
+ {
728
+ spreadPathsToArguments: {},
729
+ explicitPathsToArguments: {
730
+ item: "$[0].item",
731
+ dataCollectionId: "$[0].dataCollectionId"
732
+ },
733
+ singleArgumentUnchanged: false
734
+ },
735
+ ["options"]
736
+ );
737
+ sideEffects?.onError?.(err);
738
+ throw transformedError;
739
+ }
740
+ }
741
+ async function update2(options) {
742
+ const { httpClient, sideEffects } = arguments[1];
743
+ const payload = renameKeysFromSDKRequestToRESTRequest({
744
+ item: options?.item,
745
+ dataCollectionId: options?.dataCollectionId
746
+ });
747
+ const reqOpts = update(payload);
748
+ sideEffects?.onSiteCall?.();
749
+ try {
750
+ const result = await httpClient.request(reqOpts);
751
+ sideEffects?.onSuccess?.(result);
752
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
753
+ } catch (err) {
754
+ const transformedError = sdkTransformError(
755
+ err,
756
+ {
757
+ spreadPathsToArguments: {},
758
+ explicitPathsToArguments: {
759
+ item: "$[0].item",
760
+ dataCollectionId: "$[0].dataCollectionId"
761
+ },
762
+ singleArgumentUnchanged: false
763
+ },
764
+ ["options"]
765
+ );
766
+ sideEffects?.onError?.(err);
767
+ throw transformedError;
768
+ }
769
+ }
770
+ async function save2(options) {
771
+ const { httpClient, sideEffects } = arguments[1];
772
+ const payload = renameKeysFromSDKRequestToRESTRequest({
773
+ item: options?.item,
774
+ dataCollectionId: options?.dataCollectionId
775
+ });
776
+ const reqOpts = save(payload);
777
+ sideEffects?.onSiteCall?.();
778
+ try {
779
+ const result = await httpClient.request(reqOpts);
780
+ sideEffects?.onSuccess?.(result);
781
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
782
+ } catch (err) {
783
+ const transformedError = sdkTransformError(
784
+ err,
785
+ {
786
+ spreadPathsToArguments: {},
787
+ explicitPathsToArguments: {
788
+ item: "$[0].item",
789
+ dataCollectionId: "$[0].dataCollectionId"
790
+ },
791
+ singleArgumentUnchanged: false
792
+ },
793
+ ["options"]
794
+ );
795
+ sideEffects?.onError?.(err);
796
+ throw transformedError;
797
+ }
798
+ }
799
+ async function get2(itemId, options) {
800
+ const { httpClient, sideEffects } = arguments[2];
801
+ const payload = renameKeysFromSDKRequestToRESTRequest({
802
+ itemId,
803
+ dataCollectionId: options?.dataCollectionId
804
+ });
805
+ const reqOpts = get(payload);
806
+ sideEffects?.onSiteCall?.();
807
+ try {
808
+ const result = await httpClient.request(reqOpts);
809
+ sideEffects?.onSuccess?.(result);
810
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
811
+ } catch (err) {
812
+ const transformedError = sdkTransformError(
813
+ err,
814
+ {
815
+ spreadPathsToArguments: {},
816
+ explicitPathsToArguments: {
817
+ itemId: "$[0]",
818
+ dataCollectionId: "$[1].dataCollectionId"
819
+ },
820
+ singleArgumentUnchanged: false
821
+ },
822
+ ["itemId", "options"]
823
+ );
824
+ sideEffects?.onError?.(err);
825
+ throw transformedError;
826
+ }
827
+ }
828
+ async function remove2(itemId, options) {
829
+ const { httpClient, sideEffects } = arguments[2];
830
+ const payload = renameKeysFromSDKRequestToRESTRequest({
831
+ itemId,
832
+ dataCollectionId: options?.dataCollectionId
833
+ });
834
+ const reqOpts = remove(payload);
835
+ sideEffects?.onSiteCall?.();
836
+ try {
837
+ const result = await httpClient.request(reqOpts);
838
+ sideEffects?.onSuccess?.(result);
839
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
840
+ } catch (err) {
841
+ const transformedError = sdkTransformError(
842
+ err,
843
+ {
844
+ spreadPathsToArguments: {},
845
+ explicitPathsToArguments: {
846
+ itemId: "$[0]",
847
+ dataCollectionId: "$[1].dataCollectionId"
848
+ },
849
+ singleArgumentUnchanged: false
850
+ },
851
+ ["itemId", "options"]
852
+ );
853
+ sideEffects?.onError?.(err);
854
+ throw transformedError;
855
+ }
856
+ }
857
+ async function truncate2(options) {
858
+ const { httpClient, sideEffects } = arguments[1];
859
+ const payload = renameKeysFromSDKRequestToRESTRequest({
860
+ dataCollectionId: options?.dataCollectionId
861
+ });
862
+ const reqOpts = truncate(payload);
863
+ sideEffects?.onSiteCall?.();
864
+ try {
865
+ const result = await httpClient.request(reqOpts);
866
+ sideEffects?.onSuccess?.(result);
867
+ } catch (err) {
868
+ const transformedError = sdkTransformError(
869
+ err,
870
+ {
871
+ spreadPathsToArguments: {},
872
+ explicitPathsToArguments: { dataCollectionId: "$[0].dataCollectionId" },
873
+ singleArgumentUnchanged: false
874
+ },
875
+ ["options"]
876
+ );
877
+ sideEffects?.onError?.(err);
878
+ throw transformedError;
879
+ }
880
+ }
881
+ async function query2(options) {
882
+ const { httpClient, sideEffects } = arguments[1];
883
+ const payload = renameKeysFromSDKRequestToRESTRequest({
884
+ dataQuery: options?.dataQuery,
885
+ omitTotalCount: options?.omitTotalCount,
886
+ includeReferencedItems: options?.includeReferencedItems,
887
+ dataCollectionId: options?.dataCollectionId
888
+ });
889
+ const reqOpts = query(payload);
890
+ sideEffects?.onSiteCall?.();
891
+ try {
892
+ const result = await httpClient.request(reqOpts);
893
+ sideEffects?.onSuccess?.(result);
894
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
895
+ } catch (err) {
896
+ const transformedError = sdkTransformError(
897
+ err,
898
+ {
899
+ spreadPathsToArguments: {},
900
+ explicitPathsToArguments: {
901
+ dataQuery: "$[0].dataQuery",
902
+ omitTotalCount: "$[0].omitTotalCount",
903
+ includeReferencedItems: "$[0].includeReferencedItems",
904
+ dataCollectionId: "$[0].dataCollectionId"
905
+ },
906
+ singleArgumentUnchanged: false
907
+ },
908
+ ["options"]
909
+ );
910
+ sideEffects?.onError?.(err);
911
+ throw transformedError;
912
+ }
913
+ }
914
+ async function aggregate2(options) {
915
+ const { httpClient, sideEffects } = arguments[1];
916
+ const payload = renameKeysFromSDKRequestToRESTRequest({
917
+ paging: options?.paging,
918
+ initialFilter: options?.initialFilter,
919
+ aggregation: options?.aggregation,
920
+ finalFilter: options?.finalFilter,
921
+ sort: options?.sort,
922
+ dataCollectionId: options?.dataCollectionId
923
+ });
924
+ const reqOpts = aggregate(payload);
925
+ sideEffects?.onSiteCall?.();
926
+ try {
927
+ const result = await httpClient.request(reqOpts);
928
+ sideEffects?.onSuccess?.(result);
929
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
930
+ } catch (err) {
931
+ const transformedError = sdkTransformError(
932
+ err,
933
+ {
934
+ spreadPathsToArguments: {},
935
+ explicitPathsToArguments: {
936
+ paging: "$[0].paging",
937
+ initialFilter: "$[0].initialFilter",
938
+ aggregation: "$[0].aggregation",
939
+ finalFilter: "$[0].finalFilter",
940
+ sort: "$[0].sort",
941
+ dataCollectionId: "$[0].dataCollectionId"
942
+ },
943
+ singleArgumentUnchanged: false
944
+ },
945
+ ["options"]
946
+ );
947
+ sideEffects?.onError?.(err);
948
+ throw transformedError;
949
+ }
950
+ }
951
+ async function count2(options) {
952
+ const { httpClient, sideEffects } = arguments[1];
953
+ const payload = renameKeysFromSDKRequestToRESTRequest({
954
+ filter: options?.filter,
955
+ dataCollectionId: options?.dataCollectionId
956
+ });
957
+ const reqOpts = count(payload);
958
+ sideEffects?.onSiteCall?.();
959
+ try {
960
+ const result = await httpClient.request(reqOpts);
961
+ sideEffects?.onSuccess?.(result);
962
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
963
+ } catch (err) {
964
+ const transformedError = sdkTransformError(
965
+ err,
966
+ {
967
+ spreadPathsToArguments: {},
968
+ explicitPathsToArguments: {
969
+ filter: "$[0].filter",
970
+ dataCollectionId: "$[0].dataCollectionId"
971
+ },
972
+ singleArgumentUnchanged: false
973
+ },
974
+ ["options"]
975
+ );
976
+ sideEffects?.onError?.(err);
977
+ throw transformedError;
978
+ }
979
+ }
980
+ async function distinct2(options) {
981
+ const { httpClient, sideEffects } = arguments[1];
982
+ const payload = renameKeysFromSDKRequestToRESTRequest({
983
+ dataQuery: options?.dataQuery,
984
+ propertyName: options?.propertyName,
985
+ dataCollectionId: options?.dataCollectionId,
986
+ omitTotalCount: options?.omitTotalCount
987
+ });
988
+ const reqOpts = distinct(payload);
989
+ sideEffects?.onSiteCall?.();
990
+ try {
991
+ const result = await httpClient.request(reqOpts);
992
+ sideEffects?.onSuccess?.(result);
993
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
994
+ } catch (err) {
995
+ const transformedError = sdkTransformError(
996
+ err,
997
+ {
998
+ spreadPathsToArguments: {},
999
+ explicitPathsToArguments: {
1000
+ dataQuery: "$[0].dataQuery",
1001
+ propertyName: "$[0].propertyName",
1002
+ dataCollectionId: "$[0].dataCollectionId",
1003
+ omitTotalCount: "$[0].omitTotalCount"
1004
+ },
1005
+ singleArgumentUnchanged: false
1006
+ },
1007
+ ["options"]
1008
+ );
1009
+ sideEffects?.onError?.(err);
1010
+ throw transformedError;
1011
+ }
1012
+ }
1013
+ async function bulkInsert2(options) {
1014
+ const { httpClient, sideEffects } = arguments[1];
1015
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1016
+ items: options?.items,
1017
+ dataCollectionId: options?.dataCollectionId
1018
+ });
1019
+ const reqOpts = bulkInsert(payload);
1020
+ sideEffects?.onSiteCall?.();
1021
+ try {
1022
+ const result = await httpClient.request(reqOpts);
1023
+ sideEffects?.onSuccess?.(result);
1024
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1025
+ } catch (err) {
1026
+ const transformedError = sdkTransformError(
1027
+ err,
1028
+ {
1029
+ spreadPathsToArguments: {},
1030
+ explicitPathsToArguments: {
1031
+ items: "$[0].items",
1032
+ dataCollectionId: "$[0].dataCollectionId"
1033
+ },
1034
+ singleArgumentUnchanged: false
1035
+ },
1036
+ ["options"]
1037
+ );
1038
+ sideEffects?.onError?.(err);
1039
+ throw transformedError;
1040
+ }
1041
+ }
1042
+ async function bulkSave2(options) {
1043
+ const { httpClient, sideEffects } = arguments[1];
1044
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1045
+ items: options?.items,
1046
+ dataCollectionId: options?.dataCollectionId
1047
+ });
1048
+ const reqOpts = bulkSave(payload);
1049
+ sideEffects?.onSiteCall?.();
1050
+ try {
1051
+ const result = await httpClient.request(reqOpts);
1052
+ sideEffects?.onSuccess?.(result);
1053
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1054
+ } catch (err) {
1055
+ const transformedError = sdkTransformError(
1056
+ err,
1057
+ {
1058
+ spreadPathsToArguments: {},
1059
+ explicitPathsToArguments: {
1060
+ items: "$[0].items",
1061
+ dataCollectionId: "$[0].dataCollectionId"
1062
+ },
1063
+ singleArgumentUnchanged: false
1064
+ },
1065
+ ["options"]
1066
+ );
1067
+ sideEffects?.onError?.(err);
1068
+ throw transformedError;
1069
+ }
1070
+ }
1071
+ async function bulkUpdate2(options) {
1072
+ const { httpClient, sideEffects } = arguments[1];
1073
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1074
+ items: options?.items,
1075
+ dataCollectionId: options?.dataCollectionId
1076
+ });
1077
+ const reqOpts = bulkUpdate(payload);
1078
+ sideEffects?.onSiteCall?.();
1079
+ try {
1080
+ const result = await httpClient.request(reqOpts);
1081
+ sideEffects?.onSuccess?.(result);
1082
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1083
+ } catch (err) {
1084
+ const transformedError = sdkTransformError(
1085
+ err,
1086
+ {
1087
+ spreadPathsToArguments: {},
1088
+ explicitPathsToArguments: {
1089
+ items: "$[0].items",
1090
+ dataCollectionId: "$[0].dataCollectionId"
1091
+ },
1092
+ singleArgumentUnchanged: false
1093
+ },
1094
+ ["options"]
1095
+ );
1096
+ sideEffects?.onError?.(err);
1097
+ throw transformedError;
1098
+ }
1099
+ }
1100
+ async function bulkRemove2(options) {
1101
+ const { httpClient, sideEffects } = arguments[1];
1102
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1103
+ entries: options?.entries,
1104
+ dataCollectionId: options?.dataCollectionId
1105
+ });
1106
+ const reqOpts = bulkRemove(payload);
1107
+ sideEffects?.onSiteCall?.();
1108
+ try {
1109
+ const result = await httpClient.request(reqOpts);
1110
+ sideEffects?.onSuccess?.(result);
1111
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1112
+ } catch (err) {
1113
+ const transformedError = sdkTransformError(
1114
+ err,
1115
+ {
1116
+ spreadPathsToArguments: {},
1117
+ explicitPathsToArguments: {
1118
+ entries: "$[0].entries",
1119
+ dataCollectionId: "$[0].dataCollectionId"
1120
+ },
1121
+ singleArgumentUnchanged: false
1122
+ },
1123
+ ["options"]
1124
+ );
1125
+ sideEffects?.onError?.(err);
1126
+ throw transformedError;
1127
+ }
1128
+ }
1129
+ async function queryReferenced2(options) {
1130
+ const { httpClient, sideEffects } = arguments[1];
1131
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1132
+ referringItemId: options?.referringItemId,
1133
+ propertyName: options?.propertyName,
1134
+ paging: options?.paging,
1135
+ dataCollectionId: options?.dataCollectionId,
1136
+ omitTotalCount: options?.omitTotalCount
1137
+ });
1138
+ const reqOpts = queryReferenced(payload);
1139
+ sideEffects?.onSiteCall?.();
1140
+ try {
1141
+ const result = await httpClient.request(reqOpts);
1142
+ sideEffects?.onSuccess?.(result);
1143
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1144
+ } catch (err) {
1145
+ const transformedError = sdkTransformError(
1146
+ err,
1147
+ {
1148
+ spreadPathsToArguments: {},
1149
+ explicitPathsToArguments: {
1150
+ referringItemId: "$[0].referringItemId",
1151
+ propertyName: "$[0].propertyName",
1152
+ paging: "$[0].paging",
1153
+ dataCollectionId: "$[0].dataCollectionId",
1154
+ omitTotalCount: "$[0].omitTotalCount"
1155
+ },
1156
+ singleArgumentUnchanged: false
1157
+ },
1158
+ ["options"]
1159
+ );
1160
+ sideEffects?.onError?.(err);
1161
+ throw transformedError;
1162
+ }
1163
+ }
1164
+ async function bulkInsertReferences2(options) {
1165
+ const { httpClient, sideEffects } = arguments[1];
1166
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1167
+ references: options?.references,
1168
+ dataCollectionId: options?.dataCollectionId
1169
+ });
1170
+ const reqOpts = bulkInsertReferences(payload);
1171
+ sideEffects?.onSiteCall?.();
1172
+ try {
1173
+ const result = await httpClient.request(reqOpts);
1174
+ sideEffects?.onSuccess?.(result);
1175
+ } catch (err) {
1176
+ const transformedError = sdkTransformError(
1177
+ err,
1178
+ {
1179
+ spreadPathsToArguments: {},
1180
+ explicitPathsToArguments: {
1181
+ references: "$[0].references",
1182
+ dataCollectionId: "$[0].dataCollectionId"
1183
+ },
1184
+ singleArgumentUnchanged: false
1185
+ },
1186
+ ["options"]
1187
+ );
1188
+ sideEffects?.onError?.(err);
1189
+ throw transformedError;
1190
+ }
1191
+ }
1192
+ async function bulkReplaceReferences2(options) {
1193
+ const { httpClient, sideEffects } = arguments[1];
1194
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1195
+ propertyName: options?.propertyName,
1196
+ referringItemId: options?.referringItemId,
1197
+ newReferencedItemIds: options?.newReferencedItemIds,
1198
+ dataCollectionId: options?.dataCollectionId
1199
+ });
1200
+ const reqOpts = bulkReplaceReferences(payload);
1201
+ sideEffects?.onSiteCall?.();
1202
+ try {
1203
+ const result = await httpClient.request(reqOpts);
1204
+ sideEffects?.onSuccess?.(result);
1205
+ } catch (err) {
1206
+ const transformedError = sdkTransformError(
1207
+ err,
1208
+ {
1209
+ spreadPathsToArguments: {},
1210
+ explicitPathsToArguments: {
1211
+ propertyName: "$[0].propertyName",
1212
+ referringItemId: "$[0].referringItemId",
1213
+ newReferencedItemIds: "$[0].newReferencedItemIds",
1214
+ dataCollectionId: "$[0].dataCollectionId"
1215
+ },
1216
+ singleArgumentUnchanged: false
1217
+ },
1218
+ ["options"]
1219
+ );
1220
+ sideEffects?.onError?.(err);
1221
+ throw transformedError;
1222
+ }
1223
+ }
1224
+ async function bulkRemoveReferences2(options) {
1225
+ const { httpClient, sideEffects } = arguments[1];
1226
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1227
+ references: options?.references,
1228
+ dataCollectionId: options?.dataCollectionId
1229
+ });
1230
+ const reqOpts = bulkRemoveReferences(payload);
1231
+ sideEffects?.onSiteCall?.();
1232
+ try {
1233
+ const result = await httpClient.request(reqOpts);
1234
+ sideEffects?.onSuccess?.(result);
1235
+ } catch (err) {
1236
+ const transformedError = sdkTransformError(
1237
+ err,
1238
+ {
1239
+ spreadPathsToArguments: {},
1240
+ explicitPathsToArguments: {
1241
+ references: "$[0].references",
1242
+ dataCollectionId: "$[0].dataCollectionId"
1243
+ },
1244
+ singleArgumentUnchanged: false
1245
+ },
1246
+ ["options"]
1247
+ );
1248
+ sideEffects?.onError?.(err);
1249
+ throw transformedError;
1250
+ }
1251
+ }
1252
+ async function isReferenced2(options) {
1253
+ const { httpClient, sideEffects } = arguments[1];
1254
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1255
+ propertyName: options?.propertyName,
1256
+ referringItemId: options?.referringItemId,
1257
+ referencedItemId: options?.referencedItemId,
1258
+ dataCollectionId: options?.dataCollectionId
1259
+ });
1260
+ const reqOpts = isReferenced(payload);
1261
+ sideEffects?.onSiteCall?.();
1262
+ try {
1263
+ const result = await httpClient.request(reqOpts);
1264
+ sideEffects?.onSuccess?.(result);
1265
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1266
+ } catch (err) {
1267
+ const transformedError = sdkTransformError(
1268
+ err,
1269
+ {
1270
+ spreadPathsToArguments: {},
1271
+ explicitPathsToArguments: {
1272
+ propertyName: "$[0].propertyName",
1273
+ referringItemId: "$[0].referringItemId",
1274
+ referencedItemId: "$[0].referencedItemId",
1275
+ dataCollectionId: "$[0].dataCollectionId"
1276
+ },
1277
+ singleArgumentUnchanged: false
1278
+ },
1279
+ ["options"]
1280
+ );
1281
+ sideEffects?.onError?.(err);
1282
+ throw transformedError;
1283
+ }
1284
+ }
1285
+ export {
1286
+ Order,
1287
+ Segment,
1288
+ SortOrder,
1289
+ aggregate2 as aggregate,
1290
+ bulkInsert2 as bulkInsert,
1291
+ bulkInsertReferences2 as bulkInsertReferences,
1292
+ bulkRemove2 as bulkRemove,
1293
+ bulkRemoveReferences2 as bulkRemoveReferences,
1294
+ bulkReplaceReferences2 as bulkReplaceReferences,
1295
+ bulkSave2 as bulkSave,
1296
+ bulkUpdate2 as bulkUpdate,
1297
+ count2 as count,
1298
+ distinct2 as distinct,
1299
+ get2 as get,
1300
+ insert2 as insert,
1301
+ isReferenced2 as isReferenced,
1302
+ query2 as query,
1303
+ queryReferenced2 as queryReferenced,
1304
+ remove2 as remove,
1305
+ save2 as save,
1306
+ truncate2 as truncate,
1307
+ update2 as update
1308
+ };
1309
+ //# sourceMappingURL=index.typings.mjs.map