@epcc-sdk/sdks-shopper 0.0.3 → 0.0.4

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.
@@ -1,4 +1,4 @@
1
- import type { GetByContextReleaseResponse, GetByContextAllHierarchiesResponse, GetByContextHierarchyResponse, GetByContextHierarchyNodesResponse, GetByContextHierarchyChildNodesResponse, GetByContextAllNodesResponse, GetByContextNodeResponse, GetByContextChildNodesResponse, GetByContextAllProductsResponse, GetByContextProductResponse, GetByContextComponentProductIdsResponse, GetByContextChildProductsResponse, GetByContextProductsForHierarchyResponse, GetByContextProductsForNodeResponse, ConfigureByContextProductResponse, GetCatalogsResponse, CreateCatalogResponse, GetCatalogByIdResponse, UpdateCatalogResponse, GetReleasesResponse, PublishReleaseResponse, GetReleaseByIdResponse, GetRulesResponse, CreateRuleResponse, GetRuleByIdResponse, UpdateRuleResponse, GetAllHierarchiesResponse, GetHierarchyResponse, GetHierarchyNodesResponse, GetHierarchyChildNodesResponse, GetAllNodesResponse, GetNodeResponse, GetChildNodesResponse, GetAllProductsResponse, GetProductResponse, GetComponentProductIdsResponse, GetChildProductsResponse, GetProductsForHierarchyResponse, GetProductsForNodeResponse } from "./types.gen";
1
+ import type { GetByContextReleaseResponse, GetByContextAllHierarchiesResponse, GetByContextHierarchyResponse, GetByContextHierarchyNodesResponse, GetByContextHierarchyChildNodesResponse, GetByContextAllNodesResponse, GetByContextNodeResponse, GetByContextChildNodesResponse, GetByContextAllProductsResponse, GetByContextProductResponse, GetByContextComponentProductIdsResponse, GetByContextChildProductsResponse, GetByContextProductsForHierarchyResponse, GetByContextProductsForNodeResponse, ConfigureByContextProductResponse, GetCatalogsResponse, CreateCatalogResponse, GetCatalogByIdResponse, UpdateCatalogResponse, GetReleasesResponse, PublishReleaseResponse, GetReleaseByIdResponse, GetRulesResponse, CreateRuleResponse, GetRuleByIdResponse, UpdateRuleResponse, GetAllHierarchiesResponse, GetHierarchyResponse, GetHierarchyNodesResponse, GetHierarchyChildNodesResponse, GetAllNodesResponse, GetNodeResponse, GetChildNodesResponse, GetAllProductsResponse, GetProductResponse, GetComponentProductIdsResponse, GetChildProductsResponse, GetProductsForHierarchyResponse, GetProductsForNodeResponse, GetSubscriptionProductResponse, ListOfferingsResponse, GetOfferingResponse, ListOfferingProductsResponse } from "./types.gen";
2
2
  export declare const getByContextReleaseResponseTransformer: (data: any) => Promise<GetByContextReleaseResponse>;
3
3
  export declare const getByContextAllHierarchiesResponseTransformer: (data: any) => Promise<GetByContextAllHierarchiesResponse>;
4
4
  export declare const getByContextHierarchyResponseTransformer: (data: any) => Promise<GetByContextHierarchyResponse>;
@@ -38,3 +38,7 @@ export declare const getComponentProductIdsResponseTransformer: (data: any) => P
38
38
  export declare const getChildProductsResponseTransformer: (data: any) => Promise<GetChildProductsResponse>;
39
39
  export declare const getProductsForHierarchyResponseTransformer: (data: any) => Promise<GetProductsForHierarchyResponse>;
40
40
  export declare const getProductsForNodeResponseTransformer: (data: any) => Promise<GetProductsForNodeResponse>;
41
+ export declare const getSubscriptionProductResponseTransformer: (data: any) => Promise<GetSubscriptionProductResponse>;
42
+ export declare const listOfferingsResponseTransformer: (data: any) => Promise<ListOfferingsResponse>;
43
+ export declare const getOfferingResponseTransformer: (data: any) => Promise<GetOfferingResponse>;
44
+ export declare const listOfferingProductsResponseTransformer: (data: any) => Promise<ListOfferingProductsResponse>;
@@ -543,3 +543,58 @@ export var getProductsForNodeResponseTransformer = function (data) { return __aw
543
543
  return [2 /*return*/, data];
544
544
  });
545
545
  }); };
546
+ export var getSubscriptionProductResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
547
+ return __generator(this, function (_a) {
548
+ if (data.data) {
549
+ data.data = productSchemaResponseTransformer(data.data);
550
+ }
551
+ return [2 /*return*/, data];
552
+ });
553
+ }); };
554
+ var productResponseAttributesSchemaResponseTransformer = function (data) {
555
+ data = productAttributesSchemaResponseTransformer(data);
556
+ return data;
557
+ };
558
+ var offeringProductResponseAttributesSchemaResponseTransformer = function (data) {
559
+ data = productResponseAttributesSchemaResponseTransformer(data);
560
+ return data;
561
+ };
562
+ var offeringProductSchemaResponseTransformer = function (data) {
563
+ data.attributes = offeringProductResponseAttributesSchemaResponseTransformer(data.attributes);
564
+ data.meta = productMetaSchemaResponseTransformer(data.meta);
565
+ return data;
566
+ };
567
+ var offeringIncludesSchemaResponseTransformer = function (data) {
568
+ if (data.products) {
569
+ data.products = data.products.map(function (item) {
570
+ return offeringProductSchemaResponseTransformer(item);
571
+ });
572
+ }
573
+ return data;
574
+ };
575
+ export var listOfferingsResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
576
+ return __generator(this, function (_a) {
577
+ if (data.included) {
578
+ data.included = offeringIncludesSchemaResponseTransformer(data.included);
579
+ }
580
+ return [2 /*return*/, data];
581
+ });
582
+ }); };
583
+ export var getOfferingResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
584
+ return __generator(this, function (_a) {
585
+ if (data.included) {
586
+ data.included = offeringIncludesSchemaResponseTransformer(data.included);
587
+ }
588
+ return [2 /*return*/, data];
589
+ });
590
+ }); };
591
+ export var listOfferingProductsResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
592
+ return __generator(this, function (_a) {
593
+ if (data.data) {
594
+ data.data = data.data.map(function (item) {
595
+ return offeringProductSchemaResponseTransformer(item);
596
+ });
597
+ }
598
+ return [2 /*return*/, data];
599
+ });
600
+ }); };