@wix/auto_sdk_data-backend-public-sdk-poc_data 1.0.30 → 1.0.31

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