@ikas/storefront 1.0.14 → 1.0.15-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 (25) hide show
  1. package/build/__generated__/global-types.d.ts +6 -1
  2. package/build/api/blog/__generated__/getBlog.d.ts +15 -13
  3. package/build/api/blog/__generated__/listBlog.d.ts +15 -13
  4. package/build/api/blog/__generated__/listBlogCategory.d.ts +15 -13
  5. package/build/api/blog/__generated__/listBlogMetaData.d.ts +15 -13
  6. package/build/api/brand/__generated__/listProductBrand.d.ts +3 -3
  7. package/build/api/category/__generated__/listCategory.d.ts +3 -3
  8. package/build/api/checkout/__generated__/getOrder.d.ts +3 -3
  9. package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +1 -1
  10. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +3 -3
  11. package/build/api/customer/__generated__/customerLogin.d.ts +11 -3
  12. package/build/api/customer/__generated__/getCustomerOrders.d.ts +3 -3
  13. package/build/api/customer/__generated__/getMyCustomer.d.ts +3 -3
  14. package/build/api/customer/__generated__/registerCustomer.d.ts +11 -3
  15. package/build/api/customer/__generated__/saveMyCustomer.d.ts +11 -3
  16. package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +15 -13
  17. package/build/api/variant-type/__generated__/listVariantType.d.ts +3 -3
  18. package/build/index.es.js +1196 -9
  19. package/build/index.js +1196 -8
  20. package/build/models/data/checkout-settings/index.d.ts +1 -1
  21. package/build/models/data/customer/address/index.d.ts +2 -1
  22. package/build/models/data/order/address/index.d.ts +2 -1
  23. package/build/utils/helper.d.ts +1 -0
  24. package/build/utils/postalCodes.d.ts +16 -0
  25. package/package.json +1 -1
@@ -3,6 +3,7 @@ export declare class IkasCheckoutSettings {
3
3
  createdAt: number;
4
4
  updatedAt: number;
5
5
  phoneRequirement: IkasCheckoutRequirementEnum | null;
6
+ postalCodeRequirement: IkasCheckoutRequirementEnum | null;
6
7
  identityNumberRequirement: IkasCheckoutRequirementEnum | null;
7
8
  isAccountRequired: boolean;
8
9
  isTermsAndConditionsDefaultChecked: boolean;
@@ -11,7 +12,6 @@ export declare class IkasCheckoutSettings {
11
12
  storefrontId: string;
12
13
  giftPackagePriceList: IkasCheckoutSettingsPrice[] | null;
13
14
  isGiftPackageEnabled: boolean;
14
- isShowPostalCode: boolean;
15
15
  constructor(data?: Partial<IkasCheckoutSettings>);
16
16
  }
17
17
  export declare enum IkasCheckoutRequirementEnum {
@@ -17,7 +17,7 @@ export declare class IkasCustomerAddress {
17
17
  identityNumber?: string | null;
18
18
  taxNumber?: string | null;
19
19
  taxOffice?: string | null;
20
- checkoutSettings?: IkasCheckoutSettings;
20
+ checkoutSettings?: IkasCheckoutSettings | null;
21
21
  isDistrictRequired?: boolean;
22
22
  constructor(data?: Partial<IkasCustomerAddress>);
23
23
  get addressText(): string;
@@ -45,6 +45,7 @@ export declare type IkasAddressValidationResult = {
45
45
  city: boolean;
46
46
  district: boolean;
47
47
  phone: boolean;
48
+ postalCode: boolean;
48
49
  identityNumber: boolean;
49
50
  title: boolean;
50
51
  };
@@ -17,7 +17,7 @@ export declare class IkasOrderAddress {
17
17
  identityNumber?: string | null;
18
18
  taxNumber?: string | null;
19
19
  taxOffice?: string | null;
20
- checkoutSettings?: IkasCheckoutSettings;
20
+ checkoutSettings?: IkasCheckoutSettings | null;
21
21
  isDistrictRequired?: boolean;
22
22
  constructor(data?: Partial<IkasOrderAddress>);
23
23
  get addressText(): string;
@@ -45,6 +45,7 @@ export declare type IkasAddressValidationResult = {
45
45
  city: boolean;
46
46
  district: boolean;
47
47
  phone: boolean;
48
+ postalCode: boolean;
48
49
  identityNumber: boolean;
49
50
  };
50
51
  export {};
@@ -6,3 +6,4 @@ export declare function stringSorter(atitle: string, btitle: string): number;
6
6
  export declare function findAllIndexes(str: string, pattern: string): number[];
7
7
  export declare function formatDate(date: Date): string;
8
8
  export declare function tryForEach(items: Array<any>, callback: (item: any, index: number) => void, printErrors?: boolean): void;
9
+ export declare function isValidPostalCode(postalCode: string | null | undefined, iso2?: string): boolean;
@@ -0,0 +1,16 @@
1
+ export declare const COUNTRY_ADDRESS_POSTALS: ({
2
+ abbrev: string;
3
+ name: string;
4
+ postal: RegExp;
5
+ range?: undefined;
6
+ } | {
7
+ abbrev: string;
8
+ name: string;
9
+ postal?: undefined;
10
+ range?: undefined;
11
+ } | {
12
+ abbrev: string;
13
+ name: string;
14
+ postal: RegExp;
15
+ range: string[];
16
+ })[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "1.0.14",
3
+ "version": "1.0.15-alpha.1",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",