@ikas/storefront-api 6.1.0-beta.390 → 6.1.0-beta.391
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/CreateSaleTransactionWithCartInput.d.ts +3 -0
- package/build/__api/models/RetrieveInstallmentInfoInput.d.ts +2 -1
- package/build/__api/models/SavedCardPaymentDetailInput.d.ts +12 -0
- package/build/__api/mutations/deletePaymentSavedCard.d.ts +6 -0
- package/build/__api/mutations/deletePaymentSavedCard.js +1 -0
- package/build/__api/queries/listPaymentSavedCard.d.ts +19 -0
- package/build/__api/queries/listPaymentSavedCard.js +1 -0
- package/build/__api/types/index.d.ts +24 -1
- package/build/api/checkout/index.d.ts +3 -1
- package/build/api/checkout/index.js +1 -1
- package/build/api/customer/index.d.ts +3 -1
- package/build/api/customer/index.js +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/index2.js +1 -1
- package/package.json +5 -5
|
@@ -2,6 +2,7 @@ import { DeepReadonly } from "ts-essentials";
|
|
|
2
2
|
import { CreateSaleTransactionMasterPassPaymentMethodDetailData } from "./CreateSaleTransactionMasterPassPaymentMethodDetail";
|
|
3
3
|
import { MilesSmilesPaymentInputData } from "./MilesSmilesPaymentInput";
|
|
4
4
|
import { PaymentMethodDetailInputData } from "./PaymentMethodDetailInput";
|
|
5
|
+
import { SavedCardPaymentDetailInputData } from "./SavedCardPaymentDetailInput";
|
|
5
6
|
export declare class CreateSaleTransactionWithCartInputData {
|
|
6
7
|
cartId: string;
|
|
7
8
|
masterPassDetail: CreateSaleTransactionMasterPassPaymentMethodDetailData | null;
|
|
@@ -9,6 +10,8 @@ export declare class CreateSaleTransactionWithCartInputData {
|
|
|
9
10
|
milesSmiles: MilesSmilesPaymentInputData | null;
|
|
10
11
|
paymentGatewayId: string;
|
|
11
12
|
paymentMethodDetail: PaymentMethodDetailInputData | null;
|
|
13
|
+
savedCardDetail: SavedCardPaymentDetailInputData | null;
|
|
14
|
+
storeCard: boolean | null;
|
|
12
15
|
constructor(data?: Partial<CreateSaleTransactionWithCartInputData>);
|
|
13
16
|
}
|
|
14
17
|
export declare class CreateSaleTransactionWithCartInput extends CreateSaleTransactionWithCartInputData {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DeepReadonly } from "ts-essentials";
|
|
2
2
|
export declare class RetrieveInstallmentInfoInputData {
|
|
3
|
-
binNumber: string;
|
|
3
|
+
binNumber: string | null;
|
|
4
4
|
currencyCode: string | null;
|
|
5
5
|
paymentGatewayId: string;
|
|
6
6
|
price: number;
|
|
7
|
+
savedCardId: string | null;
|
|
7
8
|
constructor(data?: Partial<RetrieveInstallmentInfoInputData>);
|
|
8
9
|
}
|
|
9
10
|
export declare class RetrieveInstallmentInfoInput extends RetrieveInstallmentInfoInputData {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class SavedCardPaymentDetailInputData {
|
|
3
|
+
cvv: string | null;
|
|
4
|
+
installmentCount: number;
|
|
5
|
+
savedCardId: string;
|
|
6
|
+
threeDSecure: boolean | null;
|
|
7
|
+
constructor(data?: Partial<SavedCardPaymentDetailInputData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class SavedCardPaymentDetailInput extends SavedCardPaymentDetailInputData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialSavedCardPaymentDetailInput = Partial<SavedCardPaymentDetailInput>;
|
|
12
|
+
export declare type ReadOnlySavedCardPaymentDetailInput = DeepReadonly<SavedCardPaymentDetailInput>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
declare const deletePaymentSavedCard: (variables: QueryParams, config?: ConfigType) => Promise<APIResponse<boolean> | APIResponse<undefined>>;
|
|
3
|
+
export default deletePaymentSavedCard;
|
|
4
|
+
export declare type QueryParams = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as n,APIResponse as r,fetchQuery as a}from"@ikas/fe-api-client";var i=function(i,d){return t(void 0,void 0,void 0,(function(){var t,o,s,u;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a({operationName:"deletePaymentSavedCard",config:d,variables:i,query:"\n\t\t\t\tmutation deletePaymentSavedCard (\n\t\t\t\t\t$id: String!,\n\t\t\t\t) {\n\t\t\t\t\tdeletePaymentSavedCard (\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t"})];case 1:return t=e.sent(),o=t.data,s=t.errors,[2,new r(null==o?void 0:o.deletePaymentSavedCard,s)];case 2:return u=e.sent(),[2,n(u)];case 3:return[2]}}))}))};export{i as default};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
import { SavedCard } from "../types";
|
|
3
|
+
declare const listPaymentSavedCard: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<SavedCard[]> | APIResponse<undefined>>;
|
|
4
|
+
export default listPaymentSavedCard;
|
|
5
|
+
export declare type QueryParams = {
|
|
6
|
+
paymentGatewayId?: string | null;
|
|
7
|
+
};
|
|
8
|
+
export declare enum ResponseField {
|
|
9
|
+
CARD_ASSOCIATION = "cardAssociation",
|
|
10
|
+
CARD_BANK_NAME = "cardBankName",
|
|
11
|
+
CARD_FAMILY = "cardFamily",
|
|
12
|
+
CARD_TYPE = "cardType",
|
|
13
|
+
EXPIRY_MONTH = "expiryMonth",
|
|
14
|
+
EXPIRY_YEAR = "expiryYear",
|
|
15
|
+
ID = "id",
|
|
16
|
+
LAST_FOUR_DIGITS = "lastFourDigits",
|
|
17
|
+
PAYMENT_GATEWAY_ID = "paymentGatewayId",
|
|
18
|
+
REQUIRE_CVV = "requireCvv"
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as a}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as r,fetchQuery as n}from"@ikas/fe-api-client";var i,d=function(i,d,o){return t(void 0,void 0,void 0,(function(){var t,y,c,u;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,n({operationName:"listPaymentSavedCard",config:o,variables:i,allReturnFields:s,fields:d,query:function(t){return"\n\t\t\t\tquery listPaymentSavedCard (\n\t\t\t\t\t$paymentGatewayId: String,\n\t\t\t\t) {\n\t\t\t\t\tlistPaymentSavedCard (\n\t\t\t\t\t\tpaymentGatewayId: $paymentGatewayId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=a.sent(),y=t.data,c=t.errors,[2,new r(null==y?void 0:y.listPaymentSavedCard,c)];case 2:return u=a.sent(),[2,e(u)];case 3:return[2]}}))}))},s="{cardAssociation cardBankName cardFamily cardType expiryMonth expiryYear id lastFourDigits paymentGatewayId requireCvv }";!function(t){t.CARD_ASSOCIATION="cardAssociation",t.CARD_BANK_NAME="cardBankName",t.CARD_FAMILY="cardFamily",t.CARD_TYPE="cardType",t.EXPIRY_MONTH="expiryMonth",t.EXPIRY_YEAR="expiryYear",t.ID="id",t.LAST_FOUR_DIGITS="lastFourDigits",t.PAYMENT_GATEWAY_ID="paymentGatewayId",t.REQUIRE_CVV="requireCvv"}(i||(i={}));export{i as ResponseField,d as default};
|
|
@@ -3410,6 +3410,8 @@ export interface CreateSaleTransactionWithCartInput {
|
|
|
3410
3410
|
paymentGatewayId: string;
|
|
3411
3411
|
paymentMethodDetail?: PaymentMethodDetailInput | null;
|
|
3412
3412
|
milesSmiles?: MilesSmilesPaymentInput | null;
|
|
3413
|
+
savedCardDetail?: SavedCardPaymentDetailInput | null;
|
|
3414
|
+
storeCard?: boolean | null;
|
|
3413
3415
|
}
|
|
3414
3416
|
export interface CreateSaleTransactionWithCheckoutInput {
|
|
3415
3417
|
checkoutId: string;
|
|
@@ -3623,12 +3625,33 @@ export interface RaffleParticipantsInput {
|
|
|
3623
3625
|
export interface MilesSmilesPaymentInput {
|
|
3624
3626
|
miles: number;
|
|
3625
3627
|
}
|
|
3628
|
+
/** PayTR saved card (DEV-3623). Carries no card tokens. */
|
|
3629
|
+
export interface SavedCard {
|
|
3630
|
+
cardAssociation: TransactionCardAssociationEnum | null;
|
|
3631
|
+
cardBankName: string | null;
|
|
3632
|
+
cardFamily: string | null;
|
|
3633
|
+
cardType: TransactionCardTypeEnum | null;
|
|
3634
|
+
expiryMonth: string | null;
|
|
3635
|
+
expiryYear: string | null;
|
|
3636
|
+
id: string;
|
|
3637
|
+
lastFourDigits: string | null;
|
|
3638
|
+
paymentGatewayId: string;
|
|
3639
|
+
requireCvv: boolean;
|
|
3640
|
+
}
|
|
3641
|
+
export interface SavedCardPaymentDetailInput {
|
|
3642
|
+
cvv?: string | null;
|
|
3643
|
+
installmentCount: number;
|
|
3644
|
+
savedCardId: string;
|
|
3645
|
+
threeDSecure?: boolean | null;
|
|
3646
|
+
}
|
|
3626
3647
|
export interface RetrieveInstallmentInfoInput {
|
|
3627
|
-
|
|
3648
|
+
/** Send either this or savedCardId, not both. */
|
|
3649
|
+
binNumber?: string | null;
|
|
3628
3650
|
currencyCode?: string | null;
|
|
3629
3651
|
orderId?: string | null;
|
|
3630
3652
|
paymentGatewayId: string;
|
|
3631
3653
|
price: number;
|
|
3654
|
+
savedCardId?: string | null;
|
|
3632
3655
|
}
|
|
3633
3656
|
export interface SaveCartInput {
|
|
3634
3657
|
attributes?: OrderAttributeValueInput[] | null;
|
|
@@ -21,11 +21,13 @@ import { QueryParams as ListProductFileQueryParams } from "../../__api/queries/l
|
|
|
21
21
|
import { QueryParams as CheckCartStocksQueryParams } from "../../__api/queries/checkCartStocks";
|
|
22
22
|
import { QueryParams as CreateAdyenBalancePlatformPaymentParams } from "../../__api/mutations/createAdyenBalancePlatformPaymentSession";
|
|
23
23
|
import { QueryParams as GetOrderInvoicePdfUrlQueryParams } from "../../__api/queries/getOrderInvoicePdfUrl";
|
|
24
|
+
import { QueryParams as ListPaymentSavedCardQueryParams } from "../../__api/queries/listPaymentSavedCard";
|
|
24
25
|
import { IkasAvailableStockLocation, IkasCheckoutSettings, IkasPaymentGateway, IkasStockLocation, IkasStoreCreditBalance } from "@ikas/storefront-models";
|
|
25
|
-
export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams, GetPayPalClientIdTokenParams, CreatePayPalOrderParams, UpdatePayPalOrderParams, HepsipayFrameInitParams, ListProductFileQueryParams, CheckCartStocksQueryParams, CreateAdyenBalancePlatformPaymentParams, CreateIyzicoCheckoutFormParams, CreateTkPayCheckoutFormParams, CreateStripeExpressCheckoutSessionParams, UpdateStripeExpressCheckoutSessionParams, GetOrderInvoicePdfUrlQueryParams, };
|
|
26
|
+
export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams, GetPayPalClientIdTokenParams, CreatePayPalOrderParams, UpdatePayPalOrderParams, HepsipayFrameInitParams, ListProductFileQueryParams, CheckCartStocksQueryParams, CreateAdyenBalancePlatformPaymentParams, CreateIyzicoCheckoutFormParams, CreateTkPayCheckoutFormParams, CreateStripeExpressCheckoutSessionParams, UpdateStripeExpressCheckoutSessionParams, GetOrderInvoicePdfUrlQueryParams, ListPaymentSavedCardQueryParams, };
|
|
26
27
|
export declare function createSaleTransactionWithCart(params: CreateSaleTransactionQueryParams): Promise<APIResponse<import("../..").TransactionResponse> | APIResponse<undefined>>;
|
|
27
28
|
export declare function listPaymentGateway(params: ListPaymentGatewayQueryParams): Promise<APIResponse<IkasPaymentGateway[]>>;
|
|
28
29
|
export declare function getStoreCreditBalance(): Promise<APIResponse<IkasStoreCreditBalance | null>>;
|
|
30
|
+
export declare function listPaymentSavedCard(params: ListPaymentSavedCardQueryParams): Promise<APIResponse<import("../..").SavedCard[]>>;
|
|
29
31
|
export declare function listProductFile(params: ListProductFileQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").ProductFile[]>>;
|
|
30
32
|
export declare function retrieveInstallmentInfo(params: RetrieveInstallmentInfoQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../..").RetrieveInstallmentInfoResponse>>;
|
|
31
33
|
export declare function checkStocks(params: CheckStocksQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").CheckStocksResponse>>;
|
|
@@ -1 +1 @@
|
|
|
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(){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/getStoreCreditBalance.js")];case 1:return[4,(0,e.sent().default)()];case 2:return t=e.sent(),n=t.data,[2,new r(n,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/listProductFile.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function
|
|
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(){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/getStoreCreditBalance.js")];case 1:return[4,(0,e.sent().default)()];case 2:return t=e.sent(),n=t.data,[2,new r(n,t.graphQLErrors)]}}))}))}function a(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/listPaymentSavedCard.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data||[],t.graphQLErrors)]}}))}))}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/listProductFile.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/mutations/retrieveInstallmentInfo.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function c(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 d(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 f(n,i){return t(this,void 0,void 0,(function(){var t,s,a,u,o;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().default,a=t,u=[n],[4,C()];case 2:return[4,a.apply(void 0,u.concat([e.sent(),i]))];case 3:return s=e.sent(),o=s.data||[],[2,new r(o,s.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 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/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 p(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 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/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 _(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 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/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 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/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 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/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 j(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 g(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 L(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/createIyzicoCheckoutForm.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function E(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/createTkPayCheckoutForm.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function S(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/createStripeExpressCheckoutSession.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function Q(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/updateStripeExpressCheckoutSession.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function k(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/getOrderInvoicePdfUrl.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function C(){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{d as checkCartStocks,c as checkStocks,m as createAdyenBalancePlatformPaymentSession,L as createIyzicoCheckoutForm,_ as createKlarnaClientToken,b as createPayPalOrder,n as createSaleTransactionWithCart,S as createStripeExpressCheckoutSession,v as createStripePaymentIntent,E as createTkPayCheckoutForm,l as getAvailableShippingCountries,p as getAvailableStockLocations,k as getOrderInvoicePdfUrl,w as getPayPalClientId,s as getStoreCreditBalance,g as hepsipayFrameInit,f as listCheckoutSettings,i as listPaymentGateway,a as listPaymentSavedCard,u as listProductFile,h as listStockLocations,o as retrieveInstallmentInfo,j as updatePaypalOrder,Q as updateStripeExpressCheckoutSession};
|
|
@@ -19,6 +19,7 @@ import { QueryParams as SaveLastViewedProductsQueryParams } from "../../__api/mu
|
|
|
19
19
|
import { QueryParams as ListOrderRefundSettingsQueryParams } from "../../__api/queries/listOrderRefundSettings";
|
|
20
20
|
import { QueryParams as SendContactFormToMerchantQueryParams } from "../../__api/mutations/sendContactFormToMerchant";
|
|
21
21
|
import { QueryParams as SaveFavoriteProductQueryParams } from "../../__api/mutations/saveFavoriteProduct";
|
|
22
|
+
import { QueryParams as DeletePaymentSavedCardQueryParams } from "../../__api/mutations/deletePaymentSavedCard";
|
|
22
23
|
import { QueryParams as IsFavoriteProductQueryParams } from "../../__api/queries/isFavoriteProduct";
|
|
23
24
|
import { QueryParams as CreateCustomerReviewQueryParams } from "../../__api/mutations/createCustomerReview";
|
|
24
25
|
import { QueryParams as ListCustomerReviewsQueryParams } from "../../__api/queries/listCustomerReviews";
|
|
@@ -32,7 +33,7 @@ import { QueryParams as SaveCustomerFormDataQueryParams } from "../../__api/muta
|
|
|
32
33
|
import { QueryParams as CustomerDeactiveQueryParams } from "../../__api/mutations/customerDeactivate";
|
|
33
34
|
import { CustomerAttributeValueInput } from "../../__api/types";
|
|
34
35
|
import { IkasCustomer, IkasCustomerAttribute, IkasCustomerReview, IkasCustomerReviewSummary, IkasFavoriteProduct, IkasLastViewedProduct, IkasOrder, IkasOrderRefundSettings, IkasRefundableLines, IkasOrderTransaction, IkasCustomerSettings, IkasOrderTransactionWithPrices } from "@ikas/storefront-models";
|
|
35
|
-
export type { CustomerLoginQueryParams, CustomerSocialLoginQueryParams, RegisterCustomerQueryParams, CustomerRefreshTokenQueryParams, CustomerForgotPasswordQueryParams, CustomerRecoverPasswordQueryParams, CheckCustomerEmailQueryParams, SaveMyCustomerQueryParams, GetCustomerOrdersQueryParams, GetOrderByEmailQueryParams, ListOrderTransactionsQueryParams, ListOrderTransactionsWithPricesQueryParams, CreateOrderRefundRequestQueryParams, GetRefundableLinesQueryParams, SubscribeToMarketingNotificationsQueryParams, GetLastViewedProductsQueryParams, SaveLastViewedProductsQueryParams, ListOrderRefundSettingsQueryParams, SendContactFormToMerchantQueryParams, SaveFavoriteProductQueryParams, IsFavoriteProductQueryParams, CreateCustomerReviewQueryParams, ListCustomerReviewsQueryParams, ListCustomerReviewSummaryQueryParams, CustomerAttributeValueInput, ActivateCustomerQueryParams, ResendCustomerActivationMailQueryParams, ValidateCustomerPhoneVerificationCodeQueryParams, SaveCustomerFormDataQueryParams, CustomerDeactiveQueryParams, ValidateOTPCodeQueryParams, };
|
|
36
|
+
export type { DeletePaymentSavedCardQueryParams, CustomerLoginQueryParams, CustomerSocialLoginQueryParams, RegisterCustomerQueryParams, CustomerRefreshTokenQueryParams, CustomerForgotPasswordQueryParams, CustomerRecoverPasswordQueryParams, CheckCustomerEmailQueryParams, SaveMyCustomerQueryParams, GetCustomerOrdersQueryParams, GetOrderByEmailQueryParams, ListOrderTransactionsQueryParams, ListOrderTransactionsWithPricesQueryParams, CreateOrderRefundRequestQueryParams, GetRefundableLinesQueryParams, SubscribeToMarketingNotificationsQueryParams, GetLastViewedProductsQueryParams, SaveLastViewedProductsQueryParams, ListOrderRefundSettingsQueryParams, SendContactFormToMerchantQueryParams, SaveFavoriteProductQueryParams, IsFavoriteProductQueryParams, CreateCustomerReviewQueryParams, ListCustomerReviewsQueryParams, ListCustomerReviewSummaryQueryParams, CustomerAttributeValueInput, ActivateCustomerQueryParams, ResendCustomerActivationMailQueryParams, ValidateCustomerPhoneVerificationCodeQueryParams, SaveCustomerFormDataQueryParams, CustomerDeactiveQueryParams, ValidateOTPCodeQueryParams, };
|
|
36
37
|
export declare enum IkasRegisterError {
|
|
37
38
|
EMAIL_IS_NOT_VERIFIED = "EMAIL_IS_NOT_VERIFIED",
|
|
38
39
|
CUSTOMER_EMAIL_ALREADY_EXISTS = "CUSTOMER_EMAIL_ALREADY_EXISTS",
|
|
@@ -189,6 +190,7 @@ export declare function listOrderRefundSettings(params: ListOrderRefundSettingsQ
|
|
|
189
190
|
export declare function sendContactFormToMerchant(params: SendContactFormToMerchantQueryParams): Promise<APIResponse<undefined> | APIResponse<boolean>>;
|
|
190
191
|
export declare function listFavoriteProducts(): Promise<APIResponse<IkasFavoriteProduct[] | null>>;
|
|
191
192
|
export declare function saveFavoriteProduct(params: SaveFavoriteProductQueryParams): Promise<APIResponse<undefined> | APIResponse<boolean>>;
|
|
193
|
+
export declare function deletePaymentSavedCard(params: DeletePaymentSavedCardQueryParams): Promise<APIResponse<undefined> | APIResponse<boolean>>;
|
|
192
194
|
export declare function isFavoriteProduct(params: IsFavoriteProductQueryParams): Promise<APIResponse<undefined> | APIResponse<boolean>>;
|
|
193
195
|
export declare function createCustomerReview(params: CreateCustomerReviewQueryParams): Promise<APIResponse<IkasCustomerReview>>;
|
|
194
196
|
export declare function listCustomerReviews(params: ListCustomerReviewsQueryParams): Promise<APIResponse<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as r,__assign as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import{initIkasCustomerReview as i,initIkasCustomerAttribute as s}from"@ikas/storefront-models";import{IkasStorefrontConfig as u}from"@ikas/storefront-config";var a,o,c;function _(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/customerLogin.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function d(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/customerSocialLogin.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function E(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/registerCustomer.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function l(){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/mutations/customerLogin.js")];case 1:return t=r.sent().ResponseField,e=["CUSTOMER__ADDRESSES__REGION__CREATED_AT","CUSTOMER__ADDRESSES__REGION__DELETED","CUSTOMER__ADDRESSES__REGION__UPDATED_AT"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function f(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRefreshToken.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function v(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerForgotPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function O(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRecoverPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function I(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkCustomerEmail.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function S(){return t(this,void 0,void 0,(function(){var t,i,s,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getMyCustomer.js")];case 1:return t=r.sent().default,s=t,[4,Q()];case 2:return[4,s.apply(void 0,[r.sent()])];case 3:return i=r.sent(),u=i.data||null,[2,new n(i.data?e(e({},i.data),{customer:u}):null,i.graphQLErrors)]}}))}))}function h(i){return t(this,void 0,void 0,(function(){var t,s,u,a,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/saveMyCustomer.js")];case 1:return t=r.sent().default,u=t,a=[i],[4,Q()];case 2:return[4,u.apply(void 0,a.concat([r.sent()]))];case 3:return s=r.sent(),o=s.data||null,[2,new n(s.data?e(e({},s.data),{customer:o}):null,s.graphQLErrors)]}}))}))}function p(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveCustomerFormData.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function L(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getCustomerOrders.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,R()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),null==(a=i.data)||a.forEach((function(t){var r;(null===(r=t.orderLineItems)||void 0===r?void 0:r.length)&&(t.orderLineItems=t.orderLineItems.filter((function(t){return!t.deleted})))})),[2,new n(a,i.graphQLErrors)]}}))}))}function m(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getOrderByEmail.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,R()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),a=i.data,[2,new n(a,i.graphQLErrors)]}}))}))}function A(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderTransactions.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function D(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderTransactionsWithPrices.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function N(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getRefundableLines.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function T(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createOrderRefundRequest.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,R()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),a=i.data,[2,new n(a,i.graphQLErrors)]}}))}))}function R(){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/getCustomerOrders.js")];case 1:return t=r.sent().ResponseField,e=["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"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function C(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/subscribeToMarketingNotifications.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function w(e){var i;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getLastViewedProducts.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.products,t.graphQLErrors)]}}))}))}function P(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveLastViewedProducts.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function G(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderRefundSettings.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.map((function(t){return e({},t)})))||null,[2,new n(u,t.graphQLErrors)]}}))}))}function b(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/sendContactFormToMerchant.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function U(){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/listFavoriteProducts.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),e=t.data||null,[2,new n(e,t.graphQLErrors)]}}))}))}function j(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveFavoriteProduct.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function g(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/isFavoriteProduct.js")];case 1:return[4,(0,t.sent().default)({productId:e.productId})];case 2:return[2,t.sent()]}}))}))}function M(e){return t(this,void 0,void 0,(function(){var t,s;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createCustomerReview.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),(s=t.data)&&i(s),[2,new n(s,t.graphQLErrors)]}}))}))}function F(s){var u;return t(this,void 0,void 0,(function(){var t,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerReviews.js")];case 1:return[4,(0,r.sent().default)(s)];case 2:return t=r.sent(),(a=(null===(u=t.data)||void 0===u?void 0:u.data)||[]).forEach(i),[2,new n(t.data?e(e({},t.data),{data:a}):null,t.graphQLErrors)]}}))}))}function B(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerReviewSummary.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.data)||[],[2,new n(e(e({},t.data),{data:u}),t.graphQLErrors)]}}))}))}function X(){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/listCustomerAttribute.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),(e=t.data||[]).sort((function(t,r){return t.order&&r.order?t.order-r.order:-1})).forEach((function(t){return s(t,u.getCurrentLocale())})),[2,new n(e,t.graphQLErrors)]}}))}))}function Q(){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/getMyCustomer.js")];case 1:return t=r.sent().ResponseField,e=["NOTE","TAG_IDS","PASSWORD_UPDATE_DATE","ADDRESSES__REGION__CREATED_AT","ADDRESSES__REGION__DELETED","ADDRESSES__REGION__UPDATED_AT"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function q(i){return t(this,void 0,void 0,(function(){var t,s;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerSettings.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),s=t.data||[],[2,new n(e(e({},t.data),{data:s}),t.graphQLErrors)]}}))}))}function V(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/activateCustomer.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function H(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/resendCustomerActivationMail.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function W(){return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/resendCustomerPhoneVerificationCode.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function y(e){return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/validateCustomerPhoneVerificationCode.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function K(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/validateOTPCode.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.customer)||null,[2,new n(t.data?e(e({},t.data),{customer:u}):null,t.graphQLErrors)]}}))}))}function Y(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerDeactivate.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function k(){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/exportCustomerPersonalData.js")];case 1:return[4,(0,t.sent().default)()];case 2:return[2,t.sent()]}}))}))}!function(t){t.EMAIL_IS_NOT_VERIFIED="EMAIL_IS_NOT_VERIFIED",t.CUSTOMER_EMAIL_ALREADY_EXISTS="CUSTOMER_EMAIL_ALREADY_EXISTS",t.UNKOWN="UNKOWN",t.B2B_CUSTOMER_ACCOUNT_DISABLED="B2B_CUSTOMER_ACCOUNT_DISABLED",t.PHONE_IS_NOT_VERIFIED="PHONE_IS_NOT_VERIFIED",t.FACEBOOK_SOCIAL_LOGIN_EXISTS="FACEBOOK_SOCIAL_LOGIN_EXISTS",t.GOOGLE_SOCIAL_LOGIN_EXISTS="GOOGLE_SOCIAL_LOGIN_EXISTS",t.APPLE_SOCIAL_LOGIN_EXISTS="APPLE_SOCIAL_LOGIN_EXISTS",t.TWITCH_SOCIAL_LOGIN_EXISTS="TWITCH_SOCIAL_LOGIN_EXISTS",t.SOCIAL_LOGIN_EXISTS="SOCIAL_LOGIN_EXISTS",t.INVALID_CODE="INVALID_CODE",t.OTP_CODE_ALREADY_SEND="OTP_CODE_ALREADY_SEND",t.CUSTOMER_PHONE_ALREADY_EXISTS="CUSTOMER_PHONE_ALREADY_EXISTS",t.PHONE_NUMBER_INVALID="PHONE_NUMBER_INVALID"}(a||(a={})),function(t){t.CUSTOMER_ACCOUNT_DISABLED="CUSTOMER_ACCOUNT_DISABLED",t.EMAIL_IS_NOT_VERIFIED="EMAIL_IS_NOT_VERIFIED",t.CUSTOMER_NOT_FOUND="CUSTOMER_NOT_FOUND",t.B2B_CUSTOMER_ACCOUNT_DISABLED="B2B_CUSTOMER_ACCOUNT_DISABLED",t.UNKOWN="UNKOWN",t.PHONE_IS_NOT_VERIFIED="PHONE_IS_NOT_VERIFIED",t.WRONG_PASSWORD="WRONG_PASSWORD",t.FACEBOOK_SOCIAL_LOGIN_EXISTS="FACEBOOK_SOCIAL_LOGIN_EXISTS",t.GOOGLE_SOCIAL_LOGIN_EXISTS="GOOGLE_SOCIAL_LOGIN_EXISTS",t.APPLE_SOCIAL_LOGIN_EXISTS="APPLE_SOCIAL_LOGIN_EXISTS",t.TWITCH_SOCIAL_LOGIN_EXISTS="TWITCH_SOCIAL_LOGIN_EXISTS",t.SOCIAL_LOGIN_EXISTS="SOCIAL_LOGIN_EXISTS",t.INVALID_CODE="INVALID_CODE",t.OTP_CODE_ALREADY_SEND="OTP_CODE_ALREADY_SEND",t.CUSTOMER_PHONE_ALREADY_EXISTS="CUSTOMER_PHONE_ALREADY_EXISTS",t.PHONE_NUMBER_INVALID="PHONE_NUMBER_INVALID"}(o||(o={})),function(t){t.REFUND_NOT_ALLOWED="REFUND_NOT_ALLOWED",t.REFUND_REASON_REQUIRED="REFUND_REASON_REQUIRED",t.UNKNOWN="UNKNOWN"}(c||(c={}));export{o as IkasLoginError,c as IkasRefundRequestError,a as IkasRegisterError,V as activateCustomer,I as checkEmail,M as createCustomerReview,T as createOrderRefundRequest,Y as deactivateCustomer,k as exportCustomerPersonelData,v as forgotPassword,S as getCustomer,w as getLastViewedProducts,m as getOrderByEmail,L as getOrders,N as getRefundableLines,g as isFavoriteProduct,X as listCustomerAttribute,B as listCustomerReviewSummary,F as listCustomerReviews,q as listCustomerSettings,U as listFavoriteProducts,G as listOrderRefundSettings,A as listOrderTransactions,D as listOrderTransactionsWithPrices,_ as login,O as recoverPassword,f as refreshToken,E as register,H as resendCustomerActivationMail,W as resendCustomerPhoneVerificationCode,h as saveCustomer,p as saveCustomerFormData,j as saveFavoriteProduct,P as saveLastViewedProducts,b as sendContactFormToMerchant,d as socialLogin,C as subscribeToMarketingNotifications,y as validateCustomerPhoneVerificationCode,K as validateOTPCode};
|
|
1
|
+
import{__awaiter as t,__generator as r,__assign as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";import{initIkasCustomerReview as i,initIkasCustomerAttribute as s}from"@ikas/storefront-models";import{IkasStorefrontConfig as u}from"@ikas/storefront-config";var a,o,c;function _(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/customerLogin.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function d(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/customerSocialLogin.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function E(i){var s;return t(this,void 0,void 0,(function(){var t,u,a,o,c;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/registerCustomer.js")];case 1:return t=r.sent().default,a=t,o=[i],[4,l()];case 2:return[4,a.apply(void 0,o.concat([r.sent()]))];case 3:return u=r.sent(),c=(null===(s=u.data)||void 0===s?void 0:s.customer)||null,[2,new n(u.data?e(e({},u.data),{customer:c}):null,u.graphQLErrors)]}}))}))}function l(){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/mutations/customerLogin.js")];case 1:return t=r.sent().ResponseField,e=["CUSTOMER__ADDRESSES__REGION__CREATED_AT","CUSTOMER__ADDRESSES__REGION__DELETED","CUSTOMER__ADDRESSES__REGION__UPDATED_AT"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function f(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRefreshToken.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function v(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerForgotPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function O(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerRecoverPassword.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function I(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkCustomerEmail.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function S(){return t(this,void 0,void 0,(function(){var t,i,s,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getMyCustomer.js")];case 1:return t=r.sent().default,s=t,[4,q()];case 2:return[4,s.apply(void 0,[r.sent()])];case 3:return i=r.sent(),u=i.data||null,[2,new n(i.data?e(e({},i.data),{customer:u}):null,i.graphQLErrors)]}}))}))}function h(i){return t(this,void 0,void 0,(function(){var t,s,u,a,o;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/saveMyCustomer.js")];case 1:return t=r.sent().default,u=t,a=[i],[4,q()];case 2:return[4,u.apply(void 0,a.concat([r.sent()]))];case 3:return s=r.sent(),o=s.data||null,[2,new n(s.data?e(e({},s.data),{customer:o}):null,s.graphQLErrors)]}}))}))}function p(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveCustomerFormData.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function L(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getCustomerOrders.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,R()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),null==(a=i.data)||a.forEach((function(t){var r;(null===(r=t.orderLineItems)||void 0===r?void 0:r.length)&&(t.orderLineItems=t.orderLineItems.filter((function(t){return!t.deleted})))})),[2,new n(a,i.graphQLErrors)]}}))}))}function m(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getOrderByEmail.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,R()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),a=i.data,[2,new n(a,i.graphQLErrors)]}}))}))}function A(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderTransactions.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function D(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderTransactionsWithPrices.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function N(e){return t(this,void 0,void 0,(function(){var t,i;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getRefundableLines.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),i=t.data,[2,new n(i,t.graphQLErrors)]}}))}))}function T(e){return t(this,void 0,void 0,(function(){var t,i,s,u,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createOrderRefundRequest.js")];case 1:return t=r.sent().default,s=t,u=[e],[4,R()];case 2:return[4,s.apply(void 0,u.concat([r.sent()]))];case 3:return i=r.sent(),a=i.data,[2,new n(a,i.graphQLErrors)]}}))}))}function R(){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/getCustomerOrders.js")];case 1:return t=r.sent().ResponseField,e=["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"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function C(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/subscribeToMarketingNotifications.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function w(e){var i;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/getLastViewedProducts.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.products,t.graphQLErrors)]}}))}))}function P(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveLastViewedProducts.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function b(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listOrderRefundSettings.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.map((function(t){return e({},t)})))||null,[2,new n(u,t.graphQLErrors)]}}))}))}function G(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/sendContactFormToMerchant.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function U(){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/listFavoriteProducts.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),e=t.data||null,[2,new n(e,t.graphQLErrors)]}}))}))}function j(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/saveFavoriteProduct.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function g(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/deletePaymentSavedCard.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function M(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/isFavoriteProduct.js")];case 1:return[4,(0,t.sent().default)({productId:e.productId})];case 2:return[2,t.sent()]}}))}))}function F(e){return t(this,void 0,void 0,(function(){var t,s;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/createCustomerReview.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),(s=t.data)&&i(s),[2,new n(s,t.graphQLErrors)]}}))}))}function B(s){var u;return t(this,void 0,void 0,(function(){var t,a;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerReviews.js")];case 1:return[4,(0,r.sent().default)(s)];case 2:return t=r.sent(),(a=(null===(u=t.data)||void 0===u?void 0:u.data)||[]).forEach(i),[2,new n(t.data?e(e({},t.data),{data:a}):null,t.graphQLErrors)]}}))}))}function X(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerReviewSummary.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.data)||[],[2,new n(e(e({},t.data),{data:u}),t.graphQLErrors)]}}))}))}function Q(){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/listCustomerAttribute.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),(e=t.data||[]).sort((function(t,r){return t.order&&r.order?t.order-r.order:-1})).forEach((function(t){return s(t,u.getCurrentLocale())})),[2,new n(e,t.graphQLErrors)]}}))}))}function q(){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/getMyCustomer.js")];case 1:return t=r.sent().ResponseField,e=["NOTE","TAG_IDS","PASSWORD_UPDATE_DATE","ADDRESSES__REGION__CREATED_AT","ADDRESSES__REGION__DELETED","ADDRESSES__REGION__UPDATED_AT"],[2,Object.entries(t).filter((function(t){var r=t[0];return!e.includes(r)})).map((function(t){return t[1]}))]}}))}))}function V(i){return t(this,void 0,void 0,(function(){var t,s;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/queries/listCustomerSettings.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),s=t.data||[],[2,new n(e(e({},t.data),{data:s}),t.graphQLErrors)]}}))}))}function H(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/activateCustomer.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function W(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/resendCustomerActivationMail.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function y(){return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/resendCustomerPhoneVerificationCode.js")];case 1:return[4,(0,r.sent().default)()];case 2:return t=r.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function K(e){return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/validateCustomerPhoneVerificationCode.js")];case 1:return[4,(0,r.sent().default)(e)];case 2:return t=r.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function Y(i){var s;return t(this,void 0,void 0,(function(){var t,u;return r(this,(function(r){switch(r.label){case 0:return[4,import("../../__api/mutations/validateOTPCode.js")];case 1:return[4,(0,r.sent().default)(i)];case 2:return t=r.sent(),u=(null===(s=t.data)||void 0===s?void 0:s.customer)||null,[2,new n(t.data?e(e({},t.data),{customer:u}):null,t.graphQLErrors)]}}))}))}function k(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/customerDeactivate.js")];case 1:return[4,(0,t.sent().default)(e)];case 2:return[2,t.sent()]}}))}))}function x(){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/exportCustomerPersonalData.js")];case 1:return[4,(0,t.sent().default)()];case 2:return[2,t.sent()]}}))}))}!function(t){t.EMAIL_IS_NOT_VERIFIED="EMAIL_IS_NOT_VERIFIED",t.CUSTOMER_EMAIL_ALREADY_EXISTS="CUSTOMER_EMAIL_ALREADY_EXISTS",t.UNKOWN="UNKOWN",t.B2B_CUSTOMER_ACCOUNT_DISABLED="B2B_CUSTOMER_ACCOUNT_DISABLED",t.PHONE_IS_NOT_VERIFIED="PHONE_IS_NOT_VERIFIED",t.FACEBOOK_SOCIAL_LOGIN_EXISTS="FACEBOOK_SOCIAL_LOGIN_EXISTS",t.GOOGLE_SOCIAL_LOGIN_EXISTS="GOOGLE_SOCIAL_LOGIN_EXISTS",t.APPLE_SOCIAL_LOGIN_EXISTS="APPLE_SOCIAL_LOGIN_EXISTS",t.TWITCH_SOCIAL_LOGIN_EXISTS="TWITCH_SOCIAL_LOGIN_EXISTS",t.SOCIAL_LOGIN_EXISTS="SOCIAL_LOGIN_EXISTS",t.INVALID_CODE="INVALID_CODE",t.OTP_CODE_ALREADY_SEND="OTP_CODE_ALREADY_SEND",t.CUSTOMER_PHONE_ALREADY_EXISTS="CUSTOMER_PHONE_ALREADY_EXISTS",t.PHONE_NUMBER_INVALID="PHONE_NUMBER_INVALID"}(a||(a={})),function(t){t.CUSTOMER_ACCOUNT_DISABLED="CUSTOMER_ACCOUNT_DISABLED",t.EMAIL_IS_NOT_VERIFIED="EMAIL_IS_NOT_VERIFIED",t.CUSTOMER_NOT_FOUND="CUSTOMER_NOT_FOUND",t.B2B_CUSTOMER_ACCOUNT_DISABLED="B2B_CUSTOMER_ACCOUNT_DISABLED",t.UNKOWN="UNKOWN",t.PHONE_IS_NOT_VERIFIED="PHONE_IS_NOT_VERIFIED",t.WRONG_PASSWORD="WRONG_PASSWORD",t.FACEBOOK_SOCIAL_LOGIN_EXISTS="FACEBOOK_SOCIAL_LOGIN_EXISTS",t.GOOGLE_SOCIAL_LOGIN_EXISTS="GOOGLE_SOCIAL_LOGIN_EXISTS",t.APPLE_SOCIAL_LOGIN_EXISTS="APPLE_SOCIAL_LOGIN_EXISTS",t.TWITCH_SOCIAL_LOGIN_EXISTS="TWITCH_SOCIAL_LOGIN_EXISTS",t.SOCIAL_LOGIN_EXISTS="SOCIAL_LOGIN_EXISTS",t.INVALID_CODE="INVALID_CODE",t.OTP_CODE_ALREADY_SEND="OTP_CODE_ALREADY_SEND",t.CUSTOMER_PHONE_ALREADY_EXISTS="CUSTOMER_PHONE_ALREADY_EXISTS",t.PHONE_NUMBER_INVALID="PHONE_NUMBER_INVALID"}(o||(o={})),function(t){t.REFUND_NOT_ALLOWED="REFUND_NOT_ALLOWED",t.REFUND_REASON_REQUIRED="REFUND_REASON_REQUIRED",t.UNKNOWN="UNKNOWN"}(c||(c={}));export{o as IkasLoginError,c as IkasRefundRequestError,a as IkasRegisterError,H as activateCustomer,I as checkEmail,F as createCustomerReview,T as createOrderRefundRequest,k as deactivateCustomer,g as deletePaymentSavedCard,x as exportCustomerPersonelData,v as forgotPassword,S as getCustomer,w as getLastViewedProducts,m as getOrderByEmail,L as getOrders,N as getRefundableLines,M as isFavoriteProduct,Q as listCustomerAttribute,X as listCustomerReviewSummary,B as listCustomerReviews,V as listCustomerSettings,U as listFavoriteProducts,b as listOrderRefundSettings,A as listOrderTransactions,D as listOrderTransactionsWithPrices,_ as login,O as recoverPassword,f as refreshToken,E as register,W as resendCustomerActivationMail,y as resendCustomerPhoneVerificationCode,h as saveCustomer,p as saveCustomerFormData,j as saveFavoriteProduct,P as saveLastViewedProducts,G as sendContactFormToMerchant,d as socialLogin,C as subscribeToMarketingNotifications,K as validateCustomerPhoneVerificationCode,Y as validateOTPCode};
|
package/build/index.d.ts
CHANGED
|
@@ -22,6 +22,6 @@ export { SaveMyCustomerInput } from "./__api/models/SaveMyCustomerInput";
|
|
|
22
22
|
export { SaveCartInput } from "./__api/models/SaveCartInput";
|
|
23
23
|
export { CheckStocksLineInput } from "./__api/models/CheckStocksLineInput";
|
|
24
24
|
export { SortByDirectionEnum, SortByTypeEnum, MasterPassOperationTypeEnum, GetSuggestedProductsMethodEnum, TransactionCardAssociationEnum, CampaignOfferTargetPageTypeEnum, CustomerExternalAccountLinkProviderEnum, } from "./__api/types";
|
|
25
|
-
export type { MilesSmilesDetailsResponse, MilesSmilesPaymentInput, ExternalAccountLink, SearchInputOrderByInput, CreateStripePaymentIntentResponse, RetrieveInstallmentInfoResponse, TransactionResponse, UpdateCartCampaignOfferInput, CartLineOptionInput, CreateKlarnaTokenResponse, GetPaypalClientIdResponse, CreatePaypalOrderResponse, CreateAdyenPlatformSessionResponse, HepsipayFrameInitResponse, CreateIyzicoCheckoutFormResponse, CreateTkPayCheckoutFormResponse, } from "./__api/types";
|
|
25
|
+
export type { MilesSmilesDetailsResponse, MilesSmilesPaymentInput, ExternalAccountLink, SearchInputOrderByInput, CreateStripePaymentIntentResponse, RetrieveInstallmentInfoResponse, TransactionResponse, UpdateCartCampaignOfferInput, CartLineOptionInput, CreateKlarnaTokenResponse, GetPaypalClientIdResponse, CreatePaypalOrderResponse, CreateAdyenPlatformSessionResponse, HepsipayFrameInitResponse, CreateIyzicoCheckoutFormResponse, CreateTkPayCheckoutFormResponse, SavedCard, SavedCardPaymentDetailInput, } from "./__api/types";
|
|
26
26
|
export { APIResponse } from "@ikas/fe-api-client";
|
|
27
27
|
export { Config as IkasAPIClientConfig };
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{getAutoAppyCouponCodeFromCookie,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,CustomerExternalAccountLinkProviderEnum,GetSuggestedProductsMethodEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramOrderStatusToWinPointsEnum,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,StorefrontWidgetSettingsStatusEnum,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,createPayWithIkasSessionUrl,getCartById,removeGiftCardFromCart,removeLoyaltyPointsFromCart,saveCart,saveCartCouponCode,updateCartCampaignOffer,useLoyaltyPoints}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,createAdyenBalancePlatformPaymentSession,createIyzicoCheckoutForm,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripeExpressCheckoutSession,createStripePaymentIntent,createTkPayCheckoutForm,getAvailableShippingCountries,getAvailableStockLocations,getOrderInvoicePdfUrl,getPayPalClientId,getStoreCreditBalance,hepsipayFrameInit,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo,updatePaypalOrder,updateStripeExpressCheckoutSession}from"./api/checkout/index.js";export{IkasLoginError,IkasRefundRequestError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,deactivateCustomer,exportCustomerPersonelData,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,getRefundableLines,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,listOrderTransactionsWithPrices,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode,validateOTPCode}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{getLoyaltyCustomerInfo,getLoyaltyProgram,getLoyaltyWidgetSettings,getStorefrontWidgetSettings,listEarningMethods,listLoyaltyProgramPointHistory,listLoyaltyProgramTiers,listSpendingMethodsByCartId}from"./api/loyalty/index.js";export{MILES_SMILES_CARD_GATEWAY_CODE,MILES_SMILES_CURRENCY_CODE,MILES_SMILES_PAYMENT_GATEWAY_CODE,MILES_SMILES_PAYMENT_GATEWAY_ID,MILES_SMILES_PROVIDER,getExternalAccountLink,getMilesSmilesDetails,unlinkExternalAccount}from"./api/miles-smiles/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{getAutoAppyCouponCodeFromCookie,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,CustomerExternalAccountLinkProviderEnum,GetSuggestedProductsMethodEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramOrderStatusToWinPointsEnum,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,StorefrontWidgetSettingsStatusEnum,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,createPayWithIkasSessionUrl,getCartById,removeGiftCardFromCart,removeLoyaltyPointsFromCart,saveCart,saveCartCouponCode,updateCartCampaignOffer,useLoyaltyPoints}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,createAdyenBalancePlatformPaymentSession,createIyzicoCheckoutForm,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripeExpressCheckoutSession,createStripePaymentIntent,createTkPayCheckoutForm,getAvailableShippingCountries,getAvailableStockLocations,getOrderInvoicePdfUrl,getPayPalClientId,getStoreCreditBalance,hepsipayFrameInit,listCheckoutSettings,listPaymentGateway,listPaymentSavedCard,listProductFile,listStockLocations,retrieveInstallmentInfo,updatePaypalOrder,updateStripeExpressCheckoutSession}from"./api/checkout/index.js";export{IkasLoginError,IkasRefundRequestError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,deactivateCustomer,deletePaymentSavedCard,exportCustomerPersonelData,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,getRefundableLines,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,listOrderTransactionsWithPrices,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode,validateOTPCode}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{getLoyaltyCustomerInfo,getLoyaltyProgram,getLoyaltyWidgetSettings,getStorefrontWidgetSettings,listEarningMethods,listLoyaltyProgramPointHistory,listLoyaltyProgramTiers,listSpendingMethodsByCartId}from"./api/loyalty/index.js";export{MILES_SMILES_CARD_GATEWAY_CODE,MILES_SMILES_CURRENCY_CODE,MILES_SMILES_PAYMENT_GATEWAY_CODE,MILES_SMILES_PAYMENT_GATEWAY_ID,MILES_SMILES_PROVIDER,getExternalAccountLink,getMilesSmilesDetails,unlinkExternalAccount}from"./api/miles-smiles/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,IkasRefundRequestError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,deactivateCustomer,exportCustomerPersonelData,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,getRefundableLines,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,listOrderTransactionsWithPrices,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode,validateOTPCode}from"./api/customer/index.js";import"axios";export{CampaignOfferTargetPageTypeEnum,CustomerExternalAccountLinkProviderEnum,GetSuggestedProductsMethodEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramOrderStatusToWinPointsEnum,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,StorefrontWidgetSettingsStatusEnum,TransactionCardAssociationEnum}from"./__api/types/index.js";export{MILES_SMILES_CARD_GATEWAY_CODE,MILES_SMILES_CURRENCY_CODE,MILES_SMILES_PAYMENT_GATEWAY_CODE,MILES_SMILES_PAYMENT_GATEWAY_ID,MILES_SMILES_PROVIDER,getExternalAccountLink,getMilesSmilesDetails,unlinkExternalAccount}from"./api/miles-smiles/index.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";function o(){if("undefined"==typeof window||"undefined"==typeof document)return null;var e=document.cookie.split("; ").find((function(e){return e.startsWith("coupon_code=")}));return e&&e.split("=")[1]||null}function i(){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()||"","x-timezone":Intl.DateTimeFormat().resolvedOptions().timeZone||""};var i=o();i&&(e.HEADERS["x-coupon-code"]=i),e.TOKEN=r.getCustomerToken()||"",r.getLoginRequiredCallback()&&(e.ON_ERROR={errorCodes:[{errorCode:t.LOGIN_REQUIRED,callback:r.getLoginRequiredCallback()}]})}r.addObserver({id:"ikas-storefront-api",callback:i});export{o as getAutoAppyCouponCodeFromCookie,i 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,IkasRefundRequestError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,deactivateCustomer,deletePaymentSavedCard,exportCustomerPersonelData,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,getRefundableLines,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,listOrderTransactionsWithPrices,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode,validateOTPCode}from"./api/customer/index.js";import"axios";export{CampaignOfferTargetPageTypeEnum,CustomerExternalAccountLinkProviderEnum,GetSuggestedProductsMethodEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramOrderStatusToWinPointsEnum,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,StorefrontWidgetSettingsStatusEnum,TransactionCardAssociationEnum}from"./__api/types/index.js";export{MILES_SMILES_CARD_GATEWAY_CODE,MILES_SMILES_CURRENCY_CODE,MILES_SMILES_PAYMENT_GATEWAY_CODE,MILES_SMILES_PAYMENT_GATEWAY_ID,MILES_SMILES_PROVIDER,getExternalAccountLink,getMilesSmilesDetails,unlinkExternalAccount}from"./api/miles-smiles/index.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";function o(){if("undefined"==typeof window||"undefined"==typeof document)return null;var e=document.cookie.split("; ").find((function(e){return e.startsWith("coupon_code=")}));return e&&e.split("=")[1]||null}function i(){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()||"","x-timezone":Intl.DateTimeFormat().resolvedOptions().timeZone||""};var i=o();i&&(e.HEADERS["x-coupon-code"]=i),e.TOKEN=r.getCustomerToken()||"",r.getLoginRequiredCallback()&&(e.ON_ERROR={errorCodes:[{errorCode:t.LOGIN_REQUIRED,callback:r.getLoginRequiredCallback()}]})}r.addObserver({id:"ikas-storefront-api",callback:i});export{o as getAutoAppyCouponCodeFromCookie,i 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.391",
|
|
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.391",
|
|
21
|
+
"@ikas/storefront-models": "^6.1.0-beta.391",
|
|
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.30"
|
|
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.391",
|
|
38
|
+
"@ikas/storefront-models": "^6.1.0-beta.391",
|
|
39
39
|
"@ikas/fe-api-client": "1.0.30",
|
|
40
40
|
"axios": "^0.26.0",
|
|
41
41
|
"ts-essentials": "^7.0.1"
|