@ikas/storefront-api 4.10.0-beta.10 → 4.10.0-beta.11

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.
@@ -0,0 +1,12 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import BaseModelData from "./_base";
3
+ export declare class ProductFileData extends BaseModelData {
4
+ name: string;
5
+ productId: string;
6
+ variantId: string;
7
+ constructor(data?: Partial<ProductFileData>);
8
+ }
9
+ export declare class ProductFile extends ProductFileData {
10
+ }
11
+ export declare type PartialProductFile = Partial<ProductFile>;
12
+ export declare type ReadOnlyProductFile = DeepReadonly<ProductFile>;
@@ -1,6 +1,7 @@
1
1
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
- declare const getDigitalProductFileDownloadUrl: (variables: QueryParams, config?: ConfigType) => Promise<APIResponse<undefined> | APIResponse<string>>;
2
+ declare const getDigitalProductFileDownloadUrl: (variables: QueryParams, config?: ConfigType) => Promise<APIResponse<string> | APIResponse<undefined>>;
3
3
  export default getDigitalProductFileDownloadUrl;
4
4
  export declare type QueryParams = {
5
+ orderId: string;
5
6
  orderLineItemId: string;
6
7
  };
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as r}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as n,fetchQuery as i}from"@ikas/fe-api-client";var o=function(o,d){return t(void 0,void 0,void 0,(function(){var t,l,a,s;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i({operationName:"getDigitalProductFileDownloadUrl",config:d,variables:o,query:"\n\t\t\t\tquery getDigitalProductFileDownloadUrl (\n\t\t\t\t\t$orderId: String!,\n\t\t\t\t\t$orderLineItemId: String!,\n\t\t\t\t) {\n\t\t\t\t\tgetDigitalProductFileDownloadUrl (\n\t\t\t\t\t\torderId: $orderId,\n\t\t\t\t\t\torderLineItemId: $orderLineItemId,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t"})];case 1:return t=r.sent(),l=t.data,a=t.errors,[2,new n(null==l?void 0:l.getDigitalProductFileDownloadUrl,a)];case 2:return s=r.sent(),[2,e(s)];case 3:return[2]}}))}))};export{o as default};
@@ -0,0 +1,16 @@
1
+ import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
+ import { StringFilterInput, ProductFile } from "../types";
3
+ declare const listProductFile: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<ProductFile[]> | APIResponse<undefined>>;
4
+ export default listProductFile;
5
+ export declare type QueryParams = {
6
+ id: StringFilterInput;
7
+ };
8
+ export declare enum ResponseField {
9
+ CREATED_AT = "createdAt",
10
+ DELETED = "deleted",
11
+ ID = "id",
12
+ NAME = "name",
13
+ PRODUCT_ID = "productId",
14
+ UPDATED_AT = "updatedAt",
15
+ VARIANT_ID = "variantId"
16
+ }
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as n,fetchQuery as i}from"@ikas/fe-api-client";var d,a=function(d,a,o){return t(void 0,void 0,void 0,(function(){var t,l,s,c;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,i({operationName:"listProductFile",config:o,variables:d,allReturnFields:u,fields:a,query:function(t){return"\n\t\t\t\tquery listProductFile (\n\t\t\t\t\t$id: StringFilterInput!,\n\t\t\t\t) {\n\t\t\t\t\tlistProductFile (\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),l=t.data,s=t.errors,[2,new n(null==l?void 0:l.listProductFile,s)];case 2:return c=e.sent(),[2,r(c)];case 3:return[2]}}))}))},u="{createdAt deleted id name productId updatedAt variantId }";!function(t){t.CREATED_AT="createdAt",t.DELETED="deleted",t.ID="id",t.NAME="name",t.PRODUCT_ID="productId",t.UPDATED_AT="updatedAt",t.VARIANT_ID="variantId"}(d||(d={}));export{d as ResponseField,a as default};
@@ -1932,6 +1932,15 @@ export interface ProductFacetCountValue {
1932
1932
  count: number;
1933
1933
  id: string;
1934
1934
  }
1935
+ export interface ProductFile {
1936
+ createdAt: any | null;
1937
+ deleted: boolean;
1938
+ id: string;
1939
+ name: string;
1940
+ productId: string;
1941
+ updatedAt: any | null;
1942
+ variantId: string;
1943
+ }
1935
1944
  export interface ProductFilterData {
1936
1945
  categories: Category[] | null;
1937
1946
  filters: ProductFilterDataFilter[];
@@ -12,10 +12,12 @@ import { QueryParams as CreateKlarnaClientTokenParams } from "../../__api/mutati
12
12
  import { QueryParams as CreateAdyenClientTokenParams } from "../../__api/mutations/createAdyenPaymentSession";
13
13
  import { QueryParams as GetPayPalClientIdTokenParams } from "../../__api/mutations/getPaypalClientId";
14
14
  import { QueryParams as CreatePayPalOrderParams } from "../../__api/mutations/createPaypalOrder";
15
+ import { QueryParams as ListProductFileQueryParams } from "../../__api/queries/listProductFile";
15
16
  import { IkasAvailableStockLocation, IkasCheckoutSettings, IkasPaymentGateway, IkasStockLocation } from "@ikas/storefront-models";
16
- export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams, CreateAdyenClientTokenParams, GetPayPalClientIdTokenParams, CreatePayPalOrderParams, };
17
+ export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams, CreateAdyenClientTokenParams, GetPayPalClientIdTokenParams, CreatePayPalOrderParams, ListProductFileQueryParams, };
17
18
  export declare function createSaleTransactionWithCart(params: CreateSaleTransactionQueryParams): Promise<APIResponse<import("../..").TransactionResponse> | APIResponse<undefined>>;
18
19
  export declare function listPaymentGateway(params: ListPaymentGatewayQueryParams): Promise<APIResponse<IkasPaymentGateway[]>>;
20
+ export declare function listProductFile(params: ListProductFileQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").ProductFile[]>>;
19
21
  export declare function retrieveInstallmentInfo(params: RetrieveInstallmentInfoQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../..").RetrieveInstallmentInfoResponse>>;
20
22
  export declare function checkStocks(params: CheckStocksQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").CheckStocksResponse>>;
21
23
  export declare function listCheckoutSettings(params: ListCheckoutSettingsQueryParams): Promise<APIResponse<IkasCheckoutSettings[]>>;
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";function r(n){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)(n)];case 2:return[2,t.sent()]}}))}))}function i(r){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)(r)];case 2:return t=e.sent(),i=t.data||[],[2,new n(i,t.graphQLErrors)]}}))}))}function s(n){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)(n)];case 2:return[2,t.sent()]}}))}))}function a(n){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)(n)];case 2:return[2,t.sent()]}}))}))}function u(r){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=[r],[4,_()];case 2:return[4,s.apply(void 0,a.concat([e.sent()]))];case 3:return i=e.sent(),u=i.data||[],[2,new n(u,i.graphQLErrors)]}}))}))}function o(n){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)(n)];case 2:return[2,t.sent()]}}))}))}function c(r){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)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function l(r){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)(r)];case 2:return t=e.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.stockLocations,t.graphQLErrors)]}}))}))}function f(r){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)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function d(r){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)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function h(r){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/createAdyenPaymentSession.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function p(r){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)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function v(r){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)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function _(){return t(this,void 0,void 0,(function(){var t,n;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().ResponseField,n=["IS_SHOW_POSTAL_CODE"],[2,Object.entries(t).filter((function(t){var e=t[0];return!n.includes(e)})).map((function(t){return t[1]}))]}}))}))}export{a as checkStocks,h as createAdyenClientToken,d as createKlarnaClientToken,v as createPayPalOrder,r as createSaleTransactionWithCart,f as createStripePaymentIntent,o as getAvailableShippingCountries,l as getAvailableStockLocations,p as getPayPalClientId,u as listCheckoutSettings,i as listPaymentGateway,c as listStockLocations,s as retrieveInstallmentInfo};
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";function r(n){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)(n)];case 2:return[2,t.sent()]}}))}))}function i(r){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)(r)];case 2:return t=e.sent(),i=t.data||[],[2,new n(i,t.graphQLErrors)]}}))}))}function s(n){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)(n)];case 2:return[2,t.sent()]}}))}))}function a(n){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)(n)];case 2:return[2,t.sent()]}}))}))}function u(n){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)(n)];case 2:return[2,t.sent()]}}))}))}function o(r){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=[r],[4,m()];case 2:return[4,s.apply(void 0,a.concat([e.sent()]))];case 3:return i=e.sent(),u=i.data||[],[2,new n(u,i.graphQLErrors)]}}))}))}function c(n){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)(n)];case 2:return[2,t.sent()]}}))}))}function l(r){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)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function f(r){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)(r)];case 2:return t=e.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.stockLocations,t.graphQLErrors)]}}))}))}function d(r){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)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function h(r){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)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function p(r){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/createAdyenPaymentSession.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function v(r){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)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function _(r){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)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function m(){return t(this,void 0,void 0,(function(){var t,n;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().ResponseField,n=["IS_SHOW_POSTAL_CODE"],[2,Object.entries(t).filter((function(t){var e=t[0];return!n.includes(e)})).map((function(t){return t[1]}))]}}))}))}export{u as checkStocks,p as createAdyenClientToken,h as createKlarnaClientToken,_ as createPayPalOrder,r as createSaleTransactionWithCart,d as createStripePaymentIntent,c as getAvailableShippingCountries,f as getAvailableStockLocations,v as getPayPalClientId,o as listCheckoutSettings,i as listPaymentGateway,s as listProductFile,l as listStockLocations,a as retrieveInstallmentInfo};
@@ -1,11 +1,13 @@
1
1
  import { QueryParams as GetProductOptionFileUrlQueryParams } from "../../__api/queries/getProductOptionFileUrl";
2
+ import { QueryParams as GetDigitalProductFileDownloadUrlQueryParams } from "../../__api/queries/getDigitalProductFileDownloadUrl";
2
3
  import { IkasProductOptionFileUrl } from "@ikas/storefront-models";
3
4
  import { APIResponse } from "@ikas/fe-api-client";
4
- export type { GetProductOptionFileUrlQueryParams };
5
+ export type { GetProductOptionFileUrlQueryParams, GetDigitalProductFileDownloadUrlQueryParams, };
5
6
  export declare function getProductOptionFileUrl(params: GetProductOptionFileUrlQueryParams, file: File): Promise<APIResponse<{
6
7
  file: File;
7
8
  fields: any;
8
9
  optionUrl: string;
9
10
  url: string;
10
11
  } | null>>;
12
+ export declare function getDigitalProductFileDownloadUrl(params: GetDigitalProductFileDownloadUrlQueryParams): Promise<APIResponse<undefined> | APIResponse<string>>;
11
13
  export declare function uploadFile(params: IkasProductOptionFileUrl, file: File): Promise<boolean>;
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__assign as r}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import i from"axios";function s(i,s){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/getProductOptionFileUrl.js")];case 1:return[4,(0,e.sent().default)(i)];case 2:return t=e.sent(),[2,new n(t.data?r(r({},t.data),{file:s}):null,t.graphQLErrors)]}}))}))}function a(r,n){return t(this,void 0,void 0,(function(){var t,s,a;return e(this,(function(e){switch(e.label){case 0:return t={headers:{"Content-Type":"multipart/form-data"}},s=new FormData,Object.entries(r.fields).forEach((function(t){var e=t[0],r=t[1];s.append(e,r)})),s.append("file",n),[4,i.post(r.url,s,t)];case 1:return[2,200===(a=e.sent()).status||204===a.status]}}))}))}export{s as getProductOptionFileUrl,a as uploadFile};
1
+ import{__awaiter as t,__generator as e,__assign as r}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import i from"axios";function s(i,s){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/getProductOptionFileUrl.js")];case 1:return[4,(0,e.sent().default)(i)];case 2:return t=e.sent(),[2,new n(t.data?r(r({},t.data),{file:s}):null,t.graphQLErrors)]}}))}))}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/queries/getDigitalProductFileDownloadUrl.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function o(r,n){return t(this,void 0,void 0,(function(){var t,s,a;return e(this,(function(e){switch(e.label){case 0:return t={headers:{"Content-Type":"multipart/form-data"}},s=new FormData,Object.entries(r.fields).forEach((function(t){var e=t[0],r=t[1];s.append(e,r)})),s.append("file",n),[4,i.post(r.url,s,t)];case 1:return[2,200===(a=e.sent()).status||204===a.status]}}))}))}export{a as getDigitalProductFileDownloadUrl,s as getProductOptionFileUrl,o as uploadFile};
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}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,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkStocks,createAdyenClientToken,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications}from"./api/customer/index.js";export{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,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";
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}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,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkStocks,createAdyenClientToken,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications}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,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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "4.10.0-beta.10",
3
+ "version": "4.10.0-beta.11",
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": "^4.10.0-beta.10",
21
- "@ikas/storefront-models": "^4.10.0-beta.10",
20
+ "@ikas/storefront-config": "^4.10.0-beta.11",
21
+ "@ikas/storefront-models": "^4.10.0-beta.11",
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": "^4.10.0-beta.10",
38
- "@ikas/storefront-models": "^4.10.0-beta.10",
37
+ "@ikas/storefront-config": "^4.10.0-beta.11",
38
+ "@ikas/storefront-models": "^4.10.0-beta.11",
39
39
  "@ikas/fe-api-client": "^1.0.18",
40
40
  "axios": "^0.26.0",
41
41
  "ts-essentials": "^7.0.1"