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