@wix/auto_sdk_data-backend-public-sdk-poc_data 1.0.51 → 1.0.53

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