@wix/auto_sdk_stores_product-groups-v-3 1.0.0 → 1.0.2
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.
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +143 -37
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +143 -37
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +259 -119
- package/build/cjs/meta.js +29 -11
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{stores-catalog-v3-product-group-product-groups-v-3.universal-BSxpFEZE.d.ts → stores-catalog-v3-product-group-product-groups-v-3.universal-DsSjziN0.d.ts} +267 -153
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +142 -37
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +142 -37
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +259 -119
- package/build/es/meta.mjs +28 -11
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{stores-catalog-v3-product-group-product-groups-v-3.universal-BSxpFEZE.d.mts → stores-catalog-v3-product-group-product-groups-v-3.universal-DsSjziN0.d.mts} +267 -153
- package/build/internal/cjs/index.d.ts +82 -35
- package/build/internal/cjs/index.js +143 -37
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -5
- package/build/internal/cjs/index.typings.js +143 -37
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +259 -119
- package/build/internal/cjs/meta.js +29 -11
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/{stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.d.ts → stores-catalog-v3-product-group-product-groups-v-3.universal-_2LkBNhE.d.ts} +364 -184
- package/build/internal/es/index.d.mts +82 -35
- package/build/internal/es/index.mjs +142 -37
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +8 -5
- package/build/internal/es/index.typings.mjs +142 -37
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +259 -119
- package/build/internal/es/meta.mjs +28 -11
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/{stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.d.mts → stores-catalog-v3-product-group-product-groups-v-3.universal-_2LkBNhE.d.mts} +364 -184
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MaybeContext, BuildRESTFunction, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { P as ProductGroupQuery, Q as QueryProductGroupsOptions, t as typedQueryProductGroups, a as ProductGroupsQueryBuilder } from './stores-catalog-v3-product-group-product-groups-v-3.universal-
|
|
3
|
-
export {
|
|
2
|
+
import { P as ProductGroupQuery, Q as QueryProductGroupsOptions, t as typedQueryProductGroups, a as ProductGroupsQueryBuilder } from './stores-catalog-v3-product-group-product-groups-v-3.universal-DsSjziN0.js';
|
|
3
|
+
export { b5 as AccountInfo, a_ as ActionEvent, $ as Aggregation, ad as AggregationData, a0 as AggregationKindOneOf, aw as AggregationResults, ax as AggregationResultsResultOneOf, ak as AggregationResultsScalarResult, j as AggregationType, bz as AggregationTypeWithLiterals, aB as ApplicationError, bg as AssignProductsToProductGroupOptions, aI as AssignProductsToProductGroupRequest, aJ as AssignProductsToProductGroupResponse, A as AvailabilityStatus, bm as AvailabilityStatusWithLiterals, aD as BulkActionMetadata, be as BulkCreateProductGroupsOptions, ay as BulkCreateProductGroupsRequest, az as BulkCreateProductGroupsResponse, aO as BulkDeleteProductGroupsRequest, aP as BulkDeleteProductGroupsResponse, aQ as BulkDeleteProductGroupsResponseBulkProductGroupResult, aC as BulkProductGroupResult, bC as BulkUpdateProductGroupTagsApplicationErrors, bD as BulkUpdateProductGroupTagsByFilterApplicationErrors, bj as BulkUpdateProductGroupTagsByFilterOptions, b0 as BulkUpdateProductGroupTagsByFilterRequest, b1 as BulkUpdateProductGroupTagsByFilterResponse, bi as BulkUpdateProductGroupTagsOptions, aR as BulkUpdateProductGroupTagsRequest, aS as BulkUpdateProductGroupTagsResponse, aT as BulkUpdateProductGroupTagsResult, bf as BulkUpdateProductGroupsOptions, aE as BulkUpdateProductGroupsRequest, aG as BulkUpdateProductGroupsResponse, aH as BulkUpdateProductGroupsResponseBulkProductGroupResult, C as ChoiceType, bl as ChoiceTypeWithLiterals, bE as CommonQueryWithEntityContext, bF as CommonSearchWithEntityContext, b6 as CreateProductGroupOptions, w as CreateProductGroupRequest, x as CreateProductGroupResponse, O as CursorPaging, V as CursorPagingMetadata, J as CursorQuery, K as CursorQueryPagingMethodOneOf, Z as CursorSearch, _ as CursorSearchPagingMethodOneOf, X as Cursors, c as CustomizationRenderType, bp as CustomizationRenderTypeWithLiterals, b as CustomizationType, bo as CustomizationTypeWithLiterals, a7 as DateHistogramAggregation, as as DateHistogramResult, au as DateHistogramResults, D as DeleteProductGroupRequest, z as DeleteProductGroupResponse, aU as DomainEvent, aV as DomainEventBodyOneOf, a$ as Empty, aW as EntityCreatedEvent, aZ as EntityDeletedEvent, aY as EntityUpdatedEvent, E as ExtendedFields, b9 as GetProductGroupOptions, B as GetProductGroupRequest, F as GetProductGroupResponse, at as GroupByValueResults, G as GroupingCustomization, b3 as IdentificationData, b4 as IdentificationDataIdOneOf, a2 as IncludeMissingValuesOptions, I as Interval, by as IntervalWithLiterals, aA as ItemMetadata, aF as MaskedProductGroup, d as MediaType, bq as MediaTypeWithLiterals, M as MembershipStatus, bn as MembershipStatusWithLiterals, b2 as MessageEnvelope, h as MissingValues, bv as MissingValuesWithLiterals, k as Mode, bA as ModeWithLiterals, aa as NestedAggregation, a8 as NestedAggregationItem, a9 as NestedAggregationItemKindOneOf, ag as NestedAggregationResults, ah as NestedAggregationResultsResultOneOf, N as NestedAggregationType, bx as NestedAggregationTypeWithLiterals, ap as NestedResultValue, aq as NestedResultValueResultOneOf, av as NestedResults, al as NestedValueAggregationResult, aK as ProductAssignmentResult, n as ProductChoice, o as ProductChoiceValueOneOf, l as ProductGroup, p as ProductGroupMedia, r as ProductGroupMediaMediaOneOf, q as ProductGroupMediaSetByOneOf, m as ProductGroupMember, bb as ProductGroupQuerySpec, e as ProductGroupRequestedFields, br as ProductGroupRequestedFieldsWithLiterals, bG as ProductGroupSearch, bd as ProductGroupSearchSpec, v as ProductGroupTagsModified, ba as ProductGroupsQueryResult, aN as ProductUnassignmentResult, H as QueryProductGroupsRequest, R as QueryProductGroupsResponse, a5 as RangeAggregation, af as RangeAggregationResult, a1 as RangeBucket, an as RangeResult, aj as RangeResults, aX as RestoreInfo, ar as Results, a6 as ScalarAggregation, ao as ScalarResult, i as ScalarType, bw as ScalarTypeWithLiterals, ab as SearchDetails, bc as SearchProductGroupsOptions, Y as SearchProductGroupsRequest, ac as SearchProductGroupsResponse, g as SortDirection, bu as SortDirectionWithLiterals, S as SortOrder, bs as SortOrderWithLiterals, f as SortType, bt as SortTypeWithLiterals, L as Sorting, u as TagList, s as Tags, T as Thumbnail, bh as UnassignProductsFromProductGroupOptions, aL as UnassignProductsFromProductGroupRequest, aM as UnassignProductsFromProductGroupResponse, b7 as UpdateProductGroup, b8 as UpdateProductGroupOptions, U as UpdateProductGroupRequest, y as UpdateProductGroupResponse, a3 as ValueAggregation, a4 as ValueAggregationOptionsOneOf, ae as ValueAggregationResult, am as ValueResult, ai as ValueResults, W as WebhookIdentityType, bB as WebhookIdentityTypeWithLiterals, bk as utils } from './stores-catalog-v3-product-group-product-groups-v-3.universal-DsSjziN0.js';
|
|
4
4
|
|
|
5
5
|
declare function customQueryProductGroups(httpClient: HttpClient): {
|
|
6
6
|
(query: ProductGroupQuery, options?: QueryProductGroupsOptions): ReturnType<typeof typedQueryProductGroups>;
|
package/build/cjs/index.js
CHANGED
|
@@ -26,6 +26,7 @@ __export(index_exports, {
|
|
|
26
26
|
CustomizationRenderType: () => CustomizationRenderType,
|
|
27
27
|
CustomizationType: () => CustomizationType,
|
|
28
28
|
Interval: () => Interval,
|
|
29
|
+
MediaType: () => MediaType,
|
|
29
30
|
MembershipStatus: () => MembershipStatus,
|
|
30
31
|
MissingValues: () => MissingValues,
|
|
31
32
|
Mode: () => Mode,
|
|
@@ -132,7 +133,8 @@ function createProductGroup(payload) {
|
|
|
132
133
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
133
134
|
paths: [
|
|
134
135
|
{ path: "productGroup.createdDate" },
|
|
135
|
-
{ path: "productGroup.updatedDate" }
|
|
136
|
+
{ path: "productGroup.updatedDate" },
|
|
137
|
+
{ path: "productGroup.media.image.urlExpirationDate" }
|
|
136
138
|
]
|
|
137
139
|
}
|
|
138
140
|
]);
|
|
@@ -155,7 +157,8 @@ function createProductGroup(payload) {
|
|
|
155
157
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
156
158
|
paths: [
|
|
157
159
|
{ path: "productGroup.createdDate" },
|
|
158
|
-
{ path: "productGroup.updatedDate" }
|
|
160
|
+
{ path: "productGroup.updatedDate" },
|
|
161
|
+
{ path: "productGroup.media.image.urlExpirationDate" }
|
|
159
162
|
]
|
|
160
163
|
}
|
|
161
164
|
])
|
|
@@ -175,7 +178,8 @@ function updateProductGroup(payload) {
|
|
|
175
178
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
176
179
|
paths: [
|
|
177
180
|
{ path: "productGroup.createdDate" },
|
|
178
|
-
{ path: "productGroup.updatedDate" }
|
|
181
|
+
{ path: "productGroup.updatedDate" },
|
|
182
|
+
{ path: "productGroup.media.image.urlExpirationDate" }
|
|
179
183
|
]
|
|
180
184
|
}
|
|
181
185
|
]);
|
|
@@ -198,7 +202,8 @@ function updateProductGroup(payload) {
|
|
|
198
202
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
199
203
|
paths: [
|
|
200
204
|
{ path: "productGroup.createdDate" },
|
|
201
|
-
{ path: "productGroup.updatedDate" }
|
|
205
|
+
{ path: "productGroup.updatedDate" },
|
|
206
|
+
{ path: "productGroup.media.image.urlExpirationDate" }
|
|
202
207
|
]
|
|
203
208
|
}
|
|
204
209
|
])
|
|
@@ -249,7 +254,8 @@ function getProductGroup(payload) {
|
|
|
249
254
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
250
255
|
paths: [
|
|
251
256
|
{ path: "productGroup.createdDate" },
|
|
252
|
-
{ path: "productGroup.updatedDate" }
|
|
257
|
+
{ path: "productGroup.updatedDate" },
|
|
258
|
+
{ path: "productGroup.media.image.urlExpirationDate" }
|
|
253
259
|
]
|
|
254
260
|
}
|
|
255
261
|
])
|
|
@@ -279,7 +285,8 @@ function queryProductGroups(payload) {
|
|
|
279
285
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
280
286
|
paths: [
|
|
281
287
|
{ path: "productGroups.createdDate" },
|
|
282
|
-
{ path: "productGroups.updatedDate" }
|
|
288
|
+
{ path: "productGroups.updatedDate" },
|
|
289
|
+
{ path: "productGroups.media.image.urlExpirationDate" }
|
|
283
290
|
]
|
|
284
291
|
}
|
|
285
292
|
]),
|
|
@@ -335,7 +342,8 @@ function searchProductGroups(payload) {
|
|
|
335
342
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
336
343
|
paths: [
|
|
337
344
|
{ path: "productGroups.createdDate" },
|
|
338
|
-
{ path: "productGroups.updatedDate" }
|
|
345
|
+
{ path: "productGroups.updatedDate" },
|
|
346
|
+
{ path: "productGroups.media.image.urlExpirationDate" }
|
|
339
347
|
]
|
|
340
348
|
},
|
|
341
349
|
{
|
|
@@ -388,7 +396,8 @@ function bulkCreateProductGroups(payload) {
|
|
|
388
396
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
389
397
|
paths: [
|
|
390
398
|
{ path: "productGroups.createdDate" },
|
|
391
|
-
{ path: "productGroups.updatedDate" }
|
|
399
|
+
{ path: "productGroups.updatedDate" },
|
|
400
|
+
{ path: "productGroups.media.image.urlExpirationDate" }
|
|
392
401
|
]
|
|
393
402
|
}
|
|
394
403
|
]);
|
|
@@ -411,7 +420,8 @@ function bulkCreateProductGroups(payload) {
|
|
|
411
420
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
412
421
|
paths: [
|
|
413
422
|
{ path: "results.item.createdDate" },
|
|
414
|
-
{ path: "results.item.updatedDate" }
|
|
423
|
+
{ path: "results.item.updatedDate" },
|
|
424
|
+
{ path: "results.item.media.image.urlExpirationDate" }
|
|
415
425
|
]
|
|
416
426
|
}
|
|
417
427
|
])
|
|
@@ -431,7 +441,8 @@ function bulkUpdateProductGroups(payload) {
|
|
|
431
441
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
432
442
|
paths: [
|
|
433
443
|
{ path: "productGroups.productGroup.createdDate" },
|
|
434
|
-
{ path: "productGroups.productGroup.updatedDate" }
|
|
444
|
+
{ path: "productGroups.productGroup.updatedDate" },
|
|
445
|
+
{ path: "productGroups.productGroup.media.image.urlExpirationDate" }
|
|
435
446
|
]
|
|
436
447
|
}
|
|
437
448
|
]);
|
|
@@ -454,7 +465,8 @@ function bulkUpdateProductGroups(payload) {
|
|
|
454
465
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
455
466
|
paths: [
|
|
456
467
|
{ path: "results.item.createdDate" },
|
|
457
|
-
{ path: "results.item.updatedDate" }
|
|
468
|
+
{ path: "results.item.updatedDate" },
|
|
469
|
+
{ path: "results.item.media.image.urlExpirationDate" }
|
|
458
470
|
]
|
|
459
471
|
}
|
|
460
472
|
])
|
|
@@ -570,6 +582,8 @@ function bulkUpdateProductGroupTagsByFilter(payload) {
|
|
|
570
582
|
}
|
|
571
583
|
|
|
572
584
|
// src/stores-catalog-v3-product-group-product-groups-v-3.universal.ts
|
|
585
|
+
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
586
|
+
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
573
587
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
574
588
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
575
589
|
var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
|
|
@@ -601,8 +615,13 @@ var CustomizationRenderType = /* @__PURE__ */ ((CustomizationRenderType2) => {
|
|
|
601
615
|
CustomizationRenderType2["SWATCH_CHOICES"] = "SWATCH_CHOICES";
|
|
602
616
|
return CustomizationRenderType2;
|
|
603
617
|
})(CustomizationRenderType || {});
|
|
618
|
+
var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
619
|
+
MediaType2["IMAGE"] = "IMAGE";
|
|
620
|
+
return MediaType2;
|
|
621
|
+
})(MediaType || {});
|
|
604
622
|
var ProductGroupRequestedFields = /* @__PURE__ */ ((ProductGroupRequestedFields2) => {
|
|
605
623
|
ProductGroupRequestedFields2["GROUPING_CUSTOMIZATION"] = "GROUPING_CUSTOMIZATION";
|
|
624
|
+
ProductGroupRequestedFields2["THUMBNAIL"] = "THUMBNAIL";
|
|
606
625
|
return ProductGroupRequestedFields2;
|
|
607
626
|
})(ProductGroupRequestedFields || {});
|
|
608
627
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
@@ -671,16 +690,31 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
671
690
|
})(WebhookIdentityType || {});
|
|
672
691
|
async function createProductGroup2(productGroup, options) {
|
|
673
692
|
const { httpClient, sideEffects } = arguments[2];
|
|
674
|
-
const payload = (0,
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
693
|
+
const payload = (0, import_transform_paths2.transformPaths)(
|
|
694
|
+
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
695
|
+
productGroup,
|
|
696
|
+
fields: options?.fields
|
|
697
|
+
}),
|
|
698
|
+
[
|
|
699
|
+
{
|
|
700
|
+
transformFn: import_image.transformSDKImageToRESTImage,
|
|
701
|
+
paths: [{ path: "productGroup.media.image" }]
|
|
702
|
+
}
|
|
703
|
+
]
|
|
704
|
+
);
|
|
678
705
|
const reqOpts = createProductGroup(payload);
|
|
679
706
|
sideEffects?.onSiteCall?.();
|
|
680
707
|
try {
|
|
681
708
|
const result = await httpClient.request(reqOpts);
|
|
682
709
|
sideEffects?.onSuccess?.(result);
|
|
683
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
710
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
711
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
712
|
+
{
|
|
713
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
714
|
+
paths: [{ path: "productGroup.media.image" }]
|
|
715
|
+
}
|
|
716
|
+
])
|
|
717
|
+
)?.productGroup;
|
|
684
718
|
} catch (err) {
|
|
685
719
|
const transformedError = (0, import_transform_error.transformError)(
|
|
686
720
|
err,
|
|
@@ -700,16 +734,31 @@ async function createProductGroup2(productGroup, options) {
|
|
|
700
734
|
}
|
|
701
735
|
async function updateProductGroup2(_id, productGroup, options) {
|
|
702
736
|
const { httpClient, sideEffects } = arguments[3];
|
|
703
|
-
const payload = (0,
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
737
|
+
const payload = (0, import_transform_paths2.transformPaths)(
|
|
738
|
+
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
739
|
+
productGroup: { ...productGroup, id: _id },
|
|
740
|
+
fields: options?.fields
|
|
741
|
+
}),
|
|
742
|
+
[
|
|
743
|
+
{
|
|
744
|
+
transformFn: import_image.transformSDKImageToRESTImage,
|
|
745
|
+
paths: [{ path: "productGroup.media.image" }]
|
|
746
|
+
}
|
|
747
|
+
]
|
|
748
|
+
);
|
|
707
749
|
const reqOpts = updateProductGroup(payload);
|
|
708
750
|
sideEffects?.onSiteCall?.();
|
|
709
751
|
try {
|
|
710
752
|
const result = await httpClient.request(reqOpts);
|
|
711
753
|
sideEffects?.onSuccess?.(result);
|
|
712
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
754
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
755
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
756
|
+
{
|
|
757
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
758
|
+
paths: [{ path: "productGroup.media.image" }]
|
|
759
|
+
}
|
|
760
|
+
])
|
|
761
|
+
)?.productGroup;
|
|
713
762
|
} catch (err) {
|
|
714
763
|
const transformedError = (0, import_transform_error.transformError)(
|
|
715
764
|
err,
|
|
@@ -762,7 +811,14 @@ async function getProductGroup2(productGroupId, options) {
|
|
|
762
811
|
try {
|
|
763
812
|
const result = await httpClient.request(reqOpts);
|
|
764
813
|
sideEffects?.onSuccess?.(result);
|
|
765
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
814
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
815
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
816
|
+
{
|
|
817
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
818
|
+
paths: [{ path: "productGroup.media.image" }]
|
|
819
|
+
}
|
|
820
|
+
])
|
|
821
|
+
)?.productGroup;
|
|
766
822
|
} catch (err) {
|
|
767
823
|
const transformedError = (0, import_transform_error.transformError)(
|
|
768
824
|
err,
|
|
@@ -809,7 +865,12 @@ function queryProductGroups2(options) {
|
|
|
809
865
|
data
|
|
810
866
|
}) => {
|
|
811
867
|
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
812
|
-
(0, import_transform_paths2.transformPaths)(data, [
|
|
868
|
+
(0, import_transform_paths2.transformPaths)(data, [
|
|
869
|
+
{
|
|
870
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
871
|
+
paths: [{ path: "productGroups.media.image" }]
|
|
872
|
+
}
|
|
873
|
+
])
|
|
813
874
|
);
|
|
814
875
|
return {
|
|
815
876
|
items: transformedData?.productGroups,
|
|
@@ -839,7 +900,14 @@ async function typedQueryProductGroups(query, options) {
|
|
|
839
900
|
try {
|
|
840
901
|
const result = await httpClient.request(reqOpts);
|
|
841
902
|
sideEffects?.onSuccess?.(result);
|
|
842
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
903
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
904
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
905
|
+
{
|
|
906
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
907
|
+
paths: [{ path: "productGroups.media.image" }]
|
|
908
|
+
}
|
|
909
|
+
])
|
|
910
|
+
);
|
|
843
911
|
} catch (err) {
|
|
844
912
|
const transformedError = (0, import_transform_error.transformError)(
|
|
845
913
|
err,
|
|
@@ -873,7 +941,14 @@ async function searchProductGroups2(search, options) {
|
|
|
873
941
|
try {
|
|
874
942
|
const result = await httpClient.request(reqOpts);
|
|
875
943
|
sideEffects?.onSuccess?.(result);
|
|
876
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
944
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
945
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
946
|
+
{
|
|
947
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
948
|
+
paths: [{ path: "productGroups.media.image" }]
|
|
949
|
+
}
|
|
950
|
+
])
|
|
951
|
+
);
|
|
877
952
|
} catch (err) {
|
|
878
953
|
const transformedError = (0, import_transform_error.transformError)(
|
|
879
954
|
err,
|
|
@@ -890,17 +965,32 @@ async function searchProductGroups2(search, options) {
|
|
|
890
965
|
}
|
|
891
966
|
async function bulkCreateProductGroups2(productGroups, options) {
|
|
892
967
|
const { httpClient, sideEffects } = arguments[2];
|
|
893
|
-
const payload = (0,
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
968
|
+
const payload = (0, import_transform_paths2.transformPaths)(
|
|
969
|
+
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
970
|
+
productGroups,
|
|
971
|
+
returnEntity: options?.returnEntity,
|
|
972
|
+
fields: options?.fields
|
|
973
|
+
}),
|
|
974
|
+
[
|
|
975
|
+
{
|
|
976
|
+
transformFn: import_image.transformSDKImageToRESTImage,
|
|
977
|
+
paths: [{ path: "productGroups.media.image" }]
|
|
978
|
+
}
|
|
979
|
+
]
|
|
980
|
+
);
|
|
898
981
|
const reqOpts = bulkCreateProductGroups(payload);
|
|
899
982
|
sideEffects?.onSiteCall?.();
|
|
900
983
|
try {
|
|
901
984
|
const result = await httpClient.request(reqOpts);
|
|
902
985
|
sideEffects?.onSuccess?.(result);
|
|
903
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
986
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
987
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
988
|
+
{
|
|
989
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
990
|
+
paths: [{ path: "results.item.media.image" }]
|
|
991
|
+
}
|
|
992
|
+
])
|
|
993
|
+
);
|
|
904
994
|
} catch (err) {
|
|
905
995
|
const transformedError = (0, import_transform_error.transformError)(
|
|
906
996
|
err,
|
|
@@ -921,17 +1011,32 @@ async function bulkCreateProductGroups2(productGroups, options) {
|
|
|
921
1011
|
}
|
|
922
1012
|
async function bulkUpdateProductGroups2(productGroups, options) {
|
|
923
1013
|
const { httpClient, sideEffects } = arguments[2];
|
|
924
|
-
const payload = (0,
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
1014
|
+
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1015
|
+
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1016
|
+
productGroups,
|
|
1017
|
+
returnEntity: options?.returnEntity,
|
|
1018
|
+
fields: options?.fields
|
|
1019
|
+
}),
|
|
1020
|
+
[
|
|
1021
|
+
{
|
|
1022
|
+
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1023
|
+
paths: [{ path: "productGroups.productGroup.media.image" }]
|
|
1024
|
+
}
|
|
1025
|
+
]
|
|
1026
|
+
);
|
|
929
1027
|
const reqOpts = bulkUpdateProductGroups(payload);
|
|
930
1028
|
sideEffects?.onSiteCall?.();
|
|
931
1029
|
try {
|
|
932
1030
|
const result = await httpClient.request(reqOpts);
|
|
933
1031
|
sideEffects?.onSuccess?.(result);
|
|
934
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1032
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1033
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1034
|
+
{
|
|
1035
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1036
|
+
paths: [{ path: "results.item.media.image" }]
|
|
1037
|
+
}
|
|
1038
|
+
])
|
|
1039
|
+
);
|
|
935
1040
|
} catch (err) {
|
|
936
1041
|
const transformedError = (0, import_transform_error.transformError)(
|
|
937
1042
|
err,
|
|
@@ -1251,6 +1356,7 @@ var queryProductGroups4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTMod
|
|
|
1251
1356
|
CustomizationRenderType,
|
|
1252
1357
|
CustomizationType,
|
|
1253
1358
|
Interval,
|
|
1359
|
+
MediaType,
|
|
1254
1360
|
MembershipStatus,
|
|
1255
1361
|
MissingValues,
|
|
1256
1362
|
Mode,
|