@ikas/storefront 0.0.163-alpha.1 → 0.0.163-alpha.11

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 +1 -1
  2. package/build/api/brand/__generated__/listProductBrand.d.ts +8 -0
  3. package/build/api/category/__generated__/listCategory.d.ts +8 -0
  4. package/build/api/checkout/__generated__/getCheckoutById.d.ts +1 -0
  5. package/build/api/checkout/__generated__/getOrder.d.ts +1 -1
  6. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +7 -0
  7. package/build/api/customer/__generated__/customerLogin.d.ts +2 -2
  8. package/build/api/customer/__generated__/getMyCustomer.d.ts +2 -2
  9. package/build/api/customer/__generated__/registerCustomer.d.ts +2 -2
  10. package/build/api/customer/__generated__/saveMyCustomer.d.ts +3 -2
  11. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +13 -0
  12. package/build/api/product-search/__generated__/getProductFilterData.d.ts +1 -0
  13. package/build/api/variant-type/__generated__/listVariantType.d.ts +12 -0
  14. package/build/assets/translations/checkout/en.js +6 -7
  15. package/build/assets/translations/checkout/tr.js +4 -6
  16. package/build/components/checkout/components/form-item/model.d.ts +1 -0
  17. package/build/components/checkout/components/select-box/index.d.ts +2 -0
  18. package/build/components/checkout/model.d.ts +1 -1
  19. package/build/index.es.js +2995 -2620
  20. package/build/index.js +2996 -2621
  21. package/build/models/data/brand/index.d.ts +9 -0
  22. package/build/models/data/cart/index.d.ts +5 -0
  23. package/build/models/data/category/index.d.ts +9 -0
  24. package/build/models/data/html-meta-data/index.d.ts +8 -0
  25. package/build/models/data/payment-gateway/index.d.ts +8 -1
  26. package/build/models/data/product-attribute/index.d.ts +14 -0
  27. package/build/models/data/variant-type/index.d.ts +12 -0
  28. package/build/store/customer.d.ts +1 -0
  29. package/package.json +1 -1
@@ -80,7 +80,7 @@ export declare enum CheckoutStatusEnum {
80
80
  /**
81
81
  * Customer Account Statuses
82
82
  */
83
- export declare enum CustomerAccountStatusesEnum {
83
+ export declare enum CustomerAccountStatusEnum {
84
84
  ACTIVE_ACCOUNT = "ACTIVE_ACCOUNT",
85
85
  DECLINED_ACCOUNT_INVITATION = "DECLINED_ACCOUNT_INVITATION",
86
86
  DISABLED_ACCOUNT = "DISABLED_ACCOUNT",
@@ -8,13 +8,21 @@ export interface listProductBrand_listProductBrand_data_metaData {
8
8
  targetType: HTMLMetaDataTargetTypeEnum | null;
9
9
  redirectTo: string | null;
10
10
  }
11
+ export interface listProductBrand_listProductBrand_data_translations {
12
+ __typename: "ProductBrandTranslation";
13
+ description: string | null;
14
+ locale: string;
15
+ name: string | null;
16
+ }
11
17
  export interface listProductBrand_listProductBrand_data {
12
18
  __typename: "ProductBrand";
13
19
  id: string;
14
20
  name: string;
21
+ description: string | null;
15
22
  imageId: string | null;
16
23
  orderType: CategoryProductsOrderTypeEnum | null;
17
24
  metaData: listProductBrand_listProductBrand_data_metaData | null;
25
+ translations: listProductBrand_listProductBrand_data_translations[] | null;
18
26
  }
19
27
  export interface listProductBrand_listProductBrand {
20
28
  __typename: "ProductBrandPaginationResponse";
@@ -8,6 +8,12 @@ export interface listCategory_listCategory_data_metaData {
8
8
  targetType: HTMLMetaDataTargetTypeEnum | null;
9
9
  redirectTo: string | null;
10
10
  }
11
+ export interface listCategory_listCategory_data_translations {
12
+ __typename: "CategoryTranslation";
13
+ description: string | null;
14
+ locale: string;
15
+ name: string | null;
16
+ }
11
17
  export interface listCategory_listCategory_data {
12
18
  __typename: "Category";
13
19
  id: string;
@@ -15,10 +21,12 @@ export interface listCategory_listCategory_data {
15
21
  updatedAt: any | null;
16
22
  deleted: boolean | null;
17
23
  name: string;
24
+ description: string | null;
18
25
  parentId: string | null;
19
26
  imageId: string | null;
20
27
  orderType: CategoryProductsOrderTypeEnum | null;
21
28
  metaData: listCategory_listCategory_data_metaData | null;
29
+ translations: listCategory_listCategory_data_translations[] | null;
22
30
  categoryPath: string[] | null;
23
31
  }
24
32
  export interface listCategory_listCategory {
@@ -130,6 +130,7 @@ export interface getCheckoutById_getCheckoutById_cart_items_variant {
130
130
  name: string;
131
131
  productId: string | null;
132
132
  sku: string | null;
133
+ slug: string | null;
133
134
  variantValues: getCheckoutById_getCheckoutById_cart_items_variant_variantValues[] | null;
134
135
  }
135
136
  export interface getCheckoutById_getCheckoutById_cart_items {
@@ -211,5 +211,5 @@ export interface getOrder {
211
211
  getOrder: getOrder_getOrder;
212
212
  }
213
213
  export interface getOrderVariables {
214
- orderId?: string | null;
214
+ orderId: string;
215
215
  }
@@ -11,6 +11,12 @@ export interface listPaymentGateway_listPaymentGateway_additionalPrices {
11
11
  name: string;
12
12
  type: PaymentGatewayAdditionalPriceTypeEnum;
13
13
  }
14
+ export interface listPaymentGateway_listPaymentGateway_translations {
15
+ __typename: "PaymentGatewayTranslation";
16
+ description: string | null;
17
+ locale: string;
18
+ name: string | null;
19
+ }
14
20
  export interface listPaymentGateway_listPaymentGateway {
15
21
  __typename: "PaymentGateway";
16
22
  paymentMethods: listPaymentGateway_listPaymentGateway_paymentMethods[];
@@ -21,6 +27,7 @@ export interface listPaymentGateway_listPaymentGateway {
21
27
  testMode: boolean | null;
22
28
  code: string;
23
29
  additionalPrices: listPaymentGateway_listPaymentGateway_additionalPrices[] | null;
30
+ translations: listPaymentGateway_listPaymentGateway_translations[] | null;
24
31
  }
25
32
  export interface listPaymentGateway {
26
33
  listPaymentGateway: listPaymentGateway_listPaymentGateway[];
@@ -1,4 +1,4 @@
1
- import { CustomerAccountStatusesEnum, CustomerEmailSubscriptionStatusesEnum } from "../../../__generated__/global-types";
1
+ import { CustomerAccountStatusEnum, CustomerEmailSubscriptionStatusesEnum } from "../../../__generated__/global-types";
2
2
  export interface customerLogin_customerLogin_customer_addresses_city {
3
3
  __typename: "CustomerAddressCity";
4
4
  code: string | null;
@@ -50,7 +50,7 @@ export interface customerLogin_customerLogin_customer {
50
50
  lastName: string | null;
51
51
  addresses: customerLogin_customerLogin_customer_addresses[] | null;
52
52
  phone: string | null;
53
- accountStatus: CustomerAccountStatusesEnum | null;
53
+ accountStatus: CustomerAccountStatusEnum | null;
54
54
  email: string | null;
55
55
  firstName: string;
56
56
  subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
@@ -1,4 +1,4 @@
1
- import { CustomerAccountStatusesEnum } from "../../../__generated__/global-types";
1
+ import { CustomerAccountStatusEnum } from "../../../__generated__/global-types";
2
2
  export interface getMyCustomer_getMyCustomer_addresses_city {
3
3
  __typename: "CustomerAddressCity";
4
4
  code: string | null;
@@ -50,7 +50,7 @@ export interface getMyCustomer_getMyCustomer {
50
50
  lastName: string | null;
51
51
  addresses: getMyCustomer_getMyCustomer_addresses[] | null;
52
52
  phone: string | null;
53
- accountStatus: CustomerAccountStatusesEnum | null;
53
+ accountStatus: CustomerAccountStatusEnum | null;
54
54
  email: string | null;
55
55
  firstName: string;
56
56
  }
@@ -1,4 +1,4 @@
1
- import { CustomerAccountStatusesEnum } from "../../../__generated__/global-types";
1
+ import { CustomerAccountStatusEnum } from "../../../__generated__/global-types";
2
2
  export interface registerCustomer_registerCustomer_customer_addresses_city {
3
3
  __typename: "CustomerAddressCity";
4
4
  code: string | null;
@@ -49,7 +49,7 @@ export interface registerCustomer_registerCustomer_customer {
49
49
  lastName: string | null;
50
50
  addresses: registerCustomer_registerCustomer_customer_addresses[] | null;
51
51
  phone: string | null;
52
- accountStatus: CustomerAccountStatusesEnum | null;
52
+ accountStatus: CustomerAccountStatusEnum | null;
53
53
  email: string | null;
54
54
  firstName: string;
55
55
  }
@@ -1,4 +1,4 @@
1
- import { SaveMyCustomerInput, CustomerAccountStatusesEnum } from "../../../__generated__/global-types";
1
+ import { SaveMyCustomerInput, CustomerAccountStatusEnum } from "../../../__generated__/global-types";
2
2
  export interface saveMyCustomer_saveMyCustomer_addresses_city {
3
3
  __typename: "CustomerAddressCity";
4
4
  code: string | null;
@@ -37,6 +37,7 @@ export interface saveMyCustomer_saveMyCustomer_addresses {
37
37
  lastName: string;
38
38
  postalCode: string;
39
39
  state: saveMyCustomer_saveMyCustomer_addresses_state | null;
40
+ identityNumber: string | null;
40
41
  taxNumber: string | null;
41
42
  taxOffice: string | null;
42
43
  title: string;
@@ -50,7 +51,7 @@ export interface saveMyCustomer_saveMyCustomer {
50
51
  lastName: string | null;
51
52
  addresses: saveMyCustomer_saveMyCustomer_addresses[] | null;
52
53
  phone: string | null;
53
- accountStatus: CustomerAccountStatusesEnum | null;
54
+ accountStatus: CustomerAccountStatusEnum | null;
54
55
  email: string | null;
55
56
  firstName: string;
56
57
  }
@@ -7,6 +7,18 @@ export interface listProductAttribute_listProductAttribute_options {
7
7
  deleted: boolean | null;
8
8
  name: string;
9
9
  }
10
+ export interface listProductAttribute_listProductAttribute_translations_options {
11
+ __typename: "ProductAttributeOptionTranslation";
12
+ id: string;
13
+ name: string | null;
14
+ }
15
+ export interface listProductAttribute_listProductAttribute_translations {
16
+ __typename: "ProductAttributeTranslation";
17
+ description: string | null;
18
+ locale: string;
19
+ name: string | null;
20
+ options: listProductAttribute_listProductAttribute_translations_options[] | null;
21
+ }
10
22
  export interface listProductAttribute_listProductAttribute {
11
23
  __typename: "ProductAttribute";
12
24
  id: string;
@@ -17,6 +29,7 @@ export interface listProductAttribute_listProductAttribute {
17
29
  description: string | null;
18
30
  type: ProductAttributeTypeEnum;
19
31
  options: listProductAttribute_listProductAttribute_options[] | null;
32
+ translations: listProductAttribute_listProductAttribute_translations[] | null;
20
33
  }
21
34
  export interface listProductAttribute {
22
35
  listProductAttribute: listProductAttribute_listProductAttribute[];
@@ -48,4 +48,5 @@ export interface getProductFilterData {
48
48
  }
49
49
  export interface getProductFilterDataVariables {
50
50
  categoryId?: string | null;
51
+ locale?: string | null;
51
52
  }
@@ -9,6 +9,17 @@ export interface listVariantType_listVariantType_values {
9
9
  thumbnailImageId: string | null;
10
10
  colorCode: string | null;
11
11
  }
12
+ export interface listVariantType_listVariantType_translations_values {
13
+ __typename: "VariantValueTranslation";
14
+ id: string;
15
+ name: string | null;
16
+ }
17
+ export interface listVariantType_listVariantType_translations {
18
+ __typename: "VariantTypeTranslation";
19
+ locale: string;
20
+ name: string | null;
21
+ values: listVariantType_listVariantType_translations_values[] | null;
22
+ }
12
23
  export interface listVariantType_listVariantType {
13
24
  __typename: "VariantType";
14
25
  id: string;
@@ -18,6 +29,7 @@ export interface listVariantType_listVariantType {
18
29
  name: string;
19
30
  selectionType: VariantSelectionTypeEnum;
20
31
  values: listVariantType_listVariantType_values[];
32
+ translations: listVariantType_listVariantType_translations[] | null;
21
33
  }
22
34
  export interface listVariantType {
23
35
  listVariantType: listVariantType_listVariantType[];
@@ -21,6 +21,8 @@ module.exports = {
21
21
 
22
22
  address: "Address",
23
23
  addressError: "Enter address",
24
+ missingAddressFields:
25
+ "There are some missing required fields in this address.",
24
26
  editAddress: "Edit Address",
25
27
  deleteAddress: "Delete Address",
26
28
  saveAddressCta: "Save this address for future purchases",
@@ -80,16 +82,12 @@ module.exports = {
80
82
 
81
83
  securePaymentTooltip: "All payments are secure and encrypted",
82
84
  giftPackage: "Gift Package",
83
- giftPackageCta: "Gift package cta",
85
+ giftPackageCta: "Gift wrap this order",
84
86
  giftPackageCtaPlaceholder: "Enter your gift message",
85
87
 
86
88
  paymentMethod: "Payment Method",
87
- paymentMethods: {
88
- storePickup: "Store Pickup",
89
- cashOnDelivery: "Cash on Delivery",
90
- creditCardOnDelivery: "Credit Card on Delivery",
91
- moneyOrder: "Money Order",
92
- },
89
+ paymentMethodDiscount: "Discount",
90
+ paymentMethodAdditionalPrice: "Fee",
93
91
 
94
92
  orderSuccessTitle: "Thank you for your order!",
95
93
  orderSuccessDescription:
@@ -136,6 +134,7 @@ module.exports = {
136
134
  couponCode: "Coupon Code",
137
135
  addCouponCode: "Add coupon code",
138
136
  addOrderNote: "Add order note",
137
+ editOrderNote: "Edit order note",
139
138
  orderNote: "Order Note",
140
139
  enterPhoneNumber: "Enter phone number",
141
140
 
@@ -21,6 +21,7 @@ module.exports = {
21
21
 
22
22
  address: "Adres",
23
23
  addressError: "Adres girin",
24
+ missingAddressFields: "Adres bilgilerinde bazı zorunlu alanlar eksik.",
24
25
  editAddress: "Adres Düzenle",
25
26
  deleteAddress: "Adresi Sil",
26
27
  saveAddressCta: "Bir sonraki işlem için bu adresi kaydet",
@@ -83,12 +84,8 @@ module.exports = {
83
84
  giftPackageCtaPlaceholder: "Hediye mesajınızı giriniz",
84
85
 
85
86
  paymentMethod: "Ödeme Yöntemi",
86
- paymentMethods: {
87
- storePickup: "Mağazadan Teslim",
88
- cashOnDelivery: "Kapıda Ödeme (Nakit)",
89
- creditCardOnDelivery: "Kapıda Ödeme (Kredi Kartı)",
90
- moneyOrder: "Havale",
91
- },
87
+ paymentMethodDiscount: "İndirim",
88
+ paymentMethodAdditionalPrice: "İşlem Bedeli",
92
89
 
93
90
  orderSuccessTitle: "Siparişiniz için teşekkür ederiz!",
94
91
  orderSuccessDescription:
@@ -136,6 +133,7 @@ module.exports = {
136
133
  couponCode: "İndirim Kodu",
137
134
  addCouponCode: "İndirim kodu ekle",
138
135
  addOrderNote: "Sipariş notu ekle",
136
+ editOrderNote: "Sipariş notu düzenle",
139
137
  orderNote: "Sipariş Notu",
140
138
  enterPhoneNumber: "Telefon numarası girin",
141
139
 
@@ -31,6 +31,7 @@ export interface Props {
31
31
  value?: string;
32
32
  hasError?: boolean;
33
33
  errorText?: string;
34
+ name?: string;
34
35
  autocomplete?: string;
35
36
  tooltipText?: string;
36
37
  country?: string | null;
@@ -5,6 +5,8 @@ declare type Props = {
5
5
  rightContent?: React.ReactElement;
6
6
  bottomContent?: React.ReactElement;
7
7
  bottomContentVisible?: boolean;
8
+ hasError?: boolean;
9
+ errorText?: string;
8
10
  onClick?: () => void;
9
11
  };
10
12
  declare const _default: React.FunctionComponent<Props>;
@@ -98,7 +98,7 @@ export default class CheckoutViewModel {
98
98
  setAddressTitle: (value: string) => void;
99
99
  setPaymentGateway: (index: number) => void;
100
100
  setInstallmentCount: (count: number) => void;
101
- changeStep: (step: CheckoutStep) => void;
101
+ changeStep: (step: CheckoutStep) => Promise<void>;
102
102
  logout: () => Promise<void>;
103
103
  }
104
104
  export declare enum CheckoutStep {