@ikas/storefront-api 6.1.0-beta.9 → 6.1.0-beta.90

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.
Files changed (43) hide show
  1. package/build/__api/models/CartV2.d.ts +2 -0
  2. package/build/__api/models/CheckoutSettings.d.ts +1 -0
  3. package/build/__api/models/CustomerReview.d.ts +6 -0
  4. package/build/__api/models/CustomerReviewProductModel.d.ts +15 -0
  5. package/build/__api/models/CustomerReviewReplyInfo.d.ts +10 -0
  6. package/build/__api/models/GetCustomerReviewImageUploadUrlResponse.d.ts +11 -0
  7. package/build/__api/models/HepsipayFrameInitResponse.d.ts +11 -0
  8. package/build/__api/models/OrderGiftCardLine.d.ts +12 -0
  9. package/build/__api/models/SearchInput.d.ts +1 -0
  10. package/build/__api/models/UpdatePaypalOrderAddressInput.d.ts +12 -0
  11. package/build/__api/models/UpdatePaypalOrderCustomerInput.d.ts +12 -0
  12. package/build/__api/models/UpdatePaypalOrderInput.d.ts +16 -0
  13. package/build/__api/mutations/createPaypalOrder.d.ts +2 -0
  14. package/build/__api/mutations/createPaypalOrder.js +1 -1
  15. package/build/__api/mutations/getCustomerReviewImageUploadUrl.d.ts +13 -0
  16. package/build/__api/mutations/getPaypalClientId.d.ts +1 -1
  17. package/build/__api/mutations/getPaypalClientId.js +1 -1
  18. package/build/__api/mutations/hepsipayFrameInit.d.ts +13 -0
  19. package/build/__api/mutations/hepsipayFrameInit.js +1 -0
  20. package/build/__api/mutations/removeGiftCardFromCart.d.ts +509 -0
  21. package/build/__api/mutations/removeGiftCardFromCart.js +1 -0
  22. package/build/__api/mutations/updatePaypalOrder.d.ts +8 -0
  23. package/build/__api/mutations/updatePaypalOrder.js +1 -0
  24. package/build/__api/queries/getAvailableStockLocations.d.ts +1 -0
  25. package/build/__api/queries/getAvailableStockLocations.js +1 -1
  26. package/build/__api/queries/getCartById.d.ts +2 -1
  27. package/build/__api/queries/getCartById.js +1 -1
  28. package/build/__api/queries/listCheckoutSettings.d.ts +1 -0
  29. package/build/__api/queries/listCheckoutSettings.js +1 -1
  30. package/build/__api/queries/listCustomerReviewSummary.d.ts +1 -0
  31. package/build/__api/queries/listCustomerReviews.d.ts +12 -0
  32. package/build/__api/queries/listCustomerReviews.js +1 -1
  33. package/build/__api/types/index.d.ts +64 -2
  34. package/build/__api/types/index.js +1 -1
  35. package/build/api/cart/index.d.ts +3 -1
  36. package/build/api/cart/index.js +1 -1
  37. package/build/api/checkout/index.d.ts +5 -1
  38. package/build/api/checkout/index.js +1 -1
  39. package/build/api/storefront/index.d.ts +5 -0
  40. package/build/index.d.ts +2 -2
  41. package/build/index.js +1 -1
  42. package/build/index2.js +1 -1
  43. 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>);
@@ -1,17 +1,23 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
2
  import BaseModelData from "./_base";
3
3
  import { CustomerReviewStatusEnum } from "../types";
4
+ import { CustomerReviewProductModelData } from "./CustomerReviewProductModel";
5
+ import { CustomerReviewReplyInfoData } from "./CustomerReviewReplyInfo";
4
6
  export declare class CustomerReviewData extends BaseModelData {
5
7
  comment: string | null;
6
8
  customerId: string | null;
7
9
  email: string | null;
8
10
  firstName: string | null;
9
11
  imageIds: string[] | null;
12
+ isPrivateReply: boolean | null;
10
13
  lastName: string | null;
14
+ locale: string | null;
11
15
  orderId: string | null;
12
16
  orderNumber: string | null;
17
+ product: CustomerReviewProductModelData | null;
13
18
  productId: string;
14
19
  reply: string | null;
20
+ replyInfo: CustomerReviewReplyInfoData | null;
15
21
  salesChannelId: string | null;
16
22
  star: number;
17
23
  status: CustomerReviewStatusEnum | null;
@@ -0,0 +1,15 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import { ProductTypeEnum } from "../types";
3
+ export declare class CustomerReviewProductModelData {
4
+ brandId: string | null;
5
+ categoryIds: string[] | null;
6
+ id: string | null;
7
+ tagIds: string | null;
8
+ type: ProductTypeEnum | null;
9
+ vendorId: string | null;
10
+ constructor(data?: Partial<CustomerReviewProductModelData>);
11
+ }
12
+ export declare class CustomerReviewProductModel extends CustomerReviewProductModelData {
13
+ }
14
+ export declare type PartialCustomerReviewProductModel = Partial<CustomerReviewProductModel>;
15
+ export declare type ReadOnlyCustomerReviewProductModel = DeepReadonly<CustomerReviewProductModel>;
@@ -0,0 +1,10 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ export declare class CustomerReviewReplyInfoData {
3
+ createdAt: any | null;
4
+ staffId: string | null;
5
+ constructor(data?: Partial<CustomerReviewReplyInfoData>);
6
+ }
7
+ export declare class CustomerReviewReplyInfo extends CustomerReviewReplyInfoData {
8
+ }
9
+ export declare type PartialCustomerReviewReplyInfo = Partial<CustomerReviewReplyInfo>;
10
+ export declare type ReadOnlyCustomerReviewReplyInfo = DeepReadonly<CustomerReviewReplyInfo>;
@@ -0,0 +1,11 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ export declare class GetCustomerReviewImageUploadUrlResponseData {
3
+ fields: any;
4
+ imageId: string;
5
+ uploadUrl: string;
6
+ constructor(data?: Partial<GetCustomerReviewImageUploadUrlResponseData>);
7
+ }
8
+ export declare class GetCustomerReviewImageUploadUrlResponse extends GetCustomerReviewImageUploadUrlResponseData {
9
+ }
10
+ export declare type PartialGetCustomerReviewImageUploadUrlResponse = Partial<GetCustomerReviewImageUploadUrlResponse>;
11
+ export declare type ReadOnlyGetCustomerReviewImageUploadUrlResponse = DeepReadonly<GetCustomerReviewImageUploadUrlResponse>;
@@ -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>;
@@ -6,6 +6,7 @@ import { SearchInputFilterListInputData } from "./SearchInputFilterListInput";
6
6
  import { SearchInputOrderByInputData } from "./SearchInputOrderByInput";
7
7
  export declare class SearchInputData {
8
8
  barcodeList: string[] | null;
9
+ baseCategoryIdList: string[] | null;
9
10
  brandId: string | null;
10
11
  brandIdList: string[] | null;
11
12
  categoryIdList: string[] | null;
@@ -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 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
+ 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};
@@ -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 { GetCustomerReviewImageUploadUrlResponse } from "../types";
4
+ declare const getCustomerReviewImageUploadUrl: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<undefined> | APIResponse<GetCustomerReviewImageUploadUrlResponse[]>>;
5
+ export default getCustomerReviewImageUploadUrl;
6
+ export declare type QueryParams = {
7
+ count: number;
8
+ };
9
+ export declare enum ResponseField {
10
+ FIELDS = "fields",
11
+ IMAGE_ID = "imageId",
12
+ UPLOAD_URL = "uploadUrl"
13
+ }
@@ -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: CreateSaleTransactionWithCartInput;
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!,\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};
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};