@ikas/storefront 0.1.24-alpha.8 → 0.2.0-alpha.1

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 (31) hide show
  1. package/build/__generated__/global-types.d.ts +23 -0
  2. package/build/api/checkout/__generated__/getCheckoutById.d.ts +0 -4
  3. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +1 -3
  4. package/build/api/checkout/index.d.ts +0 -1
  5. package/build/api/customer/__generated__/customerForgotPassword.d.ts +0 -1
  6. package/build/api/customer/__generated__/registerCustomer.d.ts +0 -1
  7. package/build/api/index.d.ts +1 -0
  8. package/build/api/product-option-set/__generated__/ListProductOptionSet.d.ts +90 -0
  9. package/build/api/product-option-set/index.d.ts +6 -0
  10. package/build/components/checkout/components/address-form/model.d.ts +0 -8
  11. package/build/components/checkout/model.d.ts +2 -2
  12. package/build/index.css +4 -9
  13. package/build/index.es.css +4 -9
  14. package/build/index.es.js +12000 -12122
  15. package/build/index.js +11996 -12110
  16. package/build/models/data/cart/index.d.ts +0 -1
  17. package/build/models/data/index.d.ts +1 -0
  18. package/build/models/data/order/address/index.d.ts +0 -2
  19. package/build/models/data/order/index.d.ts +2 -1
  20. package/build/models/data/order/line-item/index.d.ts +0 -1
  21. package/build/models/data/order-transaction/index.d.ts +0 -1
  22. package/build/models/data/payment-gateway/index.d.ts +0 -2
  23. package/build/models/data/product/index.d.ts +3 -0
  24. package/build/models/data/product/variant/price/index.d.ts +0 -1
  25. package/build/models/data/product-option-set/index.d.ts +85 -0
  26. package/build/models/data/simple-product/index.d.ts +1 -0
  27. package/build/store/cart.d.ts +0 -1
  28. package/build/store/customer.d.ts +0 -1
  29. package/build/utils/currency.d.ts +0 -6
  30. package/package.json +1 -1
  31. package/build/api/checkout/__generated__/addCouponCodeToCheckout.d.ts +0 -11
@@ -248,6 +248,21 @@ export declare enum ProductFilterTypeEnum {
248
248
  TAG = "TAG",
249
249
  VARIANT_TYPE = "VARIANT_TYPE"
250
250
  }
251
+ export declare enum ProductOptionSelectTypeEnum {
252
+ BOX = "BOX",
253
+ SELECT = "SELECT",
254
+ SWATCH = "SWATCH"
255
+ }
256
+ export declare enum ProductOptionTypeEnum {
257
+ CHECKBOX = "CHECKBOX",
258
+ CHOICE = "CHOICE",
259
+ COLOR_PICKER = "COLOR_PICKER",
260
+ DATE_PICKER = "DATE_PICKER",
261
+ FILE = "FILE",
262
+ IMAGE = "IMAGE",
263
+ TEXT = "TEXT",
264
+ TEXT_AREA = "TEXT_AREA"
265
+ }
251
266
  export declare enum ProductSearchShowStockOptionEnum {
252
267
  HIDE_OUT_OF_STOCK = "HIDE_OUT_OF_STOCK",
253
268
  SHOW_ALL = "SHOW_ALL",
@@ -387,6 +402,14 @@ export interface CustomerAddressStateInput {
387
402
  id?: string | null;
388
403
  name?: string | null;
389
404
  }
405
+ export interface DateFilterInput {
406
+ eq?: any | null;
407
+ gt?: any | null;
408
+ gte?: any | null;
409
+ in?: any[] | null;
410
+ lt?: any | null;
411
+ lte?: any | null;
412
+ }
390
413
  export interface HTMLMetaDataTargetTypeEnumFilter {
391
414
  eq?: HTMLMetaDataTargetTypeEnum | null;
392
415
  in?: HTMLMetaDataTargetTypeEnum[] | null;
@@ -18,8 +18,6 @@ export interface getCheckoutById_getCheckoutById_billingAddress_country {
18
18
  code: string | null;
19
19
  id: string | null;
20
20
  name: string;
21
- iso2: string | null;
22
- iso3: string | null;
23
21
  }
24
22
  export interface getCheckoutById_getCheckoutById_billingAddress_district {
25
23
  __typename: "OrderAddressDistrict";
@@ -71,8 +69,6 @@ export interface getCheckoutById_getCheckoutById_shippingAddress_country {
71
69
  id: string | null;
72
70
  code: string | null;
73
71
  name: string;
74
- iso2: string | null;
75
- iso3: string | null;
76
72
  }
77
73
  export interface getCheckoutById_getCheckoutById_shippingAddress_district {
78
74
  __typename: "OrderAddressDistrict";
@@ -14,7 +14,7 @@ export interface listPaymentGateway_listPaymentGateway_additionalPrices {
14
14
  export interface listPaymentGateway_listPaymentGateway_translations {
15
15
  __typename: "PaymentGatewayTranslation";
16
16
  description: string | null;
17
- locale: string | null;
17
+ locale: string;
18
18
  name: string | null;
19
19
  }
20
20
  export interface listPaymentGateway_listPaymentGateway {
@@ -30,8 +30,6 @@ export interface listPaymentGateway_listPaymentGateway {
30
30
  logoUrl: string | null;
31
31
  additionalPrices: listPaymentGateway_listPaymentGateway_additionalPrices[] | null;
32
32
  translations: listPaymentGateway_listPaymentGateway_translations[] | null;
33
- supportedCurrencies: string[] | null;
34
- availableCountries: string[] | null;
35
33
  }
36
34
  export interface listPaymentGateway {
37
35
  listPaymentGateway: listPaymentGateway_listPaymentGateway[];
@@ -14,7 +14,6 @@ export declare class IkasCheckoutAPI {
14
14
  static retrieveInstallmentInfo(input: IkasInstallmentInfoInput): Promise<IkasInstallmentInfo | undefined>;
15
15
  static checkStocks(lines: CheckStocksLineInput[], stockLocationIdList: string[]): Promise<CheckStocksTypes.checkStocks_checkStocks | undefined>;
16
16
  static listCheckoutSettings(): Promise<IkasCheckoutSettings[] | undefined>;
17
- static addCouponCodeToCheckout(checkoutId: string, couponCode: string): Promise<true | undefined>;
18
17
  }
19
18
  declare type CheckStocksLineInput = {
20
19
  quantity: number;
@@ -3,5 +3,4 @@ export interface customerForgotPassword {
3
3
  }
4
4
  export interface customerForgotPasswordVariables {
5
5
  email: string;
6
- locale: string;
7
6
  }
@@ -68,5 +68,4 @@ export interface registerCustomerVariables {
68
68
  firstName: string;
69
69
  lastName: string;
70
70
  isAcceptMarketing?: boolean | null;
71
- locale?: string | null;
72
71
  }
@@ -15,4 +15,5 @@ export { IkasFavoriteProductAPI } from "./favorite-product/index";
15
15
  export { IkasContactFormAPI } from "./contact-form/index";
16
16
  export { IkasStateAPI } from "./state/index";
17
17
  export { IkasVariantTypeAPI } from "./variant-type/index";
18
+ export { IkasProductOptionSetAPI } from "./product-option-set/index";
18
19
  export { apollo } from "./apollo";
@@ -0,0 +1,90 @@
1
+ import { StringFilterInput, DateFilterInput, ProductOptionSelectTypeEnum, ProductOptionTypeEnum } from "../../../__generated__/global-types";
2
+ export interface ListProductOptionSet_listProductOptionSet_options_dateSettings {
3
+ __typename: "ProductOptionDateSettings";
4
+ max: any | null;
5
+ min: any | null;
6
+ }
7
+ export interface ListProductOptionSet_listProductOptionSet_options_fileSettings {
8
+ __typename: "ProductOptionFileSettings";
9
+ allowedExtensions: string[] | null;
10
+ maxQuantity: number | null;
11
+ minQuantity: number | null;
12
+ }
13
+ export interface ListProductOptionSet_listProductOptionSet_options_selectSettings_values {
14
+ __typename: "ProductOptionSelectValue";
15
+ createdAt: any | null;
16
+ deleted: boolean | null;
17
+ id: string;
18
+ order: number;
19
+ price: number | null;
20
+ updatedAt: any | null;
21
+ value: string;
22
+ thumbnailImageId: string | null;
23
+ colorCode: string | null;
24
+ }
25
+ export interface ListProductOptionSet_listProductOptionSet_options_selectSettings {
26
+ __typename: "ProductOptionSelectSettings";
27
+ maxSelect: number | null;
28
+ minSelect: number | null;
29
+ type: ProductOptionSelectTypeEnum;
30
+ values: ListProductOptionSet_listProductOptionSet_options_selectSettings_values[];
31
+ }
32
+ export interface ListProductOptionSet_listProductOptionSet_options_textSettings {
33
+ __typename: "ProductOptionTextSettings";
34
+ max: number | null;
35
+ min: number | null;
36
+ }
37
+ export interface ListProductOptionSet_listProductOptionSet_options {
38
+ __typename: "ProductOption";
39
+ createdAt: any | null;
40
+ dateSettings: ListProductOptionSet_listProductOptionSet_options_dateSettings | null;
41
+ deleted: boolean | null;
42
+ fileSettings: ListProductOptionSet_listProductOptionSet_options_fileSettings | null;
43
+ id: string;
44
+ isOptional: boolean | null;
45
+ name: string;
46
+ optionalText: string | null;
47
+ requiredOptionId: string | null;
48
+ requiredOptionValueIds: string[] | null;
49
+ order: number;
50
+ price: number | null;
51
+ selectSettings: ListProductOptionSet_listProductOptionSet_options_selectSettings | null;
52
+ textSettings: ListProductOptionSet_listProductOptionSet_options_textSettings | null;
53
+ type: ProductOptionTypeEnum;
54
+ updatedAt: any | null;
55
+ }
56
+ export interface ListProductOptionSet_listProductOptionSet_translations_options_values {
57
+ __typename: "ProductOptionSelectValueTranslations";
58
+ id: string;
59
+ value: string | null;
60
+ }
61
+ export interface ListProductOptionSet_listProductOptionSet_translations_options {
62
+ __typename: "ProductOptionTranslations";
63
+ id: string;
64
+ name: string | null;
65
+ optionalText: string | null;
66
+ values: ListProductOptionSet_listProductOptionSet_translations_options_values[] | null;
67
+ }
68
+ export interface ListProductOptionSet_listProductOptionSet_translations {
69
+ __typename: "ProductOptionSetTranslations";
70
+ locale: string;
71
+ options: ListProductOptionSet_listProductOptionSet_translations_options[] | null;
72
+ }
73
+ export interface ListProductOptionSet_listProductOptionSet {
74
+ __typename: "ProductOptionSet";
75
+ createdAt: any | null;
76
+ deleted: boolean | null;
77
+ id: string;
78
+ name: string;
79
+ options: ListProductOptionSet_listProductOptionSet_options[];
80
+ translations: ListProductOptionSet_listProductOptionSet_translations[] | null;
81
+ updatedAt: any | null;
82
+ }
83
+ export interface ListProductOptionSet {
84
+ listProductOptionSet: ListProductOptionSet_listProductOptionSet[];
85
+ }
86
+ export interface ListProductOptionSetVariables {
87
+ id: StringFilterInput;
88
+ updatedAt?: DateFilterInput | null;
89
+ includeDeleted: boolean;
90
+ }
@@ -0,0 +1,6 @@
1
+ import { IkasProductOptionSet } from "../../models/data/product-option-set/index";
2
+ export declare class IkasProductOptionSetAPI {
3
+ static list(searchId: string, updatedAt?: number, includeDeleted?: boolean): Promise<{
4
+ data: IkasProductOptionSet[];
5
+ } | undefined>;
6
+ }
@@ -36,8 +36,6 @@ export default class AddressFormViewModel {
36
36
  id?: string | undefined;
37
37
  name?: string | undefined;
38
38
  code?: string | undefined;
39
- iso2?: string | undefined;
40
- iso3?: string | undefined;
41
39
  } | {
42
40
  id?: string | undefined;
43
41
  name?: string | undefined;
@@ -47,8 +45,6 @@ export default class AddressFormViewModel {
47
45
  id?: string | undefined;
48
46
  name?: string | undefined;
49
47
  code?: string | undefined;
50
- iso2?: string | undefined;
51
- iso3?: string | undefined;
52
48
  } | {
53
49
  id?: string | undefined;
54
50
  name?: string | undefined;
@@ -58,8 +54,6 @@ export default class AddressFormViewModel {
58
54
  id?: string | undefined;
59
55
  name?: string | undefined;
60
56
  code?: string | undefined;
61
- iso2?: string | undefined;
62
- iso3?: string | undefined;
63
57
  } | {
64
58
  id?: string | undefined;
65
59
  name?: string | undefined;
@@ -69,8 +63,6 @@ export default class AddressFormViewModel {
69
63
  id?: string | undefined;
70
64
  name?: string | undefined;
71
65
  code?: string | undefined;
72
- iso2?: string | undefined;
73
- iso3?: string | undefined;
74
66
  } | {
75
67
  id?: string | undefined;
76
68
  name?: string | undefined;
@@ -5,12 +5,13 @@ import { IkasOrderLineVariant } from "../../models/data/order/line-item/variant/
5
5
  import { IkasStorefront } from "../../models/data/storefront/index";
6
6
  import CreditCardData from "./components/credit-card-form/model";
7
7
  import { IkasCheckoutSettings } from "../../models/data/checkout-settings/index";
8
+ import { IkasBaseStore } from "../../store/index";
8
9
  import { TFunction } from "../../utils/i18n";
9
10
  export default class CheckoutViewModel {
10
11
  checkout: IkasCheckout;
11
12
  checkoutSettings: IkasCheckoutSettings;
12
13
  storefront?: IkasStorefront | null;
13
- store: import("../../index").IkasBaseStore;
14
+ store: IkasBaseStore;
14
15
  router: NextRouter;
15
16
  isCheckoutLoaded: boolean;
16
17
  isErrorsVisible: boolean;
@@ -69,7 +70,6 @@ export default class CheckoutViewModel {
69
70
  createBillingAddress: () => void;
70
71
  onShippingMethodChange: (shippingMethod: IkasAvailableShippingMethod) => Promise<void>;
71
72
  onCouponCodeApply: () => Promise<void>;
72
- onCouponCodeDelete: () => Promise<void>;
73
73
  onSelectedShippingAddressIdChange: (value: string) => void;
74
74
  onSelectedBillingAddressIdChange: (value: string) => void;
75
75
  onTermsAndConditionsCheckedChange: (value: boolean) => void;
package/build/index.css CHANGED
@@ -589,13 +589,9 @@
589
589
  padding-bottom: 0; }
590
590
  .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 .style-module_LoginCta__2sZZF {
591
591
  display: none; } }
592
- .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {
593
- position: sticky;
594
- top: 0;
595
- z-index: 10; }
596
- @media only screen and (min-width: 1000px) {
597
- .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {
598
- display: none; } }
592
+ @media only screen and (min-width: 1000px) {
593
+ .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {
594
+ display: none; } }
599
595
  .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_RowPB__3M7Tz {
600
596
  padding-bottom: 16px; }
601
597
  @media only screen and (max-width: 1000px) {
@@ -1089,8 +1085,7 @@
1089
1085
  transition: height .3s ease-in-out; }
1090
1086
  @media only screen and (max-width: 1000px) {
1091
1087
  .style-module_CartSummary__30RcF .style-module_DetailsContainer__FBBIP {
1092
- padding: 0 24px;
1093
- box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.2); } }
1088
+ padding: 0 24px; } }
1094
1089
 
1095
1090
  .style-module_CartSummary__30RcF .style-module_Details__3-X_i {
1096
1091
  overflow: hidden; }
@@ -589,13 +589,9 @@
589
589
  padding-bottom: 0; }
590
590
  .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 .style-module_LoginCta__2sZZF {
591
591
  display: none; } }
592
- .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {
593
- position: sticky;
594
- top: 0;
595
- z-index: 10; }
596
- @media only screen and (min-width: 1000px) {
597
- .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {
598
- display: none; } }
592
+ @media only screen and (min-width: 1000px) {
593
+ .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {
594
+ display: none; } }
599
595
  .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_RowPB__3M7Tz {
600
596
  padding-bottom: 16px; }
601
597
  @media only screen and (max-width: 1000px) {
@@ -1089,8 +1085,7 @@
1089
1085
  transition: height .3s ease-in-out; }
1090
1086
  @media only screen and (max-width: 1000px) {
1091
1087
  .style-module_CartSummary__30RcF .style-module_DetailsContainer__FBBIP {
1092
- padding: 0 24px;
1093
- box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.2); } }
1088
+ padding: 0 24px; } }
1094
1089
 
1095
1090
  .style-module_CartSummary__30RcF .style-module_Details__3-X_i {
1096
1091
  overflow: hidden; }