@ikas/storefront-api 6.1.0-beta.8 → 6.1.0-beta.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/__api/models/CartV2.d.ts +2 -0
- package/build/__api/models/CheckoutSettings.d.ts +1 -0
- package/build/__api/models/HepsipayFrameInitResponse.d.ts +11 -0
- package/build/__api/models/OrderGiftCardLine.d.ts +12 -0
- package/build/__api/models/UpdatePaypalOrderAddressInput.d.ts +12 -0
- package/build/__api/models/UpdatePaypalOrderCustomerInput.d.ts +12 -0
- package/build/__api/models/UpdatePaypalOrderInput.d.ts +16 -0
- package/build/__api/mutations/createPaypalOrder.d.ts +2 -0
- package/build/__api/mutations/createPaypalOrder.js +1 -1
- package/build/__api/mutations/getPaypalClientId.d.ts +1 -1
- package/build/__api/mutations/getPaypalClientId.js +1 -1
- package/build/__api/mutations/hepsipayFrameInit.d.ts +13 -0
- package/build/__api/mutations/hepsipayFrameInit.js +1 -0
- package/build/__api/mutations/removeGiftCardFromCart.d.ts +509 -0
- package/build/__api/mutations/removeGiftCardFromCart.js +1 -0
- package/build/__api/mutations/updatePaypalOrder.d.ts +8 -0
- package/build/__api/mutations/updatePaypalOrder.js +1 -0
- package/build/__api/queries/getAvailableStockLocations.d.ts +1 -0
- package/build/__api/queries/getAvailableStockLocations.js +1 -1
- package/build/__api/queries/getCartById.d.ts +2 -1
- package/build/__api/queries/getCartById.js +1 -1
- package/build/__api/queries/listCheckoutSettings.d.ts +1 -0
- package/build/__api/queries/listCheckoutSettings.js +1 -1
- package/build/__api/types/index.d.ts +33 -0
- package/build/api/cart/index.d.ts +3 -1
- package/build/api/cart/index.js +1 -1
- package/build/api/checkout/index.d.ts +5 -1
- package/build/api/checkout/index.js +1 -1
- package/build/api/storefront/index.d.ts +5 -0
- package/build/index.d.ts +2 -2
- package/build/index.js +1 -1
- package/build/index2.js +1 -1
- package/package.json +5 -5
|
@@ -8,6 +8,7 @@ import { OrderAddressData } from "./OrderAddress";
|
|
|
8
8
|
import { CartV2CampaignOfferData } from "./CartV2CampaignOffer";
|
|
9
9
|
import { OrderCurrencyRateData } from "./OrderCurrencyRate";
|
|
10
10
|
import { OrderCustomerData } from "./OrderCustomer";
|
|
11
|
+
import { OrderGiftCardLineData } from "./OrderGiftCardLine";
|
|
11
12
|
import { OrderGiftPackageLineData } from "./OrderGiftPackageLine";
|
|
12
13
|
import { OrderAdjustmentData } from "./OrderAdjustment";
|
|
13
14
|
import { OrderLineItemData } from "./OrderLineItem";
|
|
@@ -33,6 +34,7 @@ export declare class CartV2Data extends BaseModelData {
|
|
|
33
34
|
customer: OrderCustomerData | null;
|
|
34
35
|
customerId: string | null;
|
|
35
36
|
dueDate: any | null;
|
|
37
|
+
giftCardLines: OrderGiftCardLineData[] | null;
|
|
36
38
|
giftPackageLines: OrderGiftPackageLineData[] | null;
|
|
37
39
|
giftPackageNote: string | null;
|
|
38
40
|
host: string | null;
|
|
@@ -18,6 +18,7 @@ export declare class CheckoutSettingsData extends BaseModelData {
|
|
|
18
18
|
postalCodeRequirement: CheckoutRequirementEnum | null;
|
|
19
19
|
showCheckoutNote: boolean | null;
|
|
20
20
|
showCompanyInfoInShippingAddress: boolean | null;
|
|
21
|
+
showBillingAddressOnShippingStep: boolean | null;
|
|
21
22
|
showTermsAndConditionsCheckbox: boolean;
|
|
22
23
|
storefrontId: string;
|
|
23
24
|
constructor(data?: Partial<CheckoutSettingsData>);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class HepsipayFrameInitResponseData {
|
|
3
|
+
frameToken: string | null;
|
|
4
|
+
frameUrl: string | null;
|
|
5
|
+
transactionId: string;
|
|
6
|
+
constructor(data?: Partial<HepsipayFrameInitResponseData>);
|
|
7
|
+
}
|
|
8
|
+
export declare class HepsipayFrameInitResponse extends HepsipayFrameInitResponseData {
|
|
9
|
+
}
|
|
10
|
+
export declare type PartialHepsipayFrameInitResponse = Partial<HepsipayFrameInitResponse>;
|
|
11
|
+
export declare type ReadOnlyHepsipayFrameInitResponse = DeepReadonly<HepsipayFrameInitResponse>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class OrderGiftCardLineData {
|
|
3
|
+
amount: number;
|
|
4
|
+
code: string;
|
|
5
|
+
giftCardId: string;
|
|
6
|
+
id: string;
|
|
7
|
+
constructor(data?: Partial<OrderGiftCardLineData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class OrderGiftCardLine extends OrderGiftCardLineData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialOrderGiftCardLine = Partial<OrderGiftCardLine>;
|
|
12
|
+
export declare type ReadOnlyOrderGiftCardLine = DeepReadonly<OrderGiftCardLine>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class UpdatePaypalOrderAddressInputData {
|
|
3
|
+
city: string | null;
|
|
4
|
+
country: string | null;
|
|
5
|
+
postalCode: string | null;
|
|
6
|
+
state: string | null;
|
|
7
|
+
constructor(data?: Partial<UpdatePaypalOrderAddressInputData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class UpdatePaypalOrderAddressInput extends UpdatePaypalOrderAddressInputData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialUpdatePaypalOrderAddressInput = Partial<UpdatePaypalOrderAddressInput>;
|
|
12
|
+
export declare type ReadOnlyUpdatePaypalOrderAddressInput = DeepReadonly<UpdatePaypalOrderAddressInput>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
export declare class UpdatePaypalOrderCustomerInputData {
|
|
3
|
+
email: string | null;
|
|
4
|
+
firstName: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
lastName: string | null;
|
|
7
|
+
constructor(data?: Partial<UpdatePaypalOrderCustomerInputData>);
|
|
8
|
+
}
|
|
9
|
+
export declare class UpdatePaypalOrderCustomerInput extends UpdatePaypalOrderCustomerInputData {
|
|
10
|
+
}
|
|
11
|
+
export declare type PartialUpdatePaypalOrderCustomerInput = Partial<UpdatePaypalOrderCustomerInput>;
|
|
12
|
+
export declare type ReadOnlyUpdatePaypalOrderCustomerInput = DeepReadonly<UpdatePaypalOrderCustomerInput>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { UpdatePaypalOrderAddressInputData } from "./UpdatePaypalOrderAddressInput";
|
|
3
|
+
import { UpdatePaypalOrderCustomerInputData } from "./UpdatePaypalOrderCustomerInput";
|
|
4
|
+
export declare class UpdatePaypalOrderInputData {
|
|
5
|
+
address: UpdatePaypalOrderAddressInputData | null;
|
|
6
|
+
cartId: string;
|
|
7
|
+
customer: UpdatePaypalOrderCustomerInputData | null;
|
|
8
|
+
shippingSettingsId: string | null;
|
|
9
|
+
shippingZoneRateId: string | null;
|
|
10
|
+
transactionId: string;
|
|
11
|
+
constructor(data?: Partial<UpdatePaypalOrderInputData>);
|
|
12
|
+
}
|
|
13
|
+
export declare class UpdatePaypalOrderInput extends UpdatePaypalOrderInputData {
|
|
14
|
+
}
|
|
15
|
+
export declare type PartialUpdatePaypalOrderInput = Partial<UpdatePaypalOrderInput>;
|
|
16
|
+
export declare type ReadOnlyUpdatePaypalOrderInput = DeepReadonly<UpdatePaypalOrderInput>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
/** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
|
|
1
2
|
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
2
3
|
import { CreateSaleTransactionWithCartInput, CreatePaypalOrderResponse } from "../types";
|
|
3
4
|
declare const createPaypalOrder: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<CreatePaypalOrderResponse> | APIResponse<undefined>>;
|
|
4
5
|
export default createPaypalOrder;
|
|
5
6
|
export declare type QueryParams = {
|
|
6
7
|
input: CreateSaleTransactionWithCartInput;
|
|
8
|
+
isPayNow?: boolean | null;
|
|
7
9
|
};
|
|
8
10
|
export declare enum ResponseField {
|
|
9
11
|
FAIL_URL = "failUrl",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as
|
|
1
|
+
import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as e,fetchQuery as a}from"@ikas/fe-api-client";var i,o=function(i,o,l){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:"createPaypalOrder",config:l,variables:i,allReturnFields:s,fields:o,query:function(t){return"\n\t\t\t\tmutation createPaypalOrder (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t\t$isPayNow: Boolean,\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\tisPayNow: $isPayNow,\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 e(null==u?void 0:u.createPaypalOrder,c)];case 2:return d=n.sent(),[2,r(d)];case 3:return[2]}}))}))},s="{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,o as default};
|
|
@@ -3,7 +3,7 @@ import { CreateSaleTransactionWithCartInput, GetPaypalClientIdResponse } from ".
|
|
|
3
3
|
declare const getPaypalClientId: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<GetPaypalClientIdResponse> | APIResponse<undefined>>;
|
|
4
4
|
export default getPaypalClientId;
|
|
5
5
|
export declare type QueryParams = {
|
|
6
|
-
input
|
|
6
|
+
input?: CreateSaleTransactionWithCartInput | null;
|
|
7
7
|
};
|
|
8
8
|
export declare enum ResponseField {
|
|
9
9
|
CLIENT_ID = "clientId",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as a,fetchQuery as i}from"@ikas/fe-api-client";var r,l=function(r,l,u){return t(void 0,void 0,void 0,(function(){var t,s,c,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i({operationName:"getPaypalClientId",config:u,variables:r,allReturnFields:o,fields:l,query:function(t){return"\n\t\t\t\tmutation getPaypalClientId (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput
|
|
1
|
+
import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as a,fetchQuery as i}from"@ikas/fe-api-client";var r,l=function(r,l,u){return t(void 0,void 0,void 0,(function(){var t,s,c,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i({operationName:"getPaypalClientId",config:u,variables:r,allReturnFields:o,fields:l,query:function(t){return"\n\t\t\t\tmutation getPaypalClientId (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput,\n\t\t\t\t) {\n\t\t\t\t\tgetPaypalClientId (\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(),s=t.data,c=t.errors,[2,new a(null==s?void 0:s.getPaypalClientId,c)];case 2:return d=n.sent(),[2,e(d)];case 3:return[2]}}))}))},o="{clientId merchantClientId merchantId }";!function(t){t.CLIENT_ID="clientId",t.MERCHANT_CLIENT_ID="merchantClientId",t.MERCHANT_ID="merchantId"}(r||(r={}));export{r as ResponseField,l as default};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
|
|
2
|
+
import { ConfigType, APIResponse } from "@ikas/fe-api-client";
|
|
3
|
+
import { CreateSaleTransactionWithCartInput, HepsipayFrameInitResponse } from "../types";
|
|
4
|
+
declare const hepsipayFrameInit: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<HepsipayFrameInitResponse> | APIResponse<undefined>>;
|
|
5
|
+
export default hepsipayFrameInit;
|
|
6
|
+
export declare type QueryParams = {
|
|
7
|
+
input: CreateSaleTransactionWithCartInput;
|
|
8
|
+
};
|
|
9
|
+
export declare enum ResponseField {
|
|
10
|
+
FRAME_TOKEN = "frameToken",
|
|
11
|
+
FRAME_URL = "frameUrl",
|
|
12
|
+
TRANSACTION_ID = "transactionId"
|
|
13
|
+
}
|
|
@@ -0,0 +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,s=function(i,s,u){return t(void 0,void 0,void 0,(function(){var t,p,c,l;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,a({operationName:"hepsipayFrameInit",config:u,variables:i,allReturnFields:o,fields:s,query:function(t){return"\n\t\t\t\tmutation hepsipayFrameInit (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t) {\n\t\t\t\t\thepsipayFrameInit (\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(),p=t.data,c=t.errors,[2,new r(null==p?void 0:p.hepsipayFrameInit,c)];case 2:return l=n.sent(),[2,e(l)];case 3:return[2]}}))}))},o="{frameToken frameUrl transactionId }";!function(t){t.FRAME_TOKEN="frameToken",t.FRAME_URL="frameUrl",t.TRANSACTION_ID="transactionId"}(i||(i={}));export{i as ResponseField,s as default};
|