@ikas/storefront 0.0.158-alpha.25 → 0.0.158-alpha.4

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 (29) hide show
  1. package/build/__generated__/global-types.d.ts +0 -44
  2. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +1 -9
  3. package/build/api/country/__generated__/listCountry.d.ts +0 -1
  4. package/build/api/country/index.d.ts +1 -1
  5. package/build/api/customer/__generated__/customerLogin.d.ts +1 -2
  6. package/build/api/customer/index.d.ts +1 -13
  7. package/build/components/checkout/components/address-form/index.d.ts +0 -3
  8. package/build/components/checkout/components/address-form/model.d.ts +0 -9
  9. package/build/components/checkout/components/form-item/model.d.ts +0 -7
  10. package/build/components/checkout/model.d.ts +0 -1
  11. package/build/index.es.js +637 -1557
  12. package/build/index.js +636 -1557
  13. package/build/models/data/category/index.d.ts +0 -5
  14. package/build/models/data/checkout/index.d.ts +0 -3
  15. package/build/models/data/payment-gateway/index.d.ts +2 -25
  16. package/build/models/data/product/attribute-value/index.d.ts +0 -4
  17. package/build/models/theme/component/prop/index.d.ts +1 -5
  18. package/build/models/theme/custom-data/index.d.ts +0 -10
  19. package/build/models/ui/product-list/index.d.ts +3 -5
  20. package/build/store/customer.d.ts +6 -19
  21. package/build/utils/helper.d.ts +0 -1
  22. package/build/utils/providers/page-data.d.ts +1 -7
  23. package/build/utils/providers/prop-value/boolean.d.ts +1 -1
  24. package/build/utils/providers/prop-value/custom.d.ts +0 -4
  25. package/package.json +1 -1
  26. package/build/api/customer/__generated__/getLastViewedProducts.d.ts +0 -15
  27. package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +0 -11
  28. package/build/models/theme/page/component/prop-value/attribute-list.d.ts +0 -7
  29. package/build/utils/providers/prop-value/attribute-list.d.ts +0 -9
@@ -73,14 +73,6 @@ export declare enum CustomerAccountStatusesEnum {
73
73
  DISABLED_ACCOUNT = "DISABLED_ACCOUNT",
74
74
  INVITED_TO_CREATE_ACCOUNT = "INVITED_TO_CREATE_ACCOUNT"
75
75
  }
76
- /**
77
- * Customer Email Subscription Statuses
78
- */
79
- export declare enum CustomerEmailSubscriptionStatusesEnum {
80
- NOT_SUBSCRIBED = "NOT_SUBSCRIBED",
81
- PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
82
- SUBSCRIBED = "SUBSCRIBED"
83
- }
84
76
  /**
85
77
  * Url Slug Target Type Enum Codes
86
78
  */
@@ -155,20 +147,6 @@ export declare enum OrderStatusEnum {
155
147
  REFUND_REJECTED = "REFUND_REJECTED",
156
148
  REFUND_REQUESTED = "REFUND_REQUESTED"
157
149
  }
158
- /**
159
- * Payment Gateway Additional Price Type Enum
160
- */
161
- export declare enum PaymentGatewayAdditionalPriceTypeEnum {
162
- DECREMENT = "DECREMENT",
163
- INCREMENT = "INCREMENT"
164
- }
165
- /**
166
- * Payment Gateway Transaction Fee Type Enum
167
- */
168
- export declare enum PaymentGatewayTransactionFeeTypeEnum {
169
- AMOUNT = "AMOUNT",
170
- RATIO = "RATIO"
171
- }
172
150
  /**
173
151
  * Payment Method Enum
174
152
  */
@@ -235,11 +213,6 @@ export declare enum ProductFilterTypeEnum {
235
213
  TAG = "TAG",
236
214
  VARIANT_TYPE = "VARIANT_TYPE"
237
215
  }
238
- export declare enum ProductSearchShowStockOptionEnum {
239
- HIDE_OUT_OF_STOCK = "HIDE_OUT_OF_STOCK",
240
- SHOW_ALL = "SHOW_ALL",
241
- SHOW_OUT_OF_STOCK_AT_END = "SHOW_OUT_OF_STOCK_AT_END"
242
- }
243
216
  /**
244
217
  * Shipping Method Enum
245
218
  */
@@ -473,22 +446,6 @@ export interface PaymentMethodDetailInput {
473
446
  installmentCount: number;
474
447
  threeDSecure: boolean;
475
448
  }
476
- export interface ProductItemInput {
477
- createdAt?: any | null;
478
- deleted?: boolean | null;
479
- id?: string | null;
480
- productId: string;
481
- updatedAt?: any | null;
482
- variantId: string;
483
- }
484
- export interface ProductLastViewedInput {
485
- createdAt?: any | null;
486
- customerId: string;
487
- deleted?: boolean | null;
488
- id?: string | null;
489
- products: ProductItemInput[];
490
- updatedAt?: any | null;
491
- }
492
449
  export interface RetrieveInstallmentInfoInput {
493
450
  binNumber: string;
494
451
  paymentGatewayId: string;
@@ -537,7 +494,6 @@ export interface SearchInput {
537
494
  productIdList?: string[] | null;
538
495
  query?: string | null;
539
496
  salesChannelId?: string | null;
540
- showStockOption?: ProductSearchShowStockOptionEnum | null;
541
497
  slug?: string | null;
542
498
  }
543
499
  export interface SearchInputFilterListInput {
@@ -1,16 +1,9 @@
1
- import { StringFilterInput, PaymentMethodEnum, PaymentGatewayTransactionFeeTypeEnum, PaymentGatewayAdditionalPriceTypeEnum } from "../../../__generated__/global-types";
1
+ import { StringFilterInput, PaymentMethodEnum } from "../../../__generated__/global-types";
2
2
  export interface listPaymentGateway_listPaymentGateway_paymentMethods {
3
3
  __typename: "PaymentGatewayPaymentMethod";
4
4
  name: string;
5
5
  logoUrl: string | null;
6
6
  }
7
- export interface listPaymentGateway_listPaymentGateway_additionalPrices {
8
- __typename: "AdditionalPrice";
9
- amount: number;
10
- amountType: PaymentGatewayTransactionFeeTypeEnum;
11
- name: string;
12
- type: PaymentGatewayAdditionalPriceTypeEnum;
13
- }
14
7
  export interface listPaymentGateway_listPaymentGateway {
15
8
  __typename: "PaymentGateway";
16
9
  paymentMethods: listPaymentGateway_listPaymentGateway_paymentMethods[];
@@ -19,7 +12,6 @@ export interface listPaymentGateway_listPaymentGateway {
19
12
  name: string;
20
13
  description: string | null;
21
14
  testMode: boolean | null;
22
- additionalPrices: listPaymentGateway_listPaymentGateway_additionalPrices[] | null;
23
15
  }
24
16
  export interface listPaymentGateway {
25
17
  listPaymentGateway: listPaymentGateway_listPaymentGateway[];
@@ -19,5 +19,4 @@ export interface listCountry {
19
19
  }
20
20
  export interface listCountryVariables {
21
21
  iso2?: StringFilterInput | null;
22
- id?: StringFilterInput | null;
23
22
  }
@@ -1,6 +1,6 @@
1
1
  import { IkasCountry } from "../../models/index";
2
2
  export declare class IkasCountryAPI {
3
- static listCountries(iso2List?: string[], idList?: string[]): Promise<IkasCountry[]>;
3
+ static listCountries(iso2List?: string[]): Promise<IkasCountry[]>;
4
4
  static listShippingCountries(salesChannelId: string): Promise<string[]>;
5
5
  static getMyCountry(): Promise<string | null | undefined>;
6
6
  }
@@ -1,4 +1,4 @@
1
- import { CustomerAccountStatusesEnum, CustomerEmailSubscriptionStatusesEnum } from "../../../__generated__/global-types";
1
+ import { CustomerAccountStatusesEnum } from "../../../__generated__/global-types";
2
2
  export interface customerLogin_customerLogin_customer_addresses_city {
3
3
  __typename: "CustomerAddressCity";
4
4
  code: string | null;
@@ -53,7 +53,6 @@ export interface customerLogin_customerLogin_customer {
53
53
  accountStatus: CustomerAccountStatusesEnum | null;
54
54
  email: string | null;
55
55
  firstName: string;
56
- subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
57
56
  }
58
57
  export interface customerLogin_customerLogin {
59
58
  __typename: "CustomerLoginResponse";
@@ -1,7 +1,6 @@
1
1
  import { IkasCustomer, IkasOrder } from "../../models/index";
2
- import { IkasRefund } from "../../models/data/order/refund/index";
3
2
  import * as RefreshTokenTypes from "./__generated__/customerRefreshToken";
4
- import * as GetLastViewedProductsTypes from "./__generated__/getLastViewedProducts";
3
+ import { IkasRefund } from "../../models/data/order/refund/index";
5
4
  export declare class IkasCustomerAPI {
6
5
  static login(email: string, password: string): Promise<{
7
6
  customer: IkasCustomer;
@@ -29,15 +28,4 @@ export declare class IkasCustomerAPI {
29
28
  }): Promise<any>;
30
29
  static saveIkasOrderRefund(input: IkasRefund): Promise<IkasOrder | undefined>;
31
30
  static createCustomerEmailSubscription(email: string): Promise<boolean>;
32
- static getLastViewedProducts(customerId: string): Promise<GetLastViewedProductsTypes.getLastViewedProducts_getLastViewedProducts_products[]>;
33
- static saveLastViewedProducts(input: LastViewedProductInput): Promise<boolean>;
34
31
  }
35
- declare type LastViewedProduct = {
36
- productId: string;
37
- variantId: string;
38
- };
39
- declare type LastViewedProductInput = {
40
- customerId: string;
41
- products: LastViewedProduct[];
42
- };
43
- export {};
@@ -1,15 +1,12 @@
1
1
  import * as React from "react";
2
2
  import { IkasOrderAddress, IkasAddressValidationResult } from "../../../../models/data/order/address/index";
3
3
  import { IkasCheckoutCustomer } from "../../../../models/index";
4
- import CheckoutViewModel from "../../model";
5
4
  declare type Props = {
6
- vm: CheckoutViewModel;
7
5
  address: IkasOrderAddress;
8
6
  allowedCountryIds?: string[];
9
7
  customer?: IkasCheckoutCustomer;
10
8
  isErrorsVisible: boolean;
11
9
  validationResult: IkasAddressValidationResult;
12
- isBilling?: boolean;
13
10
  };
14
11
  export declare const AddressForm: React.FC<Props>;
15
12
  export {};
@@ -1,8 +1,6 @@
1
1
  import { IkasOrderAddress } from "../../../../models/data/order/address/index";
2
2
  import { IkasCountry, IkasState, IkasCity, IkasDistrict, IkasCheckoutCustomer } from "../../../../models/index";
3
- import CheckoutViewModel from "../../model";
4
3
  export default class AddressFormViewModel {
5
- vm: CheckoutViewModel;
6
4
  address: IkasOrderAddress;
7
5
  customer?: IkasCheckoutCustomer | null;
8
6
  countries: IkasCountry[];
@@ -10,7 +8,6 @@ export default class AddressFormViewModel {
10
8
  cities: IkasCity[];
11
9
  districts: IkasDistrict[];
12
10
  allowedCountryIds?: string[] | null;
13
- isCorporate: boolean;
14
11
  constructor(data: AddressFormViewModelParams);
15
12
  get firstName(): string | null | undefined;
16
13
  get lastName(): string | null | undefined;
@@ -74,14 +71,8 @@ export default class AddressFormViewModel {
74
71
  onCityChange: (cityId: string) => void;
75
72
  onDistrictChange: (districtId: string) => void;
76
73
  onDistrictInputChange: (value: string) => void;
77
- onCorporateChange: (value: boolean) => void;
78
- onCompanyChange: (value: string) => void;
79
- onTaxNumberChange: (value: string) => void;
80
- onTaxOfficeChange: (value: string) => void;
81
74
  }
82
75
  interface AddressFormViewModelParams extends Partial<AddressFormViewModel> {
83
- vm: CheckoutViewModel;
84
76
  address: IkasOrderAddress;
85
- isCorporate?: boolean;
86
77
  }
87
78
  export {};
@@ -1,6 +1,5 @@
1
1
  export default class FormItemViewModel implements Props {
2
2
  type: FormItemType;
3
- inputType?: FormItemInputType;
4
3
  options?: FormItemSelectOption[];
5
4
  label: string;
6
5
  value?: string;
@@ -17,7 +16,6 @@ export default class FormItemViewModel implements Props {
17
16
  }
18
17
  export interface Props {
19
18
  type: FormItemType;
20
- inputType?: FormItemInputType;
21
19
  options?: FormItemSelectOption[];
22
20
  label: string;
23
21
  value?: string;
@@ -36,8 +34,3 @@ export declare type FormItemSelectOption = {
36
34
  value: string;
37
35
  label: string;
38
36
  };
39
- export declare enum FormItemInputType {
40
- NUMERIC = "numeric",
41
- TEL = "tel",
42
- EMAIL = "email"
43
- }
@@ -49,7 +49,6 @@ export default class CheckoutViewModel {
49
49
  }[];
50
50
  get installmentPrice(): number | null | undefined;
51
51
  get installmentExtraPrice(): number | undefined;
52
- get finalPrice(): number;
53
52
  get canProceedToShipping(): boolean;
54
53
  get canProceedToPayment(): boolean;
55
54
  get canPerformPayment(): boolean | undefined;