@ikas/storefront 0.0.49 → 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.
- package/build/__generated__/global-types.d.ts +61 -0
- package/build/api/checkout/index.d.ts +1 -0
- package/build/api/customer/__generated__/getMyCustomer.d.ts +1 -0
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +1 -0
- package/build/api/index.d.ts +1 -0
- package/build/api/product-search/__generated__/getProductFilterData.d.ts +27 -0
- package/build/api/product-search/__generated__/searchProducts.d.ts +26 -0
- package/build/api/product-search/index.d.ts +16 -0
- package/build/components/image/index.d.ts +3 -0
- package/build/components/index.d.ts +1 -0
- package/build/index.es.js +1277 -210
- package/build/index.js +1280 -209
- package/build/models/data/category/index.d.ts +2 -0
- package/build/models/data/index.d.ts +1 -0
- package/build/models/data/product/attribute-value/index.d.ts +5 -1
- package/build/models/data/product-attribute/index.d.ts +1 -1
- package/build/models/data/product-filter/index.d.ts +72 -0
- package/build/models/data/simple-product/index.d.ts +134 -0
- package/build/models/data/variant-type/variant-value/index.d.ts +1 -1
- package/build/models/ui/index.d.ts +0 -1
- package/build/models/ui/product-list/index.d.ts +30 -7
- package/build/utils/providers/page-data.d.ts +2 -2
- package/build/utils/providers/prop-value/product-detail.d.ts +2 -2
- package/package.json +1 -1
- package/build/models/ui/product-list/filter.d.ts +0 -18
|
@@ -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;
|
package/build/api/index.d.ts
CHANGED
|
@@ -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
|
+
}
|
|
@@ -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";
|