@ikas/storefront-api 6.1.0-beta.14 → 6.1.0-beta.141

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 (59) 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/ProductSearchResponse.d.ts +2 -0
  10. package/build/__api/models/SearchInput.d.ts +2 -0
  11. package/build/__api/models/SearchSuggestion.d.ts +12 -0
  12. package/build/__api/models/UpdatePaypalOrderAddressInput.d.ts +12 -0
  13. package/build/__api/models/UpdatePaypalOrderCustomerInput.d.ts +12 -0
  14. package/build/__api/models/UpdatePaypalOrderInput.d.ts +16 -0
  15. package/build/__api/mutations/createPaypalOrder.d.ts +2 -0
  16. package/build/__api/mutations/createPaypalOrder.js +1 -1
  17. package/build/__api/mutations/customerLogin.d.ts +6 -2
  18. package/build/__api/mutations/customerLogin.js +1 -1
  19. package/build/__api/mutations/getCustomerReviewImageUploadUrl.d.ts +13 -0
  20. package/build/__api/mutations/getPaypalClientId.d.ts +1 -1
  21. package/build/__api/mutations/getPaypalClientId.js +1 -1
  22. package/build/__api/mutations/hepsipayFrameInit.d.ts +13 -0
  23. package/build/__api/mutations/hepsipayFrameInit.js +1 -0
  24. package/build/__api/mutations/registerCustomer.d.ts +8 -4
  25. package/build/__api/mutations/registerCustomer.js +1 -1
  26. package/build/__api/mutations/removeGiftCardFromCart.d.ts +509 -0
  27. package/build/__api/mutations/removeGiftCardFromCart.js +1 -0
  28. package/build/__api/mutations/updatePaypalOrder.d.ts +8 -0
  29. package/build/__api/mutations/updatePaypalOrder.js +1 -0
  30. package/build/__api/mutations/validateOTPCode.d.ts +96 -0
  31. package/build/__api/mutations/validateOTPCode.js +1 -0
  32. package/build/__api/queries/getAvailableStockLocations.d.ts +1 -0
  33. package/build/__api/queries/getAvailableStockLocations.js +1 -1
  34. package/build/__api/queries/getCartById.d.ts +4 -1
  35. package/build/__api/queries/getCartById.js +1 -1
  36. package/build/__api/queries/getStoreCreditBalance.d.ts +25 -0
  37. package/build/__api/queries/getStoreCreditBalance.js +1 -0
  38. package/build/__api/queries/listCheckoutSettings.d.ts +1 -0
  39. package/build/__api/queries/listCheckoutSettings.js +1 -1
  40. package/build/__api/queries/listCustomerReviewSummary.d.ts +1 -0
  41. package/build/__api/queries/listCustomerReviews.d.ts +12 -0
  42. package/build/__api/queries/listCustomerReviews.js +1 -1
  43. package/build/__api/queries/searchProducts.d.ts +4 -0
  44. package/build/__api/queries/searchProducts.js +1 -1
  45. package/build/__api/types/index.d.ts +125 -12
  46. package/build/__api/types/index.js +1 -1
  47. package/build/api/cart/index.d.ts +3 -1
  48. package/build/api/cart/index.js +1 -1
  49. package/build/api/checkout/index.d.ts +7 -2
  50. package/build/api/checkout/index.js +1 -1
  51. package/build/api/customer/index.d.ts +29 -3
  52. package/build/api/customer/index.js +1 -1
  53. package/build/api/product/index.d.ts +1 -0
  54. package/build/api/product/index.js +1 -1
  55. package/build/api/storefront/index.d.ts +5 -0
  56. package/build/index.d.ts +2 -2
  57. package/build/index.js +1 -1
  58. package/build/index2.js +1 -1
  59. 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>;
@@ -1,6 +1,7 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
2
  import { ProductFacetCountData } from "./ProductFacetCount";
3
3
  import { SearchProductData } from "./SearchProduct";
4
+ import { SearchSuggestionData } from "./SearchSuggestion";
4
5
  export declare class ProductSearchResponseData {
5
6
  count: number;
6
7
  data: any;
@@ -8,6 +9,7 @@ export declare class ProductSearchResponseData {
8
9
  limit: number;
9
10
  page: number;
10
11
  results: SearchProductData[];
12
+ suggestions: SearchSuggestionData[] | null;
11
13
  totalCount: number;
12
14
  constructor(data?: Partial<ProductSearchResponseData>);
13
15
  }
@@ -6,10 +6,12 @@ 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;
12
13
  dynamicCurrencySettings: SearchDynamicCurrencySettingsData | null;
14
+ enableSuggestions: boolean | null;
13
15
  facetList: SearchInputFacetListInputData[] | null;
14
16
  filterList: SearchInputFilterListInputData[] | null;
15
17
  locale: string | null;
@@ -0,0 +1,12 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ export declare class SearchSuggestionData {
3
+ brandId: string | null;
4
+ categoryId: string | null;
5
+ id: string;
6
+ term: string;
7
+ constructor(data?: Partial<SearchSuggestionData>);
8
+ }
9
+ export declare class SearchSuggestion extends SearchSuggestionData {
10
+ }
11
+ export declare type PartialSearchSuggestion = Partial<SearchSuggestion>;
12
+ export declare type ReadOnlySearchSuggestion = DeepReadonly<SearchSuggestion>;
@@ -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};
@@ -1,11 +1,13 @@
1
+ /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
1
2
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
3
  import { CustomerLoginResponse } from "../types";
3
4
  declare const customerLogin: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<CustomerLoginResponse> | APIResponse<undefined>>;
4
5
  export default customerLogin;
5
6
  export declare type QueryParams = {
6
7
  captchaToken?: string | null;
7
- email: string;
8
- password: string;
8
+ email?: string | null;
9
+ password?: string | null;
10
+ phone?: string | null;
9
11
  };
10
12
  export declare enum ResponseField {
11
13
  CUSTOMER__ACCOUNT_STATUS = "customer.accountStatus",
@@ -89,6 +91,8 @@ export declare enum ResponseField {
89
91
  CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
90
92
  CUSTOMER__TAG_IDS = "customer.tagIds",
91
93
  CUSTOMER__UPDATED_AT = "customer.updatedAt",
94
+ FLOW_ID = "flowId",
95
+ OTP_SEND = "otpSend",
92
96
  TOKEN = "token",
93
97
  TOKEN_EXPIRY = "tokenExpiry"
94
98
  }
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as S}from"@ikas/fe-api-client";var E,r=function(E,r,u){return e(void 0,void 0,void 0,(function(){var e,o,d,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,S({operationName:"customerLogin",config:u,variables:E,allReturnFields:T,fields:r,query:function(e){return"\n\t\t\t\tmutation customerLogin (\n\t\t\t\t\t$captchaToken: String,\n\t\t\t\t\t$email: String!,\n\t\t\t\t\t$password: String!,\n\t\t\t\t) {\n\t\t\t\t\tcustomerLogin (\n\t\t\t\t\t\tcaptchaToken: $captchaToken,\n\t\t\t\t\t\temail: $email,\n\t\t\t\t\t\tpassword: $password,\n\t\t\t\t\t) ".concat(e,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return e=t.sent(),o=e.data,d=e.errors,[2,new s(null==o?void 0:o.customerLogin,d)];case 2:return R=t.sent(),[2,_(R)];case 3:return[2]}}))}))},T="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(e){e.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",e.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",e.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",e.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",e.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",e.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",e.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",e.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",e.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",e.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",e.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",e.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",e.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",e.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",e.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",e.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",e.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",e.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",e.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",e.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",e.CUSTOMER__ADDRESSES__ID="customer.addresses.id",e.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",e.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",e.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",e.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",e.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",e.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",e.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",e.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",e.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",e.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",e.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",e.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",e.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",e.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",e.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",e.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",e.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",e.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",e.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",e.CUSTOMER__BIRTH_DATE="customer.birthDate",e.CUSTOMER__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",e.CUSTOMER__CUSTOMER_SEGMENT_IDS="customer.customerSegmentIds",e.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",e.CUSTOMER__DELETED="customer.deleted",e.CUSTOMER__EMAIL="customer.email",e.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",e.CUSTOMER__FIRST_NAME="customer.firstName",e.CUSTOMER__FULL_NAME="customer.fullName",e.CUSTOMER__GENDER="customer.gender",e.CUSTOMER__ID="customer.id",e.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",e.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",e.CUSTOMER__LAST_NAME="customer.lastName",e.CUSTOMER__NOTE="customer.note",e.CUSTOMER__ORDER_COUNT="customer.orderCount",e.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",e.CUSTOMER__PHONE="customer.phone",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS="customer.phoneSubscriptionStatus",e.CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="customer.phoneSubscriptionStatusUpdatedAt",e.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",e.CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE="customer.priceListRules.discountRate",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",e.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",e.CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID="customer.priceListRules.priceListId",e.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",e.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",e.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",e.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS="customer.smsSubscriptionStatus",e.CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT="customer.smsSubscriptionStatusUpdatedAt",e.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",e.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",e.CUSTOMER__TAG_IDS="customer.tagIds",e.CUSTOMER__UPDATED_AT="customer.updatedAt",e.TOKEN="token",e.TOKEN_EXPIRY="tokenExpiry"}(E||(E={}));export{E as ResponseField,r as default};
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as S}from"@ikas/fe-api-client";var E,r=function(E,r,o){return t(void 0,void 0,void 0,(function(){var t,d,u,R;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,S({operationName:"customerLogin",config:o,variables:E,allReturnFields:T,fields:r,query:function(t){return"\n\t\t\t\tmutation customerLogin (\n\t\t\t\t\t$captchaToken: String,\n\t\t\t\t\t$email: String,\n\t\t\t\t\t$password: String,\n\t\t\t\t\t$phone: String,\n\t\t\t\t) {\n\t\t\t\t\tcustomerLogin (\n\t\t\t\t\t\tcaptchaToken: $captchaToken,\n\t\t\t\t\t\temail: $email,\n\t\t\t\t\t\tpassword: $password,\n\t\t\t\t\t\tphone: $phone,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),d=t.data,u=t.errors,[2,new s(null==d?void 0:d.customerLogin,u)];case 2:return R=e.sent(),[2,_(R)];case 3:return[2]}}))}))},T="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } flowId otpSend token tokenExpiry }";!function(t){t.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",t.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",t.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",t.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",t.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",t.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",t.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",t.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",t.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",t.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",t.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",t.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",t.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",t.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",t.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",t.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",t.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",t.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",t.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",t.CUSTOMER__ADDRESSES__ID="customer.addresses.id",t.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",t.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",t.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",t.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",t.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",t.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",t.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",t.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",t.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",t.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",t.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",t.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",t.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",t.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",t.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",t.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",t.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",t.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",t.CUSTOMER__BIRTH_DATE="customer.birthDate",t.CUSTOMER__CREATED_AT="customer.createdAt",t.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",t.CUSTOMER__CUSTOMER_SEGMENT_IDS="customer.customerSegmentIds",t.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",t.CUSTOMER__DELETED="customer.deleted",t.CUSTOMER__EMAIL="customer.email",t.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",t.CUSTOMER__FIRST_NAME="customer.firstName",t.CUSTOMER__FULL_NAME="customer.fullName",t.CUSTOMER__GENDER="customer.gender",t.CUSTOMER__ID="customer.id",t.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",t.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",t.CUSTOMER__LAST_NAME="customer.lastName",t.CUSTOMER__NOTE="customer.note",t.CUSTOMER__ORDER_COUNT="customer.orderCount",t.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",t.CUSTOMER__PHONE="customer.phone",t.CUSTOMER__PHONE_SUBSCRIPTION_STATUS="customer.phoneSubscriptionStatus",t.CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT="customer.phoneSubscriptionStatusUpdatedAt",t.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",t.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",t.CUSTOMER__PRICE_LIST_ID="customer.priceListId",t.CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE="customer.priceListRules.discountRate",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",t.CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID="customer.priceListRules.priceListId",t.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",t.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",t.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",t.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",t.CUSTOMER__SMS_SUBSCRIPTION_STATUS="customer.smsSubscriptionStatus",t.CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT="customer.smsSubscriptionStatusUpdatedAt",t.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",t.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",t.CUSTOMER__TAG_IDS="customer.tagIds",t.CUSTOMER__UPDATED_AT="customer.updatedAt",t.FLOW_ID="flowId",t.OTP_SEND="otpSend",t.TOKEN="token",t.TOKEN_EXPIRY="tokenExpiry"}(E||(E={}));export{E as ResponseField,r 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};
@@ -1,3 +1,4 @@
1
+ /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
1
2
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
3
  import { CustomerAttributeValueInput, CustomerLoginResponse } from "../types";
3
4
  declare const registerCustomer: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<CustomerLoginResponse> | APIResponse<undefined>>;
@@ -5,13 +6,14 @@ export default registerCustomer;
5
6
  export declare type QueryParams = {
6
7
  attributes?: CustomerAttributeValueInput[] | null;
7
8
  captchaToken?: string | null;
8
- email: string;
9
- firstName: string;
9
+ email?: string | null;
10
+ firstName?: string | null;
11
+ flowId?: string | null;
10
12
  isAcceptMarketing?: boolean | null;
11
- lastName: string;
13
+ lastName?: string | null;
12
14
  locale?: string | null;
13
15
  orderId?: string | null;
14
- password: string;
16
+ password?: string | null;
15
17
  phone?: string | null;
16
18
  preferredLanguage?: string | null;
17
19
  };
@@ -88,6 +90,8 @@ export declare enum ResponseField {
88
90
  CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
89
91
  CUSTOMER__TAG_IDS = "customer.tagIds",
90
92
  CUSTOMER__UPDATED_AT = "customer.updatedAt",
93
+ FLOW_ID = "flowId",
94
+ OTP_SEND = "otpSend",
91
95
  TOKEN = "token",
92
96
  TOKEN_EXPIRY = "tokenExpiry"
93
97
  }
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as r}from"@ikas/fe-api-client";var E,S=function(E,S,d){return t(void 0,void 0,void 0,(function(){var t,T,o,u;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,r({operationName:"registerCustomer",config:d,variables:E,allReturnFields:a,fields:S,query:function(t){return"\n\t\t\t\tmutation registerCustomer (\n\t\t\t\t\t$attributes: [CustomerAttributeValueInput!],\n\t\t\t\t\t$captchaToken: String,\n\t\t\t\t\t$email: String!,\n\t\t\t\t\t$firstName: String!,\n\t\t\t\t\t$isAcceptMarketing: Boolean,\n\t\t\t\t\t$lastName: String!,\n\t\t\t\t\t$locale: String,\n\t\t\t\t\t$orderId: String,\n\t\t\t\t\t$password: String!,\n\t\t\t\t\t$phone: String,\n\t\t\t\t\t$preferredLanguage: String,\n\t\t\t\t) {\n\t\t\t\t\tregisterCustomer (\n\t\t\t\t\t\tattributes: $attributes,\n\t\t\t\t\t\tcaptchaToken: $captchaToken,\n\t\t\t\t\t\temail: $email,\n\t\t\t\t\t\tfirstName: $firstName,\n\t\t\t\t\t\tisAcceptMarketing: $isAcceptMarketing,\n\t\t\t\t\t\tlastName: $lastName,\n\t\t\t\t\t\tlocale: $locale,\n\t\t\t\t\t\torderId: $orderId,\n\t\t\t\t\t\tpassword: $password,\n\t\t\t\t\t\tphone: $phone,\n\t\t\t\t\t\tpreferredLanguage: $preferredLanguage,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),T=t.data,o=t.errors,[2,new s(null==T?void 0:T.registerCustomer,o)];case 2:return u=e.sent(),[2,_(u)];case 3:return[2]}}))}))},a="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate preferredLanguage priceListId priceListRules {filters {type valueList } shouldMatchAllFilters value valueType } registrationSource subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";!function(t){t.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",t.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",t.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",t.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",t.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",t.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",t.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",t.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",t.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",t.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",t.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",t.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",t.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",t.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",t.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",t.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",t.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",t.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",t.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",t.CUSTOMER__ADDRESSES__ID="customer.addresses.id",t.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",t.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",t.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",t.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",t.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",t.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",t.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",t.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",t.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",t.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",t.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",t.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",t.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",t.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",t.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",t.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",t.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",t.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",t.CUSTOMER__CREATED_AT="customer.createdAt",t.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",t.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",t.CUSTOMER__DELETED="customer.deleted",t.CUSTOMER__EMAIL="customer.email",t.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",t.CUSTOMER__FIRST_NAME="customer.firstName",t.CUSTOMER__FULL_NAME="customer.fullName",t.CUSTOMER__ID="customer.id",t.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",t.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",t.CUSTOMER__LAST_NAME="customer.lastName",t.CUSTOMER__NOTE="customer.note",t.CUSTOMER__ORDER_COUNT="customer.orderCount",t.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",t.CUSTOMER__PHONE="customer.phone",t.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",t.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",t.CUSTOMER__PRICE_LIST_ID="customer.priceListId",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",t.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",t.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",t.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",t.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",t.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",t.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",t.CUSTOMER__TAG_IDS="customer.tagIds",t.CUSTOMER__UPDATED_AT="customer.updatedAt",t.TOKEN="token",t.TOKEN_EXPIRY="tokenExpiry"}(E||(E={}));export{E as ResponseField,S as default};
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as s,APIResponse as _,fetchQuery as r}from"@ikas/fe-api-client";var S,E=function(S,E,a){return t(void 0,void 0,void 0,(function(){var t,o,u,i;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,r({operationName:"registerCustomer",config:a,variables:S,allReturnFields:d,fields:E,query:function(t){return"\n\t\t\t\tmutation registerCustomer (\n\t\t\t\t\t$attributes: [CustomerAttributeValueInput!],\n\t\t\t\t\t$captchaToken: String,\n\t\t\t\t\t$email: String,\n\t\t\t\t\t$firstName: String,\n\t\t\t\t\t$flowId: String,\n\t\t\t\t\t$isAcceptMarketing: Boolean,\n\t\t\t\t\t$lastName: String,\n\t\t\t\t\t$locale: String,\n\t\t\t\t\t$orderId: String,\n\t\t\t\t\t$password: String,\n\t\t\t\t\t$phone: String,\n\t\t\t\t\t$preferredLanguage: String,\n\t\t\t\t) {\n\t\t\t\t\tregisterCustomer (\n\t\t\t\t\t\tattributes: $attributes,\n\t\t\t\t\t\tcaptchaToken: $captchaToken,\n\t\t\t\t\t\temail: $email,\n\t\t\t\t\t\tfirstName: $firstName,\n\t\t\t\t\t\tflowId: $flowId,\n\t\t\t\t\t\tisAcceptMarketing: $isAcceptMarketing,\n\t\t\t\t\t\tlastName: $lastName,\n\t\t\t\t\t\tlocale: $locale,\n\t\t\t\t\t\torderId: $orderId,\n\t\t\t\t\t\tpassword: $password,\n\t\t\t\t\t\tphone: $phone,\n\t\t\t\t\t\tpreferredLanguage: $preferredLanguage,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),o=t.data,u=t.errors,[2,new _(null==o?void 0:o.registerCustomer,u)];case 2:return i=e.sent(),[2,s(i)];case 3:return[2]}}))}))},d="{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode region {createdAt deleted id name updatedAt } state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } birthDate createdAt customerGroupIds customerSegmentIds customerSequence deleted email emailVerifiedDate firstName fullName gender id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneSubscriptionStatus phoneSubscriptionStatusUpdatedAt phoneVerifiedDate preferredLanguage priceListId priceListRules {discountRate filters {type valueList } priceListId shouldMatchAllFilters value valueType } registrationSource smsSubscriptionStatus smsSubscriptionStatusUpdatedAt subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } flowId otpSend token tokenExpiry }";!function(t){t.CUSTOMER__ACCOUNT_STATUS="customer.accountStatus",t.CUSTOMER__ACCOUNT_STATUS_UPDATED_AT="customer.accountStatusUpdatedAt",t.CUSTOMER__ADDRESSES__ADDRESS_LINE1="customer.addresses.addressLine1",t.CUSTOMER__ADDRESSES__ADDRESS_LINE2="customer.addresses.addressLine2",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.addresses.attributes.customerAttributeId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.addresses.attributes.customerAttributeOptionId",t.CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE="customer.addresses.attributes.value",t.CUSTOMER__ADDRESSES__CITY__CODE="customer.addresses.city.code",t.CUSTOMER__ADDRESSES__CITY__ID="customer.addresses.city.id",t.CUSTOMER__ADDRESSES__CITY__NAME="customer.addresses.city.name",t.CUSTOMER__ADDRESSES__COMPANY="customer.addresses.company",t.CUSTOMER__ADDRESSES__COUNTRY__CODE="customer.addresses.country.code",t.CUSTOMER__ADDRESSES__COUNTRY__ID="customer.addresses.country.id",t.CUSTOMER__ADDRESSES__COUNTRY__ISO2="customer.addresses.country.iso2",t.CUSTOMER__ADDRESSES__COUNTRY__ISO3="customer.addresses.country.iso3",t.CUSTOMER__ADDRESSES__COUNTRY__NAME="customer.addresses.country.name",t.CUSTOMER__ADDRESSES__CREATED_AT="customer.addresses.createdAt",t.CUSTOMER__ADDRESSES__DELETED="customer.addresses.deleted",t.CUSTOMER__ADDRESSES__DISTRICT__CODE="customer.addresses.district.code",t.CUSTOMER__ADDRESSES__DISTRICT__ID="customer.addresses.district.id",t.CUSTOMER__ADDRESSES__DISTRICT__NAME="customer.addresses.district.name",t.CUSTOMER__ADDRESSES__FIRST_NAME="customer.addresses.firstName",t.CUSTOMER__ADDRESSES__ID="customer.addresses.id",t.CUSTOMER__ADDRESSES__IDENTITY_NUMBER="customer.addresses.identityNumber",t.CUSTOMER__ADDRESSES__IS_DEFAULT="customer.addresses.isDefault",t.CUSTOMER__ADDRESSES__LAST_NAME="customer.addresses.lastName",t.CUSTOMER__ADDRESSES__PHONE="customer.addresses.phone",t.CUSTOMER__ADDRESSES__POSTAL_CODE="customer.addresses.postalCode",t.CUSTOMER__ADDRESSES__REGION__CREATED_AT="customer.addresses.region.createdAt",t.CUSTOMER__ADDRESSES__REGION__DELETED="customer.addresses.region.deleted",t.CUSTOMER__ADDRESSES__REGION__ID="customer.addresses.region.id",t.CUSTOMER__ADDRESSES__REGION__NAME="customer.addresses.region.name",t.CUSTOMER__ADDRESSES__REGION__UPDATED_AT="customer.addresses.region.updatedAt",t.CUSTOMER__ADDRESSES__STATE__CODE="customer.addresses.state.code",t.CUSTOMER__ADDRESSES__STATE__ID="customer.addresses.state.id",t.CUSTOMER__ADDRESSES__STATE__NAME="customer.addresses.state.name",t.CUSTOMER__ADDRESSES__TAX_NUMBER="customer.addresses.taxNumber",t.CUSTOMER__ADDRESSES__TAX_OFFICE="customer.addresses.taxOffice",t.CUSTOMER__ADDRESSES__TITLE="customer.addresses.title",t.CUSTOMER__ADDRESSES__UPDATED_AT="customer.addresses.updatedAt",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID="customer.attributes.customerAttributeId",t.CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID="customer.attributes.customerAttributeOptionId",t.CUSTOMER__ATTRIBUTES__VALUE="customer.attributes.value",t.CUSTOMER__CREATED_AT="customer.createdAt",t.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",t.CUSTOMER__CUSTOMER_SEQUENCE="customer.customerSequence",t.CUSTOMER__DELETED="customer.deleted",t.CUSTOMER__EMAIL="customer.email",t.CUSTOMER__EMAIL_VERIFIED_DATE="customer.emailVerifiedDate",t.CUSTOMER__FIRST_NAME="customer.firstName",t.CUSTOMER__FULL_NAME="customer.fullName",t.CUSTOMER__ID="customer.id",t.CUSTOMER__IS_EMAIL_VERIFIED="customer.isEmailVerified",t.CUSTOMER__IS_PHONE_VERIFIED="customer.isPhoneVerified",t.CUSTOMER__LAST_NAME="customer.lastName",t.CUSTOMER__NOTE="customer.note",t.CUSTOMER__ORDER_COUNT="customer.orderCount",t.CUSTOMER__PASSWORD_UPDATE_DATE="customer.passwordUpdateDate",t.CUSTOMER__PHONE="customer.phone",t.CUSTOMER__PHONE_VERIFIED_DATE="customer.phoneVerifiedDate",t.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",t.CUSTOMER__PRICE_LIST_ID="customer.priceListId",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE="customer.priceListRules.filters.type",t.CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST="customer.priceListRules.filters.valueList",t.CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS="customer.priceListRules.shouldMatchAllFilters",t.CUSTOMER__PRICE_LIST_RULES__VALUE="customer.priceListRules.value",t.CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE="customer.priceListRules.valueType",t.CUSTOMER__REGISTRATION_SOURCE="customer.registrationSource",t.CUSTOMER__SUBSCRIPTION_STATUS="customer.subscriptionStatus",t.CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT="customer.subscriptionStatusUpdatedAt",t.CUSTOMER__TAG_IDS="customer.tagIds",t.CUSTOMER__UPDATED_AT="customer.updatedAt",t.FLOW_ID="flowId",t.OTP_SEND="otpSend",t.TOKEN="token",t.TOKEN_EXPIRY="tokenExpiry"}(S||(S={}));export{S as ResponseField,E as default};