@ikas/storefront-api 6.1.0-beta.8 → 6.1.0-beta.80
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/__api/models/CartV2.d.ts +2 -0
- package/build/__api/models/CheckoutSettings.d.ts +1 -0
- package/build/__api/models/HepsipayFrameInitResponse.d.ts +11 -0
- package/build/__api/models/OrderGiftCardLine.d.ts +12 -0
- package/build/__api/models/UpdatePaypalOrderAddressInput.d.ts +12 -0
- package/build/__api/models/UpdatePaypalOrderCustomerInput.d.ts +12 -0
- package/build/__api/models/UpdatePaypalOrderInput.d.ts +16 -0
- package/build/__api/mutations/createPaypalOrder.d.ts +2 -0
- package/build/__api/mutations/createPaypalOrder.js +1 -1
- package/build/__api/mutations/getPaypalClientId.d.ts +1 -1
- package/build/__api/mutations/getPaypalClientId.js +1 -1
- package/build/__api/mutations/hepsipayFrameInit.d.ts +13 -0
- package/build/__api/mutations/hepsipayFrameInit.js +1 -0
- package/build/__api/mutations/removeGiftCardFromCart.d.ts +509 -0
- package/build/__api/mutations/removeGiftCardFromCart.js +1 -0
- package/build/__api/mutations/updatePaypalOrder.d.ts +8 -0
- package/build/__api/mutations/updatePaypalOrder.js +1 -0
- package/build/__api/queries/getAvailableStockLocations.d.ts +1 -0
- package/build/__api/queries/getAvailableStockLocations.js +1 -1
- package/build/__api/queries/getCartById.d.ts +2 -1
- package/build/__api/queries/getCartById.js +1 -1
- package/build/__api/queries/listCheckoutSettings.d.ts +1 -0
- package/build/__api/queries/listCheckoutSettings.js +1 -1
- package/build/__api/types/index.d.ts +33 -0
- package/build/api/cart/index.d.ts +3 -1
- package/build/api/cart/index.js +1 -1
- package/build/api/checkout/index.d.ts +5 -1
- package/build/api/checkout/index.js +1 -1
- package/build/api/storefront/index.d.ts +5 -0
- package/build/index.d.ts +2 -2
- package/build/index.js +1 -1
- package/build/index2.js +1 -1
- package/package.json +5 -5
package/build/api/cart/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as
|
|
1
|
+
import{__awaiter as t,__generator as r,__spreadArray as n,__assign as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as a}from"@ikas/fe-api-client";import{initIkasCampaignOffer as i}from"@ikas/storefront-models";import{IkasStorefrontConfig as s}from"@ikas/storefront-config";function u(t){return e(e({},t),{cancelReason:null})}function o(n){var e;return t(this,void 0,void 0,(function(){var t,o,c,l,_;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getCartById.js")];case 1:return t=r.sent().default,c=t,l=[n],[4,E()];case 2:return[4,c.apply(void 0,l.concat([r.sent()]))];case 3:return o=r.sent(),_=o.data?u(o.data):null,null===(e=null==_?void 0:_.campaignOffers)||void 0===e||e.forEach((function(t){t.campaignOffer&&i(t.campaignOffer,s.getCurrentLocale())})),[2,new a(_||null,o.graphQLErrors)]}}))}))}function c(n){return t(this,void 0,void 0,(function(){var t,e,i,s,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/saveCart.js")];case 1:return t=r.sent().default,i=t,s=[n],[4,E()];case 2:return[4,i.apply(void 0,s.concat([r.sent()]))];case 3:return e=r.sent(),o=e.data?u(e.data):null,[2,new a(o||null,e.graphQLErrors)]}}))}))}function l(n){return t(this,void 0,void 0,(function(){var t,e,i,s,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/removeGiftCardFromCart.js")];case 1:return t=r.sent().default,i=t,s=[n],[4,E()];case 2:return[4,i.apply(void 0,s.concat([r.sent()]))];case 3:return e=r.sent(),o=e.data?u(e.data):null,[2,new a(o||null,e.graphQLErrors)]}}))}))}function _(n){return t(this,void 0,void 0,(function(){var t,e,i,s,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/saveCartCouponCode.js")];case 1:return t=r.sent().default,i=t,s=[n],[4,E()];case 2:return[4,i.apply(void 0,s.concat([r.sent()]))];case 3:return e=r.sent(),o=e.data?u(e.data):null,[2,new a(o||null,e.graphQLErrors)]}}))}))}function d(n){return t(this,void 0,void 0,(function(){var t,e,i,s,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/addItemToCart.js")];case 1:return t=r.sent().default,i=t,s=[n],[4,E()];case 2:return[4,i.apply(void 0,s.concat([r.sent()]))];case 3:return e=r.sent(),o=e.data?u(e.data):null,[2,new a(o||null,e.graphQLErrors)]}}))}))}function f(n){return t(this,void 0,void 0,(function(){var t,e,i,s,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/updateCartCampaignOffer.js")];case 1:return t=r.sent().default,i=t,s=[n],[4,E()];case 2:return[4,i.apply(void 0,s.concat([r.sent()]))];case 3:return e=r.sent(),o=e.data?u(e.data):null,[2,new a(o||null,e.graphQLErrors)]}}))}))}function p(n){return t(this,void 0,void 0,(function(){var t,e,i,s,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createCart.js")];case 1:return t=r.sent().default,i=t,s=[n],[4,E()];case 2:return[4,i.apply(void 0,s.concat([r.sent()]))];case 3:return e=r.sent(),o=e.data?u(e.data):null,[2,new a(o||null,e.graphQLErrors)]}}))}))}function E(){return t(this,void 0,void 0,(function(){var t,e;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getCartById.js")];case 1:return t=r.sent().ResponseField,e=n(n(["MERCHANT_ID","ORDER_LINE_ITEMS__VARIANT__TAG_IDS","BILLING_ADDRESS__REGION__CREATED_AT","BILLING_ADDRESS__REGION__DELETED","BILLING_ADDRESS__REGION__UPDATED_AT","SHIPPING_ADDRESS__REGION__CREATED_AT","SHIPPING_ADDRESS__REGION__DELETED","SHIPPING_ADDRESS__REGION__UPDATED_AT"],Object.keys(t).filter((function(t){return t.startsWith("CURRENCY_RATES")})),!0),Object.keys(t).filter((function(t){return t.startsWith("ABANDONED_CART_FLOWS")})),!0),[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}export{d as addItemToCart,p as createCart,o as getCartById,l as removeGiftCardFromCart,c as saveCart,_ as saveCartCouponCode,f as updateCartCampaignOffer};
|
|
@@ -11,11 +11,13 @@ import { QueryParams as CreateStripePaymentIntentParams } from "../../__api/muta
|
|
|
11
11
|
import { QueryParams as CreateKlarnaClientTokenParams } from "../../__api/mutations/createKlarnaClientToken";
|
|
12
12
|
import { QueryParams as GetPayPalClientIdTokenParams } from "../../__api/mutations/getPaypalClientId";
|
|
13
13
|
import { QueryParams as CreatePayPalOrderParams } from "../../__api/mutations/createPaypalOrder";
|
|
14
|
+
import { QueryParams as UpdatePayPalOrderParams } from "../../__api/mutations/updatePaypalOrder";
|
|
15
|
+
import { QueryParams as HepsipayFrameInitParams } from "../../__api/mutations/hepsipayFrameInit";
|
|
14
16
|
import { QueryParams as ListProductFileQueryParams } from "../../__api/queries/listProductFile";
|
|
15
17
|
import { QueryParams as CheckCartStocksQueryParams } from "../../__api/queries/checkCartStocks";
|
|
16
18
|
import { QueryParams as CreateAdyenBalancePlatformPaymentParams } from "../../__api/mutations/createAdyenBalancePlatformPaymentSession";
|
|
17
19
|
import { IkasAvailableStockLocation, IkasCheckoutSettings, IkasPaymentGateway, IkasStockLocation } from "@ikas/storefront-models";
|
|
18
|
-
export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams, GetPayPalClientIdTokenParams, CreatePayPalOrderParams, ListProductFileQueryParams, CheckCartStocksQueryParams, CreateAdyenBalancePlatformPaymentParams, };
|
|
20
|
+
export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams, GetPayPalClientIdTokenParams, CreatePayPalOrderParams, UpdatePayPalOrderParams, HepsipayFrameInitParams, ListProductFileQueryParams, CheckCartStocksQueryParams, CreateAdyenBalancePlatformPaymentParams, };
|
|
19
21
|
export declare function createSaleTransactionWithCart(params: CreateSaleTransactionQueryParams): Promise<APIResponse<import("../..").TransactionResponse> | APIResponse<undefined>>;
|
|
20
22
|
export declare function listPaymentGateway(params: ListPaymentGatewayQueryParams): Promise<APIResponse<IkasPaymentGateway[]>>;
|
|
21
23
|
export declare function listProductFile(params: ListProductFileQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").ProductFile[]>>;
|
|
@@ -31,3 +33,5 @@ export declare function createKlarnaClientToken(params: CreateKlarnaClientTokenP
|
|
|
31
33
|
export declare function createAdyenBalancePlatformPaymentSession(params: CreateAdyenBalancePlatformPaymentParams): Promise<APIResponse<import("../..").CreateAdyenPlatformSessionResponse>>;
|
|
32
34
|
export declare function getPayPalClientId(params: GetPayPalClientIdTokenParams): Promise<APIResponse<import("../..").GetPaypalClientIdResponse>>;
|
|
33
35
|
export declare function createPayPalOrder(params: CreatePayPalOrderParams): Promise<APIResponse<import("../..").CreatePaypalOrderResponse>>;
|
|
36
|
+
export declare function updatePaypalOrder(params: UpdatePayPalOrderParams): Promise<APIResponse<boolean>>;
|
|
37
|
+
export declare function hepsipayFrameInit(params: HepsipayFrameInitParams): Promise<APIResponse<import("../..").HepsipayFrameInitResponse>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as r}from"@ikas/fe-api-client";function n(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/createSaleTransactionWithCart.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function i(n){return t(this,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listPaymentGateway.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),i=t.data||[],[2,new r(i,t.graphQLErrors)]}}))}))}function s(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listProductFile.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function a(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/retrieveInstallmentInfo.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function u(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkStocks.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function o(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkCartStocks.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function c(n){return t(this,void 0,void 0,(function(){var t,i,s,a,u;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().default,s=t,a=[n],[4,j()];case 2:return[4,s.apply(void 0,a.concat([e.sent()]))];case 3:return i=e.sent(),u=i.data||[],[2,new r(u,i.graphQLErrors)]}}))}))}function l(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/getAvailableShippingCountries.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function f(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listStockLocation.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function d(n){var i;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getAvailableStockLocations.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(null===(i=t.data)||void 0===i?void 0:i.stockLocations,t.graphQLErrors)]}}))}))}function h(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createStripePaymentIntent.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function p(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createKlarnaClientToken.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function v(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createAdyenBalancePlatformPaymentSession.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function _(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/getPaypalClientId.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function m(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createPaypalOrder.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function w(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/updatePaypalOrder.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function b(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/hepsipayFrameInit.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function j(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().ResponseField,r=["IS_SHOW_POSTAL_CODE"],[2,Object.entries(t).filter((function(t){var e=t[0];return!r.includes(e)})).map((function(t){return t[1]}))]}}))}))}export{o as checkCartStocks,u as checkStocks,v as createAdyenBalancePlatformPaymentSession,p as createKlarnaClientToken,m as createPayPalOrder,n as createSaleTransactionWithCart,h as createStripePaymentIntent,l as getAvailableShippingCountries,d as getAvailableStockLocations,_ as getPayPalClientId,b as hepsipayFrameInit,c as listCheckoutSettings,i as listPaymentGateway,s as listProductFile,f as listStockLocations,a as retrieveInstallmentInfo,w as updatePaypalOrder};
|
|
@@ -13,4 +13,9 @@ export declare type IkasStorefrontSettings = {
|
|
|
13
13
|
merchantSettings: IkasMerchantSettings;
|
|
14
14
|
customerSettings?: IkasCustomerSettings;
|
|
15
15
|
storefrontPopups: IkasStorefrontPopup[];
|
|
16
|
+
paypalSettings: IkasPaypalSettings[] | null;
|
|
17
|
+
};
|
|
18
|
+
export declare type IkasPaypalSettings = {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string | null;
|
|
16
21
|
};
|
package/build/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export * from "./api/storefront-popup";
|
|
|
18
18
|
export { SaveMyCustomerInput } from "./__api/models/SaveMyCustomerInput";
|
|
19
19
|
export { SaveCartInput } from "./__api/models/SaveCartInput";
|
|
20
20
|
export { CheckStocksLineInput } from "./__api/models/CheckStocksLineInput";
|
|
21
|
-
export { SortByDirectionEnum, SortByTypeEnum, MasterPassOperationTypeEnum, GetSuggestedProductsMethodEnum, TransactionCardAssociationEnum, } from "./__api/types";
|
|
22
|
-
export type { SearchInputOrderByInput, CreateStripePaymentIntentResponse, RetrieveInstallmentInfoResponse, TransactionResponse, UpdateCartCampaignOfferInput, CartLineOptionInput, CreateKlarnaTokenResponse, GetPaypalClientIdResponse, CreatePaypalOrderResponse, CreateAdyenPlatformSessionResponse, } from "./__api/types";
|
|
21
|
+
export { SortByDirectionEnum, SortByTypeEnum, MasterPassOperationTypeEnum, GetSuggestedProductsMethodEnum, TransactionCardAssociationEnum, CampaignOfferTargetPageTypeEnum, } from "./__api/types";
|
|
22
|
+
export type { SearchInputOrderByInput, CreateStripePaymentIntentResponse, RetrieveInstallmentInfoResponse, TransactionResponse, UpdateCartCampaignOfferInput, CartLineOptionInput, CreateKlarnaTokenResponse, GetPaypalClientIdResponse, CreatePaypalOrderResponse, CreateAdyenPlatformSessionResponse, HepsipayFrameInitResponse, } from "./__api/types";
|
|
23
23
|
export { APIResponse } from "@ikas/fe-api-client";
|
|
24
24
|
export { Config as IkasAPIClientConfig };
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{setAPIClientConfig}from"./index2.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";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,createCart,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,createAdyenBalancePlatformPaymentSession,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,deactivateCustomer,exportCustomerPersonelData,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,listOrderTransactionsWithPrices,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,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{listStorefrontPopup}from"./api/storefront-popup/index.js";
|
|
1
|
+
export{setAPIClientConfig}from"./index2.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{CampaignOfferTargetPageTypeEnum,GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,TransactionCardAssociationEnum}from"./__api/types/index.js";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,createCart,getCartById,removeGiftCardFromCart,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,createAdyenBalancePlatformPaymentSession,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,hepsipayFrameInit,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo,updatePaypalOrder}from"./api/checkout/index.js";export{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,deactivateCustomer,exportCustomerPersonelData,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,listOrderTransactionsWithPrices,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,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{listStorefrontPopup}from"./api/storefront-popup/index.js";
|
package/build/index2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Config as e,APIErrorCode as t}from"@ikas/fe-api-client";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";import{IkasStorefrontConfig as r}from"@ikas/storefront-config";import"@ikas/storefront-models";export{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,deactivateCustomer,exportCustomerPersonelData,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,listOrderTransactionsWithPrices,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode}from"./api/customer/index.js";import"axios";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(){e.URL=r.getApiUrl()||"",e.HEADERS={"x-api-key":r.getApiKey()||"","x-sfid":r.getStorefrontId()||"","x-sfrid":r.getStorefrontRoutingId()||"","x-sid":r.getSessionId()||"","x-vid":r.getVisitorId()||""},e.TOKEN=r.getCustomerToken()||"",r.getLoginRequiredCallback()&&(e.ON_ERROR={errorCodes:[{errorCode:t.LOGIN_REQUIRED,callback:r.getLoginRequiredCallback()}]})}r.addObserver({id:"ikas-storefront-api",callback:o});export{o as setAPIClientConfig};
|
|
1
|
+
import{Config as e,APIErrorCode as t}from"@ikas/fe-api-client";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";import{IkasStorefrontConfig as r}from"@ikas/storefront-config";import"@ikas/storefront-models";export{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,deactivateCustomer,exportCustomerPersonelData,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,listOrderTransactionsWithPrices,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode}from"./api/customer/index.js";import"axios";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{CampaignOfferTargetPageTypeEnum,GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,TransactionCardAssociationEnum}from"./__api/types/index.js";function o(){e.URL=r.getApiUrl()||"",e.HEADERS={"x-api-key":r.getApiKey()||"","x-sfid":r.getStorefrontId()||"","x-sfrid":r.getStorefrontRoutingId()||"","x-sid":r.getSessionId()||"","x-vid":r.getVisitorId()||"","x-jid":r.getJourneyId()||""},e.TOKEN=r.getCustomerToken()||"",r.getLoginRequiredCallback()&&(e.ON_ERROR={errorCodes:[{errorCode:t.LOGIN_REQUIRED,callback:r.getLoginRequiredCallback()}]})}r.addObserver({id:"ikas-storefront-api",callback:o});export{o as setAPIClientConfig};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-api",
|
|
3
|
-
"version": "6.1.0-beta.
|
|
3
|
+
"version": "6.1.0-beta.80",
|
|
4
4
|
"author": "ikas",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"description": "API functions that returns models from the ikas-storefront-models package.",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
20
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
21
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
20
|
+
"@ikas/storefront-config": "^6.1.0-beta.80",
|
|
21
|
+
"@ikas/storefront-models": "^6.1.0-beta.80",
|
|
22
22
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
23
23
|
"rollup-plugin-rename-node-modules": "^1.2.0",
|
|
24
24
|
"prettier": "^2.2.1",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@ikas/fe-api-client": "^1.0.19"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
38
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
37
|
+
"@ikas/storefront-config": "^6.1.0-beta.80",
|
|
38
|
+
"@ikas/storefront-models": "^6.1.0-beta.80",
|
|
39
39
|
"@ikas/fe-api-client": "^1.0.18",
|
|
40
40
|
"axios": "^0.26.0",
|
|
41
41
|
"ts-essentials": "^7.0.1"
|