@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
package/build/meta.mjs ADDED
@@ -0,0 +1,1048 @@
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
+ "www.wixgateway.com": [
311
+ {
312
+ srcPath: "/wix-data/v1/items",
313
+ destPath: "/v1/items"
314
+ },
315
+ {
316
+ srcPath: "/wix-data/v1/bulk",
317
+ destPath: "/v1/bulk"
318
+ }
319
+ ],
320
+ "*.dev.wix-code.com": [
321
+ {
322
+ srcPath: "/_api/cloud-data/v2",
323
+ destPath: "/v2"
324
+ }
325
+ ]
326
+ };
327
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
328
+ }
329
+ var PACKAGE_NAME = "@wix/auto_sdk_data-backend-public-sdk-poc_data";
330
+ function insert(payload) {
331
+ function __insert({ host }) {
332
+ const metadata = {
333
+ entityFqdn: "wix.data.v1.data_service",
334
+ method: "POST",
335
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Insert",
336
+ packageName: PACKAGE_NAME,
337
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
338
+ protoPath: "/v1/items",
339
+ data: payload,
340
+ host
341
+ }),
342
+ data: payload
343
+ };
344
+ return metadata;
345
+ }
346
+ return __insert;
347
+ }
348
+ function update(payload) {
349
+ function __update({ host }) {
350
+ const metadata = {
351
+ entityFqdn: "wix.data.v1.data_service",
352
+ method: "PUT",
353
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Update",
354
+ packageName: PACKAGE_NAME,
355
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
356
+ protoPath: "/v1/items/{itemId}",
357
+ data: payload,
358
+ host
359
+ }),
360
+ data: payload
361
+ };
362
+ return metadata;
363
+ }
364
+ return __update;
365
+ }
366
+ function save(payload) {
367
+ function __save({ host }) {
368
+ const metadata = {
369
+ entityFqdn: "wix.data.v1.data_service",
370
+ method: "POST",
371
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Save",
372
+ packageName: PACKAGE_NAME,
373
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
374
+ protoPath: "/v1/items/save",
375
+ data: payload,
376
+ host
377
+ }),
378
+ data: payload
379
+ };
380
+ return metadata;
381
+ }
382
+ return __save;
383
+ }
384
+ function get(payload) {
385
+ function __get({ host }) {
386
+ const metadata = {
387
+ entityFqdn: "wix.data.v1.data_service",
388
+ method: "GET",
389
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Get",
390
+ packageName: PACKAGE_NAME,
391
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
392
+ protoPath: "/v1/items/{itemId}",
393
+ data: payload,
394
+ host
395
+ }),
396
+ params: toURLSearchParams(payload, true)
397
+ };
398
+ return metadata;
399
+ }
400
+ return __get;
401
+ }
402
+ function remove(payload) {
403
+ function __remove({ host }) {
404
+ const metadata = {
405
+ entityFqdn: "wix.data.v1.data_service",
406
+ method: "DELETE",
407
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Remove",
408
+ packageName: PACKAGE_NAME,
409
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
410
+ protoPath: "/v1/items/{itemId}",
411
+ data: payload,
412
+ host
413
+ }),
414
+ params: toURLSearchParams(payload)
415
+ };
416
+ return metadata;
417
+ }
418
+ return __remove;
419
+ }
420
+ function truncate(payload) {
421
+ function __truncate({ host }) {
422
+ const metadata = {
423
+ entityFqdn: "wix.data.v1.data_service",
424
+ method: "POST",
425
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Truncate",
426
+ packageName: PACKAGE_NAME,
427
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
428
+ protoPath: "/v1/items/truncate",
429
+ data: payload,
430
+ host
431
+ }),
432
+ data: payload
433
+ };
434
+ return metadata;
435
+ }
436
+ return __truncate;
437
+ }
438
+ function query(payload) {
439
+ function __query({ host }) {
440
+ const metadata = {
441
+ entityFqdn: "wix.data.v1.data_service",
442
+ method: "POST",
443
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Query",
444
+ packageName: PACKAGE_NAME,
445
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
446
+ protoPath: "/v1/items/query",
447
+ data: payload,
448
+ host
449
+ }),
450
+ data: payload,
451
+ fallback: [
452
+ {
453
+ method: "POST",
454
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
455
+ protoPath: "/v1/items/query",
456
+ data: payload,
457
+ host
458
+ }),
459
+ data: payload
460
+ }
461
+ ]
462
+ };
463
+ return metadata;
464
+ }
465
+ return __query;
466
+ }
467
+ function aggregate(payload) {
468
+ function __aggregate({ host }) {
469
+ const metadata = {
470
+ entityFqdn: "wix.data.v1.data_service",
471
+ method: "POST",
472
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Aggregate",
473
+ packageName: PACKAGE_NAME,
474
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
475
+ protoPath: "/v1/items/aggregate",
476
+ data: payload,
477
+ host
478
+ }),
479
+ data: payload
480
+ };
481
+ return metadata;
482
+ }
483
+ return __aggregate;
484
+ }
485
+ function count(payload) {
486
+ function __count({ host }) {
487
+ const metadata = {
488
+ entityFqdn: "wix.data.v1.data_service",
489
+ method: "POST",
490
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Count",
491
+ packageName: PACKAGE_NAME,
492
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
493
+ protoPath: "/v1/items/count",
494
+ data: payload,
495
+ host
496
+ }),
497
+ data: payload
498
+ };
499
+ return metadata;
500
+ }
501
+ return __count;
502
+ }
503
+ function distinct(payload) {
504
+ function __distinct({ host }) {
505
+ const metadata = {
506
+ entityFqdn: "wix.data.v1.data_service",
507
+ method: "POST",
508
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Distinct",
509
+ packageName: PACKAGE_NAME,
510
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
511
+ protoPath: "/v1/items/distinct",
512
+ data: payload,
513
+ host
514
+ }),
515
+ data: payload
516
+ };
517
+ return metadata;
518
+ }
519
+ return __distinct;
520
+ }
521
+ function bulkInsert(payload) {
522
+ function __bulkInsert({ host }) {
523
+ const metadata = {
524
+ entityFqdn: "wix.data.v1.data_service",
525
+ method: "POST",
526
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkInsert",
527
+ packageName: PACKAGE_NAME,
528
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
529
+ protoPath: "/v1/bulk/items/insert",
530
+ data: payload,
531
+ host
532
+ }),
533
+ data: payload
534
+ };
535
+ return metadata;
536
+ }
537
+ return __bulkInsert;
538
+ }
539
+ function bulkSave(payload) {
540
+ function __bulkSave({ host }) {
541
+ const metadata = {
542
+ entityFqdn: "wix.data.v1.data_service",
543
+ method: "POST",
544
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkSave",
545
+ packageName: PACKAGE_NAME,
546
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
547
+ protoPath: "/v1/bulk/items/save",
548
+ data: payload,
549
+ host
550
+ }),
551
+ data: payload
552
+ };
553
+ return metadata;
554
+ }
555
+ return __bulkSave;
556
+ }
557
+ function bulkUpdate(payload) {
558
+ function __bulkUpdate({ host }) {
559
+ const metadata = {
560
+ entityFqdn: "wix.data.v1.data_service",
561
+ method: "POST",
562
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkUpdate",
563
+ packageName: PACKAGE_NAME,
564
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
565
+ protoPath: "/v1/bulk/items/update",
566
+ data: payload,
567
+ host
568
+ }),
569
+ data: payload
570
+ };
571
+ return metadata;
572
+ }
573
+ return __bulkUpdate;
574
+ }
575
+ function bulkRemove(payload) {
576
+ function __bulkRemove({ host }) {
577
+ const metadata = {
578
+ entityFqdn: "wix.data.v1.data_service",
579
+ method: "POST",
580
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkRemove",
581
+ packageName: PACKAGE_NAME,
582
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
583
+ protoPath: "/v1/bulk/items/remove",
584
+ data: payload,
585
+ host
586
+ }),
587
+ data: payload
588
+ };
589
+ return metadata;
590
+ }
591
+ return __bulkRemove;
592
+ }
593
+ function queryReferenced(payload) {
594
+ function __queryReferenced({ host }) {
595
+ const metadata = {
596
+ entityFqdn: "wix.data.v1.data_service",
597
+ method: "POST",
598
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.QueryReferenced",
599
+ packageName: PACKAGE_NAME,
600
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
601
+ protoPath: "/v1/items/query-referenced",
602
+ data: payload,
603
+ host
604
+ }),
605
+ data: payload
606
+ };
607
+ return metadata;
608
+ }
609
+ return __queryReferenced;
610
+ }
611
+ function bulkInsertReferences(payload) {
612
+ function __bulkInsertReferences({ host }) {
613
+ const metadata = {
614
+ entityFqdn: "wix.data.v1.data_service",
615
+ method: "POST",
616
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkInsertReferences",
617
+ packageName: PACKAGE_NAME,
618
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
619
+ protoPath: "/v1/bulk/references/insert",
620
+ data: payload,
621
+ host
622
+ }),
623
+ data: payload
624
+ };
625
+ return metadata;
626
+ }
627
+ return __bulkInsertReferences;
628
+ }
629
+ function bulkReplaceReferences(payload) {
630
+ function __bulkReplaceReferences({ host }) {
631
+ const metadata = {
632
+ entityFqdn: "wix.data.v1.data_service",
633
+ method: "POST",
634
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkReplaceReferences",
635
+ packageName: PACKAGE_NAME,
636
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
637
+ protoPath: "/v1/bulk/references/replace",
638
+ data: payload,
639
+ host
640
+ }),
641
+ data: payload
642
+ };
643
+ return metadata;
644
+ }
645
+ return __bulkReplaceReferences;
646
+ }
647
+ function bulkRemoveReferences(payload) {
648
+ function __bulkRemoveReferences({ host }) {
649
+ const metadata = {
650
+ entityFqdn: "wix.data.v1.data_service",
651
+ method: "POST",
652
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.BulkRemoveReferences",
653
+ packageName: PACKAGE_NAME,
654
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
655
+ protoPath: "/v1/bulk/references/remove",
656
+ data: payload,
657
+ host
658
+ }),
659
+ data: payload
660
+ };
661
+ return metadata;
662
+ }
663
+ return __bulkRemoveReferences;
664
+ }
665
+ function isReferenced(payload) {
666
+ function __isReferenced({ host }) {
667
+ const metadata = {
668
+ entityFqdn: "wix.data.v1.data_service",
669
+ method: "POST",
670
+ methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.IsReferenced",
671
+ packageName: PACKAGE_NAME,
672
+ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
673
+ protoPath: "/v1/items/is-referenced",
674
+ data: payload,
675
+ host
676
+ }),
677
+ data: payload
678
+ };
679
+ return metadata;
680
+ }
681
+ return __isReferenced;
682
+ }
683
+
684
+ // src/data-v1-data-service-data.meta.ts
685
+ function insert2() {
686
+ const payload = {};
687
+ const getRequestOptions = insert(payload);
688
+ const getUrl = (context) => {
689
+ const { url } = getRequestOptions(context);
690
+ return url;
691
+ };
692
+ return {
693
+ getUrl,
694
+ httpMethod: "POST",
695
+ path: "/v1/items",
696
+ pathParams: {},
697
+ __requestType: null,
698
+ __originalRequestType: null,
699
+ __responseType: null,
700
+ __originalResponseType: null
701
+ };
702
+ }
703
+ function update2() {
704
+ const payload = { itemId: ":itemId" };
705
+ const getRequestOptions = update(payload);
706
+ const getUrl = (context) => {
707
+ const { url } = getRequestOptions(context);
708
+ return url;
709
+ };
710
+ return {
711
+ getUrl,
712
+ httpMethod: "PUT",
713
+ path: "/v1/items/{itemId}",
714
+ pathParams: { itemId: "itemId" },
715
+ __requestType: null,
716
+ __originalRequestType: null,
717
+ __responseType: null,
718
+ __originalResponseType: null
719
+ };
720
+ }
721
+ function save2() {
722
+ const payload = {};
723
+ const getRequestOptions = save(payload);
724
+ const getUrl = (context) => {
725
+ const { url } = getRequestOptions(context);
726
+ return url;
727
+ };
728
+ return {
729
+ getUrl,
730
+ httpMethod: "POST",
731
+ path: "/v1/items/save",
732
+ pathParams: {},
733
+ __requestType: null,
734
+ __originalRequestType: null,
735
+ __responseType: null,
736
+ __originalResponseType: null
737
+ };
738
+ }
739
+ function get2() {
740
+ const payload = { itemId: ":itemId" };
741
+ const getRequestOptions = get(payload);
742
+ const getUrl = (context) => {
743
+ const { url } = getRequestOptions(context);
744
+ return url;
745
+ };
746
+ return {
747
+ getUrl,
748
+ httpMethod: "GET",
749
+ path: "/v1/items/{itemId}",
750
+ pathParams: { itemId: "itemId" },
751
+ __requestType: null,
752
+ __originalRequestType: null,
753
+ __responseType: null,
754
+ __originalResponseType: null
755
+ };
756
+ }
757
+ function remove2() {
758
+ const payload = { itemId: ":itemId" };
759
+ const getRequestOptions = remove(payload);
760
+ const getUrl = (context) => {
761
+ const { url } = getRequestOptions(context);
762
+ return url;
763
+ };
764
+ return {
765
+ getUrl,
766
+ httpMethod: "DELETE",
767
+ path: "/v1/items/{itemId}",
768
+ pathParams: { itemId: "itemId" },
769
+ __requestType: null,
770
+ __originalRequestType: null,
771
+ __responseType: null,
772
+ __originalResponseType: null
773
+ };
774
+ }
775
+ function truncate2() {
776
+ const payload = {};
777
+ const getRequestOptions = truncate(payload);
778
+ const getUrl = (context) => {
779
+ const { url } = getRequestOptions(context);
780
+ return url;
781
+ };
782
+ return {
783
+ getUrl,
784
+ httpMethod: "POST",
785
+ path: "/v1/items/truncate",
786
+ pathParams: {},
787
+ __requestType: null,
788
+ __originalRequestType: null,
789
+ __responseType: null,
790
+ __originalResponseType: null
791
+ };
792
+ }
793
+ function query2() {
794
+ const payload = {};
795
+ const getRequestOptions = query(payload);
796
+ const getUrl = (context) => {
797
+ const { url } = getRequestOptions(context);
798
+ return url;
799
+ };
800
+ return {
801
+ getUrl,
802
+ httpMethod: "GET",
803
+ path: "/v1/items/query",
804
+ pathParams: {},
805
+ __requestType: null,
806
+ __originalRequestType: null,
807
+ __responseType: null,
808
+ __originalResponseType: null
809
+ };
810
+ }
811
+ function aggregate2() {
812
+ const payload = {};
813
+ const getRequestOptions = aggregate(payload);
814
+ const getUrl = (context) => {
815
+ const { url } = getRequestOptions(context);
816
+ return url;
817
+ };
818
+ return {
819
+ getUrl,
820
+ httpMethod: "POST",
821
+ path: "/v1/items/aggregate",
822
+ pathParams: {},
823
+ __requestType: null,
824
+ __originalRequestType: null,
825
+ __responseType: null,
826
+ __originalResponseType: null
827
+ };
828
+ }
829
+ function count2() {
830
+ const payload = {};
831
+ const getRequestOptions = count(payload);
832
+ const getUrl = (context) => {
833
+ const { url } = getRequestOptions(context);
834
+ return url;
835
+ };
836
+ return {
837
+ getUrl,
838
+ httpMethod: "POST",
839
+ path: "/v1/items/count",
840
+ pathParams: {},
841
+ __requestType: null,
842
+ __originalRequestType: null,
843
+ __responseType: null,
844
+ __originalResponseType: null
845
+ };
846
+ }
847
+ function distinct2() {
848
+ const payload = {};
849
+ const getRequestOptions = distinct(payload);
850
+ const getUrl = (context) => {
851
+ const { url } = getRequestOptions(context);
852
+ return url;
853
+ };
854
+ return {
855
+ getUrl,
856
+ httpMethod: "POST",
857
+ path: "/v1/items/distinct",
858
+ pathParams: {},
859
+ __requestType: null,
860
+ __originalRequestType: null,
861
+ __responseType: null,
862
+ __originalResponseType: null
863
+ };
864
+ }
865
+ function bulkInsert2() {
866
+ const payload = {};
867
+ const getRequestOptions = bulkInsert(payload);
868
+ const getUrl = (context) => {
869
+ const { url } = getRequestOptions(context);
870
+ return url;
871
+ };
872
+ return {
873
+ getUrl,
874
+ httpMethod: "POST",
875
+ path: "/v1/bulk/items/insert",
876
+ pathParams: {},
877
+ __requestType: null,
878
+ __originalRequestType: null,
879
+ __responseType: null,
880
+ __originalResponseType: null
881
+ };
882
+ }
883
+ function bulkSave2() {
884
+ const payload = {};
885
+ const getRequestOptions = bulkSave(payload);
886
+ const getUrl = (context) => {
887
+ const { url } = getRequestOptions(context);
888
+ return url;
889
+ };
890
+ return {
891
+ getUrl,
892
+ httpMethod: "POST",
893
+ path: "/v1/bulk/items/save",
894
+ pathParams: {},
895
+ __requestType: null,
896
+ __originalRequestType: null,
897
+ __responseType: null,
898
+ __originalResponseType: null
899
+ };
900
+ }
901
+ function bulkUpdate2() {
902
+ const payload = {};
903
+ const getRequestOptions = bulkUpdate(payload);
904
+ const getUrl = (context) => {
905
+ const { url } = getRequestOptions(context);
906
+ return url;
907
+ };
908
+ return {
909
+ getUrl,
910
+ httpMethod: "POST",
911
+ path: "/v1/bulk/items/update",
912
+ pathParams: {},
913
+ __requestType: null,
914
+ __originalRequestType: null,
915
+ __responseType: null,
916
+ __originalResponseType: null
917
+ };
918
+ }
919
+ function bulkRemove2() {
920
+ const payload = {};
921
+ const getRequestOptions = bulkRemove(payload);
922
+ const getUrl = (context) => {
923
+ const { url } = getRequestOptions(context);
924
+ return url;
925
+ };
926
+ return {
927
+ getUrl,
928
+ httpMethod: "POST",
929
+ path: "/v1/bulk/items/remove",
930
+ pathParams: {},
931
+ __requestType: null,
932
+ __originalRequestType: null,
933
+ __responseType: null,
934
+ __originalResponseType: null
935
+ };
936
+ }
937
+ function queryReferenced2() {
938
+ const payload = {};
939
+ const getRequestOptions = queryReferenced(payload);
940
+ const getUrl = (context) => {
941
+ const { url } = getRequestOptions(context);
942
+ return url;
943
+ };
944
+ return {
945
+ getUrl,
946
+ httpMethod: "POST",
947
+ path: "/v1/items/query-referenced",
948
+ pathParams: {},
949
+ __requestType: null,
950
+ __originalRequestType: null,
951
+ __responseType: null,
952
+ __originalResponseType: null
953
+ };
954
+ }
955
+ function bulkInsertReferences2() {
956
+ const payload = {};
957
+ const getRequestOptions = bulkInsertReferences(payload);
958
+ const getUrl = (context) => {
959
+ const { url } = getRequestOptions(context);
960
+ return url;
961
+ };
962
+ return {
963
+ getUrl,
964
+ httpMethod: "POST",
965
+ path: "/v1/bulk/references/insert",
966
+ pathParams: {},
967
+ __requestType: null,
968
+ __originalRequestType: null,
969
+ __responseType: null,
970
+ __originalResponseType: null
971
+ };
972
+ }
973
+ function bulkReplaceReferences2() {
974
+ const payload = {};
975
+ const getRequestOptions = bulkReplaceReferences(payload);
976
+ const getUrl = (context) => {
977
+ const { url } = getRequestOptions(context);
978
+ return url;
979
+ };
980
+ return {
981
+ getUrl,
982
+ httpMethod: "POST",
983
+ path: "/v1/bulk/references/replace",
984
+ pathParams: {},
985
+ __requestType: null,
986
+ __originalRequestType: null,
987
+ __responseType: null,
988
+ __originalResponseType: null
989
+ };
990
+ }
991
+ function bulkRemoveReferences2() {
992
+ const payload = {};
993
+ const getRequestOptions = bulkRemoveReferences(payload);
994
+ const getUrl = (context) => {
995
+ const { url } = getRequestOptions(context);
996
+ return url;
997
+ };
998
+ return {
999
+ getUrl,
1000
+ httpMethod: "POST",
1001
+ path: "/v1/bulk/references/remove",
1002
+ pathParams: {},
1003
+ __requestType: null,
1004
+ __originalRequestType: null,
1005
+ __responseType: null,
1006
+ __originalResponseType: null
1007
+ };
1008
+ }
1009
+ function isReferenced2() {
1010
+ const payload = {};
1011
+ const getRequestOptions = isReferenced(payload);
1012
+ const getUrl = (context) => {
1013
+ const { url } = getRequestOptions(context);
1014
+ return url;
1015
+ };
1016
+ return {
1017
+ getUrl,
1018
+ httpMethod: "POST",
1019
+ path: "/v1/items/is-referenced",
1020
+ pathParams: {},
1021
+ __requestType: null,
1022
+ __originalRequestType: null,
1023
+ __responseType: null,
1024
+ __originalResponseType: null
1025
+ };
1026
+ }
1027
+ export {
1028
+ aggregate2 as aggregate,
1029
+ bulkInsert2 as bulkInsert,
1030
+ bulkInsertReferences2 as bulkInsertReferences,
1031
+ bulkRemove2 as bulkRemove,
1032
+ bulkRemoveReferences2 as bulkRemoveReferences,
1033
+ bulkReplaceReferences2 as bulkReplaceReferences,
1034
+ bulkSave2 as bulkSave,
1035
+ bulkUpdate2 as bulkUpdate,
1036
+ count2 as count,
1037
+ distinct2 as distinct,
1038
+ get2 as get,
1039
+ insert2 as insert,
1040
+ isReferenced2 as isReferenced,
1041
+ query2 as query,
1042
+ queryReferenced2 as queryReferenced,
1043
+ remove2 as remove,
1044
+ save2 as save,
1045
+ truncate2 as truncate,
1046
+ update2 as update
1047
+ };
1048
+ //# sourceMappingURL=meta.mjs.map