@ikas/storefront 0.0.48 → 0.0.50

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.
@@ -133,6 +133,29 @@ export declare enum ProductAttributeTypeEnum {
133
133
  NUMERIC = "NUMERIC",
134
134
  TEXT = "TEXT"
135
135
  }
136
+ /**
137
+ * Product Filter Type Enum Codes
138
+ */
139
+ export declare enum ProductFilterDisplayTypeEnum {
140
+ BOX = "BOX",
141
+ DATE_RANGE = "DATE_RANGE",
142
+ LIST = "LIST",
143
+ NUMBER_LIST = "NUMBER_LIST",
144
+ NUMBER_RANGE = "NUMBER_RANGE",
145
+ SWATCH = "SWATCH"
146
+ }
147
+ /**
148
+ * Product Filter Type Enum Codes
149
+ */
150
+ export declare enum ProductFilterTypeEnum {
151
+ ATTRIBUTE = "ATTRIBUTE",
152
+ BRAND = "BRAND",
153
+ DISCOUNT_RATIO = "DISCOUNT_RATIO",
154
+ PRICE = "PRICE",
155
+ STOCK_STATUS = "STOCK_STATUS",
156
+ TAG = "TAG",
157
+ VARIANT_TYPE = "VARIANT_TYPE"
158
+ }
136
159
  /**
137
160
  * Product Types
138
161
  */
@@ -149,6 +172,21 @@ export declare enum ShippingMethodEnum {
149
172
  NO_SHIPMENT = "NO_SHIPMENT",
150
173
  SHIPMENT = "SHIPMENT"
151
174
  }
175
+ /**
176
+ * Sort By Direction Enum Codes
177
+ */
178
+ export declare enum SortByDirectionEnum {
179
+ ASC = "ASC",
180
+ DESC = "DESC"
181
+ }
182
+ /**
183
+ * Sort By Type Enum Codes
184
+ */
185
+ export declare enum SortByTypeEnum {
186
+ CREATED_AT = "CREATED_AT",
187
+ DISCOUNT_RATIO = "DISCOUNT_RATIO",
188
+ PRICE = "PRICE"
189
+ }
152
190
  /**
153
191
  * Transaction Card Association Enum
154
192
  */
@@ -204,6 +242,7 @@ export interface CategoryFilterInput {
204
242
  in?: string[] | null;
205
243
  }
206
244
  export interface CheckStocksLineInput {
245
+ productId: string;
207
246
  quantity: number;
208
247
  stockLocationId?: string | null;
209
248
  variantId: string;
@@ -300,6 +339,8 @@ export interface OrderAddressStateInput {
300
339
  export interface OrderAdjustmentInput {
301
340
  amount: number;
302
341
  amountType: AmountTypeEnum;
342
+ campaignId?: string | null;
343
+ couponId?: string | null;
303
344
  name: string;
304
345
  order: number;
305
346
  type: AdjustmentEnum;
@@ -348,6 +389,26 @@ export interface SaveMyCustomerInput {
348
389
  lastName: string;
349
390
  phone?: string | null;
350
391
  }
392
+ export interface SearchInput {
393
+ categoryIdList?: string[] | null;
394
+ filterList?: SearchInputFilterListInput[] | null;
395
+ order?: SearchInputOrderByInput[] | null;
396
+ page?: number | null;
397
+ perPage?: number | null;
398
+ priceListId?: string | null;
399
+ productIdList?: string[] | null;
400
+ query?: string | null;
401
+ slug?: string | null;
402
+ }
403
+ export interface SearchInputFilterListInput {
404
+ id: string;
405
+ type: ProductFilterTypeEnum;
406
+ valueList: string[];
407
+ }
408
+ export interface SearchInputOrderByInput {
409
+ direction: SortByDirectionEnum;
410
+ type: SortByTypeEnum;
411
+ }
351
412
  export interface StringFilterInput {
352
413
  eq?: string | null;
353
414
  in?: string[] | null;
@@ -15,5 +15,6 @@ declare type CheckStocksLineInput = {
15
15
  quantity: number;
16
16
  stockLocationId?: string | null;
17
17
  variantId: string;
18
+ productId: string;
18
19
  };
19
20
  export {};
@@ -40,6 +40,7 @@ export interface getMyCustomer_getMyCustomer_addresses {
40
40
  taxNumber: string | null;
41
41
  taxOffice: string | null;
42
42
  title: string;
43
+ phone: string | null;
43
44
  }
44
45
  export interface getMyCustomer_getMyCustomer {
45
46
  __typename: "Customer";
@@ -40,6 +40,7 @@ export interface saveMyCustomer_saveMyCustomer_addresses {
40
40
  taxNumber: string | null;
41
41
  taxOffice: string | null;
42
42
  title: string;
43
+ phone: string | null;
43
44
  }
44
45
  export interface saveMyCustomer_saveMyCustomer {
45
46
  __typename: "Customer";
@@ -9,6 +9,7 @@ export { IkasDistrictAPI } from "./district/index";
9
9
  export { IkasHTMLMetaDataAPI } from "./html-meta-data/index";
10
10
  export { IkasMerchantAPI } from "./merchant/index";
11
11
  export { IkasProductAPI } from "./product/index";
12
+ export { IkasProductSearchAPI } from "./product-search/index";
12
13
  export { IkasProductAttributeAPI } from "./product-attribute/index";
13
14
  export { IkasStateAPI } from "./state/index";
14
15
  export { IkasStorefrontAPI } from "./storefront/index";
@@ -0,0 +1,27 @@
1
+ import { ProductFilterDisplayTypeEnum, ProductFilterTypeEnum } from "../../../__generated__/global-types";
2
+ export interface getProductFilterData_getProductFilterData_values {
3
+ __typename: "ApplicableProductFilterValue";
4
+ colorCode: string | null;
5
+ id: string;
6
+ key: string;
7
+ name: string;
8
+ thumbnailImageId: string | null;
9
+ }
10
+ export interface getProductFilterData_getProductFilterData {
11
+ __typename: "ProductFilterData";
12
+ customValues: string[] | null;
13
+ displayType: ProductFilterDisplayTypeEnum;
14
+ id: string;
15
+ isMultiSelect: boolean;
16
+ key: string;
17
+ name: string;
18
+ order: number;
19
+ type: ProductFilterTypeEnum;
20
+ values: getProductFilterData_getProductFilterData_values[] | null;
21
+ }
22
+ export interface getProductFilterData {
23
+ getProductFilterData: getProductFilterData_getProductFilterData[];
24
+ }
25
+ export interface getProductFilterDataVariables {
26
+ categoryIds?: string[] | null;
27
+ }
@@ -0,0 +1,26 @@
1
+ import { SearchInput } from "../../../__generated__/global-types";
2
+ export interface searchProducts_searchProducts_facets_values {
3
+ __typename: "ProductFacetCountValue";
4
+ count: number;
5
+ id: string;
6
+ }
7
+ export interface searchProducts_searchProducts_facets {
8
+ __typename: "ProductFacetCount";
9
+ id: string;
10
+ values: searchProducts_searchProducts_facets_values[];
11
+ }
12
+ export interface searchProducts_searchProducts {
13
+ __typename: "ProductSearchResponse";
14
+ count: number;
15
+ data: any;
16
+ facets: searchProducts_searchProducts_facets[] | null;
17
+ limit: number;
18
+ page: number;
19
+ totalCount: number;
20
+ }
21
+ export interface searchProducts {
22
+ searchProducts: searchProducts_searchProducts;
23
+ }
24
+ export interface searchProductsVariables {
25
+ input: SearchInput;
26
+ }
@@ -0,0 +1,16 @@
1
+ import { SearchInput } from "../../__generated__/global-types";
2
+ import { IkasProduct } from "../../models/index";
3
+ import * as SearchProductTypes from "./__generated__/searchProducts";
4
+ import { IkasProductFilter } from "../../models/data/product-filter/index";
5
+ export declare class IkasProductSearchAPI {
6
+ static searchProducts(input: SearchInput): Promise<{
7
+ data: IkasProduct[];
8
+ __typename: "ProductSearchResponse";
9
+ count: number;
10
+ facets: SearchProductTypes.searchProducts_searchProducts_facets[] | null;
11
+ limit: number;
12
+ page: number;
13
+ totalCount: number;
14
+ } | undefined>;
15
+ static getProductFilterData(categoryIds?: string[]): Promise<IkasProductFilter[] | undefined>;
16
+ }
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ import { ImageProps } from "next/image";
3
+ export declare const Image: React.FC<ImageProps>;
@@ -2,5 +2,6 @@ export { IkasCheckoutPage } from "./checkout/index";
2
2
  export { IkasPage } from "./page/index";
3
3
  export { IkasPageHead } from "./page/head";
4
4
  export { IkasPageEditor } from "./page-editor/index";
5
+ export { Image } from "./image/index";
5
6
  export * from "./gtm/index";
6
7
  export * from "./gtm/functions";
@@ -6,6 +6,7 @@ declare type Props = {
6
6
  description?: string | null;
7
7
  pageSpecificDataStr?: string;
8
8
  merchantSettings?: string;
9
+ addOgpMetas?: boolean;
9
10
  };
10
11
  export declare const IkasPageHead: React.FC<Props>;
11
12
  export {};
@@ -7,6 +7,7 @@ declare type Props = {
7
7
  pageSpecificDataStr?: string;
8
8
  settingsStr: string;
9
9
  merchantSettings?: string;
10
+ addOgpMetas?: boolean;
10
11
  };
11
12
  export declare const IkasPage: React.FC<Props>;
12
13
  export {};