@ikas/storefront-api 5.0.0-beta.31 → 5.0.0-beta.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Config } from "@ikas/fe-api-client";
1
+ import { APIErrorCode, Config } from "@ikas/fe-api-client";
2
2
  export declare function setAPIClientConfig(): void;
3
3
  export * from "./api/blog";
4
4
  export * from "./api/brand";
@@ -20,5 +20,5 @@ export { CheckStocksLineInput } from "./__api/models/CheckStocksLineInput";
20
20
  export { SortByDirectionEnum, SortByTypeEnum, MasterPassOperationTypeEnum, GetSuggestedProductsMethodEnum, TransactionCardAssociationEnum, } from "./__api/types";
21
21
  export type { SearchInputOrderByInput, CreateStripePaymentIntentResponse, RetrieveInstallmentInfoResponse, TransactionResponse, UpdateCartCampaignOfferInput, CartLineOptionInput, CreateKlarnaTokenResponse, CreateAdyenSessionResponse, GetPaypalClientIdResponse, CreatePaypalOrderResponse, ProductFacetCount, SearchProduct, } from "./__api/types";
22
22
  import { APIResponse } from "@ikas/fe-api-client";
23
- export { APIResponse };
23
+ export { APIResponse, APIErrorCode };
24
24
  export { Config as IkasAPIClientConfig };
package/build/index.js CHANGED
@@ -1 +1 @@
1
- import{APIErrorCode as e}from"./node_modules/@ikas/fe-api-client/build/utils/api.js";export{APIResponse}from"./node_modules/@ikas/fe-api-client/build/utils/api.js";import"axios";import t from"./node_modules/@ikas/fe-api-client/build/config/index.js";import"./node_modules/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js";import"./node_modules/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js";import"./node_modules/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js";import"./node_modules/@ikas/fe-api-client/build/ext/lodash/_baseToString.js";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,createAdyenClientToken,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode}from"./api/customer/index.js";export{getDigitalProductFileDownloadUrl,getProductOptionFileUrl,uploadFile}from"./api/file-upload/index.js";export{listHTMLMetaData}from"./api/html-meta-data/index.js";export{getAvailableShippingZones,getMyCountry,listCity,listCountry,listDistrict,listState}from"./api/location/index.js";export{getMasterPassRequestToken}from"./api/masterpass/index.js";export{listMerchantSettings}from"./api/merchant/index.js";export{getOrderLineFile,getProductCampaigns,getProductFilterData,getRelatedProducts,getSuggestedProducts,getVariantStockLocations,listCampaignOffer,listProductAttribute,listProductBackInStockRemind,listProductOptionSet,saveProductBackInStockRemind,searchProducts}from"./api/product/index.js";export{listRaffleMetaData,listRaffleParticipants,listStorefrontRaffle,saveRaffleParticipant}from"./api/raffle/index.js";export{getStorefrontSettings}from"./api/storefront/index.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,TransactionCardAssociationEnum}from"./__api/types/index.js";function o(){t.URL=i.getApiUrl()||"",t.HEADERS={"x-api-key":i.getApiKey()||"","x-sfid":i.getStorefrontId()||"","x-sfrid":i.getStorefrontRoutingId()||"","x-sid":i.getSessionId()||"","x-vid":i.getVisitorId()||""},t.TOKEN=i.getCustomerToken()||"",i.getLoginRequiredCallback()&&(t.ON_ERROR={errorCodes:[{errorCode:e.LOGIN_REQUIRED,callback:i.getLoginRequiredCallback()}]})}i.addObserver({id:"ikas-storefront-api",callback:o});export{t as IkasAPIClientConfig,o as setAPIClientConfig};
1
+ import{APIErrorCode as e}from"./node_modules/@ikas/fe-api-client/build/utils/api.js";export{APIResponse}from"./node_modules/@ikas/fe-api-client/build/utils/api.js";import"axios";import t from"./node_modules/@ikas/fe-api-client/build/config/index.js";import"./node_modules/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js";import"./node_modules/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js";import"./node_modules/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js";import"./node_modules/@ikas/fe-api-client/build/ext/lodash/_baseToString.js";import{IkasStorefrontConfig as o}from"@ikas/storefront-config";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,createAdyenClientToken,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode}from"./api/customer/index.js";export{getDigitalProductFileDownloadUrl,getProductOptionFileUrl,uploadFile}from"./api/file-upload/index.js";export{listHTMLMetaData}from"./api/html-meta-data/index.js";export{getAvailableShippingZones,getMyCountry,listCity,listCountry,listDistrict,listState}from"./api/location/index.js";export{getMasterPassRequestToken}from"./api/masterpass/index.js";export{listMerchantSettings}from"./api/merchant/index.js";export{getOrderLineFile,getProductCampaigns,getProductFilterData,getRelatedProducts,getSuggestedProducts,getVariantStockLocations,listCampaignOffer,listProductAttribute,listProductBackInStockRemind,listProductOptionSet,saveProductBackInStockRemind,searchProducts}from"./api/product/index.js";export{listRaffleMetaData,listRaffleParticipants,listStorefrontRaffle,saveRaffleParticipant}from"./api/raffle/index.js";export{getStorefrontSettings}from"./api/storefront/index.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,TransactionCardAssociationEnum}from"./__api/types/index.js";function i(){t.URL=o.getApiUrl()||"",t.HEADERS={"x-api-key":o.getApiKey()||"","x-sfid":o.getStorefrontId()||"","x-sfrid":o.getStorefrontRoutingId()||"","x-sid":o.getSessionId()||"","x-vid":o.getVisitorId()||""},t.TOKEN=o.getCustomerToken()||"",o.getLoginRequiredCallback()&&(t.ON_ERROR={errorCodes:[{errorCode:e.LOGIN_REQUIRED,callback:o.getLoginRequiredCallback()}]})}o.addObserver({id:"ikas-storefront-api",callback:i});export{e as APIErrorCode,t as IkasAPIClientConfig,i as setAPIClientConfig};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "5.0.0-beta.31",
3
+ "version": "5.0.0-beta.32",
4
4
  "author": "ikas",
5
5
  "license": "ISC",
6
6
  "description": "API functions that returns models from the ikas-storefront-models package.",
@@ -20,8 +20,8 @@
20
20
  "@ikas/fe-api-client": "^1.0.27"
21
21
  },
22
22
  "devDependencies": {
23
- "@ikas/storefront-config": "^5.0.0-beta.31",
24
- "@ikas/storefront-models": "^5.0.0-beta.31",
23
+ "@ikas/storefront-config": "^5.0.0-beta.32",
24
+ "@ikas/storefront-models": "^5.0.0-beta.32",
25
25
  "prettier": "^2.2.1",
26
26
  "rollup": "^4.5.1",
27
27
  "@rollup/plugin-terser": "^0.4.4",
@@ -37,8 +37,8 @@
37
37
  "lodash": "^4.17.21"
38
38
  },
39
39
  "peerDependencies": {
40
- "@ikas/storefront-config": "^5.0.0-beta.31",
41
- "@ikas/storefront-models": "^5.0.0-beta.31",
40
+ "@ikas/storefront-config": "^5.0.0-beta.32",
41
+ "@ikas/storefront-models": "^5.0.0-beta.32",
42
42
  "axios": "^0.26.0",
43
43
  "ts-essentials": "^7.0.1",
44
44
  "lodash": "^4.17.21"