@ikas/storefront-api 4.15.0-beta.8 → 4.15.0-beta.80

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 (69) hide show
  1. package/build/__api/models/CreateAdyenPlatformSessionResponse.d.ts +13 -0
  2. package/build/__api/models/CreateCustomerReviewInput.d.ts +1 -0
  3. package/build/__api/models/CreateKlarnaTokenResponse.d.ts +1 -0
  4. package/build/__api/models/CreatePaypalOrderResponse.d.ts +1 -0
  5. package/build/__api/models/CreateStripePaymentIntentResponse.d.ts +1 -0
  6. package/build/__api/models/Customer.d.ts +8 -1
  7. package/build/__api/models/CustomerRegisterSubscriptionInput.d.ts +11 -0
  8. package/build/__api/models/GetAvailableStockLocationAddress.d.ts +2 -1
  9. package/build/__api/models/GetAvailableStockLocationAddressCountry.d.ts +13 -0
  10. package/build/__api/models/SaveCustomerFormDataInput.d.ts +19 -0
  11. package/build/__api/models/SaveMyCustomerInput.d.ts +5 -1
  12. package/build/__api/models/SaveMyCustomerInput.js +1 -1
  13. package/build/__api/models/SearchProduct.d.ts +2 -0
  14. package/build/__api/models/SearchProductGroup.d.ts +2 -0
  15. package/build/__api/models/SearchProductGroupOrder.d.ts +10 -0
  16. package/build/__api/models/SearchProductSalesChannel.d.ts +15 -0
  17. package/build/__api/models/StorefrontPopup.d.ts +27 -0
  18. package/build/__api/models/StorefrontPopupAnalytics.d.ts +11 -0
  19. package/build/__api/models/StorefrontPopupDateFilter.d.ts +10 -0
  20. package/build/__api/models/StorefrontPopupDisplayFilter.d.ts +12 -0
  21. package/build/__api/models/StorefrontPopupDisplaySettings.d.ts +12 -0
  22. package/build/__api/models/StorefrontPopupPageFilter.d.ts +12 -0
  23. package/build/__api/models/StorefrontPopupPageFilterData.d.ts +11 -0
  24. package/build/__api/models/StorefrontPopupRouting.d.ts +10 -0
  25. package/build/__api/mutations/createAdyenBalancePlatformPaymentSession.d.ts +14 -0
  26. package/build/__api/mutations/createAdyenBalancePlatformPaymentSession.js +1 -0
  27. package/build/__api/mutations/createAdyenPaymentSession.d.ts +1 -1
  28. package/build/__api/mutations/createCustomerReview.d.ts +1 -0
  29. package/build/__api/mutations/createCustomerReview.js +1 -1
  30. package/build/__api/mutations/createKlarnaClientToken.d.ts +1 -0
  31. package/build/__api/mutations/createKlarnaClientToken.js +1 -1
  32. package/build/__api/mutations/createPaypalOrder.d.ts +1 -0
  33. package/build/__api/mutations/createPaypalOrder.js +1 -1
  34. package/build/__api/mutations/createStripePaymentIntent.d.ts +2 -1
  35. package/build/__api/mutations/createStripePaymentIntent.js +1 -1
  36. package/build/__api/mutations/customerLogin.d.ts +9 -0
  37. package/build/__api/mutations/customerLogin.js +1 -1
  38. package/build/__api/mutations/saveCustomerFormData.d.ts +7 -0
  39. package/build/__api/mutations/saveCustomerFormData.js +1 -0
  40. package/build/__api/mutations/saveMyCustomer.d.ts +9 -0
  41. package/build/__api/mutations/saveMyCustomer.js +1 -1
  42. package/build/__api/queries/customerSocialLogin.d.ts +9 -0
  43. package/build/__api/queries/customerSocialLogin.js +1 -1
  44. package/build/__api/queries/getAvailableStockLocations.d.ts +2 -0
  45. package/build/__api/queries/getAvailableStockLocations.js +1 -1
  46. package/build/__api/queries/getMyCustomer.d.ts +9 -0
  47. package/build/__api/queries/getMyCustomer.js +1 -1
  48. package/build/__api/queries/listCustomerReviews.d.ts +1 -0
  49. package/build/__api/queries/listCustomerReviews.js +1 -1
  50. package/build/__api/queries/listStorefrontPopup.d.ts +34 -0
  51. package/build/__api/queries/listStorefrontPopup.js +1 -0
  52. package/build/__api/queries/searchProducts.d.ts +8 -0
  53. package/build/__api/queries/searchProducts.js +1 -1
  54. package/build/__api/types/index.d.ts +164 -1
  55. package/build/__api/types/index.js +1 -1
  56. package/build/api/checkout/index.d.ts +3 -3
  57. package/build/api/checkout/index.js +1 -1
  58. package/build/api/customer/index.d.ts +19 -2
  59. package/build/api/customer/index.js +1 -1
  60. package/build/api/product/index.d.ts +1 -1
  61. package/build/api/product/index.js +1 -1
  62. package/build/api/storefront/index.d.ts +2 -1
  63. package/build/api/storefront-popup/index.d.ts +5 -0
  64. package/build/api/storefront-popup/index.js +1 -0
  65. package/build/index.d.ts +3 -2
  66. package/build/index.js +1 -1
  67. package/build/index2.js +1 -1
  68. package/package.json +5 -5
  69. 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>;
@@ -6,6 +6,7 @@ export declare class CreateCustomerReviewInputData extends BaseModelData {
6
6
  email: string | null;
7
7
  firstName: string | null;
8
8
  lastName: string | null;
9
+ locale: string | null;
9
10
  orderId: string | null;
10
11
  orderNumber: string | null;
11
12
  productId: string;
@@ -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>);
@@ -1,5 +1,6 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
2
  export declare class CreatePaypalOrderResponseData {
3
+ failUrl: string;
3
4
  returnUrl: string;
4
5
  sessionToken: string;
5
6
  transactionId: string;
@@ -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 {
@@ -1,6 +1,6 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
2
  import BaseModelData from "./_base";
3
- import { CustomerAccountStatusEnum, CustomerRegistrationSourceEnum, CustomerEmailSubscriptionStatusesEnum } from "../types";
3
+ import { CustomerAccountStatusEnum, CustomerGenderTypeEnum, CustomerEmailSubscriptionStatusesEnum, CustomerRegistrationSourceEnum } from "../types";
4
4
  import { CustomerAddressData } from "./CustomerAddress";
5
5
  import { CustomerAttributeValueData } from "./CustomerAttributeValue";
6
6
  import { CustomerPriceListRuleData } from "./CustomerPriceListRule";
@@ -9,12 +9,15 @@ export declare class CustomerData extends BaseModelData {
9
9
  accountStatusUpdatedAt: any | null;
10
10
  addresses: CustomerAddressData[] | null;
11
11
  attributes: CustomerAttributeValueData[] | null;
12
+ birthDate: any | null;
12
13
  customerGroupIds: string[] | null;
14
+ customerSegmentIds: string[] | null;
13
15
  customerSequence: number | null;
14
16
  email: string | null;
15
17
  emailVerifiedDate: any | null;
16
18
  firstName: string;
17
19
  fullName: string | null;
20
+ gender: CustomerGenderTypeEnum | null;
18
21
  isEmailVerified: boolean | null;
19
22
  isPhoneVerified: boolean | null;
20
23
  lastName: string | null;
@@ -22,11 +25,15 @@ export declare class CustomerData extends BaseModelData {
22
25
  orderCount: number | null;
23
26
  passwordUpdateDate: any | null;
24
27
  phone: string | null;
28
+ phoneSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
29
+ phoneSubscriptionStatusUpdatedAt: any | null;
25
30
  phoneVerifiedDate: any | null;
26
31
  preferredLanguage: string | null;
27
32
  priceListId: string | null;
28
33
  priceListRules: CustomerPriceListRuleData[] | null;
29
34
  registrationSource: CustomerRegistrationSourceEnum | null;
35
+ smsSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
36
+ smsSubscriptionStatusUpdatedAt: any | null;
30
37
  subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
31
38
  subscriptionStatusUpdatedAt: any | null;
32
39
  tagIds: string[] | null;
@@ -0,0 +1,11 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ export declare class CustomerRegisterSubscriptionInputData {
3
+ email: boolean;
4
+ phone: boolean;
5
+ sms: boolean;
6
+ constructor(data?: Partial<CustomerRegisterSubscriptionInputData>);
7
+ }
8
+ export declare class CustomerRegisterSubscriptionInput extends CustomerRegisterSubscriptionInputData {
9
+ }
10
+ export declare type PartialCustomerRegisterSubscriptionInput = Partial<CustomerRegisterSubscriptionInput>;
11
+ export declare type ReadOnlyCustomerRegisterSubscriptionInput = DeepReadonly<CustomerRegisterSubscriptionInput>;
@@ -1,9 +1,10 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
2
  import { GetAvailableStockLocationAddressCityData } from "./GetAvailableStockLocationAddressCity";
3
+ import { GetAvailableStockLocationAddressCountryData } from "./GetAvailableStockLocationAddressCountry";
3
4
  export declare class GetAvailableStockLocationAddressData {
4
5
  address: string | null;
5
6
  city: GetAvailableStockLocationAddressCityData | null;
6
- country: GetAvailableStockLocationAddressCityData | null;
7
+ country: GetAvailableStockLocationAddressCountryData | null;
7
8
  district: GetAvailableStockLocationAddressCityData | null;
8
9
  phone: string | null;
9
10
  postalCode: string | null;
@@ -0,0 +1,13 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ export declare class GetAvailableStockLocationAddressCountryData {
3
+ code: string | null;
4
+ id: string | null;
5
+ iso2: string | null;
6
+ iso3: string | null;
7
+ name: string | null;
8
+ constructor(data?: Partial<GetAvailableStockLocationAddressCountryData>);
9
+ }
10
+ export declare class GetAvailableStockLocationAddressCountry extends GetAvailableStockLocationAddressCountryData {
11
+ }
12
+ export declare type PartialGetAvailableStockLocationAddressCountry = Partial<GetAvailableStockLocationAddressCountry>;
13
+ export declare type ReadOnlyGetAvailableStockLocationAddressCountry = DeepReadonly<GetAvailableStockLocationAddressCountry>;
@@ -0,0 +1,19 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import { CustomerGenderTypeEnum } from "../types";
3
+ import { CustomerRegisterSubscriptionInputData } from "./CustomerRegisterSubscriptionInput";
4
+ export declare class SaveCustomerFormDataInputData {
5
+ birthDate: any | null;
6
+ captchaToken: string | null;
7
+ email: string;
8
+ firstName: string | null;
9
+ gender: CustomerGenderTypeEnum | null;
10
+ lastName: string | null;
11
+ phone: string | null;
12
+ storefrontPopupId: string | null;
13
+ subscriptions: CustomerRegisterSubscriptionInputData | null;
14
+ constructor(data?: Partial<SaveCustomerFormDataInputData>);
15
+ }
16
+ export declare class SaveCustomerFormDataInput extends SaveCustomerFormDataInputData {
17
+ }
18
+ export declare type PartialSaveCustomerFormDataInput = Partial<SaveCustomerFormDataInput>;
19
+ export declare type ReadOnlySaveCustomerFormDataInput = DeepReadonly<SaveCustomerFormDataInput>;
@@ -1,13 +1,17 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
- import { CustomerEmailSubscriptionStatusesEnum } from "../types";
2
+ import { CustomerGenderTypeEnum, CustomerEmailSubscriptionStatusesEnum } from "../types";
3
3
  import { SaveMyCustomerAddressInputData } from "./SaveMyCustomerAddressInput";
4
4
  import { CustomerAttributeValueInputData } from "./CustomerAttributeValueInput";
5
5
  export declare class SaveMyCustomerInputData {
6
6
  addresses: SaveMyCustomerAddressInputData[] | null;
7
7
  attributes: CustomerAttributeValueInputData[] | null;
8
+ birthDate: any | null;
8
9
  firstName: string;
10
+ gender: CustomerGenderTypeEnum | null;
9
11
  lastName: string;
10
12
  phone: string | null;
13
+ phoneSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
14
+ smsSubscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
11
15
  subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
12
16
  constructor(data?: Partial<SaveMyCustomerInputData>);
13
17
  }
@@ -1 +1 @@
1
- import{__extends as t}from'./../../ext/tslib/tslib.es6.js';import{SaveMyCustomerAddressInputData as s}from"./SaveMyCustomerAddressInput.js";import{CustomerAttributeValueInputData as e}from"./CustomerAttributeValueInput.js";var r=function(t){void 0===t&&(t={}),this.addresses=t.addresses?t.addresses.map((function(t){return new s(t)})):null,this.attributes=t.attributes?t.attributes.map((function(t){return new e(t)})):null,this.firstName=t.firstName||"",this.lastName=t.lastName||"",this.phone=t.phone||null,this.subscriptionStatus=t.subscriptionStatus||null},i=function(s){function e(){return null!==s&&s.apply(this,arguments)||this}return t(e,s),e}(r);export{i as SaveMyCustomerInput,r as SaveMyCustomerInputData};
1
+ import{__extends as t}from'./../../ext/tslib/tslib.es6.js';import{SaveMyCustomerAddressInputData as s}from"./SaveMyCustomerAddressInput.js";import{CustomerAttributeValueInputData as i}from"./CustomerAttributeValueInput.js";var n=function(t){void 0===t&&(t={}),this.addresses=t.addresses?t.addresses.map((function(t){return new s(t)})):null,this.attributes=t.attributes?t.attributes.map((function(t){return new i(t)})):null,this.birthDate=t.birthDate||null,this.firstName=t.firstName||"",this.gender=t.gender||null,this.lastName=t.lastName||"",this.phone=t.phone||null,this.phoneSubscriptionStatus=t.phoneSubscriptionStatus||null,this.smsSubscriptionStatus=t.smsSubscriptionStatus||null,this.subscriptionStatus=t.subscriptionStatus||null},u=function(s){function i(){return null!==s&&s.apply(this,arguments)||this}return t(i,s),i}(n);export{u as SaveMyCustomerInput,n as SaveMyCustomerInputData};
@@ -10,6 +10,7 @@ import { ProductSearchCustomerReviewSummariesData } from "./ProductSearchCustome
10
10
  import { SearchHTMLMetaDataData } from "./SearchHTMLMetaData";
11
11
  import { SearchProductGroupData } from "./SearchProductGroup";
12
12
  import { SearchProductVariantTypeData } from "./SearchProductVariantType";
13
+ import { SearchProductSalesChannelData } from "./SearchProductSalesChannel";
13
14
  import { SearchProductCustomerReviewStarData } from "./SearchProductCustomerReviewStar";
14
15
  import { SearchProductTagData } from "./SearchProductTag";
15
16
  import { ProductTranslationData } from "./ProductTranslation";
@@ -35,6 +36,7 @@ export declare class SearchProductData extends BaseModelData {
35
36
  productVolumeDiscountId: string | null;
36
37
  reviewCount: number | null;
37
38
  salesChannelIds: string[] | null;
39
+ salesChannels: SearchProductSalesChannelData[] | null;
38
40
  shortDescription: string | null;
39
41
  stars: SearchProductCustomerReviewStarData[] | null;
40
42
  tags: SearchProductTagData[] | null;
@@ -1,10 +1,12 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
+ import { SearchProductGroupOrderData } from "./SearchProductGroupOrder";
2
3
  import { SearchProductGroupTranslationData } from "./SearchProductGroupTranslation";
3
4
  import { SearchProductGroupValueTypeData } from "./SearchProductGroupValueType";
4
5
  export declare class SearchProductGroupData {
5
6
  groupKey: string;
6
7
  id: string;
7
8
  name: string;
9
+ order: SearchProductGroupOrderData | null;
8
10
  translations: SearchProductGroupTranslationData[] | null;
9
11
  values: SearchProductGroupValueTypeData[];
10
12
  constructor(data?: Partial<SearchProductGroupData>);
@@ -0,0 +1,10 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ export declare class SearchProductGroupOrderData {
3
+ orderAttributeId: string;
4
+ value: string;
5
+ constructor(data?: Partial<SearchProductGroupOrderData>);
6
+ }
7
+ export declare class SearchProductGroupOrder extends SearchProductGroupOrderData {
8
+ }
9
+ export declare type PartialSearchProductGroupOrder = Partial<SearchProductGroupOrder>;
10
+ export declare type ReadOnlySearchProductGroupOrder = DeepReadonly<SearchProductGroupOrder>;
@@ -0,0 +1,15 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import { SalesChannelStatusEnum } from "../types";
3
+ export declare class SearchProductSalesChannelData {
4
+ id: string;
5
+ maxQuantityPerCart: number | null;
6
+ minQuantityPerCart: number | null;
7
+ productVolumeDiscountId: string | null;
8
+ quantitySettings: number[] | null;
9
+ status: SalesChannelStatusEnum;
10
+ constructor(data?: Partial<SearchProductSalesChannelData>);
11
+ }
12
+ export declare class SearchProductSalesChannel extends SearchProductSalesChannelData {
13
+ }
14
+ export declare type PartialSearchProductSalesChannel = Partial<SearchProductSalesChannel>;
15
+ export declare type ReadOnlySearchProductSalesChannel = DeepReadonly<SearchProductSalesChannel>;
@@ -0,0 +1,27 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import BaseModelData from "./_base";
3
+ import { StorefrontPopupStatusEnum, StorefrontPopupTypeEnum, StorefrontPopupDeviceTypeEnum } from "../types";
4
+ import { StorefrontPopupAnalyticsData } from "./StorefrontPopupAnalytics";
5
+ import { StorefrontPopupDateFilterData } from "./StorefrontPopupDateFilter";
6
+ import { StorefrontPopupDisplayFilterData } from "./StorefrontPopupDisplayFilter";
7
+ import { StorefrontPopupDisplaySettingsData } from "./StorefrontPopupDisplaySettings";
8
+ import { StorefrontPopupPageFilterData } from "./StorefrontPopupPageFilter";
9
+ import { StorefrontPopupRoutingData } from "./StorefrontPopupRouting";
10
+ export declare class StorefrontPopupData extends BaseModelData {
11
+ analytics: StorefrontPopupAnalyticsData | null;
12
+ contentJson: any | null;
13
+ dateFilter: StorefrontPopupDateFilterData | null;
14
+ displayFilters: StorefrontPopupDisplayFilterData[] | null;
15
+ displaySettings: StorefrontPopupDisplaySettingsData;
16
+ name: string;
17
+ pageFilters: StorefrontPopupPageFilterData[] | null;
18
+ status: StorefrontPopupStatusEnum;
19
+ storefrontRoutings: StorefrontPopupRoutingData[];
20
+ type: StorefrontPopupTypeEnum;
21
+ visibleDevice: StorefrontPopupDeviceTypeEnum;
22
+ constructor(data?: Partial<StorefrontPopupData>);
23
+ }
24
+ export declare class StorefrontPopup extends StorefrontPopupData {
25
+ }
26
+ export declare type PartialStorefrontPopup = Partial<StorefrontPopup>;
27
+ export declare type ReadOnlyStorefrontPopup = DeepReadonly<StorefrontPopup>;
@@ -0,0 +1,11 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ export declare class StorefrontPopupAnalyticsData {
3
+ click: number;
4
+ display: number;
5
+ submission: number;
6
+ constructor(data?: Partial<StorefrontPopupAnalyticsData>);
7
+ }
8
+ export declare class StorefrontPopupAnalytics extends StorefrontPopupAnalyticsData {
9
+ }
10
+ export declare type PartialStorefrontPopupAnalytics = Partial<StorefrontPopupAnalytics>;
11
+ export declare type ReadOnlyStorefrontPopupAnalytics = DeepReadonly<StorefrontPopupAnalytics>;
@@ -0,0 +1,10 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ export declare class StorefrontPopupDateFilterData {
3
+ endDate: any | null;
4
+ startDate: any | null;
5
+ constructor(data?: Partial<StorefrontPopupDateFilterData>);
6
+ }
7
+ export declare class StorefrontPopupDateFilter extends StorefrontPopupDateFilterData {
8
+ }
9
+ export declare type PartialStorefrontPopupDateFilter = Partial<StorefrontPopupDateFilter>;
10
+ export declare type ReadOnlyStorefrontPopupDateFilter = DeepReadonly<StorefrontPopupDateFilter>;
@@ -0,0 +1,12 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import { StorefrontPopupDisplayFilterTypeEnum } from "../types";
3
+ export declare class StorefrontPopupDisplayFilterData {
4
+ operator: string;
5
+ type: StorefrontPopupDisplayFilterTypeEnum;
6
+ value: string;
7
+ constructor(data?: Partial<StorefrontPopupDisplayFilterData>);
8
+ }
9
+ export declare class StorefrontPopupDisplayFilter extends StorefrontPopupDisplayFilterData {
10
+ }
11
+ export declare type PartialStorefrontPopupDisplayFilter = Partial<StorefrontPopupDisplayFilter>;
12
+ export declare type ReadOnlyStorefrontPopupDisplayFilter = DeepReadonly<StorefrontPopupDisplayFilter>;
@@ -0,0 +1,12 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import { StorefrontPopupDisplayFrequencyEnum, StorefrontPopupDisplayTriggerTypeEnum } from "../types";
3
+ export declare class StorefrontPopupDisplaySettingsData {
4
+ frequency: StorefrontPopupDisplayFrequencyEnum;
5
+ triggerType: StorefrontPopupDisplayTriggerTypeEnum;
6
+ triggerValue: number | null;
7
+ constructor(data?: Partial<StorefrontPopupDisplaySettingsData>);
8
+ }
9
+ export declare class StorefrontPopupDisplaySettings extends StorefrontPopupDisplaySettingsData {
10
+ }
11
+ export declare type PartialStorefrontPopupDisplaySettings = Partial<StorefrontPopupDisplaySettings>;
12
+ export declare type ReadOnlyStorefrontPopupDisplaySettings = DeepReadonly<StorefrontPopupDisplaySettings>;
@@ -0,0 +1,12 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import { StorefrontPopupPageFilterTypeEnum } from "../types";
3
+ import { StorefrontPopupPageFilterDataData } from "./StorefrontPopupPageFilterData";
4
+ export declare class StorefrontPopupPageFilterData {
5
+ filters: StorefrontPopupPageFilterDataData[] | null;
6
+ pageType: StorefrontPopupPageFilterTypeEnum;
7
+ constructor(data?: Partial<StorefrontPopupPageFilterData>);
8
+ }
9
+ export declare class StorefrontPopupPageFilter extends StorefrontPopupPageFilterData {
10
+ }
11
+ export declare type PartialStorefrontPopupPageFilter = Partial<StorefrontPopupPageFilter>;
12
+ export declare type ReadOnlyStorefrontPopupPageFilter = DeepReadonly<StorefrontPopupPageFilter>;
@@ -0,0 +1,11 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import { StorefrontPopupPageFilterDataTypeEnum } from "../types";
3
+ export declare class StorefrontPopupPageFilterDataData {
4
+ type: StorefrontPopupPageFilterDataTypeEnum;
5
+ value: string;
6
+ constructor(data?: Partial<StorefrontPopupPageFilterDataData>);
7
+ }
8
+ export declare class StorefrontPopupPageFilterData extends StorefrontPopupPageFilterDataData {
9
+ }
10
+ export declare type PartialStorefrontPopupPageFilterData = Partial<StorefrontPopupPageFilterData>;
11
+ export declare type ReadOnlyStorefrontPopupPageFilterData = DeepReadonly<StorefrontPopupPageFilterData>;
@@ -0,0 +1,10 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ export declare class StorefrontPopupRoutingData {
3
+ storefrontId: string;
4
+ storefrontRoutingId: string;
5
+ constructor(data?: Partial<StorefrontPopupRoutingData>);
6
+ }
7
+ export declare class StorefrontPopupRouting extends StorefrontPopupRoutingData {
8
+ }
9
+ export declare type PartialStorefrontPopupRouting = Partial<StorefrontPopupRouting>;
10
+ export declare type ReadOnlyStorefrontPopupRouting = DeepReadonly<StorefrontPopupRouting>;
@@ -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<CreateAdyenSessionResponse> | APIResponse<undefined>>;
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;
@@ -15,6 +15,7 @@ export declare enum ResponseField {
15
15
  ID = "id",
16
16
  IMAGE_IDS = "imageIds",
17
17
  LAST_NAME = "lastName",
18
+ LOCALE = "locale",
18
19
  ORDER_ID = "orderId",
19
20
  ORDER_NUMBER = "orderNumber",
20
21
  PRODUCT_ID = "productId",
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as n,fetchQuery as a}from"@ikas/fe-api-client";var s,i=function(s,i,d){return t(void 0,void 0,void 0,(function(){var t,u,l,m;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a({operationName:"createCustomerReview",config:d,variables:s,allReturnFields:o,fields:i,query:function(t){return"\n\t\t\t\tmutation createCustomerReview (\n\t\t\t\t\t$input: CreateCustomerReviewInput!,\n\t\t\t\t) {\n\t\t\t\t\tcreateCustomerReview (\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,l=t.errors,[2,new n(null==u?void 0:u.createCustomerReview,l)];case 2:return m=e.sent(),[2,r(m)];case 3:return[2]}}))}))},o="{comment createdAt customerId deleted email firstName id imageIds lastName orderId orderNumber productId reply salesChannelId star status storefrontId title updatedAt }";!function(t){t.COMMENT="comment",t.CREATED_AT="createdAt",t.CUSTOMER_ID="customerId",t.DELETED="deleted",t.EMAIL="email",t.FIRST_NAME="firstName",t.ID="id",t.IMAGE_IDS="imageIds",t.LAST_NAME="lastName",t.ORDER_ID="orderId",t.ORDER_NUMBER="orderNumber",t.PRODUCT_ID="productId",t.REPLY="reply",t.SALES_CHANNEL_ID="salesChannelId",t.STAR="star",t.STATUS="status",t.STOREFRONT_ID="storefrontId",t.TITLE="title",t.UPDATED_AT="updatedAt"}(s||(s={}));export{s as ResponseField,i as default};
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as a,fetchQuery as n}from"@ikas/fe-api-client";var s,o=function(s,o,d){return t(void 0,void 0,void 0,(function(){var t,u,l,c;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n({operationName:"createCustomerReview",config:d,variables:s,allReturnFields:i,fields:o,query:function(t){return"\n\t\t\t\tmutation createCustomerReview (\n\t\t\t\t\t$input: CreateCustomerReviewInput!,\n\t\t\t\t) {\n\t\t\t\t\tcreateCustomerReview (\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,l=t.errors,[2,new a(null==u?void 0:u.createCustomerReview,l)];case 2:return c=e.sent(),[2,r(c)];case 3:return[2]}}))}))},i="{comment createdAt customerId deleted email firstName id imageIds lastName locale orderId orderNumber productId reply salesChannelId star status storefrontId title updatedAt }";!function(t){t.COMMENT="comment",t.CREATED_AT="createdAt",t.CUSTOMER_ID="customerId",t.DELETED="deleted",t.EMAIL="email",t.FIRST_NAME="firstName",t.ID="id",t.IMAGE_IDS="imageIds",t.LAST_NAME="lastName",t.LOCALE="locale",t.ORDER_ID="orderId",t.ORDER_NUMBER="orderNumber",t.PRODUCT_ID="productId",t.REPLY="reply",t.SALES_CHANNEL_ID="salesChannelId",t.STAR="star",t.STATUS="status",t.STOREFRONT_ID="storefrontId",t.TITLE="title",t.UPDATED_AT="updatedAt"}(s||(s={}));export{s as ResponseField,o as default};
@@ -8,6 +8,7 @@ export declare type QueryParams = {
8
8
  export declare enum ResponseField {
9
9
  AUTHORIZE_URL = "authorizeUrl",
10
10
  CLIENT_TOKEN = "clientToken",
11
+ FAIL_URL = "failUrl",
11
12
  SESSION_ID = "sessionId",
12
13
  TRANSACTION_ID = "transactionId"
13
14
  }
@@ -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,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:"createKlarnaClientToken",config:l,variables:i,allReturnFields:s,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]}}))}))},s="{authorizeUrl clientToken sessionId transactionId }";!function(t){t.AUTHORIZE_URL="authorizeUrl",t.CLIENT_TOKEN="clientToken",t.SESSION_ID="sessionId",t.TRANSACTION_ID="transactionId"}(i||(i={}));export{i as ResponseField,o as default};
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};
@@ -6,6 +6,7 @@ export declare type QueryParams = {
6
6
  input: CreateSaleTransactionWithCartInput;
7
7
  };
8
8
  export declare enum ResponseField {
9
+ FAIL_URL = "failUrl",
9
10
  RETURN_URL = "returnUrl",
10
11
  SESSION_TOKEN = "sessionToken",
11
12
  TRANSACTION_ID = "transactionId"
@@ -1 +1 @@
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,s=function(i,s,u){return t(void 0,void 0,void 0,(function(){var t,c,l,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,a({operationName:"createPaypalOrder",config:u,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=n.sent(),c=t.data,l=t.errors,[2,new e(null==c?void 0:c.createPaypalOrder,l)];case 2:return d=n.sent(),[2,r(d)];case 3:return[2]}}))}))},o="{returnUrl sessionToken transactionId }";!function(t){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 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};
@@ -9,5 +9,6 @@ export declare enum ResponseField {
9
9
  ACCOUNT_ID = "accountId",
10
10
  API_KEY = "apiKey",
11
11
  CALLBACK_URL = "callbackUrl",
12
- CLIENT_SECRET = "clientSecret"
12
+ CLIENT_SECRET = "clientSecret",
13
+ FAIL_URL = "failUrl"
13
14
  }
@@ -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,u){return t(void 0,void 0,void 0,(function(){var t,l,s,p;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a({operationName:"createStripePaymentIntent",config:u,variables:i,allReturnFields:o,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(),l=t.data,s=t.errors,[2,new r(null==l?void 0:l.createStripePaymentIntent,s)];case 2:return p=e.sent(),[2,n(p)];case 3:return[2]}}))}))},o="{accountId apiKey callbackUrl clientSecret }";!function(t){t.ACCOUNT_ID="accountId",t.API_KEY="apiKey",t.CALLBACK_URL="callbackUrl",t.CLIENT_SECRET="clientSecret"}(i||(i={}));export{i as ResponseField,c as default};
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};
@@ -51,14 +51,17 @@ export declare enum ResponseField {
51
51
  CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "customer.attributes.customerAttributeId",
52
52
  CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "customer.attributes.customerAttributeOptionId",
53
53
  CUSTOMER__ATTRIBUTES__VALUE = "customer.attributes.value",
54
+ CUSTOMER__BIRTH_DATE = "customer.birthDate",
54
55
  CUSTOMER__CREATED_AT = "customer.createdAt",
55
56
  CUSTOMER__CUSTOMER_GROUP_IDS = "customer.customerGroupIds",
57
+ CUSTOMER__CUSTOMER_SEGMENT_IDS = "customer.customerSegmentIds",
56
58
  CUSTOMER__CUSTOMER_SEQUENCE = "customer.customerSequence",
57
59
  CUSTOMER__DELETED = "customer.deleted",
58
60
  CUSTOMER__EMAIL = "customer.email",
59
61
  CUSTOMER__EMAIL_VERIFIED_DATE = "customer.emailVerifiedDate",
60
62
  CUSTOMER__FIRST_NAME = "customer.firstName",
61
63
  CUSTOMER__FULL_NAME = "customer.fullName",
64
+ CUSTOMER__GENDER = "customer.gender",
62
65
  CUSTOMER__ID = "customer.id",
63
66
  CUSTOMER__IS_EMAIL_VERIFIED = "customer.isEmailVerified",
64
67
  CUSTOMER__IS_PHONE_VERIFIED = "customer.isPhoneVerified",
@@ -67,15 +70,21 @@ export declare enum ResponseField {
67
70
  CUSTOMER__ORDER_COUNT = "customer.orderCount",
68
71
  CUSTOMER__PASSWORD_UPDATE_DATE = "customer.passwordUpdateDate",
69
72
  CUSTOMER__PHONE = "customer.phone",
73
+ CUSTOMER__PHONE_SUBSCRIPTION_STATUS = "customer.phoneSubscriptionStatus",
74
+ CUSTOMER__PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.phoneSubscriptionStatusUpdatedAt",
70
75
  CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
71
76
  CUSTOMER__PREFERRED_LANGUAGE = "customer.preferredLanguage",
72
77
  CUSTOMER__PRICE_LIST_ID = "customer.priceListId",
78
+ CUSTOMER__PRICE_LIST_RULES__DISCOUNT_RATE = "customer.priceListRules.discountRate",
73
79
  CUSTOMER__PRICE_LIST_RULES__FILTERS__TYPE = "customer.priceListRules.filters.type",
74
80
  CUSTOMER__PRICE_LIST_RULES__FILTERS__VALUE_LIST = "customer.priceListRules.filters.valueList",
81
+ CUSTOMER__PRICE_LIST_RULES__PRICE_LIST_ID = "customer.priceListRules.priceListId",
75
82
  CUSTOMER__PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "customer.priceListRules.shouldMatchAllFilters",
76
83
  CUSTOMER__PRICE_LIST_RULES__VALUE = "customer.priceListRules.value",
77
84
  CUSTOMER__PRICE_LIST_RULES__VALUE_TYPE = "customer.priceListRules.valueType",
78
85
  CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
86
+ CUSTOMER__SMS_SUBSCRIPTION_STATUS = "customer.smsSubscriptionStatus",
87
+ CUSTOMER__SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "customer.smsSubscriptionStatusUpdatedAt",
79
88
  CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
80
89
  CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
81
90
  CUSTOMER__TAG_IDS = "customer.tagIds",
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as _,APIResponse as s,fetchQuery as E}from"@ikas/fe-api-client";var S,r=function(S,r,d){return e(void 0,void 0,void 0,(function(){var e,o,u,R;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,E({operationName:"customerLogin",config:d,variables:S,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,u=e.errors,[2,new s(null==o?void 0:o.customerLogin,u)];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 } 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(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__CREATED_AT="customer.createdAt",e.CUSTOMER__CUSTOMER_GROUP_IDS="customer.customerGroupIds",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__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_VERIFIED_DATE="customer.phoneVerifiedDate",e.CUSTOMER__PREFERRED_LANGUAGE="customer.preferredLanguage",e.CUSTOMER__PRICE_LIST_ID="customer.priceListId",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__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__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"}(S||(S={}));export{S as ResponseField,r as default};
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};
@@ -0,0 +1,7 @@
1
+ import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
+ import { SaveCustomerFormDataInput } from "../types";
3
+ declare const saveCustomerFormData: (variables: QueryParams, config?: ConfigType) => Promise<APIResponse<boolean> | APIResponse<undefined>>;
4
+ export default saveCustomerFormData;
5
+ export declare type QueryParams = {
6
+ input: SaveCustomerFormDataInput;
7
+ };
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as a,fetchQuery as n}from"@ikas/fe-api-client";var o=function(o,s){return t(void 0,void 0,void 0,(function(){var t,u,i,m;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n({operationName:"saveCustomerFormData",config:s,variables:o,query:"\n\t\t\t\tmutation saveCustomerFormData (\n\t\t\t\t\t$input: SaveCustomerFormDataInput!,\n\t\t\t\t) {\n\t\t\t\t\tsaveCustomerFormData (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t"})];case 1:return t=e.sent(),u=t.data,i=t.errors,[2,new a(null==u?void 0:u.saveCustomerFormData,i)];case 2:return m=e.sent(),[2,r(m)];case 3:return[2]}}))}))};export{o as default};
@@ -49,14 +49,17 @@ export declare enum ResponseField {
49
49
  ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "attributes.customerAttributeId",
50
50
  ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "attributes.customerAttributeOptionId",
51
51
  ATTRIBUTES__VALUE = "attributes.value",
52
+ BIRTH_DATE = "birthDate",
52
53
  CREATED_AT = "createdAt",
53
54
  CUSTOMER_GROUP_IDS = "customerGroupIds",
55
+ CUSTOMER_SEGMENT_IDS = "customerSegmentIds",
54
56
  CUSTOMER_SEQUENCE = "customerSequence",
55
57
  DELETED = "deleted",
56
58
  EMAIL = "email",
57
59
  EMAIL_VERIFIED_DATE = "emailVerifiedDate",
58
60
  FIRST_NAME = "firstName",
59
61
  FULL_NAME = "fullName",
62
+ GENDER = "gender",
60
63
  ID = "id",
61
64
  IS_EMAIL_VERIFIED = "isEmailVerified",
62
65
  IS_PHONE_VERIFIED = "isPhoneVerified",
@@ -65,15 +68,21 @@ export declare enum ResponseField {
65
68
  ORDER_COUNT = "orderCount",
66
69
  PASSWORD_UPDATE_DATE = "passwordUpdateDate",
67
70
  PHONE = "phone",
71
+ PHONE_SUBSCRIPTION_STATUS = "phoneSubscriptionStatus",
72
+ PHONE_SUBSCRIPTION_STATUS_UPDATED_AT = "phoneSubscriptionStatusUpdatedAt",
68
73
  PHONE_VERIFIED_DATE = "phoneVerifiedDate",
69
74
  PREFERRED_LANGUAGE = "preferredLanguage",
70
75
  PRICE_LIST_ID = "priceListId",
76
+ PRICE_LIST_RULES__DISCOUNT_RATE = "priceListRules.discountRate",
71
77
  PRICE_LIST_RULES__FILTERS__TYPE = "priceListRules.filters.type",
72
78
  PRICE_LIST_RULES__FILTERS__VALUE_LIST = "priceListRules.filters.valueList",
79
+ PRICE_LIST_RULES__PRICE_LIST_ID = "priceListRules.priceListId",
73
80
  PRICE_LIST_RULES__SHOULD_MATCH_ALL_FILTERS = "priceListRules.shouldMatchAllFilters",
74
81
  PRICE_LIST_RULES__VALUE = "priceListRules.value",
75
82
  PRICE_LIST_RULES__VALUE_TYPE = "priceListRules.valueType",
76
83
  REGISTRATION_SOURCE = "registrationSource",
84
+ SMS_SUBSCRIPTION_STATUS = "smsSubscriptionStatus",
85
+ SMS_SUBSCRIPTION_STATUS_UPDATED_AT = "smsSubscriptionStatusUpdatedAt",
77
86
  SUBSCRIPTION_STATUS = "subscriptionStatus",
78
87
  SUBSCRIPTION_STATUS_UPDATED_AT = "subscriptionStatusUpdatedAt",
79
88
  TAG_IDS = "tagIds",