@epcc-sdk/sdks-shopper 0.0.25 → 0.0.27

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 (64) hide show
  1. package/README.md +24 -0
  2. package/dist/client/@tanstack/react-query.gen.cjs +2741 -0
  3. package/dist/client/@tanstack/react-query.gen.cjs.map +1 -0
  4. package/dist/client/@tanstack/react-query.gen.d.cts +2854 -0
  5. package/dist/client/@tanstack/react-query.gen.d.ts +1062 -686
  6. package/dist/client/@tanstack/react-query.gen.mjs +2598 -0
  7. package/dist/client/@tanstack/react-query.gen.mjs.map +1 -0
  8. package/dist/client/index.cjs +25 -0
  9. package/dist/client/index.cjs.map +1 -0
  10. package/dist/client/index.d.cts +3 -0
  11. package/dist/client/index.d.ts +3 -2
  12. package/dist/client/index.mjs +3 -0
  13. package/dist/client/index.mjs.map +1 -0
  14. package/dist/client/sdk.gen.cjs +1923 -0
  15. package/dist/client/sdk.gen.cjs.map +1 -0
  16. package/dist/client/{sdk.gen.js → sdk.gen.d.cts} +408 -1026
  17. package/dist/client/sdk.gen.d.ts +356 -232
  18. package/dist/client/sdk.gen.mjs +1778 -0
  19. package/dist/client/sdk.gen.mjs.map +1 -0
  20. package/dist/client/transformers.gen.cjs +801 -0
  21. package/dist/client/transformers.gen.cjs.map +1 -0
  22. package/dist/client/transformers.gen.d.cts +59 -0
  23. package/dist/client/transformers.gen.d.ts +59 -47
  24. package/dist/client/transformers.gen.mjs +723 -0
  25. package/dist/client/transformers.gen.mjs.map +1 -0
  26. package/dist/client/types.gen.cjs +17 -0
  27. package/dist/client/types.gen.cjs.map +1 -0
  28. package/dist/client/types.gen.d.cts +10550 -0
  29. package/dist/client/types.gen.d.ts +1519 -1069
  30. package/dist/client/types.gen.mjs +1 -0
  31. package/dist/client/types.gen.mjs.map +1 -0
  32. package/dist/index.cjs +40 -0
  33. package/dist/index.cjs.map +1 -0
  34. package/dist/index.d.cts +6 -0
  35. package/dist/index.d.ts +6 -6
  36. package/dist/index.mjs +11 -0
  37. package/dist/index.mjs.map +1 -0
  38. package/dist/utils/extract-media.cjs +54 -0
  39. package/dist/utils/extract-media.cjs.map +1 -0
  40. package/dist/utils/extract-media.d.cts +18 -0
  41. package/dist/utils/extract-media.d.ts +6 -3
  42. package/dist/utils/extract-media.mjs +30 -0
  43. package/dist/utils/extract-media.mjs.map +1 -0
  44. package/dist/utils/extract-product-image.cjs +35 -0
  45. package/dist/utils/extract-product-image.cjs.map +1 -0
  46. package/dist/utils/extract-product-image.d.cts +5 -0
  47. package/dist/utils/extract-product-image.d.ts +5 -2
  48. package/dist/utils/extract-product-image.mjs +11 -0
  49. package/dist/utils/extract-product-image.mjs.map +1 -0
  50. package/dist/utils/index.cjs +32 -0
  51. package/dist/utils/index.cjs.map +1 -0
  52. package/dist/utils/index.d.cts +3 -0
  53. package/dist/utils/index.d.ts +3 -2
  54. package/dist/utils/index.mjs +7 -0
  55. package/dist/utils/index.mjs.map +1 -0
  56. package/package.json +22 -14
  57. package/dist/client/@tanstack/react-query.gen.js +0 -2497
  58. package/dist/client/index.js +0 -3
  59. package/dist/client/transformers.gen.js +0 -652
  60. package/dist/client/types.gen.js +0 -2
  61. package/dist/index.js +0 -6
  62. package/dist/utils/extract-media.js +0 -54
  63. package/dist/utils/extract-product-image.js +0 -8
  64. package/dist/utils/index.js +0 -2
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.gen.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/index.cjs ADDED
@@ -0,0 +1,40 @@
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var index_exports = {};
21
+ __export(index_exports, {
22
+ client: () => import_sdk.client,
23
+ createClient: () => import_client_fetch.createClient,
24
+ extractProductImage: () => import_utils.extractProductImage
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+ __reExport(index_exports, require('./client/index.cjs'), module.exports);
28
+ __reExport(index_exports, require('./client/@tanstack/react-query.gen.cjs'), module.exports);
29
+ var import_client_fetch = require("@hey-api/client-fetch");
30
+ var import_sdk = require('./client/sdk.gen.cjs');
31
+ var import_utils = require('./utils/index.cjs');
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
34
+ client,
35
+ createClient,
36
+ extractProductImage,
37
+ ...require('./client/index.cjs'),
38
+ ...require('./client/@tanstack/react-query.gen.cjs')
39
+ });
40
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from \"./client\"\nexport * from \"./client/@tanstack/react-query.gen\"\nimport { type Client, createClient } from \"@hey-api/client-fetch\"\nexport { createClient, type Client }\nexport { client } from \"./client/sdk.gen\"\nexport { extractProductImage } from \"./utils\"\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAc,qBAAd;AACA,0BAAc,+CADd;AAEA,0BAA0C;AAE1C,iBAAuB;AACvB,mBAAoC;","names":[]}
@@ -0,0 +1,6 @@
1
+ export { AcceptLanguage, AccessTokenRequest, AccessTokenResponse, Account, AccountAddressResponse, AccountAddressesError, AccountAddressesErrorResponse, AccountAddressesMetaTimestamps, AccountAuthenticationSettings, AccountAuthenticationSettingsResponse, AccountCheckout, AccountManagementAuthenticationToken, AccountManagementAuthenticationTokenResponse, AccountManagementError, AccountManagementErrorResponse, AccountManagementMetaTimestamps, AccountMember, AccountMemberResponse, AccountMemberSelfManagement, AccountMembership, AccountMembershipResponse, AccountMembershipResponseUsingAccountMemberId, AccountMembershipSettings, AccountResponse, Action, ActivePlan, AddAllOrNothingOptionsObject, AddCustomDiscountToCartItemData, AddCustomDiscountToCartItemError, AddCustomDiscountToCartItemErrors, AddCustomDiscountToCartItemResponse, AddCustomDiscountToCartItemResponses, AddTaxItemToCartData, AddTaxItemToCartError, AddTaxItemToCartErrors, AddTaxItemToCartResponse, AddTaxItemToCartResponses, Address, AddressResponse, Amount, AnonymizeOrdersData, AnonymizeOrdersError, AnonymizeOrdersErrors, AnonymizeOrdersResponse, AnonymizeOrdersResponses, BillingAddress, BillingIntervalType, BillingRunReport, BuildOffering, BuildSubscription, BulkAddCustomDiscountsToCartData, BulkAddCustomDiscountsToCartError, BulkAddCustomDiscountsToCartErrors, BulkAddCustomDiscountsToCartResponse, BulkAddCustomDiscountsToCartResponses, BulkAddItemsRequest, BulkAddTaxItemsToCartData, BulkAddTaxItemsToCartError, BulkAddTaxItemsToCartErrors, BulkAddTaxItemsToCartResponse, BulkAddTaxItemsToCartResponses, BulkDeleteCustomDiscountsFromCartData, BulkDeleteCustomDiscountsFromCartError, BulkDeleteCustomDiscountsFromCartErrors, BulkDeleteCustomDiscountsFromCartResponse, BulkDeleteCustomDiscountsFromCartResponses, BulkDeleteTaxItemsFromCartData, BulkDeleteTaxItemsFromCartError, BulkDeleteTaxItemsFromCartErrors, BulkDeleteTaxItemsFromCartResponse, BulkDeleteTaxItemsFromCartResponses, BulkUpdateCartsItems, BulkUpdateItemsInCartData, BulkUpdateItemsInCartError, BulkUpdateItemsInCartErrors, BulkUpdateItemsInCartResponses, BundleConfiguration, BundleConfigurationData, BundleConfigurationData2, CancelATransactionData, CancelATransactionError, CancelATransactionErrors, CancelATransactionResponse, CancelATransactionResponses, CaptureATransactionData, CaptureATransactionError, CaptureATransactionErrors, CaptureATransactionResponse, CaptureATransactionResponses, CartCheckoutTimestamps, CartContact, CartInclude, CartInclude2, CartItemBulkCustomDiscountObject, CartItemBulkCustomDiscountResponse, CartItemObject, CartItemObjectData, CartItemRelationship, CartItemResponse, CartItemResponseObject, CartItemsObjectRequest, CartItemsObjectResponse, CartMergeObject, CartMergeObjectRequest, CartResponse, CartTimestamps, CartsBulkCustomDiscounts, CartsBulkCustomDiscountsResponse, CartsBulkTaxes, CartsCustomDiscountsObject, CartsCustomDiscountsResponse, CartsItemsTaxesObject, CartsRelationshipsAccountsData, CartsRelationshipsCustomersData, CartsRequest, CartsResponse, Catalog, CatalogCreateData, CatalogData, CatalogListData, CatalogReleaseCreateData, CatalogUpdateData, ChangeState, Channel, CheckoutApiData, CheckoutApiError, CheckoutApiErrors, CheckoutApiResponse, CheckoutApiResponses, ComponentProduct, ComponentProductOption, ComponentProductsRelationship, Components, ConfigureByContextProductData, ConfigureByContextProductError, ConfigureByContextProductErrors, ConfigureByContextProductResponse, ConfigureByContextProductResponses, ConfirmPaymentData, ConfirmPaymentError, ConfirmPaymentErrors, ConfirmPaymentResponse, ConfirmPaymentResponses, Contact, CreateACartData, CreateACartError, CreateACartErrors, CreateACartResponse, CreateACartResponses, CreateAccountCartAssociationData, CreateAccountCartAssociationError, CreateAccountCartAssociationErrors, CreateAccountCartAssociationResponse, CreateAccountCartAssociationResponses, CreateAnAccessTokenData, CreateAnAccessTokenError, CreateAnAccessTokenErrors, CreateAnAccessTokenResponse, CreateAnAccessTokenResponses, CreateCartPaymentIntentData, CreateCartPaymentIntentError, CreateCartPaymentIntentErrors, CreateCartPaymentIntentResponse, CreateCartPaymentIntentResponses, CreateCatalogData, CreateCatalogError, CreateCatalogErrors, CreateCatalogResponse, CreateCatalogResponses, CreateCustomerCartAssociationData, CreateCustomerCartAssociationError, CreateCustomerCartAssociationErrors, CreateCustomerCartAssociationResponse, CreateCustomerCartAssociationResponses, CreateRuleData, CreateRuleError, CreateRuleErrors, CreateRuleResponse, CreateRuleResponses, Currencies, CurrencyIdentifier, CustomAttributes, CustomDiscountRelationshipsCartItemRequest, CustomInput, CustomInputValidationRule, CustomInputValidationRuleOptions, CustomInputs, CustomItemObject, CustomItemObjectData, CustomItemResponseObject, CustomerCheckout, DataAdyenPayment, DataAuthorizeNetPayment, DataBasePayments, DataBraintreePayment, DataCardConnectPayment, DataCreateCurrencies, DataCyberSourcePayment, DataManualPayment, DataPayPalExpressCheckoutPayment, DataPaymentObject, DataStripeConnectPayment, DataStripePayment, DataStripePaymentIntentsPayment, DataUpdateCurrencies, DeleteACartData, DeleteACartError, DeleteACartErrors, DeleteACartItemData, DeleteACartItemError, DeleteACartItemErrors, DeleteACartItemResponse, DeleteACartItemResponses, DeleteACartResponse, DeleteACartResponses, DeleteAPromotionViaPromotionCodeData, DeleteAPromotionViaPromotionCodeError, DeleteAPromotionViaPromotionCodeErrors, DeleteAPromotionViaPromotionCodeResponse, DeleteAPromotionViaPromotionCodeResponses, DeleteATaxItemData, DeleteATaxItemError, DeleteATaxItemErrors, DeleteATaxItemResponse, DeleteATaxItemResponses, DeleteAccountCartAssociationData, DeleteAccountCartAssociationError, DeleteAccountCartAssociationErrors, DeleteAccountCartAssociationResponse, DeleteAccountCartAssociationResponses, DeleteAllCartItemsData, DeleteAllCartItemsError, DeleteAllCartItemsErrors, DeleteAllCartItemsResponse, DeleteAllCartItemsResponses, DeleteCatalogByIdData, DeleteCatalogByIdError, DeleteCatalogByIdErrors, DeleteCatalogByIdResponse, DeleteCatalogByIdResponses, DeleteCustomDiscountFromCartData, DeleteCustomDiscountFromCartError, DeleteCustomDiscountFromCartErrors, DeleteCustomDiscountFromCartItemData, DeleteCustomDiscountFromCartItemError, DeleteCustomDiscountFromCartItemErrors, DeleteCustomDiscountFromCartItemResponse, DeleteCustomDiscountFromCartItemResponses, DeleteCustomDiscountFromCartResponse, DeleteCustomDiscountFromCartResponses, DeleteCustomerCartAssociationData, DeleteCustomerCartAssociationError, DeleteCustomerCartAssociationErrors, DeleteCustomerCartAssociationResponse, DeleteCustomerCartAssociationResponses, DeleteReleaseByIdData, DeleteReleaseByIdError, DeleteReleaseByIdErrors, DeleteReleaseByIdResponse, DeleteReleaseByIdResponses, DeleteReleasesData, DeleteReleasesError, DeleteReleasesErrors, DeleteReleasesResponse, DeleteReleasesResponses, DeleteRuleByIdData, DeleteRuleByIdError, DeleteRuleByIdErrors, DeleteRuleByIdResponse, DeleteRuleByIdResponses, DeleteV2AccountAddressData, DeleteV2AccountAddressError, DeleteV2AccountAddressErrors, DeleteV2AccountAddressResponse, DeleteV2AccountAddressResponses, DiffListData, DiscountData, DiscountSettings, DisplayPrice, DisplayPrice2, DunningRule, DunningRuleAttributes, DunningRuleCreate, DunningRuleMeta, DunningRuleUpdate, DunningRuleUpdateAttributes, ElasticPathFile, ElasticPathPaymentsPoweredByStripePayment, EndBehavior, Error2, ErrorBadRequest, ErrorNotFound, ErrorResponse, ErrorResponse2, Extension, Extensions, ExternalRef, ExternalRefUpdate, Feature, FeatureAccessAttributes, FeatureAttributes, FeatureConfigAccessAttributes, FeatureConfigPromotionAttributes, FeatureConfigUsageAttributes, FeatureConfiguration, FeatureCreate, FeatureMeta, FeatureProductConfiguration, FeatureProductConfigurationUpdate, FeaturePromotion, FeaturePromotionAttributes, FeatureResponseAttributes, FeatureTag, FeatureUpdate, FeatureUpdateAttributes, FeatureUsageAttributes, File, FileLink, FileLink2, FileMeta, FileMeta2, FileReference, FilesError, FilesErrorResponse, FilesLinks, FilesRelationship, FilesUuid, Filesfilter, FilespageLimit, FilespageOffset, Filter, FilterHierarchy, FilterNode, FilterProduct, FilterRule, FormattedPrice, FormattedPriceData, Gateway, GeolocationDetails, GetACurrencyData, GetACurrencyError, GetACurrencyErrors, GetACurrencyResponse, GetACurrencyResponses, GetAFileData, GetAFileError, GetAFileErrors, GetAFileResponse, GetAFileResponses, GetATransactionData, GetATransactionError, GetATransactionErrors, GetATransactionResponse, GetATransactionResponses, GetAllCurrenciesData, GetAllCurrenciesError, GetAllCurrenciesErrors, GetAllCurrenciesResponse, GetAllCurrenciesResponses, GetAllFilesData, GetAllFilesError, GetAllFilesErrors, GetAllFilesResponse, GetAllFilesResponses, GetAllHierarchiesData, GetAllHierarchiesError, GetAllHierarchiesErrors, GetAllHierarchiesResponse, GetAllHierarchiesResponses, GetAllNodesData, GetAllNodesError, GetAllNodesErrors, GetAllNodesResponse, GetAllNodesResponses, GetAllProductsData, GetAllProductsError, GetAllProductsErrors, GetAllProductsResponse, GetAllProductsResponses, GetAnOrderData, GetAnOrderError, GetAnOrderErrors, GetAnOrderResponse, GetAnOrderResponses, GetByContextAllHierarchiesData, GetByContextAllHierarchiesError, GetByContextAllHierarchiesErrors, GetByContextAllHierarchiesResponse, GetByContextAllHierarchiesResponses, GetByContextAllNodesData, GetByContextAllNodesError, GetByContextAllNodesErrors, GetByContextAllNodesResponse, GetByContextAllNodesResponses, GetByContextAllProductsData, GetByContextAllProductsError, GetByContextAllProductsErrors, GetByContextAllProductsResponse, GetByContextAllProductsResponses, GetByContextChildNodesData, GetByContextChildNodesError, GetByContextChildNodesErrors, GetByContextChildNodesResponse, GetByContextChildNodesResponses, GetByContextChildProductsData, GetByContextChildProductsError, GetByContextChildProductsErrors, GetByContextChildProductsResponse, GetByContextChildProductsResponses, GetByContextComponentProductIdsData, GetByContextComponentProductIdsError, GetByContextComponentProductIdsErrors, GetByContextComponentProductIdsResponse, GetByContextComponentProductIdsResponses, GetByContextHierarchyChildNodesData, GetByContextHierarchyChildNodesError, GetByContextHierarchyChildNodesErrors, GetByContextHierarchyChildNodesResponse, GetByContextHierarchyChildNodesResponses, GetByContextHierarchyData, GetByContextHierarchyError, GetByContextHierarchyErrors, GetByContextHierarchyNodesData, GetByContextHierarchyNodesError, GetByContextHierarchyNodesErrors, GetByContextHierarchyNodesResponse, GetByContextHierarchyNodesResponses, GetByContextHierarchyResponse, GetByContextHierarchyResponses, GetByContextNodeData, GetByContextNodeError, GetByContextNodeErrors, GetByContextNodeResponse, GetByContextNodeResponses, GetByContextProductData, GetByContextProductError, GetByContextProductErrors, GetByContextProductResponse, GetByContextProductResponses, GetByContextProductsForHierarchyData, GetByContextProductsForHierarchyError, GetByContextProductsForHierarchyErrors, GetByContextProductsForHierarchyResponse, GetByContextProductsForHierarchyResponses, GetByContextProductsForNodeData, GetByContextProductsForNodeError, GetByContextProductsForNodeErrors, GetByContextProductsForNodeResponse, GetByContextProductsForNodeResponses, GetByContextReleaseData, GetByContextReleaseError, GetByContextReleaseErrors, GetByContextReleaseResponse, GetByContextReleaseResponses, GetCartData, GetCartError, GetCartErrors, GetCartItemsData, GetCartItemsError, GetCartItemsErrors, GetCartItemsResponse, GetCartItemsResponses, GetCartResponse, GetCartResponses, GetCartsData, GetCartsError, GetCartsErrors, GetCartsResponse, GetCartsResponses, GetCatalogByIdData, GetCatalogByIdError, GetCatalogByIdErrors, GetCatalogByIdResponse, GetCatalogByIdResponses, GetCatalogsData, GetCatalogsError, GetCatalogsErrors, GetCatalogsResponse, GetCatalogsResponses, GetChildNodesData, GetChildNodesError, GetChildNodesErrors, GetChildNodesResponse, GetChildNodesResponses, GetChildProductsData, GetChildProductsError, GetChildProductsErrors, GetChildProductsResponse, GetChildProductsResponses, GetComponentProductIdsData, GetComponentProductIdsError, GetComponentProductIdsErrors, GetComponentProductIdsResponse, GetComponentProductIdsResponses, GetCustomerOrdersData, GetCustomerOrdersError, GetCustomerOrdersErrors, GetCustomerOrdersResponse, GetCustomerOrdersResponses, GetFeatureData, GetFeatureError, GetFeatureErrors, GetFeatureResponse, GetFeatureResponses, GetHierarchyChildNodesData, GetHierarchyChildNodesError, GetHierarchyChildNodesErrors, GetHierarchyChildNodesResponse, GetHierarchyChildNodesResponses, GetHierarchyData, GetHierarchyError, GetHierarchyErrors, GetHierarchyNodesData, GetHierarchyNodesError, GetHierarchyNodesErrors, GetHierarchyNodesResponse, GetHierarchyNodesResponses, GetHierarchyResponse, GetHierarchyResponses, GetInvoiceData, GetInvoiceError, GetInvoiceErrors, GetInvoiceResponse, GetInvoiceResponses, GetNodeData, GetNodeError, GetNodeErrors, GetNodeResponse, GetNodeResponses, GetOfferingData, GetOfferingError, GetOfferingErrors, GetOfferingResponse, GetOfferingResponses, GetOrderItemsData, GetOrderItemsError, GetOrderItemsErrors, GetOrderItemsResponse, GetOrderItemsResponses, GetOrderTransactionsData, GetOrderTransactionsError, GetOrderTransactionsErrors, GetOrderTransactionsResponse, GetOrderTransactionsResponses, GetPlanData, GetPlanError, GetPlanErrors, GetPlanResponse, GetPlanResponses, GetProductData, GetProductError, GetProductErrors, GetProductResponse, GetProductResponses, GetProductsForHierarchyData, GetProductsForHierarchyError, GetProductsForHierarchyErrors, GetProductsForHierarchyResponse, GetProductsForHierarchyResponses, GetProductsForNodeData, GetProductsForNodeError, GetProductsForNodeErrors, GetProductsForNodeResponse, GetProductsForNodeResponses, GetReleaseByIdData, GetReleaseByIdError, GetReleaseByIdErrors, GetReleaseByIdResponse, GetReleaseByIdResponses, GetReleasesData, GetReleasesError, GetReleasesErrors, GetReleasesResponse, GetReleasesResponses, GetRuleByIdData, GetRuleByIdError, GetRuleByIdErrors, GetRuleByIdResponse, GetRuleByIdResponses, GetRulesData, GetRulesError, GetRulesErrors, GetRulesResponse, GetRulesResponses, GetStockData, GetStockError, GetStockErrors, GetStockResponse, GetStockResponses, GetSubscriptionData, GetSubscriptionError, GetSubscriptionErrors, GetSubscriptionInvoiceData, GetSubscriptionInvoiceError, GetSubscriptionInvoiceErrors, GetSubscriptionInvoicePaymentData, GetSubscriptionInvoicePaymentError, GetSubscriptionInvoicePaymentErrors, GetSubscriptionInvoicePaymentResponse, GetSubscriptionInvoicePaymentResponses, GetSubscriptionInvoiceResponse, GetSubscriptionInvoiceResponses, GetSubscriptionProductData, GetSubscriptionProductError, GetSubscriptionProductErrors, GetSubscriptionProductResponse, GetSubscriptionProductResponses, GetSubscriptionResponse, GetSubscriptionResponses, GetSubscriptionStateData, GetSubscriptionStateError, GetSubscriptionStateErrors, GetSubscriptionStateResponse, GetSubscriptionStateResponses, GetV2AccountAddressData, GetV2AccountAddressError, GetV2AccountAddressErrors, GetV2AccountAddressResponse, GetV2AccountAddressResponses, GetV2AccountAddressesData, GetV2AccountAddressesError, GetV2AccountAddressesErrors, GetV2AccountAddressesResponse, GetV2AccountAddressesResponses, GetV2AccountMembersAccountMemberIdData, GetV2AccountMembersAccountMemberIdError, GetV2AccountMembersAccountMemberIdErrors, GetV2AccountMembersAccountMemberIdResponse, GetV2AccountMembersAccountMemberIdResponses, GetV2AccountMembersData, GetV2AccountMembersError, GetV2AccountMembersErrors, GetV2AccountMembersResponse, GetV2AccountMembersResponses, GetV2AccountsAccountIdAccountMembershipsData, GetV2AccountsAccountIdAccountMembershipsError, GetV2AccountsAccountIdAccountMembershipsErrors, GetV2AccountsAccountIdAccountMembershipsResponse, GetV2AccountsAccountIdAccountMembershipsResponses, GetV2AccountsAccountIdData, GetV2AccountsAccountIdError, GetV2AccountsAccountIdErrors, GetV2AccountsAccountIdResponse, GetV2AccountsAccountIdResponses, GetV2AccountsData, GetV2AccountsError, GetV2AccountsErrors, GetV2AccountsResponse, GetV2AccountsResponses, Hierarchy, HierarchyAttributes, HierarchyData, HierarchyListData, HierarchyMeta, HierarchyRelationships, Import, ImportAttributes, ImportMeta, ImportRecords, Include, Include2, IncludeAccount, IncludeAccountMember, IncludeComponentProducts, Included, InventoriesError, InventoriesErrorResponse, InventoriesFilter, InventoriesPageLimit, InventoriesPageOffset, InventoriesTimestamps, InventoriesTransactionResponse, InventoriesUuid, InventoryLocationType, InvoicePaymentTimestamps, InvoiceTaxItems, InvoiceTimestamps, ItemPriceData, Job, JobAttributes, JobCreate, JobCreateAttributes, JobMeta, JobReport, JobResponseAttributes, JobTimestamps, JobType, Limit, Link, LinkObject, LinkUri, Links, Links2, ListInvoicesData, ListInvoicesError, ListInvoicesErrors, ListInvoicesResponse, ListInvoicesResponses, ListLocationsData, ListLocationsError, ListLocationsErrors, ListLocationsResponse, ListLocationsResponses, ListOfferingFeaturesData, ListOfferingFeaturesError, ListOfferingFeaturesErrors, ListOfferingFeaturesResponse, ListOfferingFeaturesResponses, ListOfferingPlansData, ListOfferingPlansError, ListOfferingPlansErrors, ListOfferingPlansResponse, ListOfferingPlansResponses, ListOfferingProductsData, ListOfferingProductsError, ListOfferingProductsErrors, ListOfferingProductsResponse, ListOfferingProductsResponses, ListOfferingsData, ListOfferingsError, ListOfferingsErrors, ListOfferingsResponse, ListOfferingsResponses, ListSubscriptionInvoicePaymentsData, ListSubscriptionInvoicePaymentsResponse, ListSubscriptionInvoicePaymentsResponses, ListSubscriptionInvoicesData, ListSubscriptionInvoicesError, ListSubscriptionInvoicesErrors, ListSubscriptionInvoicesResponse, ListSubscriptionInvoicesResponses, ListSubscriptionPlansData, ListSubscriptionPlansError, ListSubscriptionPlansErrors, ListSubscriptionPlansResponse, ListSubscriptionPlansResponses, ListSubscriptionProductsData, ListSubscriptionProductsError, ListSubscriptionProductsErrors, ListSubscriptionProductsResponse, ListSubscriptionProductsResponses, ListSubscriptionStatesData, ListSubscriptionStatesError, ListSubscriptionStatesErrors, ListSubscriptionStatesResponse, ListSubscriptionStatesResponses, ListSubscriptionsData, ListSubscriptionsError, ListSubscriptionsErrors, ListSubscriptionsResponse, ListSubscriptionsResponses, Location, LocationAttributes, LocationRequest, LocationUpdateAttributes, LocationUpdateRequest, MainImageRelationship, ManageCartsData, ManageCartsError, ManageCartsErrors, ManageCartsResponse, ManageCartsResponses, ManageSubscriptionProducts, ManualPayments, ManyRelationship, Meta, MetaAccountMemberId, MetaList, MetaListPage, MetaListResults, Method, MultipleProducts, Node, NodeAttributes, NodeCreateData, NodeData, NodeListData, NodeMeta, NodeReference, NodeRelationships, NodeRelationshipsData, NullableLocation, NullableLocations, NullablePaymentAuthority, NullablePrice, NullablePriceUnits, Offering, OfferingAttributes, OfferingCreate, OfferingFeature, OfferingFeatureAttach, OfferingFeatureUpdate, OfferingIncludes, OfferingMeta, OfferingPlan, OfferingPlanAttach, OfferingPlanMeta, OfferingPlanUpdate, OfferingProduct, OfferingProductAttach, OfferingProductExternalRefMeta, OfferingProductReplace, OfferingProductResponseAttributes, OfferingProductResponseExtraAttributes, OfferingProductUpdate, OfferingProductUpdateAttributes, OfferingProductUpdateExtraAttributes, OfferingRelationships, OfferingResponseAttributes, OfferingUpdate, OfferingUpdateAttributes, OfferingUpdateRelationships, Offset, OpenIdConnectRequest, OrderItemFormattedUnitPriceData, OrderItemResponse, OrderMeta, OrderPriceData, OrderResponse, OrdersAddressData, OrdersAnonymizeData, OrdersAnonymizeRequest, OrdersCancelData, OrdersFulfilledData, OrdersTransactionsCancelRequest, OrdersTransactionsCaptureRequest, OrdersTransactionsConfirmRequest, OrdersTransactionsRefundRequest, OrdersUpdateRequest, Owner, OwnerMeta, PageLimit, PageMeta, PageOffset, PasswordRequest, PasswordlessRequest, PaymentAuthority, PaymentAuthorityAuthorizeNet, PaymentAuthorityStripe, PaymentFailureDetail, PaymentRetryType, PaymentRetryUnit, PaymentRunReport, PaymentSetupData, PaymentSetupError, PaymentSetupErrors, PaymentSetupResponse, PaymentSetupResponses, PaymentsRequest, Plan, PlanAttributes, PlanAttributesAndSelectedMeta, PlanCreate, PlanMeta, PlanResponseAttributes, PlanUpdate, PlanUpdateAttributes, PostV2AccountAddressData, PostV2AccountAddressError, PostV2AccountAddressErrors, PostV2AccountAddressResponse, PostV2AccountAddressResponses, PostV2AccountMembersTokensData, PostV2AccountMembersTokensError, PostV2AccountMembersTokensErrors, PostV2AccountMembersTokensResponse, PostV2AccountMembersTokensResponses, PostV2AccountsData, PostV2AccountsError, PostV2AccountsErrors, PostV2AccountsResponse, PostV2AccountsResponses, Price, PriceFormatting, PriceUnits, Pricebook, PricebookCreateData, PricebookData, PricebookPrice, PricebookPriceCreateData, PricebookPriceData, PrioritizedPricebooks, Product, Product2, ProductAttributes, ProductAttributes2, ProductCreate, ProductCreateData, ProductData, ProductDiff, ProductListData, ProductMeta, ProductMeta2, ProductReference, ProductReferenceListData, ProductReferences, ProductRelationships, ProductRelationshipsData, ProductResponseAttributes, ProductUpdate, ProductUpdateAttributes, ProductsForCart, ProductsForCartConfiguration, ProductsForCartConfiguration2, PromotionItemObject, PromotionItemObjectData, PromotionItemResponseObject, ProrationEvent, ProrationPolicy, ProrationPolicyAttributes, ProrationPolicyCreate, ProrationPolicyMeta, ProrationPolicyRelationshipAttributes, ProrationPolicyResponseAttributes, ProrationPolicyType, ProrationPolicyUpdate, ProrationPolicyUpdateAttributes, ProrationPolicyUpdateRelationshipAttributes, PublishReleaseData, PublishReleaseError, PublishReleaseErrors, PublishReleaseResponse, PublishReleaseResponses, PutV2AccountAddressData, PutV2AccountAddressError, PutV2AccountAddressErrors, PutV2AccountAddressResponse, PutV2AccountAddressResponses, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, PutV2AccountsAccountIdErrors, PutV2AccountsAccountIdResponse, PutV2AccountsAccountIdResponses, ReOrderObject, ReOrderObjectRequest, ReadOnlyParentId, RefundATransactionData, RefundATransactionError, RefundATransactionErrors, RefundATransactionResponse, RefundATransactionResponses, RelatedLink, Relationship, RelationshipArray, RelationshipData, RelationshipItem, RelationshipLinks, Relationships, Release, ReleaseData, ReleaseListData, ReleaseMeta, ReleaseRelationships, ReleaseStatus, RequestCreateCurrencies, RequestUpdateCurrencies, ResponseCurrency, ResponseData, ResponseError, ResponseMetaCarts, ResponseMetaCurrency, ResponseMetaOrders, ResponsePageLinks, ResponsePaginationPage, ResponsePaginationResults, ResultsLinks, ResultsMeta, Rounding, Rule, RuleCreateData, RuleData, RuleListData, RuleSchedule, RuleUpdateData, Sale, Sales, Schedule, Schedule2, ScheduleAttributes, ScheduleCreate, ScheduleJob, ScheduleMeta, ScheduleResponseAttributes, ScheduleUpdate, ScheduleUpdateAttributes, SelectedPlanMeta, SelectedPlanMetaAttributes, SelfLink, SelfLink2, SelfSignupRequest, ShippingAddress, ShopperAttributes, SingleCurrencyPrice, SingleRelationship, Sort, StateMeta, Status, Status2, StockCreate, StockCreateAttributes, StockLocations, StockMeta, StockResponse, StockResponseAttributes, StockTransactionType, StockType, StockUpdateAttributes, StockUpdateRequest, Subscriber, SubscriberAttributes, SubscriberCreate, SubscriberMeta, SubscriberResponseAttributes, SubscriberUpdate, SubscriberUpdateAttributes, Subscription, SubscriptionAttributes, SubscriptionDunningRuleType, SubscriptionFeatureType, SubscriptionImportError, SubscriptionImportErrorMeta, SubscriptionImportErrorType, SubscriptionImportType, SubscriptionIncludes, SubscriptionInvoice, SubscriptionInvoiceAttributes, SubscriptionInvoiceItem, SubscriptionInvoiceMeta, SubscriptionInvoicePayment, SubscriptionInvoicePaymentAttributes, SubscriptionInvoicePaymentMeta, SubscriptionInvoicePaymentType, SubscriptionInvoiceType, SubscriptionItemObject, SubscriptionItemObjectData, SubscriptionItemResponseObject, SubscriptionJobType, SubscriptionMeta, SubscriptionOfferingFeatureType, SubscriptionOfferingPlanType, SubscriptionOfferingProductType, SubscriptionOfferingType, SubscriptionPlanType, SubscriptionProductType, SubscriptionScheduleType, SubscriptionState, SubscriptionStateAction, SubscriptionStateAttributes, SubscriptionStateType, SubscriptionSubscriberType, SubscriptionTimestamps, SubscriptionType, SubscriptionUpdate, SubscriptionUpdateAttributes, SubscriptionsError, SubscriptionsErrorResponse, SubscriptionsFilter, SubscriptionsPageLimit, SubscriptionsPageOffset, SubscriptionsSingleRelationship, SubscriptionsTimestamps, SubscriptionsUuid, SwitchingAccountRequest, Tag, TaxItem, TaxRunReport, Tier, TieredAmount, TieredCurrencies, Tiers, TimePeriod, Timestamps, TransactionCreate, TransactionCreateAttributes, TransactionResponse, TransactionResponseAttributes, Type, Unit, UpdateACartData, UpdateACartError, UpdateACartErrors, UpdateACartItemData, UpdateACartItemError, UpdateACartItemErrors, UpdateACartItemResponse, UpdateACartItemResponses, UpdateACartResponse, UpdateACartResponses, UpdateATaxItemData, UpdateATaxItemError, UpdateATaxItemErrors, UpdateATaxItemResponse, UpdateATaxItemResponses, UpdateAllOrNothingOptionsObject, UpdateAnOrderData, UpdateAnOrderError, UpdateAnOrderErrors, UpdateAnOrderResponse, UpdateAnOrderResponses, UpdateCartsItems, UpdateCatalogData, UpdateCatalogError, UpdateCatalogErrors, UpdateCatalogResponse, UpdateCatalogResponses, UpdateCustomDiscountForCartData, UpdateCustomDiscountForCartError, UpdateCustomDiscountForCartErrors, UpdateCustomDiscountForCartItemData, UpdateCustomDiscountForCartItemError, UpdateCustomDiscountForCartItemErrors, UpdateCustomDiscountForCartItemResponse, UpdateCustomDiscountForCartItemResponses, UpdateCustomDiscountForCartResponse, UpdateCustomDiscountForCartResponses, UpdateInvoicePayment, UpdateInvoicePaymentAttributes, UpdateRuleData, UpdateRuleError, UpdateRuleErrors, UpdateRuleResponse, UpdateRuleResponses, Uuid, Variation, VariationOption, WritableParentId, _Error } from './client/types.gen.cjs';
2
+ export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, configureByContextProduct, confirmPayment, createACart, createAccountCartAssociation, createAnAccessToken, createCartPaymentIntent, createCatalog, createCustomerCartAssociation, createRule, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCatalogById, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, deleteReleaseById, deleteReleases, deleteRuleById, deleteV2AccountAddress, getACurrency, getAFile, getATransaction, getAllCurrencies, getAllFiles, getAllHierarchies, getAllNodes, getAllProducts, getAnOrder, getByContextAllHierarchies, getByContextAllNodes, getByContextAllProducts, getByContextChildNodes, getByContextChildProducts, getByContextComponentProductIds, getByContextHierarchy, getByContextHierarchyChildNodes, getByContextHierarchyNodes, getByContextNode, getByContextProduct, getByContextProductsForHierarchy, getByContextProductsForNode, getByContextRelease, getCart, getCartItems, getCarts, getCatalogById, getCatalogs, getChildNodes, getChildProducts, getComponentProductIds, getCustomerOrders, getFeature, getHierarchy, getHierarchyChildNodes, getHierarchyNodes, getInvoice, getNode, getOffering, getOrderItems, getOrderTransactions, getPlan, getProduct, getProductsForHierarchy, getProductsForNode, getReleaseById, getReleases, getRuleById, getRules, getStock, getSubscription, getSubscriptionInvoice, getSubscriptionInvoicePayment, getSubscriptionProduct, getSubscriptionState, getV2AccountAddress, getV2AccountAddresses, getV2AccountMembers, getV2AccountMembersAccountMemberId, getV2Accounts, getV2AccountsAccountId, getV2AccountsAccountIdAccountMemberships, listInvoices, listLocations, listOfferingFeatures, listOfferingPlans, listOfferingProducts, listOfferings, listSubscriptionInvoicePayments, listSubscriptionInvoices, listSubscriptionPlans, listSubscriptionProducts, listSubscriptionStates, listSubscriptions, manageCarts, paymentSetup, postV2AccountAddress, postV2AccountMembersTokens, postV2Accounts, publishRelease, putV2AccountAddress, putV2AccountsAccountId, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCatalog, updateCustomDiscountForCart, updateCustomDiscountForCartItem, updateRule } from './client/sdk.gen.cjs';
3
+ export { addCustomDiscountToCartItemMutation, addCustomDiscountToCartItemOptions, addCustomDiscountToCartItemQueryKey, addTaxItemToCartMutation, addTaxItemToCartOptions, addTaxItemToCartQueryKey, anonymizeOrdersMutation, anonymizeOrdersOptions, anonymizeOrdersQueryKey, bulkAddCustomDiscountsToCartMutation, bulkAddCustomDiscountsToCartOptions, bulkAddCustomDiscountsToCartQueryKey, bulkAddTaxItemsToCartMutation, bulkAddTaxItemsToCartOptions, bulkAddTaxItemsToCartQueryKey, bulkDeleteCustomDiscountsFromCartMutation, bulkDeleteTaxItemsFromCartMutation, bulkUpdateItemsInCartMutation, cancelATransactionMutation, cancelATransactionOptions, cancelATransactionQueryKey, captureATransactionMutation, captureATransactionOptions, captureATransactionQueryKey, checkoutApiMutation, checkoutApiOptions, checkoutApiQueryKey, configureByContextProductMutation, configureByContextProductOptions, configureByContextProductQueryKey, confirmPaymentMutation, confirmPaymentOptions, confirmPaymentQueryKey, createACartMutation, createACartOptions, createACartQueryKey, createAccountCartAssociationMutation, createAccountCartAssociationOptions, createAccountCartAssociationQueryKey, createAnAccessTokenMutation, createAnAccessTokenOptions, createAnAccessTokenQueryKey, createCartPaymentIntentMutation, createCartPaymentIntentOptions, createCartPaymentIntentQueryKey, createCatalogMutation, createCatalogOptions, createCatalogQueryKey, createCustomerCartAssociationMutation, createCustomerCartAssociationOptions, createCustomerCartAssociationQueryKey, createRuleMutation, createRuleOptions, createRuleQueryKey, deleteACartItemMutation, deleteACartMutation, deleteAPromotionViaPromotionCodeMutation, deleteATaxItemMutation, deleteAccountCartAssociationMutation, deleteAllCartItemsMutation, deleteCatalogByIdMutation, deleteCustomDiscountFromCartItemMutation, deleteCustomDiscountFromCartMutation, deleteCustomerCartAssociationMutation, deleteReleaseByIdMutation, deleteReleasesMutation, deleteRuleByIdMutation, deleteV2AccountAddressMutation, getACurrencyOptions, getACurrencyQueryKey, getAFileOptions, getAFileQueryKey, getATransactionOptions, getATransactionQueryKey, getAllCurrenciesOptions, getAllCurrenciesQueryKey, getAllFilesOptions, getAllFilesQueryKey, getAllHierarchiesOptions, getAllHierarchiesQueryKey, getAllNodesOptions, getAllNodesQueryKey, getAllProductsOptions, getAllProductsQueryKey, getAnOrderOptions, getAnOrderQueryKey, getByContextAllHierarchiesOptions, getByContextAllHierarchiesQueryKey, getByContextAllNodesOptions, getByContextAllNodesQueryKey, getByContextAllProductsOptions, getByContextAllProductsQueryKey, getByContextChildNodesOptions, getByContextChildNodesQueryKey, getByContextChildProductsOptions, getByContextChildProductsQueryKey, getByContextComponentProductIdsOptions, getByContextComponentProductIdsQueryKey, getByContextHierarchyChildNodesOptions, getByContextHierarchyChildNodesQueryKey, getByContextHierarchyNodesOptions, getByContextHierarchyNodesQueryKey, getByContextHierarchyOptions, getByContextHierarchyQueryKey, getByContextNodeOptions, getByContextNodeQueryKey, getByContextProductOptions, getByContextProductQueryKey, getByContextProductsForHierarchyOptions, getByContextProductsForHierarchyQueryKey, getByContextProductsForNodeOptions, getByContextProductsForNodeQueryKey, getByContextReleaseOptions, getByContextReleaseQueryKey, getCartItemsOptions, getCartItemsQueryKey, getCartOptions, getCartQueryKey, getCartsOptions, getCartsQueryKey, getCatalogByIdOptions, getCatalogByIdQueryKey, getCatalogsOptions, getCatalogsQueryKey, getChildNodesOptions, getChildNodesQueryKey, getChildProductsOptions, getChildProductsQueryKey, getComponentProductIdsOptions, getComponentProductIdsQueryKey, getCustomerOrdersOptions, getCustomerOrdersQueryKey, getFeatureOptions, getFeatureQueryKey, getHierarchyChildNodesOptions, getHierarchyChildNodesQueryKey, getHierarchyNodesOptions, getHierarchyNodesQueryKey, getHierarchyOptions, getHierarchyQueryKey, getInvoiceOptions, getInvoiceQueryKey, getNodeOptions, getNodeQueryKey, getOfferingOptions, getOfferingQueryKey, getOrderItemsOptions, getOrderItemsQueryKey, getOrderTransactionsOptions, getOrderTransactionsQueryKey, getPlanOptions, getPlanQueryKey, getProductOptions, getProductQueryKey, getProductsForHierarchyOptions, getProductsForHierarchyQueryKey, getProductsForNodeOptions, getProductsForNodeQueryKey, getReleaseByIdOptions, getReleaseByIdQueryKey, getReleasesOptions, getReleasesQueryKey, getRuleByIdOptions, getRuleByIdQueryKey, getRulesOptions, getRulesQueryKey, getStockOptions, getStockQueryKey, getSubscriptionInvoiceOptions, getSubscriptionInvoicePaymentOptions, getSubscriptionInvoicePaymentQueryKey, getSubscriptionInvoiceQueryKey, getSubscriptionOptions, getSubscriptionProductOptions, getSubscriptionProductQueryKey, getSubscriptionQueryKey, getSubscriptionStateOptions, getSubscriptionStateQueryKey, getV2AccountAddressOptions, getV2AccountAddressQueryKey, getV2AccountAddressesOptions, getV2AccountAddressesQueryKey, getV2AccountMembersAccountMemberIdOptions, getV2AccountMembersAccountMemberIdQueryKey, getV2AccountMembersOptions, getV2AccountMembersQueryKey, getV2AccountsAccountIdAccountMembershipsOptions, getV2AccountsAccountIdAccountMembershipsQueryKey, getV2AccountsAccountIdOptions, getV2AccountsAccountIdQueryKey, getV2AccountsOptions, getV2AccountsQueryKey, listInvoicesOptions, listInvoicesQueryKey, listLocationsOptions, listLocationsQueryKey, listOfferingFeaturesOptions, listOfferingFeaturesQueryKey, listOfferingPlansOptions, listOfferingPlansQueryKey, listOfferingProductsOptions, listOfferingProductsQueryKey, listOfferingsOptions, listOfferingsQueryKey, listSubscriptionInvoicePaymentsOptions, listSubscriptionInvoicePaymentsQueryKey, listSubscriptionInvoicesOptions, listSubscriptionInvoicesQueryKey, listSubscriptionPlansOptions, listSubscriptionPlansQueryKey, listSubscriptionProductsOptions, listSubscriptionProductsQueryKey, listSubscriptionStatesOptions, listSubscriptionStatesQueryKey, listSubscriptionsOptions, listSubscriptionsQueryKey, manageCartsMutation, manageCartsOptions, manageCartsQueryKey, paymentSetupMutation, paymentSetupOptions, paymentSetupQueryKey, postV2AccountAddressMutation, postV2AccountAddressOptions, postV2AccountAddressQueryKey, postV2AccountMembersTokensMutation, postV2AccountMembersTokensOptions, postV2AccountMembersTokensQueryKey, postV2AccountsMutation, postV2AccountsOptions, postV2AccountsQueryKey, publishReleaseMutation, publishReleaseOptions, publishReleaseQueryKey, putV2AccountAddressMutation, putV2AccountsAccountIdMutation, refundATransactionMutation, refundATransactionOptions, refundATransactionQueryKey, updateACartItemMutation, updateACartMutation, updateATaxItemMutation, updateAnOrderMutation, updateCatalogMutation, updateCustomDiscountForCartItemMutation, updateCustomDiscountForCartMutation, updateRuleMutation } from './client/@tanstack/react-query.gen.cjs';
4
+ export { Client, createClient } from '@hey-api/client-fetch';
5
+ export { extractProductImage } from './utils/extract-product-image.cjs';
6
+ import '@tanstack/react-query';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./client";
2
- export * from "./client/@tanstack/react-query.gen";
3
- import { Client, createClient } from "@hey-api/client-fetch";
4
- export { createClient, Client };
5
- export { client } from "./client/sdk.gen";
6
- export { extractProductImage } from "./utils";
1
+ export { AcceptLanguage, AccessTokenRequest, AccessTokenResponse, Account, AccountAddressResponse, AccountAddressesError, AccountAddressesErrorResponse, AccountAddressesMetaTimestamps, AccountAuthenticationSettings, AccountAuthenticationSettingsResponse, AccountCheckout, AccountManagementAuthenticationToken, AccountManagementAuthenticationTokenResponse, AccountManagementError, AccountManagementErrorResponse, AccountManagementMetaTimestamps, AccountMember, AccountMemberResponse, AccountMemberSelfManagement, AccountMembership, AccountMembershipResponse, AccountMembershipResponseUsingAccountMemberId, AccountMembershipSettings, AccountResponse, Action, ActivePlan, AddAllOrNothingOptionsObject, AddCustomDiscountToCartItemData, AddCustomDiscountToCartItemError, AddCustomDiscountToCartItemErrors, AddCustomDiscountToCartItemResponse, AddCustomDiscountToCartItemResponses, AddTaxItemToCartData, AddTaxItemToCartError, AddTaxItemToCartErrors, AddTaxItemToCartResponse, AddTaxItemToCartResponses, Address, AddressResponse, Amount, AnonymizeOrdersData, AnonymizeOrdersError, AnonymizeOrdersErrors, AnonymizeOrdersResponse, AnonymizeOrdersResponses, BillingAddress, BillingIntervalType, BillingRunReport, BuildOffering, BuildSubscription, BulkAddCustomDiscountsToCartData, BulkAddCustomDiscountsToCartError, BulkAddCustomDiscountsToCartErrors, BulkAddCustomDiscountsToCartResponse, BulkAddCustomDiscountsToCartResponses, BulkAddItemsRequest, BulkAddTaxItemsToCartData, BulkAddTaxItemsToCartError, BulkAddTaxItemsToCartErrors, BulkAddTaxItemsToCartResponse, BulkAddTaxItemsToCartResponses, BulkDeleteCustomDiscountsFromCartData, BulkDeleteCustomDiscountsFromCartError, BulkDeleteCustomDiscountsFromCartErrors, BulkDeleteCustomDiscountsFromCartResponse, BulkDeleteCustomDiscountsFromCartResponses, BulkDeleteTaxItemsFromCartData, BulkDeleteTaxItemsFromCartError, BulkDeleteTaxItemsFromCartErrors, BulkDeleteTaxItemsFromCartResponse, BulkDeleteTaxItemsFromCartResponses, BulkUpdateCartsItems, BulkUpdateItemsInCartData, BulkUpdateItemsInCartError, BulkUpdateItemsInCartErrors, BulkUpdateItemsInCartResponses, BundleConfiguration, BundleConfigurationData, BundleConfigurationData2, CancelATransactionData, CancelATransactionError, CancelATransactionErrors, CancelATransactionResponse, CancelATransactionResponses, CaptureATransactionData, CaptureATransactionError, CaptureATransactionErrors, CaptureATransactionResponse, CaptureATransactionResponses, CartCheckoutTimestamps, CartContact, CartInclude, CartInclude2, CartItemBulkCustomDiscountObject, CartItemBulkCustomDiscountResponse, CartItemObject, CartItemObjectData, CartItemRelationship, CartItemResponse, CartItemResponseObject, CartItemsObjectRequest, CartItemsObjectResponse, CartMergeObject, CartMergeObjectRequest, CartResponse, CartTimestamps, CartsBulkCustomDiscounts, CartsBulkCustomDiscountsResponse, CartsBulkTaxes, CartsCustomDiscountsObject, CartsCustomDiscountsResponse, CartsItemsTaxesObject, CartsRelationshipsAccountsData, CartsRelationshipsCustomersData, CartsRequest, CartsResponse, Catalog, CatalogCreateData, CatalogData, CatalogListData, CatalogReleaseCreateData, CatalogUpdateData, ChangeState, Channel, CheckoutApiData, CheckoutApiError, CheckoutApiErrors, CheckoutApiResponse, CheckoutApiResponses, ComponentProduct, ComponentProductOption, ComponentProductsRelationship, Components, ConfigureByContextProductData, ConfigureByContextProductError, ConfigureByContextProductErrors, ConfigureByContextProductResponse, ConfigureByContextProductResponses, ConfirmPaymentData, ConfirmPaymentError, ConfirmPaymentErrors, ConfirmPaymentResponse, ConfirmPaymentResponses, Contact, CreateACartData, CreateACartError, CreateACartErrors, CreateACartResponse, CreateACartResponses, CreateAccountCartAssociationData, CreateAccountCartAssociationError, CreateAccountCartAssociationErrors, CreateAccountCartAssociationResponse, CreateAccountCartAssociationResponses, CreateAnAccessTokenData, CreateAnAccessTokenError, CreateAnAccessTokenErrors, CreateAnAccessTokenResponse, CreateAnAccessTokenResponses, CreateCartPaymentIntentData, CreateCartPaymentIntentError, CreateCartPaymentIntentErrors, CreateCartPaymentIntentResponse, CreateCartPaymentIntentResponses, CreateCatalogData, CreateCatalogError, CreateCatalogErrors, CreateCatalogResponse, CreateCatalogResponses, CreateCustomerCartAssociationData, CreateCustomerCartAssociationError, CreateCustomerCartAssociationErrors, CreateCustomerCartAssociationResponse, CreateCustomerCartAssociationResponses, CreateRuleData, CreateRuleError, CreateRuleErrors, CreateRuleResponse, CreateRuleResponses, Currencies, CurrencyIdentifier, CustomAttributes, CustomDiscountRelationshipsCartItemRequest, CustomInput, CustomInputValidationRule, CustomInputValidationRuleOptions, CustomInputs, CustomItemObject, CustomItemObjectData, CustomItemResponseObject, CustomerCheckout, DataAdyenPayment, DataAuthorizeNetPayment, DataBasePayments, DataBraintreePayment, DataCardConnectPayment, DataCreateCurrencies, DataCyberSourcePayment, DataManualPayment, DataPayPalExpressCheckoutPayment, DataPaymentObject, DataStripeConnectPayment, DataStripePayment, DataStripePaymentIntentsPayment, DataUpdateCurrencies, DeleteACartData, DeleteACartError, DeleteACartErrors, DeleteACartItemData, DeleteACartItemError, DeleteACartItemErrors, DeleteACartItemResponse, DeleteACartItemResponses, DeleteACartResponse, DeleteACartResponses, DeleteAPromotionViaPromotionCodeData, DeleteAPromotionViaPromotionCodeError, DeleteAPromotionViaPromotionCodeErrors, DeleteAPromotionViaPromotionCodeResponse, DeleteAPromotionViaPromotionCodeResponses, DeleteATaxItemData, DeleteATaxItemError, DeleteATaxItemErrors, DeleteATaxItemResponse, DeleteATaxItemResponses, DeleteAccountCartAssociationData, DeleteAccountCartAssociationError, DeleteAccountCartAssociationErrors, DeleteAccountCartAssociationResponse, DeleteAccountCartAssociationResponses, DeleteAllCartItemsData, DeleteAllCartItemsError, DeleteAllCartItemsErrors, DeleteAllCartItemsResponse, DeleteAllCartItemsResponses, DeleteCatalogByIdData, DeleteCatalogByIdError, DeleteCatalogByIdErrors, DeleteCatalogByIdResponse, DeleteCatalogByIdResponses, DeleteCustomDiscountFromCartData, DeleteCustomDiscountFromCartError, DeleteCustomDiscountFromCartErrors, DeleteCustomDiscountFromCartItemData, DeleteCustomDiscountFromCartItemError, DeleteCustomDiscountFromCartItemErrors, DeleteCustomDiscountFromCartItemResponse, DeleteCustomDiscountFromCartItemResponses, DeleteCustomDiscountFromCartResponse, DeleteCustomDiscountFromCartResponses, DeleteCustomerCartAssociationData, DeleteCustomerCartAssociationError, DeleteCustomerCartAssociationErrors, DeleteCustomerCartAssociationResponse, DeleteCustomerCartAssociationResponses, DeleteReleaseByIdData, DeleteReleaseByIdError, DeleteReleaseByIdErrors, DeleteReleaseByIdResponse, DeleteReleaseByIdResponses, DeleteReleasesData, DeleteReleasesError, DeleteReleasesErrors, DeleteReleasesResponse, DeleteReleasesResponses, DeleteRuleByIdData, DeleteRuleByIdError, DeleteRuleByIdErrors, DeleteRuleByIdResponse, DeleteRuleByIdResponses, DeleteV2AccountAddressData, DeleteV2AccountAddressError, DeleteV2AccountAddressErrors, DeleteV2AccountAddressResponse, DeleteV2AccountAddressResponses, DiffListData, DiscountData, DiscountSettings, DisplayPrice, DisplayPrice2, DunningRule, DunningRuleAttributes, DunningRuleCreate, DunningRuleMeta, DunningRuleUpdate, DunningRuleUpdateAttributes, ElasticPathFile, ElasticPathPaymentsPoweredByStripePayment, EndBehavior, Error2, ErrorBadRequest, ErrorNotFound, ErrorResponse, ErrorResponse2, Extension, Extensions, ExternalRef, ExternalRefUpdate, Feature, FeatureAccessAttributes, FeatureAttributes, FeatureConfigAccessAttributes, FeatureConfigPromotionAttributes, FeatureConfigUsageAttributes, FeatureConfiguration, FeatureCreate, FeatureMeta, FeatureProductConfiguration, FeatureProductConfigurationUpdate, FeaturePromotion, FeaturePromotionAttributes, FeatureResponseAttributes, FeatureTag, FeatureUpdate, FeatureUpdateAttributes, FeatureUsageAttributes, File, FileLink, FileLink2, FileMeta, FileMeta2, FileReference, FilesError, FilesErrorResponse, FilesLinks, FilesRelationship, FilesUuid, Filesfilter, FilespageLimit, FilespageOffset, Filter, FilterHierarchy, FilterNode, FilterProduct, FilterRule, FormattedPrice, FormattedPriceData, Gateway, GeolocationDetails, GetACurrencyData, GetACurrencyError, GetACurrencyErrors, GetACurrencyResponse, GetACurrencyResponses, GetAFileData, GetAFileError, GetAFileErrors, GetAFileResponse, GetAFileResponses, GetATransactionData, GetATransactionError, GetATransactionErrors, GetATransactionResponse, GetATransactionResponses, GetAllCurrenciesData, GetAllCurrenciesError, GetAllCurrenciesErrors, GetAllCurrenciesResponse, GetAllCurrenciesResponses, GetAllFilesData, GetAllFilesError, GetAllFilesErrors, GetAllFilesResponse, GetAllFilesResponses, GetAllHierarchiesData, GetAllHierarchiesError, GetAllHierarchiesErrors, GetAllHierarchiesResponse, GetAllHierarchiesResponses, GetAllNodesData, GetAllNodesError, GetAllNodesErrors, GetAllNodesResponse, GetAllNodesResponses, GetAllProductsData, GetAllProductsError, GetAllProductsErrors, GetAllProductsResponse, GetAllProductsResponses, GetAnOrderData, GetAnOrderError, GetAnOrderErrors, GetAnOrderResponse, GetAnOrderResponses, GetByContextAllHierarchiesData, GetByContextAllHierarchiesError, GetByContextAllHierarchiesErrors, GetByContextAllHierarchiesResponse, GetByContextAllHierarchiesResponses, GetByContextAllNodesData, GetByContextAllNodesError, GetByContextAllNodesErrors, GetByContextAllNodesResponse, GetByContextAllNodesResponses, GetByContextAllProductsData, GetByContextAllProductsError, GetByContextAllProductsErrors, GetByContextAllProductsResponse, GetByContextAllProductsResponses, GetByContextChildNodesData, GetByContextChildNodesError, GetByContextChildNodesErrors, GetByContextChildNodesResponse, GetByContextChildNodesResponses, GetByContextChildProductsData, GetByContextChildProductsError, GetByContextChildProductsErrors, GetByContextChildProductsResponse, GetByContextChildProductsResponses, GetByContextComponentProductIdsData, GetByContextComponentProductIdsError, GetByContextComponentProductIdsErrors, GetByContextComponentProductIdsResponse, GetByContextComponentProductIdsResponses, GetByContextHierarchyChildNodesData, GetByContextHierarchyChildNodesError, GetByContextHierarchyChildNodesErrors, GetByContextHierarchyChildNodesResponse, GetByContextHierarchyChildNodesResponses, GetByContextHierarchyData, GetByContextHierarchyError, GetByContextHierarchyErrors, GetByContextHierarchyNodesData, GetByContextHierarchyNodesError, GetByContextHierarchyNodesErrors, GetByContextHierarchyNodesResponse, GetByContextHierarchyNodesResponses, GetByContextHierarchyResponse, GetByContextHierarchyResponses, GetByContextNodeData, GetByContextNodeError, GetByContextNodeErrors, GetByContextNodeResponse, GetByContextNodeResponses, GetByContextProductData, GetByContextProductError, GetByContextProductErrors, GetByContextProductResponse, GetByContextProductResponses, GetByContextProductsForHierarchyData, GetByContextProductsForHierarchyError, GetByContextProductsForHierarchyErrors, GetByContextProductsForHierarchyResponse, GetByContextProductsForHierarchyResponses, GetByContextProductsForNodeData, GetByContextProductsForNodeError, GetByContextProductsForNodeErrors, GetByContextProductsForNodeResponse, GetByContextProductsForNodeResponses, GetByContextReleaseData, GetByContextReleaseError, GetByContextReleaseErrors, GetByContextReleaseResponse, GetByContextReleaseResponses, GetCartData, GetCartError, GetCartErrors, GetCartItemsData, GetCartItemsError, GetCartItemsErrors, GetCartItemsResponse, GetCartItemsResponses, GetCartResponse, GetCartResponses, GetCartsData, GetCartsError, GetCartsErrors, GetCartsResponse, GetCartsResponses, GetCatalogByIdData, GetCatalogByIdError, GetCatalogByIdErrors, GetCatalogByIdResponse, GetCatalogByIdResponses, GetCatalogsData, GetCatalogsError, GetCatalogsErrors, GetCatalogsResponse, GetCatalogsResponses, GetChildNodesData, GetChildNodesError, GetChildNodesErrors, GetChildNodesResponse, GetChildNodesResponses, GetChildProductsData, GetChildProductsError, GetChildProductsErrors, GetChildProductsResponse, GetChildProductsResponses, GetComponentProductIdsData, GetComponentProductIdsError, GetComponentProductIdsErrors, GetComponentProductIdsResponse, GetComponentProductIdsResponses, GetCustomerOrdersData, GetCustomerOrdersError, GetCustomerOrdersErrors, GetCustomerOrdersResponse, GetCustomerOrdersResponses, GetFeatureData, GetFeatureError, GetFeatureErrors, GetFeatureResponse, GetFeatureResponses, GetHierarchyChildNodesData, GetHierarchyChildNodesError, GetHierarchyChildNodesErrors, GetHierarchyChildNodesResponse, GetHierarchyChildNodesResponses, GetHierarchyData, GetHierarchyError, GetHierarchyErrors, GetHierarchyNodesData, GetHierarchyNodesError, GetHierarchyNodesErrors, GetHierarchyNodesResponse, GetHierarchyNodesResponses, GetHierarchyResponse, GetHierarchyResponses, GetInvoiceData, GetInvoiceError, GetInvoiceErrors, GetInvoiceResponse, GetInvoiceResponses, GetNodeData, GetNodeError, GetNodeErrors, GetNodeResponse, GetNodeResponses, GetOfferingData, GetOfferingError, GetOfferingErrors, GetOfferingResponse, GetOfferingResponses, GetOrderItemsData, GetOrderItemsError, GetOrderItemsErrors, GetOrderItemsResponse, GetOrderItemsResponses, GetOrderTransactionsData, GetOrderTransactionsError, GetOrderTransactionsErrors, GetOrderTransactionsResponse, GetOrderTransactionsResponses, GetPlanData, GetPlanError, GetPlanErrors, GetPlanResponse, GetPlanResponses, GetProductData, GetProductError, GetProductErrors, GetProductResponse, GetProductResponses, GetProductsForHierarchyData, GetProductsForHierarchyError, GetProductsForHierarchyErrors, GetProductsForHierarchyResponse, GetProductsForHierarchyResponses, GetProductsForNodeData, GetProductsForNodeError, GetProductsForNodeErrors, GetProductsForNodeResponse, GetProductsForNodeResponses, GetReleaseByIdData, GetReleaseByIdError, GetReleaseByIdErrors, GetReleaseByIdResponse, GetReleaseByIdResponses, GetReleasesData, GetReleasesError, GetReleasesErrors, GetReleasesResponse, GetReleasesResponses, GetRuleByIdData, GetRuleByIdError, GetRuleByIdErrors, GetRuleByIdResponse, GetRuleByIdResponses, GetRulesData, GetRulesError, GetRulesErrors, GetRulesResponse, GetRulesResponses, GetStockData, GetStockError, GetStockErrors, GetStockResponse, GetStockResponses, GetSubscriptionData, GetSubscriptionError, GetSubscriptionErrors, GetSubscriptionInvoiceData, GetSubscriptionInvoiceError, GetSubscriptionInvoiceErrors, GetSubscriptionInvoicePaymentData, GetSubscriptionInvoicePaymentError, GetSubscriptionInvoicePaymentErrors, GetSubscriptionInvoicePaymentResponse, GetSubscriptionInvoicePaymentResponses, GetSubscriptionInvoiceResponse, GetSubscriptionInvoiceResponses, GetSubscriptionProductData, GetSubscriptionProductError, GetSubscriptionProductErrors, GetSubscriptionProductResponse, GetSubscriptionProductResponses, GetSubscriptionResponse, GetSubscriptionResponses, GetSubscriptionStateData, GetSubscriptionStateError, GetSubscriptionStateErrors, GetSubscriptionStateResponse, GetSubscriptionStateResponses, GetV2AccountAddressData, GetV2AccountAddressError, GetV2AccountAddressErrors, GetV2AccountAddressResponse, GetV2AccountAddressResponses, GetV2AccountAddressesData, GetV2AccountAddressesError, GetV2AccountAddressesErrors, GetV2AccountAddressesResponse, GetV2AccountAddressesResponses, GetV2AccountMembersAccountMemberIdData, GetV2AccountMembersAccountMemberIdError, GetV2AccountMembersAccountMemberIdErrors, GetV2AccountMembersAccountMemberIdResponse, GetV2AccountMembersAccountMemberIdResponses, GetV2AccountMembersData, GetV2AccountMembersError, GetV2AccountMembersErrors, GetV2AccountMembersResponse, GetV2AccountMembersResponses, GetV2AccountsAccountIdAccountMembershipsData, GetV2AccountsAccountIdAccountMembershipsError, GetV2AccountsAccountIdAccountMembershipsErrors, GetV2AccountsAccountIdAccountMembershipsResponse, GetV2AccountsAccountIdAccountMembershipsResponses, GetV2AccountsAccountIdData, GetV2AccountsAccountIdError, GetV2AccountsAccountIdErrors, GetV2AccountsAccountIdResponse, GetV2AccountsAccountIdResponses, GetV2AccountsData, GetV2AccountsError, GetV2AccountsErrors, GetV2AccountsResponse, GetV2AccountsResponses, Hierarchy, HierarchyAttributes, HierarchyData, HierarchyListData, HierarchyMeta, HierarchyRelationships, Import, ImportAttributes, ImportMeta, ImportRecords, Include, Include2, IncludeAccount, IncludeAccountMember, IncludeComponentProducts, Included, InventoriesError, InventoriesErrorResponse, InventoriesFilter, InventoriesPageLimit, InventoriesPageOffset, InventoriesTimestamps, InventoriesTransactionResponse, InventoriesUuid, InventoryLocationType, InvoicePaymentTimestamps, InvoiceTaxItems, InvoiceTimestamps, ItemPriceData, Job, JobAttributes, JobCreate, JobCreateAttributes, JobMeta, JobReport, JobResponseAttributes, JobTimestamps, JobType, Limit, Link, LinkObject, LinkUri, Links, Links2, ListInvoicesData, ListInvoicesError, ListInvoicesErrors, ListInvoicesResponse, ListInvoicesResponses, ListLocationsData, ListLocationsError, ListLocationsErrors, ListLocationsResponse, ListLocationsResponses, ListOfferingFeaturesData, ListOfferingFeaturesError, ListOfferingFeaturesErrors, ListOfferingFeaturesResponse, ListOfferingFeaturesResponses, ListOfferingPlansData, ListOfferingPlansError, ListOfferingPlansErrors, ListOfferingPlansResponse, ListOfferingPlansResponses, ListOfferingProductsData, ListOfferingProductsError, ListOfferingProductsErrors, ListOfferingProductsResponse, ListOfferingProductsResponses, ListOfferingsData, ListOfferingsError, ListOfferingsErrors, ListOfferingsResponse, ListOfferingsResponses, ListSubscriptionInvoicePaymentsData, ListSubscriptionInvoicePaymentsResponse, ListSubscriptionInvoicePaymentsResponses, ListSubscriptionInvoicesData, ListSubscriptionInvoicesError, ListSubscriptionInvoicesErrors, ListSubscriptionInvoicesResponse, ListSubscriptionInvoicesResponses, ListSubscriptionPlansData, ListSubscriptionPlansError, ListSubscriptionPlansErrors, ListSubscriptionPlansResponse, ListSubscriptionPlansResponses, ListSubscriptionProductsData, ListSubscriptionProductsError, ListSubscriptionProductsErrors, ListSubscriptionProductsResponse, ListSubscriptionProductsResponses, ListSubscriptionStatesData, ListSubscriptionStatesError, ListSubscriptionStatesErrors, ListSubscriptionStatesResponse, ListSubscriptionStatesResponses, ListSubscriptionsData, ListSubscriptionsError, ListSubscriptionsErrors, ListSubscriptionsResponse, ListSubscriptionsResponses, Location, LocationAttributes, LocationRequest, LocationUpdateAttributes, LocationUpdateRequest, MainImageRelationship, ManageCartsData, ManageCartsError, ManageCartsErrors, ManageCartsResponse, ManageCartsResponses, ManageSubscriptionProducts, ManualPayments, ManyRelationship, Meta, MetaAccountMemberId, MetaList, MetaListPage, MetaListResults, Method, MultipleProducts, Node, NodeAttributes, NodeCreateData, NodeData, NodeListData, NodeMeta, NodeReference, NodeRelationships, NodeRelationshipsData, NullableLocation, NullableLocations, NullablePaymentAuthority, NullablePrice, NullablePriceUnits, Offering, OfferingAttributes, OfferingCreate, OfferingFeature, OfferingFeatureAttach, OfferingFeatureUpdate, OfferingIncludes, OfferingMeta, OfferingPlan, OfferingPlanAttach, OfferingPlanMeta, OfferingPlanUpdate, OfferingProduct, OfferingProductAttach, OfferingProductExternalRefMeta, OfferingProductReplace, OfferingProductResponseAttributes, OfferingProductResponseExtraAttributes, OfferingProductUpdate, OfferingProductUpdateAttributes, OfferingProductUpdateExtraAttributes, OfferingRelationships, OfferingResponseAttributes, OfferingUpdate, OfferingUpdateAttributes, OfferingUpdateRelationships, Offset, OpenIdConnectRequest, OrderItemFormattedUnitPriceData, OrderItemResponse, OrderMeta, OrderPriceData, OrderResponse, OrdersAddressData, OrdersAnonymizeData, OrdersAnonymizeRequest, OrdersCancelData, OrdersFulfilledData, OrdersTransactionsCancelRequest, OrdersTransactionsCaptureRequest, OrdersTransactionsConfirmRequest, OrdersTransactionsRefundRequest, OrdersUpdateRequest, Owner, OwnerMeta, PageLimit, PageMeta, PageOffset, PasswordRequest, PasswordlessRequest, PaymentAuthority, PaymentAuthorityAuthorizeNet, PaymentAuthorityStripe, PaymentFailureDetail, PaymentRetryType, PaymentRetryUnit, PaymentRunReport, PaymentSetupData, PaymentSetupError, PaymentSetupErrors, PaymentSetupResponse, PaymentSetupResponses, PaymentsRequest, Plan, PlanAttributes, PlanAttributesAndSelectedMeta, PlanCreate, PlanMeta, PlanResponseAttributes, PlanUpdate, PlanUpdateAttributes, PostV2AccountAddressData, PostV2AccountAddressError, PostV2AccountAddressErrors, PostV2AccountAddressResponse, PostV2AccountAddressResponses, PostV2AccountMembersTokensData, PostV2AccountMembersTokensError, PostV2AccountMembersTokensErrors, PostV2AccountMembersTokensResponse, PostV2AccountMembersTokensResponses, PostV2AccountsData, PostV2AccountsError, PostV2AccountsErrors, PostV2AccountsResponse, PostV2AccountsResponses, Price, PriceFormatting, PriceUnits, Pricebook, PricebookCreateData, PricebookData, PricebookPrice, PricebookPriceCreateData, PricebookPriceData, PrioritizedPricebooks, Product, Product2, ProductAttributes, ProductAttributes2, ProductCreate, ProductCreateData, ProductData, ProductDiff, ProductListData, ProductMeta, ProductMeta2, ProductReference, ProductReferenceListData, ProductReferences, ProductRelationships, ProductRelationshipsData, ProductResponseAttributes, ProductUpdate, ProductUpdateAttributes, ProductsForCart, ProductsForCartConfiguration, ProductsForCartConfiguration2, PromotionItemObject, PromotionItemObjectData, PromotionItemResponseObject, ProrationEvent, ProrationPolicy, ProrationPolicyAttributes, ProrationPolicyCreate, ProrationPolicyMeta, ProrationPolicyRelationshipAttributes, ProrationPolicyResponseAttributes, ProrationPolicyType, ProrationPolicyUpdate, ProrationPolicyUpdateAttributes, ProrationPolicyUpdateRelationshipAttributes, PublishReleaseData, PublishReleaseError, PublishReleaseErrors, PublishReleaseResponse, PublishReleaseResponses, PutV2AccountAddressData, PutV2AccountAddressError, PutV2AccountAddressErrors, PutV2AccountAddressResponse, PutV2AccountAddressResponses, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, PutV2AccountsAccountIdErrors, PutV2AccountsAccountIdResponse, PutV2AccountsAccountIdResponses, ReOrderObject, ReOrderObjectRequest, ReadOnlyParentId, RefundATransactionData, RefundATransactionError, RefundATransactionErrors, RefundATransactionResponse, RefundATransactionResponses, RelatedLink, Relationship, RelationshipArray, RelationshipData, RelationshipItem, RelationshipLinks, Relationships, Release, ReleaseData, ReleaseListData, ReleaseMeta, ReleaseRelationships, ReleaseStatus, RequestCreateCurrencies, RequestUpdateCurrencies, ResponseCurrency, ResponseData, ResponseError, ResponseMetaCarts, ResponseMetaCurrency, ResponseMetaOrders, ResponsePageLinks, ResponsePaginationPage, ResponsePaginationResults, ResultsLinks, ResultsMeta, Rounding, Rule, RuleCreateData, RuleData, RuleListData, RuleSchedule, RuleUpdateData, Sale, Sales, Schedule, Schedule2, ScheduleAttributes, ScheduleCreate, ScheduleJob, ScheduleMeta, ScheduleResponseAttributes, ScheduleUpdate, ScheduleUpdateAttributes, SelectedPlanMeta, SelectedPlanMetaAttributes, SelfLink, SelfLink2, SelfSignupRequest, ShippingAddress, ShopperAttributes, SingleCurrencyPrice, SingleRelationship, Sort, StateMeta, Status, Status2, StockCreate, StockCreateAttributes, StockLocations, StockMeta, StockResponse, StockResponseAttributes, StockTransactionType, StockType, StockUpdateAttributes, StockUpdateRequest, Subscriber, SubscriberAttributes, SubscriberCreate, SubscriberMeta, SubscriberResponseAttributes, SubscriberUpdate, SubscriberUpdateAttributes, Subscription, SubscriptionAttributes, SubscriptionDunningRuleType, SubscriptionFeatureType, SubscriptionImportError, SubscriptionImportErrorMeta, SubscriptionImportErrorType, SubscriptionImportType, SubscriptionIncludes, SubscriptionInvoice, SubscriptionInvoiceAttributes, SubscriptionInvoiceItem, SubscriptionInvoiceMeta, SubscriptionInvoicePayment, SubscriptionInvoicePaymentAttributes, SubscriptionInvoicePaymentMeta, SubscriptionInvoicePaymentType, SubscriptionInvoiceType, SubscriptionItemObject, SubscriptionItemObjectData, SubscriptionItemResponseObject, SubscriptionJobType, SubscriptionMeta, SubscriptionOfferingFeatureType, SubscriptionOfferingPlanType, SubscriptionOfferingProductType, SubscriptionOfferingType, SubscriptionPlanType, SubscriptionProductType, SubscriptionScheduleType, SubscriptionState, SubscriptionStateAction, SubscriptionStateAttributes, SubscriptionStateType, SubscriptionSubscriberType, SubscriptionTimestamps, SubscriptionType, SubscriptionUpdate, SubscriptionUpdateAttributes, SubscriptionsError, SubscriptionsErrorResponse, SubscriptionsFilter, SubscriptionsPageLimit, SubscriptionsPageOffset, SubscriptionsSingleRelationship, SubscriptionsTimestamps, SubscriptionsUuid, SwitchingAccountRequest, Tag, TaxItem, TaxRunReport, Tier, TieredAmount, TieredCurrencies, Tiers, TimePeriod, Timestamps, TransactionCreate, TransactionCreateAttributes, TransactionResponse, TransactionResponseAttributes, Type, Unit, UpdateACartData, UpdateACartError, UpdateACartErrors, UpdateACartItemData, UpdateACartItemError, UpdateACartItemErrors, UpdateACartItemResponse, UpdateACartItemResponses, UpdateACartResponse, UpdateACartResponses, UpdateATaxItemData, UpdateATaxItemError, UpdateATaxItemErrors, UpdateATaxItemResponse, UpdateATaxItemResponses, UpdateAllOrNothingOptionsObject, UpdateAnOrderData, UpdateAnOrderError, UpdateAnOrderErrors, UpdateAnOrderResponse, UpdateAnOrderResponses, UpdateCartsItems, UpdateCatalogData, UpdateCatalogError, UpdateCatalogErrors, UpdateCatalogResponse, UpdateCatalogResponses, UpdateCustomDiscountForCartData, UpdateCustomDiscountForCartError, UpdateCustomDiscountForCartErrors, UpdateCustomDiscountForCartItemData, UpdateCustomDiscountForCartItemError, UpdateCustomDiscountForCartItemErrors, UpdateCustomDiscountForCartItemResponse, UpdateCustomDiscountForCartItemResponses, UpdateCustomDiscountForCartResponse, UpdateCustomDiscountForCartResponses, UpdateInvoicePayment, UpdateInvoicePaymentAttributes, UpdateRuleData, UpdateRuleError, UpdateRuleErrors, UpdateRuleResponse, UpdateRuleResponses, Uuid, Variation, VariationOption, WritableParentId, _Error } from './client/types.gen.js';
2
+ export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, configureByContextProduct, confirmPayment, createACart, createAccountCartAssociation, createAnAccessToken, createCartPaymentIntent, createCatalog, createCustomerCartAssociation, createRule, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCatalogById, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, deleteReleaseById, deleteReleases, deleteRuleById, deleteV2AccountAddress, getACurrency, getAFile, getATransaction, getAllCurrencies, getAllFiles, getAllHierarchies, getAllNodes, getAllProducts, getAnOrder, getByContextAllHierarchies, getByContextAllNodes, getByContextAllProducts, getByContextChildNodes, getByContextChildProducts, getByContextComponentProductIds, getByContextHierarchy, getByContextHierarchyChildNodes, getByContextHierarchyNodes, getByContextNode, getByContextProduct, getByContextProductsForHierarchy, getByContextProductsForNode, getByContextRelease, getCart, getCartItems, getCarts, getCatalogById, getCatalogs, getChildNodes, getChildProducts, getComponentProductIds, getCustomerOrders, getFeature, getHierarchy, getHierarchyChildNodes, getHierarchyNodes, getInvoice, getNode, getOffering, getOrderItems, getOrderTransactions, getPlan, getProduct, getProductsForHierarchy, getProductsForNode, getReleaseById, getReleases, getRuleById, getRules, getStock, getSubscription, getSubscriptionInvoice, getSubscriptionInvoicePayment, getSubscriptionProduct, getSubscriptionState, getV2AccountAddress, getV2AccountAddresses, getV2AccountMembers, getV2AccountMembersAccountMemberId, getV2Accounts, getV2AccountsAccountId, getV2AccountsAccountIdAccountMemberships, listInvoices, listLocations, listOfferingFeatures, listOfferingPlans, listOfferingProducts, listOfferings, listSubscriptionInvoicePayments, listSubscriptionInvoices, listSubscriptionPlans, listSubscriptionProducts, listSubscriptionStates, listSubscriptions, manageCarts, paymentSetup, postV2AccountAddress, postV2AccountMembersTokens, postV2Accounts, publishRelease, putV2AccountAddress, putV2AccountsAccountId, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCatalog, updateCustomDiscountForCart, updateCustomDiscountForCartItem, updateRule } from './client/sdk.gen.js';
3
+ export { addCustomDiscountToCartItemMutation, addCustomDiscountToCartItemOptions, addCustomDiscountToCartItemQueryKey, addTaxItemToCartMutation, addTaxItemToCartOptions, addTaxItemToCartQueryKey, anonymizeOrdersMutation, anonymizeOrdersOptions, anonymizeOrdersQueryKey, bulkAddCustomDiscountsToCartMutation, bulkAddCustomDiscountsToCartOptions, bulkAddCustomDiscountsToCartQueryKey, bulkAddTaxItemsToCartMutation, bulkAddTaxItemsToCartOptions, bulkAddTaxItemsToCartQueryKey, bulkDeleteCustomDiscountsFromCartMutation, bulkDeleteTaxItemsFromCartMutation, bulkUpdateItemsInCartMutation, cancelATransactionMutation, cancelATransactionOptions, cancelATransactionQueryKey, captureATransactionMutation, captureATransactionOptions, captureATransactionQueryKey, checkoutApiMutation, checkoutApiOptions, checkoutApiQueryKey, configureByContextProductMutation, configureByContextProductOptions, configureByContextProductQueryKey, confirmPaymentMutation, confirmPaymentOptions, confirmPaymentQueryKey, createACartMutation, createACartOptions, createACartQueryKey, createAccountCartAssociationMutation, createAccountCartAssociationOptions, createAccountCartAssociationQueryKey, createAnAccessTokenMutation, createAnAccessTokenOptions, createAnAccessTokenQueryKey, createCartPaymentIntentMutation, createCartPaymentIntentOptions, createCartPaymentIntentQueryKey, createCatalogMutation, createCatalogOptions, createCatalogQueryKey, createCustomerCartAssociationMutation, createCustomerCartAssociationOptions, createCustomerCartAssociationQueryKey, createRuleMutation, createRuleOptions, createRuleQueryKey, deleteACartItemMutation, deleteACartMutation, deleteAPromotionViaPromotionCodeMutation, deleteATaxItemMutation, deleteAccountCartAssociationMutation, deleteAllCartItemsMutation, deleteCatalogByIdMutation, deleteCustomDiscountFromCartItemMutation, deleteCustomDiscountFromCartMutation, deleteCustomerCartAssociationMutation, deleteReleaseByIdMutation, deleteReleasesMutation, deleteRuleByIdMutation, deleteV2AccountAddressMutation, getACurrencyOptions, getACurrencyQueryKey, getAFileOptions, getAFileQueryKey, getATransactionOptions, getATransactionQueryKey, getAllCurrenciesOptions, getAllCurrenciesQueryKey, getAllFilesOptions, getAllFilesQueryKey, getAllHierarchiesOptions, getAllHierarchiesQueryKey, getAllNodesOptions, getAllNodesQueryKey, getAllProductsOptions, getAllProductsQueryKey, getAnOrderOptions, getAnOrderQueryKey, getByContextAllHierarchiesOptions, getByContextAllHierarchiesQueryKey, getByContextAllNodesOptions, getByContextAllNodesQueryKey, getByContextAllProductsOptions, getByContextAllProductsQueryKey, getByContextChildNodesOptions, getByContextChildNodesQueryKey, getByContextChildProductsOptions, getByContextChildProductsQueryKey, getByContextComponentProductIdsOptions, getByContextComponentProductIdsQueryKey, getByContextHierarchyChildNodesOptions, getByContextHierarchyChildNodesQueryKey, getByContextHierarchyNodesOptions, getByContextHierarchyNodesQueryKey, getByContextHierarchyOptions, getByContextHierarchyQueryKey, getByContextNodeOptions, getByContextNodeQueryKey, getByContextProductOptions, getByContextProductQueryKey, getByContextProductsForHierarchyOptions, getByContextProductsForHierarchyQueryKey, getByContextProductsForNodeOptions, getByContextProductsForNodeQueryKey, getByContextReleaseOptions, getByContextReleaseQueryKey, getCartItemsOptions, getCartItemsQueryKey, getCartOptions, getCartQueryKey, getCartsOptions, getCartsQueryKey, getCatalogByIdOptions, getCatalogByIdQueryKey, getCatalogsOptions, getCatalogsQueryKey, getChildNodesOptions, getChildNodesQueryKey, getChildProductsOptions, getChildProductsQueryKey, getComponentProductIdsOptions, getComponentProductIdsQueryKey, getCustomerOrdersOptions, getCustomerOrdersQueryKey, getFeatureOptions, getFeatureQueryKey, getHierarchyChildNodesOptions, getHierarchyChildNodesQueryKey, getHierarchyNodesOptions, getHierarchyNodesQueryKey, getHierarchyOptions, getHierarchyQueryKey, getInvoiceOptions, getInvoiceQueryKey, getNodeOptions, getNodeQueryKey, getOfferingOptions, getOfferingQueryKey, getOrderItemsOptions, getOrderItemsQueryKey, getOrderTransactionsOptions, getOrderTransactionsQueryKey, getPlanOptions, getPlanQueryKey, getProductOptions, getProductQueryKey, getProductsForHierarchyOptions, getProductsForHierarchyQueryKey, getProductsForNodeOptions, getProductsForNodeQueryKey, getReleaseByIdOptions, getReleaseByIdQueryKey, getReleasesOptions, getReleasesQueryKey, getRuleByIdOptions, getRuleByIdQueryKey, getRulesOptions, getRulesQueryKey, getStockOptions, getStockQueryKey, getSubscriptionInvoiceOptions, getSubscriptionInvoicePaymentOptions, getSubscriptionInvoicePaymentQueryKey, getSubscriptionInvoiceQueryKey, getSubscriptionOptions, getSubscriptionProductOptions, getSubscriptionProductQueryKey, getSubscriptionQueryKey, getSubscriptionStateOptions, getSubscriptionStateQueryKey, getV2AccountAddressOptions, getV2AccountAddressQueryKey, getV2AccountAddressesOptions, getV2AccountAddressesQueryKey, getV2AccountMembersAccountMemberIdOptions, getV2AccountMembersAccountMemberIdQueryKey, getV2AccountMembersOptions, getV2AccountMembersQueryKey, getV2AccountsAccountIdAccountMembershipsOptions, getV2AccountsAccountIdAccountMembershipsQueryKey, getV2AccountsAccountIdOptions, getV2AccountsAccountIdQueryKey, getV2AccountsOptions, getV2AccountsQueryKey, listInvoicesOptions, listInvoicesQueryKey, listLocationsOptions, listLocationsQueryKey, listOfferingFeaturesOptions, listOfferingFeaturesQueryKey, listOfferingPlansOptions, listOfferingPlansQueryKey, listOfferingProductsOptions, listOfferingProductsQueryKey, listOfferingsOptions, listOfferingsQueryKey, listSubscriptionInvoicePaymentsOptions, listSubscriptionInvoicePaymentsQueryKey, listSubscriptionInvoicesOptions, listSubscriptionInvoicesQueryKey, listSubscriptionPlansOptions, listSubscriptionPlansQueryKey, listSubscriptionProductsOptions, listSubscriptionProductsQueryKey, listSubscriptionStatesOptions, listSubscriptionStatesQueryKey, listSubscriptionsOptions, listSubscriptionsQueryKey, manageCartsMutation, manageCartsOptions, manageCartsQueryKey, paymentSetupMutation, paymentSetupOptions, paymentSetupQueryKey, postV2AccountAddressMutation, postV2AccountAddressOptions, postV2AccountAddressQueryKey, postV2AccountMembersTokensMutation, postV2AccountMembersTokensOptions, postV2AccountMembersTokensQueryKey, postV2AccountsMutation, postV2AccountsOptions, postV2AccountsQueryKey, publishReleaseMutation, publishReleaseOptions, publishReleaseQueryKey, putV2AccountAddressMutation, putV2AccountsAccountIdMutation, refundATransactionMutation, refundATransactionOptions, refundATransactionQueryKey, updateACartItemMutation, updateACartMutation, updateATaxItemMutation, updateAnOrderMutation, updateCatalogMutation, updateCustomDiscountForCartItemMutation, updateCustomDiscountForCartMutation, updateRuleMutation } from './client/@tanstack/react-query.gen.js';
4
+ export { Client, createClient } from '@hey-api/client-fetch';
5
+ export { extractProductImage } from './utils/extract-product-image.js';
6
+ import '@tanstack/react-query';
package/dist/index.mjs ADDED
@@ -0,0 +1,11 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./client/@tanstack/react-query.gen.mjs";
3
+ import { createClient } from "@hey-api/client-fetch";
4
+ import { client } from "./client/sdk.gen.mjs";
5
+ import { extractProductImage } from "./utils/index.mjs";
6
+ export {
7
+ client,
8
+ createClient,
9
+ extractProductImage
10
+ };
11
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from \"./client\"\nexport * from \"./client/@tanstack/react-query.gen\"\nimport { type Client, createClient } from \"@hey-api/client-fetch\"\nexport { createClient, type Client }\nexport { client } from \"./client/sdk.gen\"\nexport { extractProductImage } from \"./utils\"\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,SAAsB,oBAAoB;AAE1C,SAAS,cAAc;AACvB,SAAS,2BAA2B;","names":[]}
@@ -0,0 +1,54 @@
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
+ var extract_media_exports = {};
20
+ __export(extract_media_exports, {
21
+ extractProductMedia: () => extractProductMedia
22
+ });
23
+ module.exports = __toCommonJS(extract_media_exports);
24
+ function extractProductMedia(productData) {
25
+ const mainImageId = productData.data?.relationships?.main_image?.data?.id;
26
+ const mainImages = productData.included?.main_images ?? [];
27
+ const otherFiles = productData.included?.files ?? [];
28
+ const combinedFiles = [...mainImages, ...otherFiles];
29
+ let mainImage;
30
+ const allImages = [];
31
+ for (const file of combinedFiles) {
32
+ if (mainImageId && file.id === mainImageId) {
33
+ mainImage = file;
34
+ }
35
+ if (file.mime_type && file.mime_type.startsWith("image/")) {
36
+ allImages.push(file);
37
+ }
38
+ }
39
+ const otherImages = mainImage ? allImages.filter((file) => file.id !== mainImage.id) : allImages;
40
+ const allFiles = combinedFiles;
41
+ const otherFilesFiltered = mainImage ? combinedFiles.filter((file) => file.id !== mainImage.id) : combinedFiles;
42
+ return {
43
+ mainImage,
44
+ allImages,
45
+ otherImages,
46
+ allFiles,
47
+ otherFiles: otherFilesFiltered
48
+ };
49
+ }
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ extractProductMedia
53
+ });
54
+ //# sourceMappingURL=extract-media.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/extract-media.ts"],"sourcesContent":["import { ElasticPathFile, ProductData } from \"../client\"\n\nexport interface ExtractedMedia {\n mainImage?: ElasticPathFile\n allImages: ElasticPathFile[]\n otherImages: ElasticPathFile[]\n allFiles: ElasticPathFile[]\n otherFiles: ElasticPathFile[]\n}\n\n/**\n * Extracts the main product image and organizes all files/images into separate arrays.\n *\n * @param productData - The product data containing included files.\n * @returns An object with the main image, all images, other images, all files, and other files.\n */\nexport function extractProductMedia(productData: ProductData): ExtractedMedia {\n // Retrieve the main image id from the product's relationships if it exists\n const mainImageId = productData.data?.relationships?.main_image?.data?.id\n\n // Combine the main_images and files arrays from the included object\n // If either is undefined, we default to an empty array.\n const mainImages = productData.included?.main_images ?? []\n const otherFiles = productData.included?.files ?? []\n const combinedFiles: ElasticPathFile[] = [...mainImages, ...otherFiles]\n\n let mainImage: ElasticPathFile | undefined\n const allImages: ElasticPathFile[] = []\n\n // Single pass over combined files\n for (const file of combinedFiles) {\n // Check if this file is the main image\n if (mainImageId && file.id === mainImageId) {\n mainImage = file\n }\n // Check if file is an image by its mime type (adjust the condition as needed)\n if (file.mime_type && file.mime_type.startsWith(\"image/\")) {\n allImages.push(file)\n }\n }\n\n // Exclude the main image from the arrays (if one was found)\n const otherImages = mainImage\n ? allImages.filter((file) => file.id !== mainImage.id)\n : allImages\n const allFiles = combinedFiles\n const otherFilesFiltered = mainImage\n ? combinedFiles.filter((file) => file.id !== mainImage.id)\n : combinedFiles\n\n return {\n mainImage,\n allImages,\n otherImages,\n allFiles,\n otherFiles: otherFilesFiltered,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBO,SAAS,oBAAoB,aAA0C;AAE5E,QAAM,cAAc,YAAY,MAAM,eAAe,YAAY,MAAM;AAIvE,QAAM,aAAa,YAAY,UAAU,eAAe,CAAC;AACzD,QAAM,aAAa,YAAY,UAAU,SAAS,CAAC;AACnD,QAAM,gBAAmC,CAAC,GAAG,YAAY,GAAG,UAAU;AAEtE,MAAI;AACJ,QAAM,YAA+B,CAAC;AAGtC,aAAW,QAAQ,eAAe;AAEhC,QAAI,eAAe,KAAK,OAAO,aAAa;AAC1C,kBAAY;AAAA,IACd;AAEA,QAAI,KAAK,aAAa,KAAK,UAAU,WAAW,QAAQ,GAAG;AACzD,gBAAU,KAAK,IAAI;AAAA,IACrB;AAAA,EACF;AAGA,QAAM,cAAc,YAChB,UAAU,OAAO,CAAC,SAAS,KAAK,OAAO,UAAU,EAAE,IACnD;AACJ,QAAM,WAAW;AACjB,QAAM,qBAAqB,YACvB,cAAc,OAAO,CAAC,SAAS,KAAK,OAAO,UAAU,EAAE,IACvD;AAEJ,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EACd;AACF;","names":[]}
@@ -0,0 +1,18 @@
1
+ import { ElasticPathFile, ProductData } from '../client/types.gen.cjs';
2
+
3
+ interface ExtractedMedia {
4
+ mainImage?: ElasticPathFile;
5
+ allImages: ElasticPathFile[];
6
+ otherImages: ElasticPathFile[];
7
+ allFiles: ElasticPathFile[];
8
+ otherFiles: ElasticPathFile[];
9
+ }
10
+ /**
11
+ * Extracts the main product image and organizes all files/images into separate arrays.
12
+ *
13
+ * @param productData - The product data containing included files.
14
+ * @returns An object with the main image, all images, other images, all files, and other files.
15
+ */
16
+ declare function extractProductMedia(productData: ProductData): ExtractedMedia;
17
+
18
+ export { type ExtractedMedia, extractProductMedia };
@@ -1,5 +1,6 @@
1
- import { ElasticPathFile, ProductData } from "../client";
2
- export interface ExtractedMedia {
1
+ import { ElasticPathFile, ProductData } from '../client/types.gen.js';
2
+
3
+ interface ExtractedMedia {
3
4
  mainImage?: ElasticPathFile;
4
5
  allImages: ElasticPathFile[];
5
6
  otherImages: ElasticPathFile[];
@@ -12,4 +13,6 @@ export interface ExtractedMedia {
12
13
  * @param productData - The product data containing included files.
13
14
  * @returns An object with the main image, all images, other images, all files, and other files.
14
15
  */
15
- export declare function extractProductMedia(productData: ProductData): ExtractedMedia;
16
+ declare function extractProductMedia(productData: ProductData): ExtractedMedia;
17
+
18
+ export { type ExtractedMedia, extractProductMedia };
@@ -0,0 +1,30 @@
1
+ function extractProductMedia(productData) {
2
+ const mainImageId = productData.data?.relationships?.main_image?.data?.id;
3
+ const mainImages = productData.included?.main_images ?? [];
4
+ const otherFiles = productData.included?.files ?? [];
5
+ const combinedFiles = [...mainImages, ...otherFiles];
6
+ let mainImage;
7
+ const allImages = [];
8
+ for (const file of combinedFiles) {
9
+ if (mainImageId && file.id === mainImageId) {
10
+ mainImage = file;
11
+ }
12
+ if (file.mime_type && file.mime_type.startsWith("image/")) {
13
+ allImages.push(file);
14
+ }
15
+ }
16
+ const otherImages = mainImage ? allImages.filter((file) => file.id !== mainImage.id) : allImages;
17
+ const allFiles = combinedFiles;
18
+ const otherFilesFiltered = mainImage ? combinedFiles.filter((file) => file.id !== mainImage.id) : combinedFiles;
19
+ return {
20
+ mainImage,
21
+ allImages,
22
+ otherImages,
23
+ allFiles,
24
+ otherFiles: otherFilesFiltered
25
+ };
26
+ }
27
+ export {
28
+ extractProductMedia
29
+ };
30
+ //# sourceMappingURL=extract-media.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/extract-media.ts"],"sourcesContent":["import { ElasticPathFile, ProductData } from \"../client\"\n\nexport interface ExtractedMedia {\n mainImage?: ElasticPathFile\n allImages: ElasticPathFile[]\n otherImages: ElasticPathFile[]\n allFiles: ElasticPathFile[]\n otherFiles: ElasticPathFile[]\n}\n\n/**\n * Extracts the main product image and organizes all files/images into separate arrays.\n *\n * @param productData - The product data containing included files.\n * @returns An object with the main image, all images, other images, all files, and other files.\n */\nexport function extractProductMedia(productData: ProductData): ExtractedMedia {\n // Retrieve the main image id from the product's relationships if it exists\n const mainImageId = productData.data?.relationships?.main_image?.data?.id\n\n // Combine the main_images and files arrays from the included object\n // If either is undefined, we default to an empty array.\n const mainImages = productData.included?.main_images ?? []\n const otherFiles = productData.included?.files ?? []\n const combinedFiles: ElasticPathFile[] = [...mainImages, ...otherFiles]\n\n let mainImage: ElasticPathFile | undefined\n const allImages: ElasticPathFile[] = []\n\n // Single pass over combined files\n for (const file of combinedFiles) {\n // Check if this file is the main image\n if (mainImageId && file.id === mainImageId) {\n mainImage = file\n }\n // Check if file is an image by its mime type (adjust the condition as needed)\n if (file.mime_type && file.mime_type.startsWith(\"image/\")) {\n allImages.push(file)\n }\n }\n\n // Exclude the main image from the arrays (if one was found)\n const otherImages = mainImage\n ? allImages.filter((file) => file.id !== mainImage.id)\n : allImages\n const allFiles = combinedFiles\n const otherFilesFiltered = mainImage\n ? combinedFiles.filter((file) => file.id !== mainImage.id)\n : combinedFiles\n\n return {\n mainImage,\n allImages,\n otherImages,\n allFiles,\n otherFiles: otherFilesFiltered,\n }\n}\n"],"mappings":"AAgBO,SAAS,oBAAoB,aAA0C;AAE5E,QAAM,cAAc,YAAY,MAAM,eAAe,YAAY,MAAM;AAIvE,QAAM,aAAa,YAAY,UAAU,eAAe,CAAC;AACzD,QAAM,aAAa,YAAY,UAAU,SAAS,CAAC;AACnD,QAAM,gBAAmC,CAAC,GAAG,YAAY,GAAG,UAAU;AAEtE,MAAI;AACJ,QAAM,YAA+B,CAAC;AAGtC,aAAW,QAAQ,eAAe;AAEhC,QAAI,eAAe,KAAK,OAAO,aAAa;AAC1C,kBAAY;AAAA,IACd;AAEA,QAAI,KAAK,aAAa,KAAK,UAAU,WAAW,QAAQ,GAAG;AACzD,gBAAU,KAAK,IAAI;AAAA,IACrB;AAAA,EACF;AAGA,QAAM,cAAc,YAChB,UAAU,OAAO,CAAC,SAAS,KAAK,OAAO,UAAU,EAAE,IACnD;AACJ,QAAM,WAAW;AACjB,QAAM,qBAAqB,YACvB,cAAc,OAAO,CAAC,SAAS,KAAK,OAAO,UAAU,EAAE,IACvD;AAEJ,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EACd;AACF;","names":[]}
@@ -0,0 +1,35 @@
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
+ var extract_product_image_exports = {};
20
+ __export(extract_product_image_exports, {
21
+ extractProductImage: () => extractProductImage
22
+ });
23
+ module.exports = __toCommonJS(extract_product_image_exports);
24
+ const extractProductImage = (product, images) => {
25
+ return images?.find((file) => {
26
+ if (file.id === product.relationships?.main_image?.data?.id) {
27
+ return file;
28
+ }
29
+ });
30
+ };
31
+ // Annotate the CommonJS export names for ESM import in node:
32
+ 0 && (module.exports = {
33
+ extractProductImage
34
+ });
35
+ //# sourceMappingURL=extract-product-image.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/extract-product-image.ts"],"sourcesContent":["import { Included, Product } from \"../client\"\n\nexport const extractProductImage = (\n product: Product,\n images: Included[\"main_images\"],\n) => {\n return images?.find((file) => {\n if (file.id === product.relationships?.main_image?.data?.id) {\n return file\n }\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,sBAAsB,CACjC,SACA,WACG;AACH,SAAO,QAAQ,KAAK,CAAC,SAAS;AAC5B,QAAI,KAAK,OAAO,QAAQ,eAAe,YAAY,MAAM,IAAI;AAC3D,aAAO;AAAA,IACT;AAAA,EACF,CAAC;AACH;","names":[]}
@@ -0,0 +1,5 @@
1
+ import { Product, Included, ElasticPathFile } from '../client/types.gen.cjs';
2
+
3
+ declare const extractProductImage: (product: Product, images: Included["main_images"]) => ElasticPathFile | undefined;
4
+
5
+ export { extractProductImage };
@@ -1,2 +1,5 @@
1
- import { Included, Product } from "../client";
2
- export declare const extractProductImage: (product: Product, images: Included["main_images"]) => import("../client").ElasticPathFile | undefined;
1
+ import { Product, Included, ElasticPathFile } from '../client/types.gen.js';
2
+
3
+ declare const extractProductImage: (product: Product, images: Included["main_images"]) => ElasticPathFile | undefined;
4
+
5
+ export { extractProductImage };
@@ -0,0 +1,11 @@
1
+ const extractProductImage = (product, images) => {
2
+ return images?.find((file) => {
3
+ if (file.id === product.relationships?.main_image?.data?.id) {
4
+ return file;
5
+ }
6
+ });
7
+ };
8
+ export {
9
+ extractProductImage
10
+ };
11
+ //# sourceMappingURL=extract-product-image.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/extract-product-image.ts"],"sourcesContent":["import { Included, Product } from \"../client\"\n\nexport const extractProductImage = (\n product: Product,\n images: Included[\"main_images\"],\n) => {\n return images?.find((file) => {\n if (file.id === product.relationships?.main_image?.data?.id) {\n return file\n }\n })\n}\n"],"mappings":"AAEO,MAAM,sBAAsB,CACjC,SACA,WACG;AACH,SAAO,QAAQ,KAAK,CAAC,SAAS;AAC5B,QAAI,KAAK,OAAO,QAAQ,eAAe,YAAY,MAAM,IAAI;AAC3D,aAAO;AAAA,IACT;AAAA,EACF,CAAC;AACH;","names":[]}
@@ -0,0 +1,32 @@
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
+ var utils_exports = {};
20
+ __export(utils_exports, {
21
+ extractProductImage: () => import_extract_product_image.extractProductImage,
22
+ extractProductMedia: () => import_extract_media.extractProductMedia
23
+ });
24
+ module.exports = __toCommonJS(utils_exports);
25
+ var import_extract_product_image = require('./extract-product-image.cjs');
26
+ var import_extract_media = require('./extract-media.cjs');
27
+ // Annotate the CommonJS export names for ESM import in node:
28
+ 0 && (module.exports = {
29
+ extractProductImage,
30
+ extractProductMedia
31
+ });
32
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/index.ts"],"sourcesContent":["export { extractProductImage } from \"./extract-product-image\"\nexport { extractProductMedia } from \"./extract-media\"\nexport type { ExtractedMedia } from \"./extract-media\"\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mCAAoC;AACpC,2BAAoC;","names":[]}
@@ -0,0 +1,3 @@
1
+ export { extractProductImage } from './extract-product-image.cjs';
2
+ export { ExtractedMedia, extractProductMedia } from './extract-media.cjs';
3
+ import '../client/types.gen.cjs';
@@ -1,2 +1,3 @@
1
- export { extractProductImage } from "./extract-product-image";
2
- export { extractProductMedia, ExtractedMedia } from "./extract-media";
1
+ export { extractProductImage } from './extract-product-image.js';
2
+ export { ExtractedMedia, extractProductMedia } from './extract-media.js';
3
+ import '../client/types.gen.js';
@@ -0,0 +1,7 @@
1
+ import { extractProductImage } from "./extract-product-image.mjs";
2
+ import { extractProductMedia } from "./extract-media.mjs";
3
+ export {
4
+ extractProductImage,
5
+ extractProductMedia
6
+ };
7
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/index.ts"],"sourcesContent":["export { extractProductImage } from \"./extract-product-image\"\nexport { extractProductMedia } from \"./extract-media\"\nexport type { ExtractedMedia } from \"./extract-media\"\n"],"mappings":"AAAA,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;","names":[]}
package/package.json CHANGED
@@ -1,16 +1,21 @@
1
1
  {
2
2
  "name": "@epcc-sdk/sdks-shopper",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "description": "",
5
- "main": "dist/index.js",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
6
9
  "exports": {
7
10
  ".": {
8
- "types": "./dist/index.d.ts",
9
- "node": {
10
- "import": "./dist/index.js",
11
- "require": "./dist/index.js"
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.mjs"
12
14
  },
13
- "default": "./dist/index.js"
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
14
19
  },
15
20
  "./package.json": "./package.json"
16
21
  },
@@ -22,11 +27,14 @@
22
27
  "@hey-api/openapi-ts": "0.61.1",
23
28
  "@redocly/cli": "^1.21.0",
24
29
  "@redocly/openapi-core": "^1.21.0",
25
- "@tanstack/react-query": "^5.52.1",
26
- "lodash": "^4.17.21",
27
- "typescript": "^5.5.3",
30
+ "@tanstack/react-query": "^5.69.0",
28
31
  "@types/ejs": "^3.1.5",
29
- "ejs": "^3.1.10"
32
+ "ejs": "^3.1.10",
33
+ "esbuild-fix-imports-plugin": "^1.0.19",
34
+ "esbuild-plugin-file-path-extensions": "^1.0.0",
35
+ "lodash": "^4.17.21",
36
+ "tsup": "^8.4.0",
37
+ "typescript": "^5.5.3"
30
38
  },
31
39
  "dependencies": {
32
40
  "@hey-api/client-fetch": "0.6.0"
@@ -35,7 +43,7 @@
35
43
  "access": "public"
36
44
  },
37
45
  "peerDependencies": {
38
- "@tanstack/react-query": "^5.52.1"
46
+ "@tanstack/react-query": "^5.69.0"
39
47
  },
40
48
  "peerDependenciesMeta": {
41
49
  "@tanstack/react-query": {
@@ -43,8 +51,8 @@
43
51
  }
44
52
  },
45
53
  "scripts": {
46
- "build": "pnpm oas:build && pnpm oas:openapi-ts && pnpm tsc:build",
47
- "tsc:build": "tsc -p tsconfig.node.json",
54
+ "build": "pnpm oas:build && pnpm oas:openapi-ts && pnpm build:tsup",
55
+ "build:tsup": "tsup",
48
56
  "oas:build": "pnpm oas:redocly:bundle && pnpm oas:openapi-format:convert && pnpm oas:redocly:join:shopper",
49
57
  "oas:openapi-ts": "openapi-ts",
50
58
  "oas:redocly": "redocly --config ./redocly.json",