@wix/auto_sdk_stores_product-groups-v-3 1.0.0

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 (43) hide show
  1. package/build/cjs/index.d.ts +11 -0
  2. package/build/cjs/index.js +1279 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +7 -0
  5. package/build/cjs/index.typings.js +1141 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1393 -0
  8. package/build/cjs/meta.js +939 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/stores-catalog-v3-product-group-product-groups-v-3.universal-BSxpFEZE.d.ts +1824 -0
  11. package/build/es/index.d.mts +11 -0
  12. package/build/es/index.mjs +1226 -0
  13. package/build/es/index.mjs.map +1 -0
  14. package/build/es/index.typings.d.mts +7 -0
  15. package/build/es/index.typings.mjs +1087 -0
  16. package/build/es/index.typings.mjs.map +1 -0
  17. package/build/es/meta.d.mts +1393 -0
  18. package/build/es/meta.mjs +884 -0
  19. package/build/es/meta.mjs.map +1 -0
  20. package/build/es/package.json +3 -0
  21. package/build/es/stores-catalog-v3-product-group-product-groups-v-3.universal-BSxpFEZE.d.mts +1824 -0
  22. package/build/internal/cjs/index.d.ts +162 -0
  23. package/build/internal/cjs/index.js +1279 -0
  24. package/build/internal/cjs/index.js.map +1 -0
  25. package/build/internal/cjs/index.typings.d.ts +21 -0
  26. package/build/internal/cjs/index.typings.js +1141 -0
  27. package/build/internal/cjs/index.typings.js.map +1 -0
  28. package/build/internal/cjs/meta.d.ts +1393 -0
  29. package/build/internal/cjs/meta.js +939 -0
  30. package/build/internal/cjs/meta.js.map +1 -0
  31. package/build/internal/cjs/stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.d.ts +1986 -0
  32. package/build/internal/es/index.d.mts +162 -0
  33. package/build/internal/es/index.mjs +1226 -0
  34. package/build/internal/es/index.mjs.map +1 -0
  35. package/build/internal/es/index.typings.d.mts +21 -0
  36. package/build/internal/es/index.typings.mjs +1087 -0
  37. package/build/internal/es/index.typings.mjs.map +1 -0
  38. package/build/internal/es/meta.d.mts +1393 -0
  39. package/build/internal/es/meta.mjs +884 -0
  40. package/build/internal/es/meta.mjs.map +1 -0
  41. package/build/internal/es/stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.d.mts +1986 -0
  42. package/meta/package.json +3 -0
  43. package/package.json +55 -0
@@ -0,0 +1,884 @@
1
+ // src/stores-catalog-v3-product-group-product-groups-v-3.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
+ function resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl(opts) {
11
+ const domainToMappings = {
12
+ "api._api_base_domain_": [
13
+ {
14
+ srcPath: "/product-group",
15
+ destPath: ""
16
+ }
17
+ ],
18
+ "editor._base_domain_": [
19
+ {
20
+ srcPath: "/_api/product-group",
21
+ destPath: ""
22
+ }
23
+ ],
24
+ "blocks._base_domain_": [
25
+ {
26
+ srcPath: "/_api/product-group",
27
+ destPath: ""
28
+ }
29
+ ],
30
+ "create.editorx": [
31
+ {
32
+ srcPath: "/_api/product-group",
33
+ destPath: ""
34
+ }
35
+ ],
36
+ _: [
37
+ {
38
+ srcPath: "/_api/product-group",
39
+ destPath: ""
40
+ }
41
+ ],
42
+ "manage._base_domain_": [
43
+ {
44
+ srcPath: "/_api/product-group",
45
+ destPath: ""
46
+ }
47
+ ],
48
+ "www.wixapis.com": [
49
+ {
50
+ srcPath: "/stores/v3/product-groups",
51
+ destPath: "/v3/product-groups"
52
+ },
53
+ {
54
+ srcPath: "/stores/v3/bulk/product-groups",
55
+ destPath: "/v3/bulk/product-groups"
56
+ }
57
+ ],
58
+ "*.dev.wix-code.com": [
59
+ {
60
+ srcPath: "/_api/product-group",
61
+ destPath: ""
62
+ }
63
+ ]
64
+ };
65
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
66
+ }
67
+ var PACKAGE_NAME = "@wix/auto_sdk_stores_product-groups-v-3";
68
+ function createProductGroup(payload) {
69
+ function __createProductGroup({ host }) {
70
+ const serializedData = transformPaths(payload, [
71
+ {
72
+ transformFn: transformSDKTimestampToRESTTimestamp,
73
+ paths: [
74
+ { path: "productGroup.createdDate" },
75
+ { path: "productGroup.updatedDate" }
76
+ ]
77
+ }
78
+ ]);
79
+ const metadata = {
80
+ entityFqdn: "wix.stores.catalog.v3.product_group",
81
+ method: "POST",
82
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.CreateProductGroup",
83
+ packageName: PACKAGE_NAME,
84
+ migrationOptions: {
85
+ optInTransformResponse: true
86
+ },
87
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
88
+ protoPath: "/v3/product-groups",
89
+ data: serializedData,
90
+ host
91
+ }),
92
+ data: serializedData,
93
+ transformResponse: (payload2) => transformPaths(payload2, [
94
+ {
95
+ transformFn: transformRESTTimestampToSDKTimestamp,
96
+ paths: [
97
+ { path: "productGroup.createdDate" },
98
+ { path: "productGroup.updatedDate" }
99
+ ]
100
+ }
101
+ ])
102
+ };
103
+ return metadata;
104
+ }
105
+ return __createProductGroup;
106
+ }
107
+ function updateProductGroup(payload) {
108
+ function __updateProductGroup({ host }) {
109
+ const serializedData = transformPaths(payload, [
110
+ {
111
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
112
+ paths: [{ path: "fieldMask" }]
113
+ },
114
+ {
115
+ transformFn: transformSDKTimestampToRESTTimestamp,
116
+ paths: [
117
+ { path: "productGroup.createdDate" },
118
+ { path: "productGroup.updatedDate" }
119
+ ]
120
+ }
121
+ ]);
122
+ const metadata = {
123
+ entityFqdn: "wix.stores.catalog.v3.product_group",
124
+ method: "PATCH",
125
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.UpdateProductGroup",
126
+ packageName: PACKAGE_NAME,
127
+ migrationOptions: {
128
+ optInTransformResponse: true
129
+ },
130
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
131
+ protoPath: "/v3/product-groups/{productGroup.id}",
132
+ data: serializedData,
133
+ host
134
+ }),
135
+ data: serializedData,
136
+ transformResponse: (payload2) => transformPaths(payload2, [
137
+ {
138
+ transformFn: transformRESTTimestampToSDKTimestamp,
139
+ paths: [
140
+ { path: "productGroup.createdDate" },
141
+ { path: "productGroup.updatedDate" }
142
+ ]
143
+ }
144
+ ])
145
+ };
146
+ return metadata;
147
+ }
148
+ return __updateProductGroup;
149
+ }
150
+ function deleteProductGroup(payload) {
151
+ function __deleteProductGroup({ host }) {
152
+ const metadata = {
153
+ entityFqdn: "wix.stores.catalog.v3.product_group",
154
+ method: "DELETE",
155
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.DeleteProductGroup",
156
+ packageName: PACKAGE_NAME,
157
+ migrationOptions: {
158
+ optInTransformResponse: true
159
+ },
160
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
161
+ protoPath: "/v3/product-groups/{productGroupId}",
162
+ data: payload,
163
+ host
164
+ }),
165
+ params: toURLSearchParams(payload)
166
+ };
167
+ return metadata;
168
+ }
169
+ return __deleteProductGroup;
170
+ }
171
+ function getProductGroup(payload) {
172
+ function __getProductGroup({ host }) {
173
+ const metadata = {
174
+ entityFqdn: "wix.stores.catalog.v3.product_group",
175
+ method: "GET",
176
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.GetProductGroup",
177
+ packageName: PACKAGE_NAME,
178
+ migrationOptions: {
179
+ optInTransformResponse: true
180
+ },
181
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
182
+ protoPath: "/v3/product-groups/{productGroupId}",
183
+ data: payload,
184
+ host
185
+ }),
186
+ params: toURLSearchParams(payload),
187
+ transformResponse: (payload2) => transformPaths(payload2, [
188
+ {
189
+ transformFn: transformRESTTimestampToSDKTimestamp,
190
+ paths: [
191
+ { path: "productGroup.createdDate" },
192
+ { path: "productGroup.updatedDate" }
193
+ ]
194
+ }
195
+ ])
196
+ };
197
+ return metadata;
198
+ }
199
+ return __getProductGroup;
200
+ }
201
+ function queryProductGroups(payload) {
202
+ function __queryProductGroups({ host }) {
203
+ const metadata = {
204
+ entityFqdn: "wix.stores.catalog.v3.product_group",
205
+ method: "GET",
206
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.QueryProductGroups",
207
+ packageName: PACKAGE_NAME,
208
+ migrationOptions: {
209
+ optInTransformResponse: true
210
+ },
211
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
212
+ protoPath: "/v3/product-groups/query",
213
+ data: payload,
214
+ host
215
+ }),
216
+ params: toURLSearchParams(payload, true),
217
+ transformResponse: (payload2) => transformPaths(payload2, [
218
+ {
219
+ transformFn: transformRESTTimestampToSDKTimestamp,
220
+ paths: [
221
+ { path: "productGroups.createdDate" },
222
+ { path: "productGroups.updatedDate" }
223
+ ]
224
+ }
225
+ ]),
226
+ fallback: [
227
+ {
228
+ method: "POST",
229
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
230
+ protoPath: "/v3/product-groups/query",
231
+ data: payload,
232
+ host
233
+ }),
234
+ data: payload
235
+ }
236
+ ]
237
+ };
238
+ return metadata;
239
+ }
240
+ return __queryProductGroups;
241
+ }
242
+ function searchProductGroups(payload) {
243
+ function __searchProductGroups({ host }) {
244
+ const serializedData = transformPaths(payload, [
245
+ {
246
+ transformFn: transformSDKFloatToRESTFloat,
247
+ paths: [
248
+ { path: "search.aggregations.range.buckets.from" },
249
+ { path: "search.aggregations.range.buckets.to" },
250
+ {
251
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
252
+ },
253
+ {
254
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
255
+ }
256
+ ]
257
+ }
258
+ ]);
259
+ const metadata = {
260
+ entityFqdn: "wix.stores.catalog.v3.product_group",
261
+ method: "GET",
262
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.SearchProductGroups",
263
+ packageName: PACKAGE_NAME,
264
+ migrationOptions: {
265
+ optInTransformResponse: true
266
+ },
267
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
268
+ protoPath: "/v3/product-groups/search",
269
+ data: serializedData,
270
+ host
271
+ }),
272
+ params: toURLSearchParams(serializedData, true),
273
+ transformResponse: (payload2) => transformPaths(payload2, [
274
+ {
275
+ transformFn: transformRESTTimestampToSDKTimestamp,
276
+ paths: [
277
+ { path: "productGroups.createdDate" },
278
+ { path: "productGroups.updatedDate" }
279
+ ]
280
+ },
281
+ {
282
+ transformFn: transformRESTFloatToSDKFloat,
283
+ paths: [
284
+ { path: "aggregationData.results.ranges.results.from" },
285
+ { path: "aggregationData.results.ranges.results.to" },
286
+ {
287
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
288
+ },
289
+ {
290
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
291
+ },
292
+ {
293
+ path: "aggregationData.results.nested.results.results.*.range.from"
294
+ },
295
+ {
296
+ path: "aggregationData.results.nested.results.results.*.range.to"
297
+ },
298
+ { path: "aggregationData.results.scalar.value" },
299
+ {
300
+ path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
301
+ },
302
+ {
303
+ path: "aggregationData.results.nested.results.results.*.scalar.value"
304
+ }
305
+ ]
306
+ }
307
+ ]),
308
+ fallback: [
309
+ {
310
+ method: "POST",
311
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
312
+ protoPath: "/v3/product-groups/search",
313
+ data: serializedData,
314
+ host
315
+ }),
316
+ data: serializedData
317
+ }
318
+ ]
319
+ };
320
+ return metadata;
321
+ }
322
+ return __searchProductGroups;
323
+ }
324
+ function bulkCreateProductGroups(payload) {
325
+ function __bulkCreateProductGroups({ host }) {
326
+ const serializedData = transformPaths(payload, [
327
+ {
328
+ transformFn: transformSDKTimestampToRESTTimestamp,
329
+ paths: [
330
+ { path: "productGroups.createdDate" },
331
+ { path: "productGroups.updatedDate" }
332
+ ]
333
+ }
334
+ ]);
335
+ const metadata = {
336
+ entityFqdn: "wix.stores.catalog.v3.product_group",
337
+ method: "POST",
338
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.BulkCreateProductGroups",
339
+ packageName: PACKAGE_NAME,
340
+ migrationOptions: {
341
+ optInTransformResponse: true
342
+ },
343
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
344
+ protoPath: "/v3/bulk/product-groups/create",
345
+ data: serializedData,
346
+ host
347
+ }),
348
+ data: serializedData,
349
+ transformResponse: (payload2) => transformPaths(payload2, [
350
+ {
351
+ transformFn: transformRESTTimestampToSDKTimestamp,
352
+ paths: [
353
+ { path: "results.item.createdDate" },
354
+ { path: "results.item.updatedDate" }
355
+ ]
356
+ }
357
+ ])
358
+ };
359
+ return metadata;
360
+ }
361
+ return __bulkCreateProductGroups;
362
+ }
363
+ function bulkUpdateProductGroups(payload) {
364
+ function __bulkUpdateProductGroups({ host }) {
365
+ const serializedData = transformPaths(payload, [
366
+ {
367
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
368
+ paths: [{ path: "productGroups.fieldMask" }]
369
+ },
370
+ {
371
+ transformFn: transformSDKTimestampToRESTTimestamp,
372
+ paths: [
373
+ { path: "productGroups.productGroup.createdDate" },
374
+ { path: "productGroups.productGroup.updatedDate" }
375
+ ]
376
+ }
377
+ ]);
378
+ const metadata = {
379
+ entityFqdn: "wix.stores.catalog.v3.product_group",
380
+ method: "POST",
381
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroups",
382
+ packageName: PACKAGE_NAME,
383
+ migrationOptions: {
384
+ optInTransformResponse: true
385
+ },
386
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
387
+ protoPath: "/v3/bulk/product-groups/update",
388
+ data: serializedData,
389
+ host
390
+ }),
391
+ data: serializedData,
392
+ transformResponse: (payload2) => transformPaths(payload2, [
393
+ {
394
+ transformFn: transformRESTTimestampToSDKTimestamp,
395
+ paths: [
396
+ { path: "results.item.createdDate" },
397
+ { path: "results.item.updatedDate" }
398
+ ]
399
+ }
400
+ ])
401
+ };
402
+ return metadata;
403
+ }
404
+ return __bulkUpdateProductGroups;
405
+ }
406
+ function assignProductsToProductGroup(payload) {
407
+ function __assignProductsToProductGroup({ host }) {
408
+ const metadata = {
409
+ entityFqdn: "wix.stores.catalog.v3.product_group",
410
+ method: "POST",
411
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.AssignProductsToProductGroup",
412
+ packageName: PACKAGE_NAME,
413
+ migrationOptions: {
414
+ optInTransformResponse: true
415
+ },
416
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
417
+ protoPath: "/v3/product-groups/assign-products",
418
+ data: payload,
419
+ host
420
+ }),
421
+ data: payload
422
+ };
423
+ return metadata;
424
+ }
425
+ return __assignProductsToProductGroup;
426
+ }
427
+ function unassignProductsFromProductGroup(payload) {
428
+ function __unassignProductsFromProductGroup({ host }) {
429
+ const metadata = {
430
+ entityFqdn: "wix.stores.catalog.v3.product_group",
431
+ method: "POST",
432
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.UnassignProductsFromProductGroup",
433
+ packageName: PACKAGE_NAME,
434
+ migrationOptions: {
435
+ optInTransformResponse: true
436
+ },
437
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
438
+ protoPath: "/v3/product-groups/unassign-products",
439
+ data: payload,
440
+ host
441
+ }),
442
+ data: payload
443
+ };
444
+ return metadata;
445
+ }
446
+ return __unassignProductsFromProductGroup;
447
+ }
448
+ function bulkDeleteProductGroups(payload) {
449
+ function __bulkDeleteProductGroups({ host }) {
450
+ const metadata = {
451
+ entityFqdn: "wix.stores.catalog.v3.product_group",
452
+ method: "POST",
453
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.BulkDeleteProductGroups",
454
+ packageName: PACKAGE_NAME,
455
+ migrationOptions: {
456
+ optInTransformResponse: true
457
+ },
458
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
459
+ protoPath: "/v3/bulk/product-groups/delete",
460
+ data: payload,
461
+ host
462
+ }),
463
+ data: payload
464
+ };
465
+ return metadata;
466
+ }
467
+ return __bulkDeleteProductGroups;
468
+ }
469
+ function bulkUpdateProductGroupTags(payload) {
470
+ function __bulkUpdateProductGroupTags({ host }) {
471
+ const metadata = {
472
+ entityFqdn: "wix.stores.catalog.v3.product_group",
473
+ method: "POST",
474
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTags",
475
+ packageName: PACKAGE_NAME,
476
+ migrationOptions: {
477
+ optInTransformResponse: true
478
+ },
479
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
480
+ protoPath: "/v3/bulk/product-groups/update-tags",
481
+ data: payload,
482
+ host
483
+ }),
484
+ data: payload
485
+ };
486
+ return metadata;
487
+ }
488
+ return __bulkUpdateProductGroupTags;
489
+ }
490
+ function bulkUpdateProductGroupTagsByFilter(payload) {
491
+ function __bulkUpdateProductGroupTagsByFilter({ host }) {
492
+ const metadata = {
493
+ entityFqdn: "wix.stores.catalog.v3.product_group",
494
+ method: "POST",
495
+ methodFqn: "wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTagsByFilter",
496
+ packageName: PACKAGE_NAME,
497
+ migrationOptions: {
498
+ optInTransformResponse: true
499
+ },
500
+ url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({
501
+ protoPath: "/v3/bulk/product-groups/update-tags-by-filter",
502
+ data: payload,
503
+ host
504
+ }),
505
+ data: payload
506
+ };
507
+ return metadata;
508
+ }
509
+ return __bulkUpdateProductGroupTagsByFilter;
510
+ }
511
+
512
+ // src/stores-catalog-v3-product-group-product-groups-v-3.types.ts
513
+ var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
514
+ ChoiceType2["CHOICE_TEXT"] = "CHOICE_TEXT";
515
+ ChoiceType2["ONE_COLOR"] = "ONE_COLOR";
516
+ return ChoiceType2;
517
+ })(ChoiceType || {});
518
+ var AvailabilityStatus = /* @__PURE__ */ ((AvailabilityStatus2) => {
519
+ AvailabilityStatus2["IN_STOCK"] = "IN_STOCK";
520
+ AvailabilityStatus2["OUT_OF_STOCK"] = "OUT_OF_STOCK";
521
+ AvailabilityStatus2["PARTIALLY_OUT_OF_STOCK"] = "PARTIALLY_OUT_OF_STOCK";
522
+ return AvailabilityStatus2;
523
+ })(AvailabilityStatus || {});
524
+ var MembershipStatus = /* @__PURE__ */ ((MembershipStatus2) => {
525
+ MembershipStatus2["ACTIVE"] = "ACTIVE";
526
+ MembershipStatus2["HIDDEN"] = "HIDDEN";
527
+ MembershipStatus2["OUT_OF_SYNC"] = "OUT_OF_SYNC";
528
+ return MembershipStatus2;
529
+ })(MembershipStatus || {});
530
+ var CustomizationType = /* @__PURE__ */ ((CustomizationType2) => {
531
+ CustomizationType2["PRODUCT_OPTION"] = "PRODUCT_OPTION";
532
+ CustomizationType2["MODIFIER"] = "MODIFIER";
533
+ return CustomizationType2;
534
+ })(CustomizationType || {});
535
+ var CustomizationRenderType = /* @__PURE__ */ ((CustomizationRenderType2) => {
536
+ CustomizationRenderType2["FREE_TEXT"] = "FREE_TEXT";
537
+ CustomizationRenderType2["TEXT_CHOICES"] = "TEXT_CHOICES";
538
+ CustomizationRenderType2["SWATCH_CHOICES"] = "SWATCH_CHOICES";
539
+ return CustomizationRenderType2;
540
+ })(CustomizationRenderType || {});
541
+ var ProductGroupRequestedFields = /* @__PURE__ */ ((ProductGroupRequestedFields2) => {
542
+ ProductGroupRequestedFields2["GROUPING_CUSTOMIZATION"] = "GROUPING_CUSTOMIZATION";
543
+ return ProductGroupRequestedFields2;
544
+ })(ProductGroupRequestedFields || {});
545
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
546
+ SortOrder2["ASC"] = "ASC";
547
+ SortOrder2["DESC"] = "DESC";
548
+ return SortOrder2;
549
+ })(SortOrder || {});
550
+ var SortType = /* @__PURE__ */ ((SortType2) => {
551
+ SortType2["COUNT"] = "COUNT";
552
+ SortType2["VALUE"] = "VALUE";
553
+ return SortType2;
554
+ })(SortType || {});
555
+ var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
556
+ SortDirection2["DESC"] = "DESC";
557
+ SortDirection2["ASC"] = "ASC";
558
+ return SortDirection2;
559
+ })(SortDirection || {});
560
+ var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
561
+ MissingValues2["EXCLUDE"] = "EXCLUDE";
562
+ MissingValues2["INCLUDE"] = "INCLUDE";
563
+ return MissingValues2;
564
+ })(MissingValues || {});
565
+ var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
566
+ ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
567
+ ScalarType2["MIN"] = "MIN";
568
+ ScalarType2["MAX"] = "MAX";
569
+ return ScalarType2;
570
+ })(ScalarType || {});
571
+ var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
572
+ NestedAggregationType2["VALUE"] = "VALUE";
573
+ NestedAggregationType2["RANGE"] = "RANGE";
574
+ NestedAggregationType2["SCALAR"] = "SCALAR";
575
+ NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
576
+ return NestedAggregationType2;
577
+ })(NestedAggregationType || {});
578
+ var Interval = /* @__PURE__ */ ((Interval2) => {
579
+ Interval2["YEAR"] = "YEAR";
580
+ Interval2["MONTH"] = "MONTH";
581
+ Interval2["WEEK"] = "WEEK";
582
+ Interval2["DAY"] = "DAY";
583
+ Interval2["HOUR"] = "HOUR";
584
+ Interval2["MINUTE"] = "MINUTE";
585
+ Interval2["SECOND"] = "SECOND";
586
+ return Interval2;
587
+ })(Interval || {});
588
+ var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
589
+ AggregationType2["VALUE"] = "VALUE";
590
+ AggregationType2["RANGE"] = "RANGE";
591
+ AggregationType2["SCALAR"] = "SCALAR";
592
+ AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
593
+ AggregationType2["NESTED"] = "NESTED";
594
+ return AggregationType2;
595
+ })(AggregationType || {});
596
+ var Mode = /* @__PURE__ */ ((Mode2) => {
597
+ Mode2["OR"] = "OR";
598
+ Mode2["AND"] = "AND";
599
+ return Mode2;
600
+ })(Mode || {});
601
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
602
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
603
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
604
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
605
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
606
+ WebhookIdentityType2["APP"] = "APP";
607
+ return WebhookIdentityType2;
608
+ })(WebhookIdentityType || {});
609
+
610
+ // src/stores-catalog-v3-product-group-product-groups-v-3.meta.ts
611
+ function createProductGroup2() {
612
+ const payload = {};
613
+ const getRequestOptions = createProductGroup(payload);
614
+ const getUrl = (context) => {
615
+ const { url } = getRequestOptions(context);
616
+ return url;
617
+ };
618
+ return {
619
+ getUrl,
620
+ httpMethod: "POST",
621
+ path: "/v3/product-groups",
622
+ pathParams: {},
623
+ __requestType: null,
624
+ __originalRequestType: null,
625
+ __responseType: null,
626
+ __originalResponseType: null
627
+ };
628
+ }
629
+ function updateProductGroup2() {
630
+ const payload = { productGroup: { id: ":productGroupId" } };
631
+ const getRequestOptions = updateProductGroup(payload);
632
+ const getUrl = (context) => {
633
+ const { url } = getRequestOptions(context);
634
+ return url;
635
+ };
636
+ return {
637
+ getUrl,
638
+ httpMethod: "PATCH",
639
+ path: "/v3/product-groups/{productGroup.id}",
640
+ pathParams: { productGroupId: "productGroupId" },
641
+ __requestType: null,
642
+ __originalRequestType: null,
643
+ __responseType: null,
644
+ __originalResponseType: null
645
+ };
646
+ }
647
+ function deleteProductGroup2() {
648
+ const payload = { productGroupId: ":productGroupId" };
649
+ const getRequestOptions = deleteProductGroup(payload);
650
+ const getUrl = (context) => {
651
+ const { url } = getRequestOptions(context);
652
+ return url;
653
+ };
654
+ return {
655
+ getUrl,
656
+ httpMethod: "DELETE",
657
+ path: "/v3/product-groups/{productGroupId}",
658
+ pathParams: { productGroupId: "productGroupId" },
659
+ __requestType: null,
660
+ __originalRequestType: null,
661
+ __responseType: null,
662
+ __originalResponseType: null
663
+ };
664
+ }
665
+ function getProductGroup2() {
666
+ const payload = { productGroupId: ":productGroupId" };
667
+ const getRequestOptions = getProductGroup(payload);
668
+ const getUrl = (context) => {
669
+ const { url } = getRequestOptions(context);
670
+ return url;
671
+ };
672
+ return {
673
+ getUrl,
674
+ httpMethod: "GET",
675
+ path: "/v3/product-groups/{productGroupId}",
676
+ pathParams: { productGroupId: "productGroupId" },
677
+ __requestType: null,
678
+ __originalRequestType: null,
679
+ __responseType: null,
680
+ __originalResponseType: null
681
+ };
682
+ }
683
+ function queryProductGroups2() {
684
+ const payload = {};
685
+ const getRequestOptions = queryProductGroups(payload);
686
+ const getUrl = (context) => {
687
+ const { url } = getRequestOptions(context);
688
+ return url;
689
+ };
690
+ return {
691
+ getUrl,
692
+ httpMethod: "GET",
693
+ path: "/v3/product-groups/query",
694
+ pathParams: {},
695
+ __requestType: null,
696
+ __originalRequestType: null,
697
+ __responseType: null,
698
+ __originalResponseType: null
699
+ };
700
+ }
701
+ function searchProductGroups2() {
702
+ const payload = {};
703
+ const getRequestOptions = searchProductGroups(payload);
704
+ const getUrl = (context) => {
705
+ const { url } = getRequestOptions(context);
706
+ return url;
707
+ };
708
+ return {
709
+ getUrl,
710
+ httpMethod: "GET",
711
+ path: "/v3/product-groups/search",
712
+ pathParams: {},
713
+ __requestType: null,
714
+ __originalRequestType: null,
715
+ __responseType: null,
716
+ __originalResponseType: null
717
+ };
718
+ }
719
+ function bulkCreateProductGroups2() {
720
+ const payload = {};
721
+ const getRequestOptions = bulkCreateProductGroups(payload);
722
+ const getUrl = (context) => {
723
+ const { url } = getRequestOptions(context);
724
+ return url;
725
+ };
726
+ return {
727
+ getUrl,
728
+ httpMethod: "POST",
729
+ path: "/v3/bulk/product-groups/create",
730
+ pathParams: {},
731
+ __requestType: null,
732
+ __originalRequestType: null,
733
+ __responseType: null,
734
+ __originalResponseType: null
735
+ };
736
+ }
737
+ function bulkUpdateProductGroups2() {
738
+ const payload = {};
739
+ const getRequestOptions = bulkUpdateProductGroups(payload);
740
+ const getUrl = (context) => {
741
+ const { url } = getRequestOptions(context);
742
+ return url;
743
+ };
744
+ return {
745
+ getUrl,
746
+ httpMethod: "POST",
747
+ path: "/v3/bulk/product-groups/update",
748
+ pathParams: {},
749
+ __requestType: null,
750
+ __originalRequestType: null,
751
+ __responseType: null,
752
+ __originalResponseType: null
753
+ };
754
+ }
755
+ function assignProductsToProductGroup2() {
756
+ const payload = {};
757
+ const getRequestOptions = assignProductsToProductGroup(
758
+ payload
759
+ );
760
+ const getUrl = (context) => {
761
+ const { url } = getRequestOptions(context);
762
+ return url;
763
+ };
764
+ return {
765
+ getUrl,
766
+ httpMethod: "POST",
767
+ path: "/v3/product-groups/assign-products",
768
+ pathParams: {},
769
+ __requestType: null,
770
+ __originalRequestType: null,
771
+ __responseType: null,
772
+ __originalResponseType: null
773
+ };
774
+ }
775
+ function unassignProductsFromProductGroup2() {
776
+ const payload = {};
777
+ const getRequestOptions = unassignProductsFromProductGroup(
778
+ payload
779
+ );
780
+ const getUrl = (context) => {
781
+ const { url } = getRequestOptions(context);
782
+ return url;
783
+ };
784
+ return {
785
+ getUrl,
786
+ httpMethod: "POST",
787
+ path: "/v3/product-groups/unassign-products",
788
+ pathParams: {},
789
+ __requestType: null,
790
+ __originalRequestType: null,
791
+ __responseType: null,
792
+ __originalResponseType: null
793
+ };
794
+ }
795
+ function bulkDeleteProductGroups2() {
796
+ const payload = {};
797
+ const getRequestOptions = bulkDeleteProductGroups(payload);
798
+ const getUrl = (context) => {
799
+ const { url } = getRequestOptions(context);
800
+ return url;
801
+ };
802
+ return {
803
+ getUrl,
804
+ httpMethod: "POST",
805
+ path: "/v3/bulk/product-groups/delete",
806
+ pathParams: {},
807
+ __requestType: null,
808
+ __originalRequestType: null,
809
+ __responseType: null,
810
+ __originalResponseType: null
811
+ };
812
+ }
813
+ function bulkUpdateProductGroupTags2() {
814
+ const payload = {};
815
+ const getRequestOptions = bulkUpdateProductGroupTags(
816
+ payload
817
+ );
818
+ const getUrl = (context) => {
819
+ const { url } = getRequestOptions(context);
820
+ return url;
821
+ };
822
+ return {
823
+ getUrl,
824
+ httpMethod: "POST",
825
+ path: "/v3/bulk/product-groups/update-tags",
826
+ pathParams: {},
827
+ __requestType: null,
828
+ __originalRequestType: null,
829
+ __responseType: null,
830
+ __originalResponseType: null
831
+ };
832
+ }
833
+ function bulkUpdateProductGroupTagsByFilter2() {
834
+ const payload = {};
835
+ const getRequestOptions = bulkUpdateProductGroupTagsByFilter(
836
+ payload
837
+ );
838
+ const getUrl = (context) => {
839
+ const { url } = getRequestOptions(context);
840
+ return url;
841
+ };
842
+ return {
843
+ getUrl,
844
+ httpMethod: "POST",
845
+ path: "/v3/bulk/product-groups/update-tags-by-filter",
846
+ pathParams: {},
847
+ __requestType: null,
848
+ __originalRequestType: null,
849
+ __responseType: null,
850
+ __originalResponseType: null
851
+ };
852
+ }
853
+ export {
854
+ AggregationType as AggregationTypeOriginal,
855
+ AvailabilityStatus as AvailabilityStatusOriginal,
856
+ ChoiceType as ChoiceTypeOriginal,
857
+ CustomizationRenderType as CustomizationRenderTypeOriginal,
858
+ CustomizationType as CustomizationTypeOriginal,
859
+ Interval as IntervalOriginal,
860
+ MembershipStatus as MembershipStatusOriginal,
861
+ MissingValues as MissingValuesOriginal,
862
+ Mode as ModeOriginal,
863
+ NestedAggregationType as NestedAggregationTypeOriginal,
864
+ ProductGroupRequestedFields as ProductGroupRequestedFieldsOriginal,
865
+ ScalarType as ScalarTypeOriginal,
866
+ SortDirection as SortDirectionOriginal,
867
+ SortOrder as SortOrderOriginal,
868
+ SortType as SortTypeOriginal,
869
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
870
+ assignProductsToProductGroup2 as assignProductsToProductGroup,
871
+ bulkCreateProductGroups2 as bulkCreateProductGroups,
872
+ bulkDeleteProductGroups2 as bulkDeleteProductGroups,
873
+ bulkUpdateProductGroupTags2 as bulkUpdateProductGroupTags,
874
+ bulkUpdateProductGroupTagsByFilter2 as bulkUpdateProductGroupTagsByFilter,
875
+ bulkUpdateProductGroups2 as bulkUpdateProductGroups,
876
+ createProductGroup2 as createProductGroup,
877
+ deleteProductGroup2 as deleteProductGroup,
878
+ getProductGroup2 as getProductGroup,
879
+ queryProductGroups2 as queryProductGroups,
880
+ searchProductGroups2 as searchProductGroups,
881
+ unassignProductsFromProductGroup2 as unassignProductsFromProductGroup,
882
+ updateProductGroup2 as updateProductGroup
883
+ };
884
+ //# sourceMappingURL=meta.mjs.map