@wix/auto_sdk_data-backend-public-sdk-poc_data 1.0.50 → 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.
@@ -1,1158 +0,0 @@
1
- // src/data-v1-data-service-data.http.ts
2
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
4
- function resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl(opts) {
5
- const domainToMappings = {
6
- "api._api_base_domain_": [
7
- {
8
- srcPath: "/cloud-data",
9
- destPath: ""
10
- }
11
- ],
12
- "code._base_domain_": [
13
- {
14
- srcPath: "/_api/cloud-data/v1/data-settings",
15
- destPath: "/v1/data-settings"
16
- },
17
- {
18
- srcPath: "/_api/cloud-data/v1/schemas",
19
- destPath: "/v1/schemas"
20
- },
21
- {
22
- srcPath: "/_api/cloud-data/v1/connector",
23
- destPath: "/v1/connector"
24
- },
25
- {
26
- srcPath: "/_api/data/v1/data-settings",
27
- destPath: "/v1/data-settings"
28
- },
29
- {
30
- srcPath: "/_api/data/v1/schemas",
31
- destPath: "/v1/schemas"
32
- },
33
- {
34
- srcPath: "/_api/data/v1/connector",
35
- destPath: "/v1/connector"
36
- },
37
- {
38
- srcPath: "/_api/cloud-data/v1/wix-data",
39
- destPath: "/v1/wix-data"
40
- }
41
- ],
42
- "cloud-data.wix-code.com": [
43
- {
44
- srcPath: "",
45
- destPath: ""
46
- }
47
- ],
48
- _: [
49
- {
50
- srcPath: "/_api/cloud-data",
51
- destPath: ""
52
- }
53
- ],
54
- "www._base_domain_": [
55
- {
56
- srcPath: "/_api/cloud-data",
57
- destPath: ""
58
- },
59
- {
60
- srcPath: "/_api/data",
61
- destPath: ""
62
- },
63
- {
64
- srcPath: "/_api/cloud-data",
65
- destPath: ""
66
- }
67
- ],
68
- "dev._base_domain_": [
69
- {
70
- srcPath: "/_api/cloud-data",
71
- destPath: ""
72
- }
73
- ],
74
- "bo._base_domain_": [
75
- {
76
- srcPath: "/_api/cloud-data/v1",
77
- destPath: "/v1"
78
- },
79
- {
80
- srcPath: "/_api/cloud-data/v2",
81
- destPath: "/v2"
82
- }
83
- ],
84
- "wixbo.ai": [
85
- {
86
- srcPath: "/_api/cloud-data/v1",
87
- destPath: "/v1"
88
- },
89
- {
90
- srcPath: "/_api/cloud-data/v2",
91
- destPath: "/v2"
92
- }
93
- ],
94
- "wix-bo.com": [
95
- {
96
- srcPath: "/_api/cloud-data/v1",
97
- destPath: "/v1"
98
- },
99
- {
100
- srcPath: "/_api/cloud-data/v2",
101
- destPath: "/v2"
102
- }
103
- ],
104
- "manage._base_domain_": [
105
- {
106
- srcPath: "/_api/cloud-data",
107
- destPath: ""
108
- },
109
- {
110
- srcPath: "/_api/data",
111
- destPath: ""
112
- },
113
- {
114
- srcPath: "/_api/cloud-data",
115
- destPath: ""
116
- }
117
- ],
118
- "editor._base_domain_": [
119
- {
120
- srcPath: "/_api/cloud-data/v1/schemas",
121
- destPath: "/v1/schemas"
122
- },
123
- {
124
- srcPath: "/_api/cloud-data/dbs/tasks",
125
- destPath: "/dbs/tasks"
126
- },
127
- {
128
- srcPath: "/_api/data/v1/schemas",
129
- destPath: "/v1/schemas"
130
- },
131
- {
132
- srcPath: "/_api/data/dbs/tasks",
133
- destPath: "/dbs/tasks"
134
- },
135
- {
136
- srcPath: "/_api/cloud-data/v1/wix-data",
137
- destPath: "/v1/wix-data"
138
- },
139
- {
140
- srcPath: "/_api/cloud-data/v1/data-settings",
141
- destPath: "/v1/data-settings"
142
- },
143
- {
144
- srcPath: "/_api/data/v2/indexes",
145
- destPath: "/v2/indexes"
146
- },
147
- {
148
- srcPath: "/_api/cloud-data/v1/external-database-connections",
149
- destPath: "/v1/external-database-connections"
150
- },
151
- {
152
- srcPath: "/_api/data/v1/data-collection-sharing",
153
- destPath: "/v1/data-collection-sharing"
154
- },
155
- {
156
- srcPath: "/_api/cloud-data/v2/collections",
157
- destPath: "/v2/collections"
158
- },
159
- {
160
- srcPath: "/_api/cloud-data/v2/bulk",
161
- destPath: "/v2/bulk"
162
- },
163
- {
164
- srcPath: "/_api/cloud-data/v2/items",
165
- destPath: "/v2/items"
166
- },
167
- {
168
- srcPath: "/_api/cloud-data/v2/dbs/tasks",
169
- destPath: "/v2/dbs/tasks"
170
- }
171
- ],
172
- "blocks._base_domain_": [
173
- {
174
- srcPath: "/_api/cloud-data/v1/schemas",
175
- destPath: "/v1/schemas"
176
- },
177
- {
178
- srcPath: "/_api/cloud-data/dbs/tasks",
179
- destPath: "/dbs/tasks"
180
- },
181
- {
182
- srcPath: "/_api/data/v1/schemas",
183
- destPath: "/v1/schemas"
184
- },
185
- {
186
- srcPath: "/_api/data/dbs/tasks",
187
- destPath: "/dbs/tasks"
188
- },
189
- {
190
- srcPath: "/_api/cloud-data/v1/wix-data",
191
- destPath: "/v1/wix-data"
192
- },
193
- {
194
- srcPath: "/_api/cloud-data/v1/data-settings",
195
- destPath: "/v1/data-settings"
196
- },
197
- {
198
- srcPath: "/_api/data/v2/indexes",
199
- destPath: "/v2/indexes"
200
- },
201
- {
202
- srcPath: "/_api/cloud-data/v1/external-database-connections",
203
- destPath: "/v1/external-database-connections"
204
- },
205
- {
206
- srcPath: "/_api/data/v1/data-collection-sharing",
207
- destPath: "/v1/data-collection-sharing"
208
- },
209
- {
210
- srcPath: "/_api/cloud-data/v2/collections",
211
- destPath: "/v2/collections"
212
- },
213
- {
214
- srcPath: "/_api/cloud-data/v2/bulk",
215
- destPath: "/v2/bulk"
216
- },
217
- {
218
- srcPath: "/_api/cloud-data/v2/items",
219
- destPath: "/v2/items"
220
- },
221
- {
222
- srcPath: "/_api/cloud-data/v2/dbs/tasks",
223
- destPath: "/v2/dbs/tasks"
224
- }
225
- ],
226
- "create.editorx": [
227
- {
228
- srcPath: "/_api/cloud-data/v1/schemas",
229
- destPath: "/v1/schemas"
230
- },
231
- {
232
- srcPath: "/_api/cloud-data/dbs/tasks",
233
- destPath: "/dbs/tasks"
234
- },
235
- {
236
- srcPath: "/_api/data/v1/schemas",
237
- destPath: "/v1/schemas"
238
- },
239
- {
240
- srcPath: "/_api/data/dbs/tasks",
241
- destPath: "/dbs/tasks"
242
- },
243
- {
244
- srcPath: "/_api/cloud-data/v1/wix-data",
245
- destPath: "/v1/wix-data"
246
- },
247
- {
248
- srcPath: "/_api/cloud-data/v1/data-settings",
249
- destPath: "/v1/data-settings"
250
- },
251
- {
252
- srcPath: "/_api/data/v2/indexes",
253
- destPath: "/v2/indexes"
254
- },
255
- {
256
- srcPath: "/_api/cloud-data/v1/external-database-connections",
257
- destPath: "/v1/external-database-connections"
258
- },
259
- {
260
- srcPath: "/_api/data/v1/data-collection-sharing",
261
- destPath: "/v1/data-collection-sharing"
262
- },
263
- {
264
- srcPath: "/_api/cloud-data/v2/collections",
265
- destPath: "/v2/collections"
266
- },
267
- {
268
- srcPath: "/_api/cloud-data/v2/bulk",
269
- destPath: "/v2/bulk"
270
- },
271
- {
272
- srcPath: "/_api/cloud-data/v2/items",
273
- destPath: "/v2/items"
274
- },
275
- {
276
- srcPath: "/_api/cloud-data/v2/dbs/tasks",
277
- destPath: "/v2/dbs/tasks"
278
- }
279
- ],
280
- "www.wixapis.com": [
281
- {
282
- srcPath: "/wix-data/v1/collections",
283
- destPath: "/v1/wix-data/collections"
284
- },
285
- {
286
- srcPath: "/wix-data/v1/external-database-connections",
287
- destPath: "/v1/external-database-connections"
288
- },
289
- {
290
- srcPath: "/wix-data/v2/indexes",
291
- destPath: "/v2/indexes"
292
- },
293
- {
294
- srcPath: "/wix-data/v1/items",
295
- destPath: "/v1/items"
296
- },
297
- {
298
- srcPath: "/wix-data/v1/bulk",
299
- destPath: "/v1/bulk"
300
- },
301
- {
302
- srcPath: "/wix-data/v1/external-databases",
303
- destPath: "/v1/external-databases"
304
- },
305
- {
306
- srcPath: "/wix-data/v2",
307
- destPath: "/v2"
308
- },
309
- {
310
- srcPath: "/data/v2/collections",
311
- destPath: "/v2/collections"
312
- },
313
- {
314
- srcPath: "/data/v2/items",
315
- destPath: "/v2/items"
316
- },
317
- {
318
- srcPath: "/data/v2/bulk/items",
319
- destPath: "/v2/bulk/items"
320
- },
321
- {
322
- srcPath: "/data/v2/indexes",
323
- destPath: "/v2/indexes"
324
- },
325
- {
326
- srcPath: "/data/v1/external-database-connections",
327
- destPath: "/v1/external-database-connections"
328
- },
329
- {
330
- srcPath: "/data/v1/data-collection-sharing",
331
- destPath: "/v1/data-collection-sharing"
332
- }
333
- ],
334
- "www.wixgateway.com": [
335
- {
336
- srcPath: "/wix-data/v1/items",
337
- destPath: "/v1/items"
338
- },
339
- {
340
- srcPath: "/wix-data/v1/bulk",
341
- destPath: "/v1/bulk"
342
- }
343
- ],
344
- "*.dev.wix-code.com": [
345
- {
346
- srcPath: "/_api/cloud-data/v2",
347
- destPath: "/v2"
348
- },
349
- {
350
- srcPath: "/_api/cloud-data/v1/external-database-connections",
351
- destPath: "/v1/external-database-connections"
352
- },
353
- {
354
- srcPath: "/data/v1/data-collection-sharing",
355
- destPath: "/v1/data-collection-sharing"
356
- }
357
- ]
358
- };
359
- return resolveUrl(Object.assign(opts, { domainToMappings }));
360
- }
361
- var PACKAGE_NAME = "@wix/auto_sdk_data-backend-public-sdk-poc_data";
362
- function insert(payload) {
363
- function __insert({ host }) {
364
- const metadata = {
365
- entityFqdn: "wix.data.v1.data_service",
366
- method: "POST",
367
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Insert",
368
- packageName: PACKAGE_NAME,
369
- migrationOptions: {
370
- optInTransformResponse: true
371
- },
372
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
373
- protoPath: "/v1/items",
374
- data: payload,
375
- host
376
- }),
377
- data: payload
378
- };
379
- return metadata;
380
- }
381
- return __insert;
382
- }
383
- function update(payload) {
384
- function __update({ host }) {
385
- const metadata = {
386
- entityFqdn: "wix.data.v1.data_service",
387
- method: "PUT",
388
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Update",
389
- packageName: PACKAGE_NAME,
390
- migrationOptions: {
391
- optInTransformResponse: true
392
- },
393
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
394
- protoPath: "/v1/items/{itemId}",
395
- data: payload,
396
- host
397
- }),
398
- data: payload
399
- };
400
- return metadata;
401
- }
402
- return __update;
403
- }
404
- function save(payload) {
405
- function __save({ host }) {
406
- const metadata = {
407
- entityFqdn: "wix.data.v1.data_service",
408
- method: "POST",
409
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Save",
410
- packageName: PACKAGE_NAME,
411
- migrationOptions: {
412
- optInTransformResponse: true
413
- },
414
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
415
- protoPath: "/v1/items/save",
416
- data: payload,
417
- host
418
- }),
419
- data: payload
420
- };
421
- return metadata;
422
- }
423
- return __save;
424
- }
425
- function get(payload) {
426
- function __get({ host }) {
427
- const metadata = {
428
- entityFqdn: "wix.data.v1.data_service",
429
- method: "GET",
430
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Get",
431
- packageName: PACKAGE_NAME,
432
- migrationOptions: {
433
- optInTransformResponse: true
434
- },
435
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
436
- protoPath: "/v1/items/{itemId}",
437
- data: payload,
438
- host
439
- }),
440
- params: toURLSearchParams(payload, true)
441
- };
442
- return metadata;
443
- }
444
- return __get;
445
- }
446
- function remove(payload) {
447
- function __remove({ host }) {
448
- const metadata = {
449
- entityFqdn: "wix.data.v1.data_service",
450
- method: "DELETE",
451
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Remove",
452
- packageName: PACKAGE_NAME,
453
- migrationOptions: {
454
- optInTransformResponse: true
455
- },
456
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
457
- protoPath: "/v1/items/{itemId}",
458
- data: payload,
459
- host
460
- }),
461
- params: toURLSearchParams(payload)
462
- };
463
- return metadata;
464
- }
465
- return __remove;
466
- }
467
- function truncate(payload) {
468
- function __truncate({ host }) {
469
- const metadata = {
470
- entityFqdn: "wix.data.v1.data_service",
471
- method: "POST",
472
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Truncate",
473
- packageName: PACKAGE_NAME,
474
- migrationOptions: {
475
- optInTransformResponse: true
476
- },
477
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
478
- protoPath: "/v1/items/truncate",
479
- data: payload,
480
- host
481
- }),
482
- data: payload
483
- };
484
- return metadata;
485
- }
486
- return __truncate;
487
- }
488
- function query(payload) {
489
- function __query({ host }) {
490
- const metadata = {
491
- entityFqdn: "wix.data.v1.data_service",
492
- method: "GET",
493
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Query",
494
- packageName: PACKAGE_NAME,
495
- migrationOptions: {
496
- optInTransformResponse: true
497
- },
498
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
499
- protoPath: "/v1/items/query",
500
- data: payload,
501
- host
502
- }),
503
- params: toURLSearchParams(payload, true),
504
- fallback: [
505
- {
506
- method: "POST",
507
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
508
- protoPath: "/v1/items/query",
509
- data: payload,
510
- host
511
- }),
512
- data: payload
513
- }
514
- ]
515
- };
516
- return metadata;
517
- }
518
- return __query;
519
- }
520
- function aggregate(payload) {
521
- function __aggregate({ host }) {
522
- const metadata = {
523
- entityFqdn: "wix.data.v1.data_service",
524
- method: "POST",
525
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Aggregate",
526
- packageName: PACKAGE_NAME,
527
- migrationOptions: {
528
- optInTransformResponse: true
529
- },
530
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
531
- protoPath: "/v1/items/aggregate",
532
- data: payload,
533
- host
534
- }),
535
- data: payload
536
- };
537
- return metadata;
538
- }
539
- return __aggregate;
540
- }
541
- function count(payload) {
542
- function __count({ host }) {
543
- const metadata = {
544
- entityFqdn: "wix.data.v1.data_service",
545
- method: "POST",
546
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Count",
547
- packageName: PACKAGE_NAME,
548
- migrationOptions: {
549
- optInTransformResponse: true
550
- },
551
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
552
- protoPath: "/v1/items/count",
553
- data: payload,
554
- host
555
- }),
556
- data: payload
557
- };
558
- return metadata;
559
- }
560
- return __count;
561
- }
562
- function distinct(payload) {
563
- function __distinct({ host }) {
564
- const metadata = {
565
- entityFqdn: "wix.data.v1.data_service",
566
- method: "POST",
567
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Distinct",
568
- packageName: PACKAGE_NAME,
569
- migrationOptions: {
570
- optInTransformResponse: true
571
- },
572
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
573
- protoPath: "/v1/items/distinct",
574
- data: payload,
575
- host
576
- }),
577
- data: payload
578
- };
579
- return metadata;
580
- }
581
- return __distinct;
582
- }
583
- function bulkInsert(payload) {
584
- function __bulkInsert({ host }) {
585
- const metadata = {
586
- entityFqdn: "wix.data.v1.data_service",
587
- method: "POST",
588
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkInsert",
589
- packageName: PACKAGE_NAME,
590
- migrationOptions: {
591
- optInTransformResponse: true
592
- },
593
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
594
- protoPath: "/v1/bulk/items/insert",
595
- data: payload,
596
- host
597
- }),
598
- data: payload
599
- };
600
- return metadata;
601
- }
602
- return __bulkInsert;
603
- }
604
- function bulkSave(payload) {
605
- function __bulkSave({ host }) {
606
- const metadata = {
607
- entityFqdn: "wix.data.v1.data_service",
608
- method: "POST",
609
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkSave",
610
- packageName: PACKAGE_NAME,
611
- migrationOptions: {
612
- optInTransformResponse: true
613
- },
614
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
615
- protoPath: "/v1/bulk/items/save",
616
- data: payload,
617
- host
618
- }),
619
- data: payload
620
- };
621
- return metadata;
622
- }
623
- return __bulkSave;
624
- }
625
- function bulkUpdate(payload) {
626
- function __bulkUpdate({ host }) {
627
- const metadata = {
628
- entityFqdn: "wix.data.v1.data_service",
629
- method: "POST",
630
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkUpdate",
631
- packageName: PACKAGE_NAME,
632
- migrationOptions: {
633
- optInTransformResponse: true
634
- },
635
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
636
- protoPath: "/v1/bulk/items/update",
637
- data: payload,
638
- host
639
- }),
640
- data: payload
641
- };
642
- return metadata;
643
- }
644
- return __bulkUpdate;
645
- }
646
- function bulkRemove(payload) {
647
- function __bulkRemove({ host }) {
648
- const metadata = {
649
- entityFqdn: "wix.data.v1.data_service",
650
- method: "POST",
651
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkRemove",
652
- packageName: PACKAGE_NAME,
653
- migrationOptions: {
654
- optInTransformResponse: true
655
- },
656
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
657
- protoPath: "/v1/bulk/items/remove",
658
- data: payload,
659
- host
660
- }),
661
- data: payload
662
- };
663
- return metadata;
664
- }
665
- return __bulkRemove;
666
- }
667
- function queryReferenced(payload) {
668
- function __queryReferenced({ host }) {
669
- const metadata = {
670
- entityFqdn: "wix.data.v1.data_service",
671
- method: "POST",
672
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.QueryReferenced",
673
- packageName: PACKAGE_NAME,
674
- migrationOptions: {
675
- optInTransformResponse: true
676
- },
677
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
678
- protoPath: "/v1/items/query-referenced",
679
- data: payload,
680
- host
681
- }),
682
- data: payload
683
- };
684
- return metadata;
685
- }
686
- return __queryReferenced;
687
- }
688
- function bulkInsertReferences(payload) {
689
- function __bulkInsertReferences({ host }) {
690
- const metadata = {
691
- entityFqdn: "wix.data.v1.data_service",
692
- method: "POST",
693
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkInsertReferences",
694
- packageName: PACKAGE_NAME,
695
- migrationOptions: {
696
- optInTransformResponse: true
697
- },
698
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
699
- protoPath: "/v1/bulk/references/insert",
700
- data: payload,
701
- host
702
- }),
703
- data: payload
704
- };
705
- return metadata;
706
- }
707
- return __bulkInsertReferences;
708
- }
709
- function bulkReplaceReferences(payload) {
710
- function __bulkReplaceReferences({ host }) {
711
- const metadata = {
712
- entityFqdn: "wix.data.v1.data_service",
713
- method: "POST",
714
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkReplaceReferences",
715
- packageName: PACKAGE_NAME,
716
- migrationOptions: {
717
- optInTransformResponse: true
718
- },
719
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
720
- protoPath: "/v1/bulk/references/replace",
721
- data: payload,
722
- host
723
- }),
724
- data: payload
725
- };
726
- return metadata;
727
- }
728
- return __bulkReplaceReferences;
729
- }
730
- function bulkRemoveReferences(payload) {
731
- function __bulkRemoveReferences({ host }) {
732
- const metadata = {
733
- entityFqdn: "wix.data.v1.data_service",
734
- method: "POST",
735
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkRemoveReferences",
736
- packageName: PACKAGE_NAME,
737
- migrationOptions: {
738
- optInTransformResponse: true
739
- },
740
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
741
- protoPath: "/v1/bulk/references/remove",
742
- data: payload,
743
- host
744
- }),
745
- data: payload
746
- };
747
- return metadata;
748
- }
749
- return __bulkRemoveReferences;
750
- }
751
- function isReferenced(payload) {
752
- function __isReferenced({ host }) {
753
- const metadata = {
754
- entityFqdn: "wix.data.v1.data_service",
755
- method: "POST",
756
- methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.IsReferenced",
757
- packageName: PACKAGE_NAME,
758
- migrationOptions: {
759
- optInTransformResponse: true
760
- },
761
- url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
762
- protoPath: "/v1/items/is-referenced",
763
- data: payload,
764
- host
765
- }),
766
- data: payload
767
- };
768
- return metadata;
769
- }
770
- return __isReferenced;
771
- }
772
-
773
- // src/data-v1-data-service-data.types.ts
774
- var Segment = /* @__PURE__ */ ((Segment2) => {
775
- Segment2["LIVE"] = "LIVE";
776
- Segment2["SANDBOX"] = "SANDBOX";
777
- Segment2["TRASH_LIVE"] = "TRASH_LIVE";
778
- return Segment2;
779
- })(Segment || {});
780
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
781
- SortOrder2["ASC"] = "ASC";
782
- SortOrder2["DESC"] = "DESC";
783
- return SortOrder2;
784
- })(SortOrder || {});
785
- var Order = /* @__PURE__ */ ((Order2) => {
786
- Order2["ASC"] = "ASC";
787
- Order2["DESC"] = "DESC";
788
- return Order2;
789
- })(Order || {});
790
-
791
- // src/data-v1-data-service-data.meta.ts
792
- function insert2() {
793
- const payload = {};
794
- const getRequestOptions = insert(payload);
795
- const getUrl = (context) => {
796
- const { url } = getRequestOptions(context);
797
- return url;
798
- };
799
- return {
800
- getUrl,
801
- httpMethod: "POST",
802
- path: "/v1/items",
803
- pathParams: {},
804
- __requestType: null,
805
- __originalRequestType: null,
806
- __responseType: null,
807
- __originalResponseType: null
808
- };
809
- }
810
- function update2() {
811
- const payload = { itemId: ":itemId" };
812
- const getRequestOptions = update(payload);
813
- const getUrl = (context) => {
814
- const { url } = getRequestOptions(context);
815
- return url;
816
- };
817
- return {
818
- getUrl,
819
- httpMethod: "PUT",
820
- path: "/v1/items/{itemId}",
821
- pathParams: { itemId: "itemId" },
822
- __requestType: null,
823
- __originalRequestType: null,
824
- __responseType: null,
825
- __originalResponseType: null
826
- };
827
- }
828
- function save2() {
829
- const payload = {};
830
- const getRequestOptions = save(payload);
831
- const getUrl = (context) => {
832
- const { url } = getRequestOptions(context);
833
- return url;
834
- };
835
- return {
836
- getUrl,
837
- httpMethod: "POST",
838
- path: "/v1/items/save",
839
- pathParams: {},
840
- __requestType: null,
841
- __originalRequestType: null,
842
- __responseType: null,
843
- __originalResponseType: null
844
- };
845
- }
846
- function get2() {
847
- const payload = { itemId: ":itemId" };
848
- const getRequestOptions = get(payload);
849
- const getUrl = (context) => {
850
- const { url } = getRequestOptions(context);
851
- return url;
852
- };
853
- return {
854
- getUrl,
855
- httpMethod: "GET",
856
- path: "/v1/items/{itemId}",
857
- pathParams: { itemId: "itemId" },
858
- __requestType: null,
859
- __originalRequestType: null,
860
- __responseType: null,
861
- __originalResponseType: null
862
- };
863
- }
864
- function remove2() {
865
- const payload = { itemId: ":itemId" };
866
- const getRequestOptions = remove(payload);
867
- const getUrl = (context) => {
868
- const { url } = getRequestOptions(context);
869
- return url;
870
- };
871
- return {
872
- getUrl,
873
- httpMethod: "DELETE",
874
- path: "/v1/items/{itemId}",
875
- pathParams: { itemId: "itemId" },
876
- __requestType: null,
877
- __originalRequestType: null,
878
- __responseType: null,
879
- __originalResponseType: null
880
- };
881
- }
882
- function truncate2() {
883
- const payload = {};
884
- const getRequestOptions = truncate(payload);
885
- const getUrl = (context) => {
886
- const { url } = getRequestOptions(context);
887
- return url;
888
- };
889
- return {
890
- getUrl,
891
- httpMethod: "POST",
892
- path: "/v1/items/truncate",
893
- pathParams: {},
894
- __requestType: null,
895
- __originalRequestType: null,
896
- __responseType: null,
897
- __originalResponseType: null
898
- };
899
- }
900
- function query2() {
901
- const payload = {};
902
- const getRequestOptions = query(payload);
903
- const getUrl = (context) => {
904
- const { url } = getRequestOptions(context);
905
- return url;
906
- };
907
- return {
908
- getUrl,
909
- httpMethod: "GET",
910
- path: "/v1/items/query",
911
- pathParams: {},
912
- __requestType: null,
913
- __originalRequestType: null,
914
- __responseType: null,
915
- __originalResponseType: null
916
- };
917
- }
918
- function aggregate2() {
919
- const payload = {};
920
- const getRequestOptions = aggregate(payload);
921
- const getUrl = (context) => {
922
- const { url } = getRequestOptions(context);
923
- return url;
924
- };
925
- return {
926
- getUrl,
927
- httpMethod: "POST",
928
- path: "/v1/items/aggregate",
929
- pathParams: {},
930
- __requestType: null,
931
- __originalRequestType: null,
932
- __responseType: null,
933
- __originalResponseType: null
934
- };
935
- }
936
- function count2() {
937
- const payload = {};
938
- const getRequestOptions = count(payload);
939
- const getUrl = (context) => {
940
- const { url } = getRequestOptions(context);
941
- return url;
942
- };
943
- return {
944
- getUrl,
945
- httpMethod: "POST",
946
- path: "/v1/items/count",
947
- pathParams: {},
948
- __requestType: null,
949
- __originalRequestType: null,
950
- __responseType: null,
951
- __originalResponseType: null
952
- };
953
- }
954
- function distinct2() {
955
- const payload = {};
956
- const getRequestOptions = distinct(payload);
957
- const getUrl = (context) => {
958
- const { url } = getRequestOptions(context);
959
- return url;
960
- };
961
- return {
962
- getUrl,
963
- httpMethod: "POST",
964
- path: "/v1/items/distinct",
965
- pathParams: {},
966
- __requestType: null,
967
- __originalRequestType: null,
968
- __responseType: null,
969
- __originalResponseType: null
970
- };
971
- }
972
- function bulkInsert2() {
973
- const payload = {};
974
- const getRequestOptions = bulkInsert(payload);
975
- const getUrl = (context) => {
976
- const { url } = getRequestOptions(context);
977
- return url;
978
- };
979
- return {
980
- getUrl,
981
- httpMethod: "POST",
982
- path: "/v1/bulk/items/insert",
983
- pathParams: {},
984
- __requestType: null,
985
- __originalRequestType: null,
986
- __responseType: null,
987
- __originalResponseType: null
988
- };
989
- }
990
- function bulkSave2() {
991
- const payload = {};
992
- const getRequestOptions = bulkSave(payload);
993
- const getUrl = (context) => {
994
- const { url } = getRequestOptions(context);
995
- return url;
996
- };
997
- return {
998
- getUrl,
999
- httpMethod: "POST",
1000
- path: "/v1/bulk/items/save",
1001
- pathParams: {},
1002
- __requestType: null,
1003
- __originalRequestType: null,
1004
- __responseType: null,
1005
- __originalResponseType: null
1006
- };
1007
- }
1008
- function bulkUpdate2() {
1009
- const payload = {};
1010
- const getRequestOptions = bulkUpdate(payload);
1011
- const getUrl = (context) => {
1012
- const { url } = getRequestOptions(context);
1013
- return url;
1014
- };
1015
- return {
1016
- getUrl,
1017
- httpMethod: "POST",
1018
- path: "/v1/bulk/items/update",
1019
- pathParams: {},
1020
- __requestType: null,
1021
- __originalRequestType: null,
1022
- __responseType: null,
1023
- __originalResponseType: null
1024
- };
1025
- }
1026
- function bulkRemove2() {
1027
- const payload = {};
1028
- const getRequestOptions = bulkRemove(payload);
1029
- const getUrl = (context) => {
1030
- const { url } = getRequestOptions(context);
1031
- return url;
1032
- };
1033
- return {
1034
- getUrl,
1035
- httpMethod: "POST",
1036
- path: "/v1/bulk/items/remove",
1037
- pathParams: {},
1038
- __requestType: null,
1039
- __originalRequestType: null,
1040
- __responseType: null,
1041
- __originalResponseType: null
1042
- };
1043
- }
1044
- function queryReferenced2() {
1045
- const payload = {};
1046
- const getRequestOptions = queryReferenced(payload);
1047
- const getUrl = (context) => {
1048
- const { url } = getRequestOptions(context);
1049
- return url;
1050
- };
1051
- return {
1052
- getUrl,
1053
- httpMethod: "POST",
1054
- path: "/v1/items/query-referenced",
1055
- pathParams: {},
1056
- __requestType: null,
1057
- __originalRequestType: null,
1058
- __responseType: null,
1059
- __originalResponseType: null
1060
- };
1061
- }
1062
- function bulkInsertReferences2() {
1063
- const payload = {};
1064
- const getRequestOptions = bulkInsertReferences(payload);
1065
- const getUrl = (context) => {
1066
- const { url } = getRequestOptions(context);
1067
- return url;
1068
- };
1069
- return {
1070
- getUrl,
1071
- httpMethod: "POST",
1072
- path: "/v1/bulk/references/insert",
1073
- pathParams: {},
1074
- __requestType: null,
1075
- __originalRequestType: null,
1076
- __responseType: null,
1077
- __originalResponseType: null
1078
- };
1079
- }
1080
- function bulkReplaceReferences2() {
1081
- const payload = {};
1082
- const getRequestOptions = bulkReplaceReferences(payload);
1083
- const getUrl = (context) => {
1084
- const { url } = getRequestOptions(context);
1085
- return url;
1086
- };
1087
- return {
1088
- getUrl,
1089
- httpMethod: "POST",
1090
- path: "/v1/bulk/references/replace",
1091
- pathParams: {},
1092
- __requestType: null,
1093
- __originalRequestType: null,
1094
- __responseType: null,
1095
- __originalResponseType: null
1096
- };
1097
- }
1098
- function bulkRemoveReferences2() {
1099
- const payload = {};
1100
- const getRequestOptions = bulkRemoveReferences(payload);
1101
- const getUrl = (context) => {
1102
- const { url } = getRequestOptions(context);
1103
- return url;
1104
- };
1105
- return {
1106
- getUrl,
1107
- httpMethod: "POST",
1108
- path: "/v1/bulk/references/remove",
1109
- pathParams: {},
1110
- __requestType: null,
1111
- __originalRequestType: null,
1112
- __responseType: null,
1113
- __originalResponseType: null
1114
- };
1115
- }
1116
- function isReferenced2() {
1117
- const payload = {};
1118
- const getRequestOptions = isReferenced(payload);
1119
- const getUrl = (context) => {
1120
- const { url } = getRequestOptions(context);
1121
- return url;
1122
- };
1123
- return {
1124
- getUrl,
1125
- httpMethod: "POST",
1126
- path: "/v1/items/is-referenced",
1127
- pathParams: {},
1128
- __requestType: null,
1129
- __originalRequestType: null,
1130
- __responseType: null,
1131
- __originalResponseType: null
1132
- };
1133
- }
1134
- export {
1135
- Order as OrderOriginal,
1136
- Segment as SegmentOriginal,
1137
- SortOrder as SortOrderOriginal,
1138
- aggregate2 as aggregate,
1139
- bulkInsert2 as bulkInsert,
1140
- bulkInsertReferences2 as bulkInsertReferences,
1141
- bulkRemove2 as bulkRemove,
1142
- bulkRemoveReferences2 as bulkRemoveReferences,
1143
- bulkReplaceReferences2 as bulkReplaceReferences,
1144
- bulkSave2 as bulkSave,
1145
- bulkUpdate2 as bulkUpdate,
1146
- count2 as count,
1147
- distinct2 as distinct,
1148
- get2 as get,
1149
- insert2 as insert,
1150
- isReferenced2 as isReferenced,
1151
- query2 as query,
1152
- queryReferenced2 as queryReferenced,
1153
- remove2 as remove,
1154
- save2 as save,
1155
- truncate2 as truncate,
1156
- update2 as update
1157
- };
1158
- //# sourceMappingURL=meta.mjs.map