@wix/auto_sdk_data_collections 1.0.11 → 1.0.12

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 (134) hide show
  1. package/build/{es/src/data-v2-data-collection-collections.types.d.ts → data-v2-data-collection-collections.universal-DFG8hhGA.d.mts} +199 -144
  2. package/build/{cjs/src/data-v2-data-collection-collections.types.d.ts → data-v2-data-collection-collections.universal-DFG8hhGA.d.ts} +199 -144
  3. package/build/index.d.mts +75 -0
  4. package/build/index.d.ts +75 -0
  5. package/build/index.js +1278 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1227 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/data-v2-data-collection-collections.types.d.ts → data-v2-data-collection-collections.universal-DZ3_N2Cv.d.mts} +230 -144
  10. package/build/internal/{es/src/data-v2-data-collection-collections.types.d.ts → data-v2-data-collection-collections.universal-DZ3_N2Cv.d.ts} +230 -144
  11. package/build/internal/index.d.mts +121 -0
  12. package/build/internal/index.d.ts +121 -0
  13. package/build/internal/index.js +1278 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1227 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +882 -0
  18. package/build/internal/meta.d.ts +882 -0
  19. package/build/internal/meta.js +883 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +848 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +882 -0
  24. package/build/meta.d.ts +882 -0
  25. package/build/meta.js +883 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +848 -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-v2-data-collection-collections.context.d.ts +0 -9
  40. package/build/cjs/src/data-v2-data-collection-collections.context.js +0 -39
  41. package/build/cjs/src/data-v2-data-collection-collections.context.js.map +0 -1
  42. package/build/cjs/src/data-v2-data-collection-collections.http.d.ts +0 -48
  43. package/build/cjs/src/data-v2-data-collection-collections.http.js +0 -704
  44. package/build/cjs/src/data-v2-data-collection-collections.http.js.map +0 -1
  45. package/build/cjs/src/data-v2-data-collection-collections.meta.d.ts +0 -27
  46. package/build/cjs/src/data-v2-data-collection-collections.meta.js +0 -199
  47. package/build/cjs/src/data-v2-data-collection-collections.meta.js.map +0 -1
  48. package/build/cjs/src/data-v2-data-collection-collections.public.d.ts +0 -69
  49. package/build/cjs/src/data-v2-data-collection-collections.public.js +0 -84
  50. package/build/cjs/src/data-v2-data-collection-collections.public.js.map +0 -1
  51. package/build/cjs/src/data-v2-data-collection-collections.types.js +0 -270
  52. package/build/cjs/src/data-v2-data-collection-collections.types.js.map +0 -1
  53. package/build/cjs/src/data-v2-data-collection-collections.universal.d.ts +0 -1572
  54. package/build/cjs/src/data-v2-data-collection-collections.universal.js +0 -704
  55. package/build/cjs/src/data-v2-data-collection-collections.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/data-v2-data-collection-collections.context.d.ts +0 -9
  67. package/build/es/src/data-v2-data-collection-collections.context.js +0 -17
  68. package/build/es/src/data-v2-data-collection-collections.context.js.map +0 -1
  69. package/build/es/src/data-v2-data-collection-collections.http.d.ts +0 -48
  70. package/build/es/src/data-v2-data-collection-collections.http.js +0 -692
  71. package/build/es/src/data-v2-data-collection-collections.http.js.map +0 -1
  72. package/build/es/src/data-v2-data-collection-collections.meta.d.ts +0 -27
  73. package/build/es/src/data-v2-data-collection-collections.meta.js +0 -164
  74. package/build/es/src/data-v2-data-collection-collections.meta.js.map +0 -1
  75. package/build/es/src/data-v2-data-collection-collections.public.d.ts +0 -69
  76. package/build/es/src/data-v2-data-collection-collections.public.js +0 -53
  77. package/build/es/src/data-v2-data-collection-collections.public.js.map +0 -1
  78. package/build/es/src/data-v2-data-collection-collections.types.js +0 -267
  79. package/build/es/src/data-v2-data-collection-collections.types.js.map +0 -1
  80. package/build/es/src/data-v2-data-collection-collections.universal.d.ts +0 -1572
  81. package/build/es/src/data-v2-data-collection-collections.universal.js +0 -669
  82. package/build/es/src/data-v2-data-collection-collections.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/data-v2-data-collection-collections.context.d.ts +0 -17
  93. package/build/internal/cjs/src/data-v2-data-collection-collections.context.js +0 -39
  94. package/build/internal/cjs/src/data-v2-data-collection-collections.context.js.map +0 -1
  95. package/build/internal/cjs/src/data-v2-data-collection-collections.http.d.ts +0 -48
  96. package/build/internal/cjs/src/data-v2-data-collection-collections.http.js +0 -704
  97. package/build/internal/cjs/src/data-v2-data-collection-collections.http.js.map +0 -1
  98. package/build/internal/cjs/src/data-v2-data-collection-collections.meta.d.ts +0 -27
  99. package/build/internal/cjs/src/data-v2-data-collection-collections.meta.js +0 -199
  100. package/build/internal/cjs/src/data-v2-data-collection-collections.meta.js.map +0 -1
  101. package/build/internal/cjs/src/data-v2-data-collection-collections.public.d.ts +0 -107
  102. package/build/internal/cjs/src/data-v2-data-collection-collections.public.js +0 -84
  103. package/build/internal/cjs/src/data-v2-data-collection-collections.public.js.map +0 -1
  104. package/build/internal/cjs/src/data-v2-data-collection-collections.types.js +0 -270
  105. package/build/internal/cjs/src/data-v2-data-collection-collections.types.js.map +0 -1
  106. package/build/internal/cjs/src/data-v2-data-collection-collections.universal.d.ts +0 -1679
  107. package/build/internal/cjs/src/data-v2-data-collection-collections.universal.js +0 -704
  108. package/build/internal/cjs/src/data-v2-data-collection-collections.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/data-v2-data-collection-collections.context.d.ts +0 -17
  119. package/build/internal/es/src/data-v2-data-collection-collections.context.js +0 -17
  120. package/build/internal/es/src/data-v2-data-collection-collections.context.js.map +0 -1
  121. package/build/internal/es/src/data-v2-data-collection-collections.http.d.ts +0 -48
  122. package/build/internal/es/src/data-v2-data-collection-collections.http.js +0 -692
  123. package/build/internal/es/src/data-v2-data-collection-collections.http.js.map +0 -1
  124. package/build/internal/es/src/data-v2-data-collection-collections.meta.d.ts +0 -27
  125. package/build/internal/es/src/data-v2-data-collection-collections.meta.js +0 -164
  126. package/build/internal/es/src/data-v2-data-collection-collections.meta.js.map +0 -1
  127. package/build/internal/es/src/data-v2-data-collection-collections.public.d.ts +0 -107
  128. package/build/internal/es/src/data-v2-data-collection-collections.public.js +0 -53
  129. package/build/internal/es/src/data-v2-data-collection-collections.public.js.map +0 -1
  130. package/build/internal/es/src/data-v2-data-collection-collections.types.js +0 -267
  131. package/build/internal/es/src/data-v2-data-collection-collections.types.js.map +0 -1
  132. package/build/internal/es/src/data-v2-data-collection-collections.universal.d.ts +0 -1679
  133. package/build/internal/es/src/data-v2-data-collection-collections.universal.js +0 -669
  134. package/build/internal/es/src/data-v2-data-collection-collections.universal.js.map +0 -1
package/build/meta.js ADDED
@@ -0,0 +1,883 @@
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
+ createDataCollection: () => createDataCollection2,
24
+ createDataCollectionField: () => createDataCollectionField2,
25
+ deleteDataCollection: () => deleteDataCollection2,
26
+ deleteDataCollectionField: () => deleteDataCollectionField2,
27
+ getDataCollection: () => getDataCollection2,
28
+ listDataCollections: () => listDataCollections2,
29
+ restoreDataCollection: () => restoreDataCollection2,
30
+ updateDataCollection: () => updateDataCollection2,
31
+ updateDataCollectionField: () => updateDataCollectionField2
32
+ });
33
+ module.exports = __toCommonJS(meta_exports);
34
+
35
+ // src/data-v2-data-collection-collections.http.ts
36
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
37
+ var import_float = require("@wix/sdk-runtime/transformations/float");
38
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
39
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
40
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
41
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
42
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
43
+ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(opts) {
44
+ const domainToMappings = {
45
+ "api._api_base_domain_": [
46
+ {
47
+ srcPath: "/cloud-data",
48
+ destPath: ""
49
+ }
50
+ ],
51
+ "code._base_domain_": [
52
+ {
53
+ srcPath: "/_api/cloud-data/v1/data-settings",
54
+ destPath: "/v1/data-settings"
55
+ },
56
+ {
57
+ srcPath: "/_api/cloud-data/v1/schemas",
58
+ destPath: "/v1/schemas"
59
+ },
60
+ {
61
+ srcPath: "/_api/cloud-data/v1/connector",
62
+ destPath: "/v1/connector"
63
+ },
64
+ {
65
+ srcPath: "/_api/data/v1/data-settings",
66
+ destPath: "/v1/data-settings"
67
+ },
68
+ {
69
+ srcPath: "/_api/data/v1/schemas",
70
+ destPath: "/v1/schemas"
71
+ },
72
+ {
73
+ srcPath: "/_api/data/v1/connector",
74
+ destPath: "/v1/connector"
75
+ },
76
+ {
77
+ srcPath: "/_api/cloud-data/v1/wix-data",
78
+ destPath: "/v1/wix-data"
79
+ }
80
+ ],
81
+ "cloud-data.wix-code.com": [
82
+ {
83
+ srcPath: "",
84
+ destPath: ""
85
+ }
86
+ ],
87
+ _: [
88
+ {
89
+ srcPath: "/_api/cloud-data",
90
+ destPath: ""
91
+ }
92
+ ],
93
+ "www._base_domain_": [
94
+ {
95
+ srcPath: "/_api/cloud-data",
96
+ destPath: ""
97
+ },
98
+ {
99
+ srcPath: "/_api/data",
100
+ destPath: ""
101
+ },
102
+ {
103
+ srcPath: "/_api/cloud-data",
104
+ destPath: ""
105
+ }
106
+ ],
107
+ "dev._base_domain_": [
108
+ {
109
+ srcPath: "/_api/cloud-data",
110
+ destPath: ""
111
+ }
112
+ ],
113
+ "bo._base_domain_": [
114
+ {
115
+ srcPath: "/_api/cloud-data/v1",
116
+ destPath: "/v1"
117
+ },
118
+ {
119
+ srcPath: "/_api/cloud-data/v2",
120
+ destPath: "/v2"
121
+ }
122
+ ],
123
+ "wixbo.ai": [
124
+ {
125
+ srcPath: "/_api/cloud-data/v1",
126
+ destPath: "/v1"
127
+ },
128
+ {
129
+ srcPath: "/_api/cloud-data/v2",
130
+ destPath: "/v2"
131
+ }
132
+ ],
133
+ "wix-bo.com": [
134
+ {
135
+ srcPath: "/_api/cloud-data/v1",
136
+ destPath: "/v1"
137
+ },
138
+ {
139
+ srcPath: "/_api/cloud-data/v2",
140
+ destPath: "/v2"
141
+ }
142
+ ],
143
+ "manage._base_domain_": [
144
+ {
145
+ srcPath: "/_api/cloud-data",
146
+ destPath: ""
147
+ },
148
+ {
149
+ srcPath: "/_api/data",
150
+ destPath: ""
151
+ },
152
+ {
153
+ srcPath: "/_api/cloud-data",
154
+ destPath: ""
155
+ }
156
+ ],
157
+ "editor._base_domain_": [
158
+ {
159
+ srcPath: "/_api/cloud-data/v1/schemas",
160
+ destPath: "/v1/schemas"
161
+ },
162
+ {
163
+ srcPath: "/_api/cloud-data/dbs/tasks",
164
+ destPath: "/dbs/tasks"
165
+ },
166
+ {
167
+ srcPath: "/_api/data/v1/schemas",
168
+ destPath: "/v1/schemas"
169
+ },
170
+ {
171
+ srcPath: "/_api/data/dbs/tasks",
172
+ destPath: "/dbs/tasks"
173
+ },
174
+ {
175
+ srcPath: "/_api/cloud-data/v1/wix-data",
176
+ destPath: "/v1/wix-data"
177
+ },
178
+ {
179
+ srcPath: "/_api/cloud-data/v1/data-settings",
180
+ destPath: "/v1/data-settings"
181
+ },
182
+ {
183
+ srcPath: "/_api/data/v2/indexes",
184
+ destPath: "/v2/indexes"
185
+ },
186
+ {
187
+ srcPath: "/_api/cloud-data/v1/external-database-connections",
188
+ destPath: "/v1/external-database-connections"
189
+ },
190
+ {
191
+ srcPath: "/_api/data/v1/data-collection-sharing",
192
+ destPath: "/v1/data-collection-sharing"
193
+ },
194
+ {
195
+ srcPath: "/_api/cloud-data/v2/collections",
196
+ destPath: "/v2/collections"
197
+ },
198
+ {
199
+ srcPath: "/_api/cloud-data/v2/bulk",
200
+ destPath: "/v2/bulk"
201
+ },
202
+ {
203
+ srcPath: "/_api/cloud-data/v2/items",
204
+ destPath: "/v2/items"
205
+ },
206
+ {
207
+ srcPath: "/_api/cloud-data/v2/dbs/tasks",
208
+ destPath: "/v2/dbs/tasks"
209
+ }
210
+ ],
211
+ "blocks._base_domain_": [
212
+ {
213
+ srcPath: "/_api/cloud-data/v1/schemas",
214
+ destPath: "/v1/schemas"
215
+ },
216
+ {
217
+ srcPath: "/_api/cloud-data/dbs/tasks",
218
+ destPath: "/dbs/tasks"
219
+ },
220
+ {
221
+ srcPath: "/_api/data/v1/schemas",
222
+ destPath: "/v1/schemas"
223
+ },
224
+ {
225
+ srcPath: "/_api/data/dbs/tasks",
226
+ destPath: "/dbs/tasks"
227
+ },
228
+ {
229
+ srcPath: "/_api/cloud-data/v1/wix-data",
230
+ destPath: "/v1/wix-data"
231
+ },
232
+ {
233
+ srcPath: "/_api/cloud-data/v1/data-settings",
234
+ destPath: "/v1/data-settings"
235
+ },
236
+ {
237
+ srcPath: "/_api/data/v2/indexes",
238
+ destPath: "/v2/indexes"
239
+ },
240
+ {
241
+ srcPath: "/_api/cloud-data/v1/external-database-connections",
242
+ destPath: "/v1/external-database-connections"
243
+ },
244
+ {
245
+ srcPath: "/_api/data/v1/data-collection-sharing",
246
+ destPath: "/v1/data-collection-sharing"
247
+ },
248
+ {
249
+ srcPath: "/_api/cloud-data/v2/collections",
250
+ destPath: "/v2/collections"
251
+ },
252
+ {
253
+ srcPath: "/_api/cloud-data/v2/bulk",
254
+ destPath: "/v2/bulk"
255
+ },
256
+ {
257
+ srcPath: "/_api/cloud-data/v2/items",
258
+ destPath: "/v2/items"
259
+ },
260
+ {
261
+ srcPath: "/_api/cloud-data/v2/dbs/tasks",
262
+ destPath: "/v2/dbs/tasks"
263
+ }
264
+ ],
265
+ "create.editorx": [
266
+ {
267
+ srcPath: "/_api/cloud-data/v1/schemas",
268
+ destPath: "/v1/schemas"
269
+ },
270
+ {
271
+ srcPath: "/_api/cloud-data/dbs/tasks",
272
+ destPath: "/dbs/tasks"
273
+ },
274
+ {
275
+ srcPath: "/_api/data/v1/schemas",
276
+ destPath: "/v1/schemas"
277
+ },
278
+ {
279
+ srcPath: "/_api/data/dbs/tasks",
280
+ destPath: "/dbs/tasks"
281
+ },
282
+ {
283
+ srcPath: "/_api/cloud-data/v1/wix-data",
284
+ destPath: "/v1/wix-data"
285
+ },
286
+ {
287
+ srcPath: "/_api/cloud-data/v1/data-settings",
288
+ destPath: "/v1/data-settings"
289
+ },
290
+ {
291
+ srcPath: "/_api/data/v2/indexes",
292
+ destPath: "/v2/indexes"
293
+ },
294
+ {
295
+ srcPath: "/_api/cloud-data/v1/external-database-connections",
296
+ destPath: "/v1/external-database-connections"
297
+ },
298
+ {
299
+ srcPath: "/_api/data/v1/data-collection-sharing",
300
+ destPath: "/v1/data-collection-sharing"
301
+ },
302
+ {
303
+ srcPath: "/_api/cloud-data/v2/collections",
304
+ destPath: "/v2/collections"
305
+ },
306
+ {
307
+ srcPath: "/_api/cloud-data/v2/bulk",
308
+ destPath: "/v2/bulk"
309
+ },
310
+ {
311
+ srcPath: "/_api/cloud-data/v2/items",
312
+ destPath: "/v2/items"
313
+ },
314
+ {
315
+ srcPath: "/_api/cloud-data/v2/dbs/tasks",
316
+ destPath: "/v2/dbs/tasks"
317
+ }
318
+ ],
319
+ "www.wixapis.com": [
320
+ {
321
+ srcPath: "/wix-data/v1/collections",
322
+ destPath: "/v1/wix-data/collections"
323
+ },
324
+ {
325
+ srcPath: "/wix-data/v1/external-database-connections",
326
+ destPath: "/v1/external-database-connections"
327
+ },
328
+ {
329
+ srcPath: "/wix-data/v2/indexes",
330
+ destPath: "/v2/indexes"
331
+ },
332
+ {
333
+ srcPath: "/wix-data/v1/items",
334
+ destPath: "/v1/items"
335
+ },
336
+ {
337
+ srcPath: "/wix-data/v1/bulk",
338
+ destPath: "/v1/bulk"
339
+ },
340
+ {
341
+ srcPath: "/wix-data/v1/external-databases",
342
+ destPath: "/v1/external-databases"
343
+ },
344
+ {
345
+ srcPath: "/wix-data/v2",
346
+ destPath: "/v2"
347
+ }
348
+ ],
349
+ "www.wixgateway.com": [
350
+ {
351
+ srcPath: "/wix-data/v1/items",
352
+ destPath: "/v1/items"
353
+ },
354
+ {
355
+ srcPath: "/wix-data/v1/bulk",
356
+ destPath: "/v1/bulk"
357
+ }
358
+ ],
359
+ "*.dev.wix-code.com": [
360
+ {
361
+ srcPath: "/_api/cloud-data/v2",
362
+ destPath: "/v2"
363
+ }
364
+ ]
365
+ };
366
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
367
+ }
368
+ var PACKAGE_NAME = "@wix/auto_sdk_data_collections";
369
+ function createDataCollection(payload) {
370
+ function __createDataCollection({ host }) {
371
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
372
+ {
373
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
374
+ paths: [
375
+ { path: "collection.createdDate" },
376
+ { path: "collection.updatedDate" }
377
+ ]
378
+ },
379
+ {
380
+ transformFn: import_float.transformSDKFloatToRESTFloat,
381
+ paths: [
382
+ { path: "collection.fields.numberRange.min" },
383
+ { path: "collection.fields.numberRange.max" }
384
+ ]
385
+ }
386
+ ]);
387
+ const metadata = {
388
+ entityFqdn: "wix.data.v2.data_collection",
389
+ method: "POST",
390
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollection",
391
+ packageName: PACKAGE_NAME,
392
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
393
+ { protoPath: "/v2/collections", data: serializedData, host }
394
+ ),
395
+ data: serializedData,
396
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
397
+ {
398
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
399
+ paths: [
400
+ { path: "collection.createdDate" },
401
+ { path: "collection.updatedDate" }
402
+ ]
403
+ },
404
+ {
405
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
406
+ paths: [
407
+ { path: "collection.fields.numberRange.min" },
408
+ { path: "collection.fields.numberRange.max" }
409
+ ]
410
+ }
411
+ ])
412
+ };
413
+ return metadata;
414
+ }
415
+ return __createDataCollection;
416
+ }
417
+ function getDataCollection(payload) {
418
+ function __getDataCollection({ host }) {
419
+ const metadata = {
420
+ entityFqdn: "wix.data.v2.data_collection",
421
+ method: "GET",
422
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.GetDataCollection",
423
+ packageName: PACKAGE_NAME,
424
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
425
+ { protoPath: "/v2/collections/{dataCollectionId}", data: payload, host }
426
+ ),
427
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
428
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
429
+ {
430
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
431
+ paths: [
432
+ { path: "collection.createdDate" },
433
+ { path: "collection.updatedDate" },
434
+ { path: "referencedCollections.createdDate" },
435
+ { path: "referencedCollections.updatedDate" }
436
+ ]
437
+ },
438
+ {
439
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
440
+ paths: [
441
+ { path: "collection.fields.numberRange.min" },
442
+ { path: "collection.fields.numberRange.max" },
443
+ { path: "referencedCollections.fields.numberRange.min" },
444
+ { path: "referencedCollections.fields.numberRange.max" }
445
+ ]
446
+ }
447
+ ])
448
+ };
449
+ return metadata;
450
+ }
451
+ return __getDataCollection;
452
+ }
453
+ function listDataCollections(payload) {
454
+ function __listDataCollections({ host }) {
455
+ const metadata = {
456
+ entityFqdn: "wix.data.v2.data_collection",
457
+ method: "GET",
458
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.ListDataCollections",
459
+ packageName: PACKAGE_NAME,
460
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
461
+ { protoPath: "/v2/collections", data: payload, host }
462
+ ),
463
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
464
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
465
+ {
466
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
467
+ paths: [
468
+ { path: "collections.createdDate" },
469
+ { path: "collections.updatedDate" }
470
+ ]
471
+ },
472
+ {
473
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
474
+ paths: [
475
+ { path: "collections.fields.numberRange.min" },
476
+ { path: "collections.fields.numberRange.max" }
477
+ ]
478
+ }
479
+ ])
480
+ };
481
+ return metadata;
482
+ }
483
+ return __listDataCollections;
484
+ }
485
+ function updateDataCollection(payload) {
486
+ function __updateDataCollection({ host }) {
487
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
488
+ {
489
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
490
+ paths: [
491
+ { path: "collection.createdDate" },
492
+ { path: "collection.updatedDate" }
493
+ ]
494
+ },
495
+ {
496
+ transformFn: import_float.transformSDKFloatToRESTFloat,
497
+ paths: [
498
+ { path: "collection.fields.numberRange.min" },
499
+ { path: "collection.fields.numberRange.max" }
500
+ ]
501
+ }
502
+ ]);
503
+ const metadata = {
504
+ entityFqdn: "wix.data.v2.data_collection",
505
+ method: "PUT",
506
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollection",
507
+ packageName: PACKAGE_NAME,
508
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
509
+ { protoPath: "/v2/collections", data: serializedData, host }
510
+ ),
511
+ data: serializedData,
512
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
513
+ {
514
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
515
+ paths: [
516
+ { path: "collection.createdDate" },
517
+ { path: "collection.updatedDate" }
518
+ ]
519
+ },
520
+ {
521
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
522
+ paths: [
523
+ { path: "collection.fields.numberRange.min" },
524
+ { path: "collection.fields.numberRange.max" }
525
+ ]
526
+ }
527
+ ])
528
+ };
529
+ return metadata;
530
+ }
531
+ return __updateDataCollection;
532
+ }
533
+ function deleteDataCollection(payload) {
534
+ function __deleteDataCollection({ host }) {
535
+ const metadata = {
536
+ entityFqdn: "wix.data.v2.data_collection",
537
+ method: "DELETE",
538
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollection",
539
+ packageName: PACKAGE_NAME,
540
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
541
+ { protoPath: "/v2/collections/{dataCollectionId}", data: payload, host }
542
+ ),
543
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
544
+ };
545
+ return metadata;
546
+ }
547
+ return __deleteDataCollection;
548
+ }
549
+ function restoreDataCollection(payload) {
550
+ function __restoreDataCollection({ host }) {
551
+ const metadata = {
552
+ entityFqdn: "wix.data.v2.data_collection",
553
+ method: "POST",
554
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.RestoreDataCollection",
555
+ packageName: PACKAGE_NAME,
556
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
557
+ {
558
+ protoPath: "/v2/collections/restore/{dataCollectionId}",
559
+ data: payload,
560
+ host
561
+ }
562
+ ),
563
+ data: payload,
564
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
565
+ {
566
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
567
+ paths: [
568
+ { path: "dataCollection.createdDate" },
569
+ { path: "dataCollection.updatedDate" }
570
+ ]
571
+ },
572
+ {
573
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
574
+ paths: [
575
+ { path: "dataCollection.fields.numberRange.min" },
576
+ { path: "dataCollection.fields.numberRange.max" }
577
+ ]
578
+ }
579
+ ])
580
+ };
581
+ return metadata;
582
+ }
583
+ return __restoreDataCollection;
584
+ }
585
+ function createDataCollectionField(payload) {
586
+ function __createDataCollectionField({ host }) {
587
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
588
+ {
589
+ transformFn: import_float.transformSDKFloatToRESTFloat,
590
+ paths: [
591
+ { path: "field.numberRange.min" },
592
+ { path: "field.numberRange.max" }
593
+ ]
594
+ }
595
+ ]);
596
+ const metadata = {
597
+ entityFqdn: "wix.data.v2.data_collection",
598
+ method: "POST",
599
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollectionField",
600
+ packageName: PACKAGE_NAME,
601
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
602
+ {
603
+ protoPath: "/v2/collections/create-field",
604
+ data: serializedData,
605
+ host
606
+ }
607
+ ),
608
+ data: serializedData,
609
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
610
+ {
611
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
612
+ paths: [
613
+ { path: "dataCollection.createdDate" },
614
+ { path: "dataCollection.updatedDate" }
615
+ ]
616
+ },
617
+ {
618
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
619
+ paths: [
620
+ { path: "dataCollection.fields.numberRange.min" },
621
+ { path: "dataCollection.fields.numberRange.max" }
622
+ ]
623
+ }
624
+ ])
625
+ };
626
+ return metadata;
627
+ }
628
+ return __createDataCollectionField;
629
+ }
630
+ function updateDataCollectionField(payload) {
631
+ function __updateDataCollectionField({ host }) {
632
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
633
+ {
634
+ transformFn: import_float.transformSDKFloatToRESTFloat,
635
+ paths: [
636
+ { path: "field.numberRange.min" },
637
+ { path: "field.numberRange.max" }
638
+ ]
639
+ }
640
+ ]);
641
+ const metadata = {
642
+ entityFqdn: "wix.data.v2.data_collection",
643
+ method: "POST",
644
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollectionField",
645
+ packageName: PACKAGE_NAME,
646
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
647
+ {
648
+ protoPath: "/v2/collections/update-field",
649
+ data: serializedData,
650
+ host
651
+ }
652
+ ),
653
+ data: serializedData,
654
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
655
+ {
656
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
657
+ paths: [
658
+ { path: "dataCollection.createdDate" },
659
+ { path: "dataCollection.updatedDate" }
660
+ ]
661
+ },
662
+ {
663
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
664
+ paths: [
665
+ { path: "dataCollection.fields.numberRange.min" },
666
+ { path: "dataCollection.fields.numberRange.max" }
667
+ ]
668
+ }
669
+ ])
670
+ };
671
+ return metadata;
672
+ }
673
+ return __updateDataCollectionField;
674
+ }
675
+ function deleteDataCollectionField(payload) {
676
+ function __deleteDataCollectionField({ host }) {
677
+ const metadata = {
678
+ entityFqdn: "wix.data.v2.data_collection",
679
+ method: "POST",
680
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionField",
681
+ packageName: PACKAGE_NAME,
682
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
683
+ { protoPath: "/v2/collections/delete-field", data: payload, host }
684
+ ),
685
+ data: payload,
686
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
687
+ {
688
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
689
+ paths: [
690
+ { path: "dataCollection.createdDate" },
691
+ { path: "dataCollection.updatedDate" }
692
+ ]
693
+ },
694
+ {
695
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
696
+ paths: [
697
+ { path: "dataCollection.fields.numberRange.min" },
698
+ { path: "dataCollection.fields.numberRange.max" }
699
+ ]
700
+ }
701
+ ])
702
+ };
703
+ return metadata;
704
+ }
705
+ return __deleteDataCollectionField;
706
+ }
707
+
708
+ // src/data-v2-data-collection-collections.meta.ts
709
+ function createDataCollection2() {
710
+ const payload = {};
711
+ const getRequestOptions = createDataCollection(payload);
712
+ const getUrl = (context) => {
713
+ const { url } = getRequestOptions(context);
714
+ return url;
715
+ };
716
+ return {
717
+ getUrl,
718
+ httpMethod: "POST",
719
+ path: "/v2/collections",
720
+ pathParams: {},
721
+ __requestType: null,
722
+ __originalRequestType: null,
723
+ __responseType: null,
724
+ __originalResponseType: null
725
+ };
726
+ }
727
+ function getDataCollection2() {
728
+ const payload = { dataCollectionId: ":dataCollectionId" };
729
+ const getRequestOptions = getDataCollection(payload);
730
+ const getUrl = (context) => {
731
+ const { url } = getRequestOptions(context);
732
+ return url;
733
+ };
734
+ return {
735
+ getUrl,
736
+ httpMethod: "GET",
737
+ path: "/v2/collections/{dataCollectionId}",
738
+ pathParams: { dataCollectionId: "dataCollectionId" },
739
+ __requestType: null,
740
+ __originalRequestType: null,
741
+ __responseType: null,
742
+ __originalResponseType: null
743
+ };
744
+ }
745
+ function listDataCollections2() {
746
+ const payload = {};
747
+ const getRequestOptions = listDataCollections(payload);
748
+ const getUrl = (context) => {
749
+ const { url } = getRequestOptions(context);
750
+ return url;
751
+ };
752
+ return {
753
+ getUrl,
754
+ httpMethod: "GET",
755
+ path: "/v2/collections",
756
+ pathParams: {},
757
+ __requestType: null,
758
+ __originalRequestType: null,
759
+ __responseType: null,
760
+ __originalResponseType: null
761
+ };
762
+ }
763
+ function updateDataCollection2() {
764
+ const payload = {};
765
+ const getRequestOptions = updateDataCollection(payload);
766
+ const getUrl = (context) => {
767
+ const { url } = getRequestOptions(context);
768
+ return url;
769
+ };
770
+ return {
771
+ getUrl,
772
+ httpMethod: "PUT",
773
+ path: "/v2/collections",
774
+ pathParams: {},
775
+ __requestType: null,
776
+ __originalRequestType: null,
777
+ __responseType: null,
778
+ __originalResponseType: null
779
+ };
780
+ }
781
+ function deleteDataCollection2() {
782
+ const payload = { dataCollectionId: ":dataCollectionId" };
783
+ const getRequestOptions = deleteDataCollection(payload);
784
+ const getUrl = (context) => {
785
+ const { url } = getRequestOptions(context);
786
+ return url;
787
+ };
788
+ return {
789
+ getUrl,
790
+ httpMethod: "DELETE",
791
+ path: "/v2/collections/{dataCollectionId}",
792
+ pathParams: { dataCollectionId: "dataCollectionId" },
793
+ __requestType: null,
794
+ __originalRequestType: null,
795
+ __responseType: null,
796
+ __originalResponseType: null
797
+ };
798
+ }
799
+ function restoreDataCollection2() {
800
+ const payload = { dataCollectionId: ":dataCollectionId" };
801
+ const getRequestOptions = restoreDataCollection(payload);
802
+ const getUrl = (context) => {
803
+ const { url } = getRequestOptions(context);
804
+ return url;
805
+ };
806
+ return {
807
+ getUrl,
808
+ httpMethod: "POST",
809
+ path: "/v2/collections/restore/{dataCollectionId}",
810
+ pathParams: { dataCollectionId: "dataCollectionId" },
811
+ __requestType: null,
812
+ __originalRequestType: null,
813
+ __responseType: null,
814
+ __originalResponseType: null
815
+ };
816
+ }
817
+ function createDataCollectionField2() {
818
+ const payload = {};
819
+ const getRequestOptions = createDataCollectionField(payload);
820
+ const getUrl = (context) => {
821
+ const { url } = getRequestOptions(context);
822
+ return url;
823
+ };
824
+ return {
825
+ getUrl,
826
+ httpMethod: "POST",
827
+ path: "/v2/collections/create-field",
828
+ pathParams: {},
829
+ __requestType: null,
830
+ __originalRequestType: null,
831
+ __responseType: null,
832
+ __originalResponseType: null
833
+ };
834
+ }
835
+ function updateDataCollectionField2() {
836
+ const payload = {};
837
+ const getRequestOptions = updateDataCollectionField(payload);
838
+ const getUrl = (context) => {
839
+ const { url } = getRequestOptions(context);
840
+ return url;
841
+ };
842
+ return {
843
+ getUrl,
844
+ httpMethod: "POST",
845
+ path: "/v2/collections/update-field",
846
+ pathParams: {},
847
+ __requestType: null,
848
+ __originalRequestType: null,
849
+ __responseType: null,
850
+ __originalResponseType: null
851
+ };
852
+ }
853
+ function deleteDataCollectionField2() {
854
+ const payload = {};
855
+ const getRequestOptions = deleteDataCollectionField(payload);
856
+ const getUrl = (context) => {
857
+ const { url } = getRequestOptions(context);
858
+ return url;
859
+ };
860
+ return {
861
+ getUrl,
862
+ httpMethod: "POST",
863
+ path: "/v2/collections/delete-field",
864
+ pathParams: {},
865
+ __requestType: null,
866
+ __originalRequestType: null,
867
+ __responseType: null,
868
+ __originalResponseType: null
869
+ };
870
+ }
871
+ // Annotate the CommonJS export names for ESM import in node:
872
+ 0 && (module.exports = {
873
+ createDataCollection,
874
+ createDataCollectionField,
875
+ deleteDataCollection,
876
+ deleteDataCollectionField,
877
+ getDataCollection,
878
+ listDataCollections,
879
+ restoreDataCollection,
880
+ updateDataCollection,
881
+ updateDataCollectionField
882
+ });
883
+ //# sourceMappingURL=meta.js.map