@ikas/storefront-api 4.15.4 → 4.15.5
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/CreateAdyenPlatformSessionResponse.d.ts +13 -0
- package/build/__api/models/CreateKlarnaTokenResponse.d.ts +1 -0
- package/build/__api/models/CreatePaypalOrderResponse.d.ts +1 -0
- package/build/__api/models/CreateStripePaymentIntentResponse.d.ts +1 -0
- package/build/__api/mutations/createAdyenBalancePlatformPaymentSession.d.ts +14 -0
- package/build/__api/mutations/createAdyenBalancePlatformPaymentSession.js +1 -0
- package/build/__api/mutations/createAdyenPaymentSession.d.ts +1 -1
- package/build/__api/mutations/createKlarnaClientToken.d.ts +1 -0
- package/build/__api/mutations/createKlarnaClientToken.js +1 -1
- package/build/__api/mutations/createPaypalOrder.d.ts +1 -0
- package/build/__api/mutations/createPaypalOrder.js +1 -1
- package/build/__api/mutations/createStripePaymentIntent.d.ts +2 -1
- package/build/__api/mutations/createStripePaymentIntent.js +1 -1
- package/build/__api/types/index.d.ts +10 -0
- package/build/api/checkout/index.d.ts +3 -3
- package/build/api/checkout/index.js +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.js +1 -1
- package/package.json +5 -5
- package/build/__api/mutations/createAdyenPaymentSession.js +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class CreateAdyenPlatformSessionResponseData {
|
|
3
|
+
clientKey: string;
|
|
4
|
+
failUrl: string;
|
|
5
|
+
returnUrl: string;
|
|
6
|
+
sessionData: string | null;
|
|
7
|
+
sessionId: string;
|
|
8
|
+
constructor(data?: Partial<CreateAdyenPlatformSessionResponseData>);
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateAdyenPlatformSessionResponse extends CreateAdyenPlatformSessionResponseData {
|
|
11
|
+
}
|
|
12
|
+
export declare type PartialCreateAdyenPlatformSessionResponse = Partial<CreateAdyenPlatformSessionResponse>;
|
|
13
|
+
export declare type ReadOnlyCreateAdyenPlatformSessionResponse = DeepReadonly<CreateAdyenPlatformSessionResponse>;
|
|
@@ -2,6 +2,7 @@ import { DeepReadonly } from "ts-essentials";
|
|
|
2
2
|
export declare class CreateKlarnaTokenResponseData {
|
|
3
3
|
authorizeUrl: string | null;
|
|
4
4
|
clientToken: string | null;
|
|
5
|
+
failUrl: string | null;
|
|
5
6
|
sessionId: string | null;
|
|
6
7
|
transactionId: string | null;
|
|
7
8
|
constructor(data?: Partial<CreateKlarnaTokenResponseData>);
|
|
@@ -4,6 +4,7 @@ export declare class CreateStripePaymentIntentResponseData {
|
|
|
4
4
|
apiKey: string;
|
|
5
5
|
callbackUrl: string;
|
|
6
6
|
clientSecret: string;
|
|
7
|
+
failUrl: string;
|
|
7
8
|
constructor(data?: Partial<CreateStripePaymentIntentResponseData>);
|
|
8
9
|
}
|
|
9
10
|
export declare class CreateStripePaymentIntentResponse extends CreateStripePaymentIntentResponseData {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
import { CreateSaleTransactionWithCartInput, CreateAdyenPlatformSessionResponse } from "../types";
|
|
3
|
+
declare const createAdyenBalancePlatformPaymentSession: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<CreateAdyenPlatformSessionResponse> | APIResponse<undefined>>;
|
|
4
|
+
export default createAdyenBalancePlatformPaymentSession;
|
|
5
|
+
export declare type QueryParams = {
|
|
6
|
+
input: CreateSaleTransactionWithCartInput;
|
|
7
|
+
};
|
|
8
|
+
export declare enum ResponseField {
|
|
9
|
+
CLIENT_KEY = "clientKey",
|
|
10
|
+
FAIL_URL = "failUrl",
|
|
11
|
+
RETURN_URL = "returnUrl",
|
|
12
|
+
SESSION_DATA = "sessionData",
|
|
13
|
+
SESSION_ID = "sessionId"
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as n,APIResponse as a,fetchQuery as r}from"@ikas/fe-api-client";var s,i=function(s,i,l){return t(void 0,void 0,void 0,(function(){var t,c,u,f;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,r({operationName:"createAdyenBalancePlatformPaymentSession",config:l,variables:s,allReturnFields:o,fields:i,query:function(t){return"\n\t\t\t\tmutation createAdyenBalancePlatformPaymentSession (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t) {\n\t\t\t\t\tcreateAdyenBalancePlatformPaymentSession (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),c=t.data,u=t.errors,[2,new a(null==c?void 0:c.createAdyenBalancePlatformPaymentSession,u)];case 2:return f=e.sent(),[2,n(f)];case 3:return[2]}}))}))},o="{clientKey failUrl returnUrl sessionData sessionId }";!function(t){t.CLIENT_KEY="clientKey",t.FAIL_URL="failUrl",t.RETURN_URL="returnUrl",t.SESSION_DATA="sessionData",t.SESSION_ID="sessionId"}(s||(s={}));export{s as ResponseField,i as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
2
|
import { CreateSaleTransactionWithCartInput, CreateAdyenSessionResponse } from "../types";
|
|
3
|
-
declare const createAdyenPaymentSession: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<
|
|
3
|
+
declare const createAdyenPaymentSession: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<undefined> | APIResponse<CreateAdyenSessionResponse>>;
|
|
4
4
|
export default createAdyenPaymentSession;
|
|
5
5
|
export declare type QueryParams = {
|
|
6
6
|
input: CreateSaleTransactionWithCartInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as r,fetchQuery as a}from"@ikas/fe-api-client";var i,o=function(i,o,
|
|
1
|
+
import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as r,fetchQuery as a}from"@ikas/fe-api-client";var i,o=function(i,o,s){return t(void 0,void 0,void 0,(function(){var t,u,c,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,a({operationName:"createKlarnaClientToken",config:s,variables:i,allReturnFields:l,fields:o,query:function(t){return"\n\t\t\t\tmutation createKlarnaClientToken (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t) {\n\t\t\t\t\tcreateKlarnaClientToken (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=n.sent(),u=t.data,c=t.errors,[2,new r(null==u?void 0:u.createKlarnaClientToken,c)];case 2:return d=n.sent(),[2,e(d)];case 3:return[2]}}))}))},l="{authorizeUrl clientToken failUrl sessionId transactionId }";!function(t){t.AUTHORIZE_URL="authorizeUrl",t.CLIENT_TOKEN="clientToken",t.FAIL_URL="failUrl",t.SESSION_ID="sessionId",t.TRANSACTION_ID="transactionId"}(i||(i={}));export{i as ResponseField,o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as
|
|
1
|
+
import{__awaiter as t,__generator as r}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as n,APIResponse as e,fetchQuery as a}from"@ikas/fe-api-client";var i,s=function(i,s,l){return t(void 0,void 0,void 0,(function(){var t,u,c,d;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,a({operationName:"createPaypalOrder",config:l,variables:i,allReturnFields:o,fields:s,query:function(t){return"\n\t\t\t\tmutation createPaypalOrder (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t) {\n\t\t\t\t\tcreatePaypalOrder (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=r.sent(),u=t.data,c=t.errors,[2,new e(null==u?void 0:u.createPaypalOrder,c)];case 2:return d=r.sent(),[2,n(d)];case 3:return[2]}}))}))},o="{failUrl returnUrl sessionToken transactionId }";!function(t){t.FAIL_URL="failUrl",t.RETURN_URL="returnUrl",t.SESSION_TOKEN="sessionToken",t.TRANSACTION_ID="transactionId"}(i||(i={}));export{i as ResponseField,s as default};
|
|
@@ -1 +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,c=function(i,c,
|
|
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,c=function(i,c,o){return t(void 0,void 0,void 0,(function(){var t,u,s,p;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a({operationName:"createStripePaymentIntent",config:o,variables:i,allReturnFields:l,fields:c,query:function(t){return"\n\t\t\t\tmutation createStripePaymentIntent (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t) {\n\t\t\t\t\tcreateStripePaymentIntent (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),u=t.data,s=t.errors,[2,new r(null==u?void 0:u.createStripePaymentIntent,s)];case 2:return p=e.sent(),[2,n(p)];case 3:return[2]}}))}))},l="{accountId apiKey callbackUrl clientSecret failUrl }";!function(t){t.ACCOUNT_ID="accountId",t.API_KEY="apiKey",t.CALLBACK_URL="callbackUrl",t.CLIENT_SECRET="clientSecret",t.FAIL_URL="failUrl"}(i||(i={}));export{i as ResponseField,c as default};
|
|
@@ -1108,6 +1108,13 @@ export interface Country {
|
|
|
1108
1108
|
subregion: string | null;
|
|
1109
1109
|
updatedAt: any | null;
|
|
1110
1110
|
}
|
|
1111
|
+
export interface CreateAdyenPlatformSessionResponse {
|
|
1112
|
+
clientKey: string;
|
|
1113
|
+
failUrl: string;
|
|
1114
|
+
returnUrl: string;
|
|
1115
|
+
sessionData: string | null;
|
|
1116
|
+
sessionId: string;
|
|
1117
|
+
}
|
|
1111
1118
|
export interface CreateAdyenSessionResponse {
|
|
1112
1119
|
clientKey: string;
|
|
1113
1120
|
returnUrl: string;
|
|
@@ -1117,10 +1124,12 @@ export interface CreateAdyenSessionResponse {
|
|
|
1117
1124
|
export interface CreateKlarnaTokenResponse {
|
|
1118
1125
|
authorizeUrl: string | null;
|
|
1119
1126
|
clientToken: string | null;
|
|
1127
|
+
failUrl: string | null;
|
|
1120
1128
|
sessionId: string | null;
|
|
1121
1129
|
transactionId: string | null;
|
|
1122
1130
|
}
|
|
1123
1131
|
export interface CreatePaypalOrderResponse {
|
|
1132
|
+
failUrl: string;
|
|
1124
1133
|
returnUrl: string;
|
|
1125
1134
|
sessionToken: string;
|
|
1126
1135
|
transactionId: string;
|
|
@@ -1130,6 +1139,7 @@ export interface CreateStripePaymentIntentResponse {
|
|
|
1130
1139
|
apiKey: string;
|
|
1131
1140
|
callbackUrl: string;
|
|
1132
1141
|
clientSecret: string;
|
|
1142
|
+
failUrl: string;
|
|
1133
1143
|
}
|
|
1134
1144
|
export interface CurrencyRate {
|
|
1135
1145
|
baseCurrency: string;
|
|
@@ -9,13 +9,13 @@ import { QueryParams as ListStockLocationQueryParams } from "../../__api/queries
|
|
|
9
9
|
import { QueryParams as GetAvailableStockLocationQueryParams } from "../../__api/queries/getAvailableStockLocations";
|
|
10
10
|
import { QueryParams as CreateStripePaymentIntentParams } from "../../__api/mutations/createStripePaymentIntent";
|
|
11
11
|
import { QueryParams as CreateKlarnaClientTokenParams } from "../../__api/mutations/createKlarnaClientToken";
|
|
12
|
-
import { QueryParams as CreateAdyenClientTokenParams } from "../../__api/mutations/createAdyenPaymentSession";
|
|
13
12
|
import { QueryParams as GetPayPalClientIdTokenParams } from "../../__api/mutations/getPaypalClientId";
|
|
14
13
|
import { QueryParams as CreatePayPalOrderParams } from "../../__api/mutations/createPaypalOrder";
|
|
15
14
|
import { QueryParams as ListProductFileQueryParams } from "../../__api/queries/listProductFile";
|
|
16
15
|
import { QueryParams as CheckCartStocksQueryParams } from "../../__api/queries/checkCartStocks";
|
|
16
|
+
import { QueryParams as CreateAdyenBalancePlatformPaymentParams } from "../../__api/mutations/createAdyenBalancePlatformPaymentSession";
|
|
17
17
|
import { IkasAvailableStockLocation, IkasCheckoutSettings, IkasPaymentGateway, IkasStockLocation } from "@ikas/storefront-models";
|
|
18
|
-
export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams,
|
|
18
|
+
export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams, GetPayPalClientIdTokenParams, CreatePayPalOrderParams, ListProductFileQueryParams, CheckCartStocksQueryParams, CreateAdyenBalancePlatformPaymentParams, };
|
|
19
19
|
export declare function createSaleTransactionWithCart(params: CreateSaleTransactionQueryParams): Promise<APIResponse<import("../..").TransactionResponse> | APIResponse<undefined>>;
|
|
20
20
|
export declare function listPaymentGateway(params: ListPaymentGatewayQueryParams): Promise<APIResponse<IkasPaymentGateway[]>>;
|
|
21
21
|
export declare function listProductFile(params: ListProductFileQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").ProductFile[]>>;
|
|
@@ -28,6 +28,6 @@ export declare function listStockLocations(params: ListStockLocationQueryParams)
|
|
|
28
28
|
export declare function getAvailableStockLocations(params: GetAvailableStockLocationQueryParams): Promise<APIResponse<IkasAvailableStockLocation[]>>;
|
|
29
29
|
export declare function createStripePaymentIntent(params: CreateStripePaymentIntentParams): Promise<APIResponse<import("../..").CreateStripePaymentIntentResponse>>;
|
|
30
30
|
export declare function createKlarnaClientToken(params: CreateKlarnaClientTokenParams): Promise<APIResponse<import("../..").CreateKlarnaTokenResponse>>;
|
|
31
|
-
export declare function
|
|
31
|
+
export declare function createAdyenBalancePlatformPaymentSession(params: CreateAdyenBalancePlatformPaymentParams): Promise<APIResponse<import("../..").CreateAdyenPlatformSessionResponse>>;
|
|
32
32
|
export declare function getPayPalClientId(params: GetPayPalClientIdTokenParams): Promise<APIResponse<import("../..").GetPaypalClientIdResponse>>;
|
|
33
33
|
export declare function createPayPalOrder(params: CreatePayPalOrderParams): Promise<APIResponse<import("../..").CreatePaypalOrderResponse>>;
|
|
@@ -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/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(n){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)(n)];case 2:return[2,t.sent()]}}))}))}function c(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,w()];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 l(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 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/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 d(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 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/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 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/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 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/
|
|
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(n){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)(n)];case 2:return[2,t.sent()]}}))}))}function c(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,w()];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 l(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 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/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 d(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 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/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 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/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 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/createAdyenBalancePlatformPaymentSession.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/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 m(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 w(){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{o as checkCartStocks,u as checkStocks,v as createAdyenBalancePlatformPaymentSession,p as createKlarnaClientToken,m as createPayPalOrder,r as createSaleTransactionWithCart,h as createStripePaymentIntent,l as getAvailableShippingCountries,d as getAvailableStockLocations,_ as getPayPalClientId,c as listCheckoutSettings,i as listPaymentGateway,s as listProductFile,f as listStockLocations,a as retrieveInstallmentInfo};
|
package/build/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export * from "./api/storefront";
|
|
|
17
17
|
export { SaveMyCustomerInput } from "./__api/models/SaveMyCustomerInput";
|
|
18
18
|
export { SaveCartInput } from "./__api/models/SaveCartInput";
|
|
19
19
|
export { CheckStocksLineInput } from "./__api/models/CheckStocksLineInput";
|
|
20
|
-
export { SortByDirectionEnum, SortByTypeEnum, MasterPassOperationTypeEnum, GetSuggestedProductsMethodEnum, TransactionCardAssociationEnum } from "./__api/types";
|
|
21
|
-
export type { SearchInputOrderByInput, CreateStripePaymentIntentResponse, RetrieveInstallmentInfoResponse, TransactionResponse, UpdateCartCampaignOfferInput, CartLineOptionInput, CreateKlarnaTokenResponse,
|
|
20
|
+
export { SortByDirectionEnum, SortByTypeEnum, MasterPassOperationTypeEnum, GetSuggestedProductsMethodEnum, TransactionCardAssociationEnum, } from "./__api/types";
|
|
21
|
+
export type { SearchInputOrderByInput, CreateStripePaymentIntentResponse, RetrieveInstallmentInfoResponse, TransactionResponse, UpdateCartCampaignOfferInput, CartLineOptionInput, CreateKlarnaTokenResponse, GetPaypalClientIdResponse, CreatePaypalOrderResponse, CreateAdyenPlatformSessionResponse, } from "./__api/types";
|
|
22
22
|
export { APIResponse } from "@ikas/fe-api-client";
|
|
23
23
|
export { Config as IkasAPIClientConfig };
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{setAPIClientConfig}from"./index2.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,TransactionCardAssociationEnum}from"./__api/types/index.js";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,
|
|
1
|
+
export{setAPIClientConfig}from"./index2.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,TransactionCardAssociationEnum}from"./__api/types/index.js";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,getCartById,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,createAdyenBalancePlatformPaymentSession,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode}from"./api/customer/index.js";export{getDigitalProductFileDownloadUrl,getProductOptionFileUrl,uploadFile}from"./api/file-upload/index.js";export{listHTMLMetaData}from"./api/html-meta-data/index.js";export{getAvailableShippingZones,getMyCountry,listCity,listCountry,listDistrict,listState}from"./api/location/index.js";export{getMasterPassRequestToken}from"./api/masterpass/index.js";export{listMerchantSettings}from"./api/merchant/index.js";export{getOrderLineFile,getProductCampaigns,getProductFilterData,getRelatedProducts,getSuggestedProducts,getVariantStockLocations,listCampaignOffer,listProductAttribute,listProductBackInStockRemind,listProductOptionSet,saveProductBackInStockRemind,searchProducts}from"./api/product/index.js";export{listRaffleMetaData,listRaffleParticipants,listStorefrontRaffle,saveRaffleParticipant}from"./api/raffle/index.js";export{getStorefrontSettings}from"./api/storefront/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-api",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.5",
|
|
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.15.
|
|
21
|
-
"@ikas/storefront-models": "^4.15.
|
|
20
|
+
"@ikas/storefront-config": "^4.15.5",
|
|
21
|
+
"@ikas/storefront-models": "^4.15.5",
|
|
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.15.
|
|
38
|
-
"@ikas/storefront-models": "^4.15.
|
|
37
|
+
"@ikas/storefront-config": "^4.15.5",
|
|
38
|
+
"@ikas/storefront-models": "^4.15.5",
|
|
39
39
|
"@ikas/fe-api-client": "^1.0.18",
|
|
40
40
|
"axios": "^0.26.0",
|
|
41
41
|
"ts-essentials": "^7.0.1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as n,APIResponse as r,fetchQuery as s}from"@ikas/fe-api-client";var i,a=function(i,a,u){return t(void 0,void 0,void 0,(function(){var t,c,l,d;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,s({operationName:"createAdyenPaymentSession",config:u,variables:i,allReturnFields:o,fields:a,query:function(t){return"\n\t\t\t\tmutation createAdyenPaymentSession (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t) {\n\t\t\t\t\tcreateAdyenPaymentSession (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),c=t.data,l=t.errors,[2,new r(null==c?void 0:c.createAdyenPaymentSession,l)];case 2:return d=e.sent(),[2,n(d)];case 3:return[2]}}))}))},o="{clientKey returnUrl sessionData sessionId }";!function(t){t.CLIENT_KEY="clientKey",t.RETURN_URL="returnUrl",t.SESSION_DATA="sessionData",t.SESSION_ID="sessionId"}(i||(i={}));export{i as ResponseField,a as default};
|