@ikas/storefront 0.0.160-alpha.12 → 0.0.160-alpha.2
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 +0 -8
- package/build/api/blog/__generated__/listBlog.d.ts +1 -1
- package/build/api/brand/__generated__/listProductBrand.d.ts +1 -1
- package/build/api/category/__generated__/listCategory.d.ts +1 -1
- package/build/api/category/__generated__/listCategoryPaths.d.ts +1 -1
- package/build/api/customer/index.d.ts +1 -2
- package/build/api/product-search/__generated__/getProductFilterData.d.ts +0 -1
- package/build/api/product-search/index.d.ts +1 -1
- package/build/index.es.js +577 -6819
- package/build/index.js +1991 -8237
- package/build/models/data/index.d.ts +0 -1
- package/build/models/data/order/index.d.ts +2 -16
- package/build/models/data/order/line-item/index.d.ts +0 -2
- package/build/models/data/product-filter/index.d.ts +0 -7
- package/build/models/theme/component/prop/index.d.ts +0 -2
- package/build/models/theme/index.d.ts +0 -2
- package/build/models/theme/settings/index.d.ts +0 -6
- package/build/models/ui/index.d.ts +0 -1
- package/build/store/customer.d.ts +0 -2
- package/build/storefront/index.d.ts +0 -3
- package/build/utils/providers/page-data.d.ts +2 -7
- package/build/utils/providers/placeholders.d.ts +1 -2
- package/build/utils/providers/prop-value/blog-list.d.ts +1 -1
- package/build/utils/providers/prop-value/custom.d.ts +0 -2
- package/build/utils/settings.d.ts +0 -8
- package/package.json +1 -2
- package/build/api/customer/__generated__/listOrderRefundSettings.d.ts +0 -13
- package/build/models/data/order/refund/settings.d.ts +0 -6
- package/build/models/theme/page/component/prop-value/blog-category-list.d.ts +0 -7
- package/build/models/theme/page/component/prop-value/blog-category.d.ts +0 -5
- package/build/models/ui/blog-category-list/index.d.ts +0 -52
- package/build/utils/providers/prop-value/blog-category-list.d.ts +0 -7
- package/build/utils/providers/prop-value/blog-category.d.ts +0 -8
|
@@ -14,7 +14,6 @@ export type { IkasInstallmentInfo, IkasInstallmentPrice, IkasInstallmentInfoInpu
|
|
|
14
14
|
export * from "./merchant-settings/index";
|
|
15
15
|
export * from "./order/index";
|
|
16
16
|
export { IkasOrderLineItem } from "./order/line-item/index";
|
|
17
|
-
export { IkasOrderRefundSettings } from "./order/refund/settings";
|
|
18
17
|
export { IkasProduct, IkasProductType } from "./product/index";
|
|
19
18
|
export { IkasProductVariantType } from "./product/variant-type/index";
|
|
20
19
|
export { IkasProductVariant } from "./product/variant/index";
|
|
@@ -26,7 +26,6 @@ export declare class IkasOrder {
|
|
|
26
26
|
orderPackages: IkasOrderPackage[] | null;
|
|
27
27
|
currencyRates: IkasOrderCurrencyRate[] | null;
|
|
28
28
|
customerStore: IkasCustomerStore;
|
|
29
|
-
private _refundSettings;
|
|
30
29
|
constructor(data: IkasOrder);
|
|
31
30
|
get refundableItems(): IkasOrderLineItem[];
|
|
32
31
|
get unfullfilledItems(): IkasOrderLineItem[];
|
|
@@ -94,22 +93,9 @@ export declare enum IkasOrderPaymentStatus {
|
|
|
94
93
|
PARTIALLY_PAID = "PARTIALLY_PAID"
|
|
95
94
|
}
|
|
96
95
|
export declare enum IkasOrderPackageStatus {
|
|
97
|
-
|
|
98
|
-
CANCEL_REJECTED = "CANCEL_REJECTED",
|
|
99
|
-
CANCEL_REQUESTED = "CANCEL_REQUESTED",
|
|
100
|
-
DELIVERED = "DELIVERED",
|
|
101
|
-
FULFILLED = "FULFILLED",
|
|
102
|
-
READY_FOR_SHIPMENT = "READY_FOR_SHIPMENT",
|
|
103
|
-
PARTIALLY_CANCELLED = "PARTIALLY_CANCELLED",
|
|
104
|
-
PARTIALLY_DELIVERED = "PARTIALLY_DELIVERED",
|
|
96
|
+
UNFULFILLED = "UNFULFILLED",
|
|
105
97
|
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",
|
|
106
|
-
|
|
107
|
-
REFUNDED = "REFUNDED",
|
|
108
|
-
REFUND_REJECTED = "REFUND_REJECTED",
|
|
109
|
-
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
110
|
-
REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
|
|
111
|
-
UNABLE_TO_DELIVER = "UNABLE_TO_DELIVER",
|
|
112
|
-
UNFULFILLED = "UNFULFILLED"
|
|
98
|
+
FULFILLED = "FULFILLED"
|
|
113
99
|
}
|
|
114
100
|
export declare enum IkasOrderPackageFulfillStatus {
|
|
115
101
|
DELIVERED = "DELIVERED",
|
|
@@ -4,7 +4,6 @@ export declare class IkasOrderLineItem {
|
|
|
4
4
|
id: string;
|
|
5
5
|
createdAt: string;
|
|
6
6
|
updatedAt: string;
|
|
7
|
-
orderedAt: number;
|
|
8
7
|
deleted: boolean;
|
|
9
8
|
currencyCode: string;
|
|
10
9
|
discount?: IkasOrderLineDiscount | null;
|
|
@@ -18,7 +17,6 @@ export declare class IkasOrderLineItem {
|
|
|
18
17
|
variant: IkasOrderLineVariant;
|
|
19
18
|
status: OrderLineItemStatusEnum;
|
|
20
19
|
constructor(data: Partial<IkasOrderLineItem>);
|
|
21
|
-
get orderedAtDays(): number;
|
|
22
20
|
get priceWithQuantity(): number;
|
|
23
21
|
get finalPriceWithQuantity(): number;
|
|
24
22
|
get tax(): number;
|
|
@@ -9,7 +9,6 @@ export declare class IkasProductFilter {
|
|
|
9
9
|
type: IkasProductFilterType;
|
|
10
10
|
displayType: IkasProductFilterDisplayType;
|
|
11
11
|
isMultiSelect: boolean;
|
|
12
|
-
isFacetFilter: boolean | null;
|
|
13
12
|
values?: IkasApplicableProductFilterValue[] | null;
|
|
14
13
|
customValues?: string[] | null;
|
|
15
14
|
settings?: IkasProductFilterSettings | null;
|
|
@@ -50,7 +49,6 @@ export declare class IkasApplicableProductFilterValue {
|
|
|
50
49
|
export declare class IkasProductFilterValue {
|
|
51
50
|
id: string;
|
|
52
51
|
type: IkasProductFilterType;
|
|
53
|
-
displayType: IkasProductFilterDisplayType;
|
|
54
52
|
valueList: string[];
|
|
55
53
|
constructor(data: IkasProductFilterValue);
|
|
56
54
|
}
|
|
@@ -61,11 +59,6 @@ export declare class IkasProductFilterSettings {
|
|
|
61
59
|
sortType: IkasProductFilterSortType;
|
|
62
60
|
constructor(data: Partial<IkasProductFilterSettings>);
|
|
63
61
|
}
|
|
64
|
-
export declare type IkasProductFacetInput = {
|
|
65
|
-
id: string;
|
|
66
|
-
type: IkasProductFilterType;
|
|
67
|
-
displayType: IkasProductFilterDisplayType;
|
|
68
|
-
};
|
|
69
62
|
export declare enum IkasProductFilterType {
|
|
70
63
|
ATTRIBUTE = "ATTRIBUTE",
|
|
71
64
|
BRAND = "BRAND",
|
|
@@ -31,8 +31,6 @@ export declare enum IkasThemeComponentPropType {
|
|
|
31
31
|
COMPONENT_LIST = "COMPONENT_LIST",
|
|
32
32
|
BLOG = "BLOG",
|
|
33
33
|
BLOG_LIST = "BLOG_LIST",
|
|
34
|
-
BLOG_CATEGORY = "BLOG_CATEGORY",
|
|
35
|
-
BLOG_CATEGORY_LIST = "BLOG_CATEGORY_LIST",
|
|
36
34
|
OBJECT = "OBJECT",
|
|
37
35
|
STATIC_LIST = "STATIC_LIST",
|
|
38
36
|
DYNAMIC_LIST = "DYNAMIC_LIST",
|
|
@@ -14,5 +14,3 @@ export { IkasThemeSettings } from "./settings/index";
|
|
|
14
14
|
export { IkasThemeCustomData } from "./custom-data/index";
|
|
15
15
|
export { IkasBlogPropValue } from "./page/component/prop-value/blog";
|
|
16
16
|
export { IkasBlogListPropValue } from "./page/component/prop-value/blog-list";
|
|
17
|
-
export { IkasBlogCategoryPropValue } from "./page/component/prop-value/blog-category";
|
|
18
|
-
export { IkasBlogCategoryListPropValue } from "./page/component/prop-value/blog-category-list";
|
|
@@ -3,11 +3,5 @@ import { IkasThemeFavicon } from "./prop/favicon/index";
|
|
|
3
3
|
export declare class IkasThemeSettings {
|
|
4
4
|
colors: IkasThemeColor[];
|
|
5
5
|
favicon: IkasThemeFavicon;
|
|
6
|
-
stockPreference: IkasThemeStockPreference;
|
|
7
6
|
constructor(data?: Partial<IkasThemeSettings>);
|
|
8
7
|
}
|
|
9
|
-
export declare enum IkasThemeStockPreference {
|
|
10
|
-
HIDE_OUT_OF_STOCK = "HIDE_OUT_OF_STOCK",
|
|
11
|
-
SHOW_ALL = "SHOW_ALL",
|
|
12
|
-
SHOW_OUT_OF_STOCK_AT_END = "SHOW_OUT_OF_STOCK_AT_END"
|
|
13
|
-
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from "./blog-list/index";
|
|
2
|
-
export * from "./blog-category-list/index";
|
|
3
2
|
export { IkasBrandList, IkasBrandListType, IkasBrandListSortType, } from "./brand-list/index";
|
|
4
3
|
export { IkasCategoryList, IkasCategoryListType, IkasCategoryListSortType, } from "./category-list/index";
|
|
5
4
|
export type { IkasBrandListParams } from "./brand-list/index";
|
|
@@ -9,7 +9,6 @@ export declare class IkasCustomerStore {
|
|
|
9
9
|
private _visitorSubscribedEmail;
|
|
10
10
|
private _lastViewedProducts;
|
|
11
11
|
private _customerConsentGranted;
|
|
12
|
-
private _refundSettings?;
|
|
13
12
|
constructor(baseStore?: IkasBaseStore);
|
|
14
13
|
get initialized(): boolean;
|
|
15
14
|
get canCreateEmailSubscription(): boolean;
|
|
@@ -31,7 +30,6 @@ export declare class IkasCustomerStore {
|
|
|
31
30
|
}) => Promise<IkasOrderTransaction[]>;
|
|
32
31
|
getFavoriteProductsIds: () => Promise<IkasFavoriteProduct[]>;
|
|
33
32
|
getFavoriteProducts: () => Promise<IkasProduct[]>;
|
|
34
|
-
getOrderRefundSettings: () => Promise<void>;
|
|
35
33
|
addItemToFavorite: (productId: string) => Promise<boolean>;
|
|
36
34
|
removeItemFromFavorite: (productId: string) => Promise<boolean>;
|
|
37
35
|
isProductFavorite: (productId: string) => Promise<boolean>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IkasSalesChannelPaymentGateway } from "../models/data/sales-channel/index";
|
|
2
2
|
import { IkasStorefrontRouting } from "../models/data/storefront/routing/index";
|
|
3
|
-
import { IkasThemeStockPreference } from "../models/theme/settings/index";
|
|
4
3
|
import { IkasThemeFavicon } from "../models/theme/settings/prop/favicon/index";
|
|
5
4
|
import { IkasBaseStore } from "../store/index";
|
|
6
5
|
export declare class IkasStorefrontConfig {
|
|
@@ -19,7 +18,6 @@ export declare class IkasStorefrontConfig {
|
|
|
19
18
|
static gtmId?: string;
|
|
20
19
|
static fbpId?: string;
|
|
21
20
|
static favicon: IkasThemeFavicon;
|
|
22
|
-
static stockPreference: IkasThemeStockPreference;
|
|
23
21
|
static init(store: IkasBaseStore, components: any, config: Record<string, any>, apiUrlOverride?: string): void;
|
|
24
22
|
static initWithJson(json: Record<string, any>): void;
|
|
25
23
|
static getJson(): {
|
|
@@ -34,6 +32,5 @@ export declare class IkasStorefrontConfig {
|
|
|
34
32
|
gtmId: string | null;
|
|
35
33
|
fbpId: string | null;
|
|
36
34
|
favicon: any;
|
|
37
|
-
stockPreference: IkasThemeStockPreference;
|
|
38
35
|
};
|
|
39
36
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { NextRouter } from "next/router";
|
|
2
|
-
import { IkasTheme, IkasThemePageType, IkasThemePageComponent, IkasProductDetail, IkasThemeComponentProp, IkasThemeComponent, IkasProductList, IkasBrandList, IkasBrandListParams, IkasThemePage, IkasImage, IkasCategoryList, IkasBrand, IkasCategory, IkasThemeCustomData, IkasMerchantSettings, IkasThemeSettings, IkasComponentRenderer, IkasBlogListParams, IkasBlogList, IkasProductAttributeValue, IkasProductAttribute
|
|
2
|
+
import { IkasTheme, IkasThemePageType, IkasThemePageComponent, IkasProductDetail, IkasThemeComponentProp, IkasThemeComponent, IkasProductList, IkasBrandList, IkasBrandListParams, IkasThemePage, IkasImage, IkasCategoryList, IkasBrand, IkasCategory, IkasThemeCustomData, IkasMerchantSettings, IkasThemeSettings, IkasComponentRenderer, IkasBlogListParams, IkasBlogList, IkasProductAttributeValue, IkasProductAttribute } from "../../models/index";
|
|
3
3
|
import { IkasProductListParams } from "../../models/ui/product-list/index";
|
|
4
4
|
import { IkasNavigationLink } from "../../models/ui/navigation-link/index";
|
|
5
5
|
import { IkasCategoryListParams } from "../../models/ui/category-list/index";
|
|
6
6
|
import { CustomDataValue } from "./prop-value/custom";
|
|
7
7
|
import { IkasThemePageSpecification } from "../../models/theme/page/index";
|
|
8
|
-
import { IkasBlog
|
|
8
|
+
import { IkasBlog } from "../../models/data/blog/index";
|
|
9
9
|
import { IkasProductAttributeMap } from "../../models/data/product/attribute-value/index";
|
|
10
10
|
export declare class IkasPageDataProvider {
|
|
11
11
|
theme: IkasTheme;
|
|
@@ -36,7 +36,6 @@ export declare class IkasPageDataProvider {
|
|
|
36
36
|
gtmId: string | null;
|
|
37
37
|
fbpId: string | null;
|
|
38
38
|
favicon: any;
|
|
39
|
-
stockPreference: import("../../models/theme/settings/index").IkasThemeStockPreference;
|
|
40
39
|
};
|
|
41
40
|
};
|
|
42
41
|
};
|
|
@@ -86,10 +85,6 @@ export declare class IkasPageDataProvider {
|
|
|
86
85
|
static _initBlogPropValue(propValue: IkasBlog): IkasBlog;
|
|
87
86
|
static initBlogListPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
88
87
|
static _initBlogListPropValue(propValue: IkasBlogListParams): IkasBlogList;
|
|
89
|
-
static initBlogCategoryPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
90
|
-
static _initBlogCategoryPropValue(propValue: IkasBlogCategory): IkasBlogCategory;
|
|
91
|
-
static initBlogCategoryListPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
92
|
-
static _initBlogCategoryListPropValue(propValue: IkasBlogCategoryListParams): IkasBlogCategoryList;
|
|
93
88
|
}
|
|
94
89
|
export declare class IkasPageComponentPropValue {
|
|
95
90
|
pageComponent: IkasThemePageComponent;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IkasBlog,
|
|
1
|
+
import { IkasBlog, IkasBrand, IkasCategory, IkasProductDetail } from "../../models/index";
|
|
2
2
|
export declare function getPlaceholderProduct(): IkasProductDetail;
|
|
3
3
|
export declare function getPlaceholderCategory(): IkasCategory;
|
|
4
4
|
export declare function getPlaceholderBrand(): IkasBrand;
|
|
5
5
|
export declare function getPlaceholderBlog(): IkasBlog;
|
|
6
|
-
export declare function getPlaceholderBlogCategory(): IkasBlogCategory;
|
|
@@ -4,6 +4,6 @@ export declare class IkasBlogListPropValueProvider implements IkasPropValueProvi
|
|
|
4
4
|
private pageType;
|
|
5
5
|
private blogListPropValue;
|
|
6
6
|
private pageSpecificData?;
|
|
7
|
-
constructor(pageType: IkasThemePageType,
|
|
7
|
+
constructor(pageType: IkasThemePageType, brandListPropValue: IkasBlogListPropValue, pageSpecificData?: any);
|
|
8
8
|
getValue(): Promise<IkasBlogList>;
|
|
9
9
|
}
|
|
@@ -33,8 +33,6 @@ export declare class IkasCustomPropValueProvider implements IkasPropValueProvide
|
|
|
33
33
|
private getComponentListValue;
|
|
34
34
|
private getBlogValue;
|
|
35
35
|
private getBlogListValue;
|
|
36
|
-
private getBlogCategoryValue;
|
|
37
|
-
private getBlogCategoryListValue;
|
|
38
36
|
}
|
|
39
37
|
export declare type CustomDataValue = {
|
|
40
38
|
value: any;
|
|
@@ -7,7 +7,6 @@ import { IkasSalesChannel } from "../models/data/sales-channel/index";
|
|
|
7
7
|
import { IkasStorefrontRouting } from "../models/data/storefront/routing/index";
|
|
8
8
|
import { IkasStorefrontThemeLocalization } from "../models/data/storefront/theme-localization/index";
|
|
9
9
|
import { IkasThemeFavicon } from "../models/theme/settings/prop/favicon/index";
|
|
10
|
-
import { IkasThemeStockPreference } from "../models/theme/settings/index";
|
|
11
10
|
export declare class SettingsHelper {
|
|
12
11
|
static readLocalTheme(): Promise<IkasTheme>;
|
|
13
12
|
static readSettingsFile(): Promise<any>;
|
|
@@ -31,7 +30,6 @@ export declare class SettingsHelper {
|
|
|
31
30
|
gtmId: string | null;
|
|
32
31
|
fbpId: string | null;
|
|
33
32
|
favicon: any;
|
|
34
|
-
stockPreference: IkasThemeStockPreference;
|
|
35
33
|
};
|
|
36
34
|
};
|
|
37
35
|
} | {
|
|
@@ -57,7 +55,6 @@ export declare class SettingsHelper {
|
|
|
57
55
|
gtmId: string | null;
|
|
58
56
|
fbpId: string | null;
|
|
59
57
|
favicon: any;
|
|
60
|
-
stockPreference: IkasThemeStockPreference;
|
|
61
58
|
};
|
|
62
59
|
};
|
|
63
60
|
revalidate: number;
|
|
@@ -82,7 +79,6 @@ export declare class SettingsHelper {
|
|
|
82
79
|
gtmId: string | null;
|
|
83
80
|
fbpId: string | null;
|
|
84
81
|
favicon: any;
|
|
85
|
-
stockPreference: IkasThemeStockPreference;
|
|
86
82
|
};
|
|
87
83
|
};
|
|
88
84
|
} | {
|
|
@@ -108,7 +104,6 @@ export declare class SettingsHelper {
|
|
|
108
104
|
gtmId: string | null;
|
|
109
105
|
fbpId: string | null;
|
|
110
106
|
favicon: any;
|
|
111
|
-
stockPreference: IkasThemeStockPreference;
|
|
112
107
|
};
|
|
113
108
|
};
|
|
114
109
|
revalidate: number;
|
|
@@ -133,7 +128,6 @@ export declare class SettingsHelper {
|
|
|
133
128
|
gtmId: string | null;
|
|
134
129
|
fbpId: string | null;
|
|
135
130
|
favicon: any;
|
|
136
|
-
stockPreference: IkasThemeStockPreference;
|
|
137
131
|
};
|
|
138
132
|
};
|
|
139
133
|
} | {
|
|
@@ -159,7 +153,6 @@ export declare class SettingsHelper {
|
|
|
159
153
|
gtmId: string | null;
|
|
160
154
|
fbpId: string | null;
|
|
161
155
|
favicon: any;
|
|
162
|
-
stockPreference: IkasThemeStockPreference;
|
|
163
156
|
};
|
|
164
157
|
};
|
|
165
158
|
revalidate: number;
|
|
@@ -172,5 +165,4 @@ export declare type SettingsData = {
|
|
|
172
165
|
salesChannel: IkasSalesChannel;
|
|
173
166
|
routing: IkasStorefrontRouting;
|
|
174
167
|
favicon: IkasThemeFavicon;
|
|
175
|
-
stockPreference: IkasThemeStockPreference;
|
|
176
168
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "0.0.160-alpha.
|
|
3
|
+
"version": "0.0.160-alpha.2",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"module": "./build/index.es.js",
|
|
6
6
|
"author": "Umut Ozan Yıldırım",
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"graphql": "^15.3.0",
|
|
32
32
|
"graphql-tag": "^2.10.3",
|
|
33
33
|
"lodash": "^4.17.20",
|
|
34
|
-
"moment": "^2.29.1",
|
|
35
34
|
"node-fetch": "^2.6.1",
|
|
36
35
|
"query-string": "^6.13.8",
|
|
37
36
|
"uuid": "^8.3.2"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { StringFilterInput } from "../../../__generated__/global-types";
|
|
2
|
-
export interface listOrderRefundSettings_listOrderRefundSettings {
|
|
3
|
-
__typename: "OrderRefundSettings";
|
|
4
|
-
isActiveRefundSection: boolean;
|
|
5
|
-
orderRefundDayLimit: number | null;
|
|
6
|
-
refundDesc: string;
|
|
7
|
-
}
|
|
8
|
-
export interface listOrderRefundSettings {
|
|
9
|
-
listOrderRefundSettings: listOrderRefundSettings_listOrderRefundSettings[];
|
|
10
|
-
}
|
|
11
|
-
export interface listOrderRefundSettingsVariables {
|
|
12
|
-
storefrontId: StringFilterInput;
|
|
13
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IkasBlogCategoryListType } from "../../../../ui/blog-category-list/index";
|
|
2
|
-
export declare class IkasBlogCategoryListPropValue {
|
|
3
|
-
blogCategoryListType: IkasBlogCategoryListType;
|
|
4
|
-
initialLimit?: number | null;
|
|
5
|
-
blogCategoryIds?: string[] | null;
|
|
6
|
-
constructor(data: Partial<IkasBlogCategoryListPropValue>);
|
|
7
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { IkasBlogCategory } from "../../data/blog/index";
|
|
2
|
-
import { IkasBlogCategoryListPropValue } from "../../theme/page/component/prop-value/blog-category-list";
|
|
3
|
-
export declare class IkasBlogCategoryList {
|
|
4
|
-
data: IkasBlogCategory[];
|
|
5
|
-
private _type;
|
|
6
|
-
private _limit;
|
|
7
|
-
private _page;
|
|
8
|
-
private _count;
|
|
9
|
-
private _initialized;
|
|
10
|
-
private _minPage?;
|
|
11
|
-
private _blogCategoryListPropValue;
|
|
12
|
-
private _isLoading;
|
|
13
|
-
constructor(data: IkasBlogCategoryListParams);
|
|
14
|
-
get limit(): number;
|
|
15
|
-
get page(): number;
|
|
16
|
-
get count(): number;
|
|
17
|
-
get pageCount(): number;
|
|
18
|
-
get isInitialized(): boolean;
|
|
19
|
-
get isStatic(): boolean;
|
|
20
|
-
get hasPrev(): boolean;
|
|
21
|
-
get hasNext(): boolean;
|
|
22
|
-
get isLoading(): boolean;
|
|
23
|
-
private listBlogCategories;
|
|
24
|
-
private getInitial;
|
|
25
|
-
getPrev: () => Promise<void>;
|
|
26
|
-
getNext: () => Promise<void>;
|
|
27
|
-
getPage: (page: number) => Promise<void>;
|
|
28
|
-
toJSON(): {
|
|
29
|
-
data: IkasBlogCategory[];
|
|
30
|
-
type: IkasBlogCategoryListType;
|
|
31
|
-
limit: number;
|
|
32
|
-
page: number;
|
|
33
|
-
count: number;
|
|
34
|
-
initialized: boolean;
|
|
35
|
-
minPage: number | null | undefined;
|
|
36
|
-
blogCategoryListPropValue: IkasBlogCategoryListPropValue;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export declare type IkasBlogCategoryListParams = {
|
|
40
|
-
data?: IkasBlogCategory[];
|
|
41
|
-
type?: IkasBlogCategoryListType;
|
|
42
|
-
limit?: number;
|
|
43
|
-
page?: number;
|
|
44
|
-
count?: number;
|
|
45
|
-
initialized?: boolean;
|
|
46
|
-
minPage?: number;
|
|
47
|
-
blogCategoryListPropValue: IkasBlogCategoryListPropValue;
|
|
48
|
-
};
|
|
49
|
-
export declare enum IkasBlogCategoryListType {
|
|
50
|
-
ALL = "ALL",
|
|
51
|
-
STATIC = "STATIC"
|
|
52
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IkasBlogCategoryList, IkasBlogCategoryListPropValue } from "../../../models/index";
|
|
2
|
-
import IkasPropValueProvider from "./index";
|
|
3
|
-
export declare class IkasBlogCategoryListPropValueProvider implements IkasPropValueProvider<IkasBlogCategoryList> {
|
|
4
|
-
private blogCategoryListPropValue;
|
|
5
|
-
constructor(blogCategoryListPropValue: IkasBlogCategoryListPropValue);
|
|
6
|
-
getValue(): Promise<IkasBlogCategoryList>;
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IkasBlogCategory, IkasBlogCategoryPropValue } from "../../../models/index";
|
|
2
|
-
import IkasPropValueProvider from "./index";
|
|
3
|
-
export declare class IkasBlogCategoryPropValueProvider implements IkasPropValueProvider<IkasBlogCategory | null> {
|
|
4
|
-
private blogCategoryPropValue;
|
|
5
|
-
private pageSpecificData?;
|
|
6
|
-
constructor(propValue: IkasBlogCategoryPropValue, pageSpecificData?: any);
|
|
7
|
-
getValue(): Promise<IkasBlogCategory | null>;
|
|
8
|
-
}
|