@ikas/storefront 0.0.100 → 0.0.101
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 +1 -7
- package/build/api/cart/__generated__/getCart.d.ts +0 -4
- package/build/api/cart/__generated__/saveItemToCart.d.ts +0 -4
- package/build/api/checkout/__generated__/checkStocks.d.ts +3 -3
- package/build/api/checkout/index.d.ts +1 -1
- package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +0 -3
- package/build/api/country/index.d.ts +1 -1
- package/build/api/index.d.ts +2 -0
- package/build/api/product-stock-location/__generated__/listProductStockLocation.d.ts +13 -0
- package/build/api/product-stock-location/index.d.ts +4 -0
- package/build/api/storefront/__generated__/getStorefront.d.ts +23 -0
- package/build/api/storefront/index.d.ts +4 -0
- package/build/api/theme/index.d.ts +4 -0
- package/build/components/checkout/index.d.ts +0 -3
- package/build/components/checkout/model.d.ts +3 -4
- package/build/index.es.js +409 -469
- package/build/index.js +412 -471
- package/build/models/data/cart/index.d.ts +0 -9
- package/build/models/data/storefront/index.d.ts +6 -19
- package/build/models/data/storefront/stockfront-location/index.d.ts +5 -0
- package/build/models/data/storefront/stockfront-route/index.d.ts +5 -0
- package/build/models/data/storefront/{domain → storefront-domain}/index.d.ts +0 -1
- package/build/models/data/storefront/storefront-region/index.d.ts +18 -0
- package/build/models/ui/product-list/index.d.ts +1 -1
- package/build/pages/checkout/[id].d.ts +0 -3
- package/build/storefront/index.d.ts +0 -6
- package/package.json +1 -1
- package/build/models/data/sales-channel/index.d.ts +0 -12
- package/build/models/data/storefront/localization/index.d.ts +0 -7
- package/build/models/data/storefront/routing/index.d.ts +0 -9
- package/build/models/data/storefront/theme/index.d.ts +0 -13
- package/build/models/data/storefront/theme-localization/index.d.ts +0 -12
- package/build/utils/settings.d.ts +0 -84
|
@@ -10,10 +10,6 @@ export declare class IkasCart {
|
|
|
10
10
|
items: IkasOrderLineItem[];
|
|
11
11
|
merchantId: string;
|
|
12
12
|
totalPrice: number;
|
|
13
|
-
salesChannelId: string;
|
|
14
|
-
storefrontId: string | null;
|
|
15
|
-
storefrontRoutingId: string | null;
|
|
16
|
-
storefrontThemeId: string | null;
|
|
17
13
|
constructor(data: Partial<IkasCart>);
|
|
18
14
|
get totalTax(): number;
|
|
19
15
|
}
|
|
@@ -30,10 +26,5 @@ export declare type IkasSaveItemToCartInput = {
|
|
|
30
26
|
cartId: string | null;
|
|
31
27
|
customerId: string | null;
|
|
32
28
|
item: IkasCartLineItemInput;
|
|
33
|
-
priceListId: string | null;
|
|
34
|
-
salesChannelId: string;
|
|
35
|
-
storefrontId: string;
|
|
36
|
-
storefrontRoutingId: string;
|
|
37
|
-
storefrontThemeId: string;
|
|
38
29
|
};
|
|
39
30
|
export {};
|
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { IkasStorefrontRouting } from "./routing/index";
|
|
4
|
-
import { IkasStorefrontTheme } from "./theme/index";
|
|
5
|
-
import { IkasStorefrontThemeLocalization } from "./theme-localization/index";
|
|
6
|
-
export declare enum StorefrontStatus {
|
|
7
|
-
WAITING = "WAITING",
|
|
8
|
-
READY = "READY"
|
|
9
|
-
}
|
|
1
|
+
import { IkasStorefrontDomain } from "./storefront-domain/index";
|
|
2
|
+
import { IkasStorefrontRegion } from "./storefront-region/index";
|
|
10
3
|
export declare class IkasStorefront {
|
|
11
4
|
id: string;
|
|
12
5
|
name: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
salesChannelId: string | null;
|
|
17
|
-
fbpId: string | null;
|
|
18
|
-
gtmId: string | null;
|
|
19
|
-
localizations: IkasStorefrontLocalization[];
|
|
20
|
-
routings: IkasStorefrontRouting[];
|
|
6
|
+
themeId: string;
|
|
7
|
+
themeVersionId: string;
|
|
8
|
+
userId: string;
|
|
21
9
|
domains: IkasStorefrontDomain[];
|
|
22
|
-
|
|
23
|
-
regions: IkasStorefrontThemeLocalization[];
|
|
10
|
+
regions: IkasStorefrontRegion[];
|
|
24
11
|
constructor(data?: Partial<IkasStorefront>);
|
|
25
12
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IkasStorefrontLocation } from "../stockfront-location/index";
|
|
2
|
+
import { IkasStorefrontRoute } from "../stockfront-route/index";
|
|
3
|
+
import { IkasTheme } from "../../../theme/index";
|
|
4
|
+
export declare class IkasStorefrontRegion {
|
|
5
|
+
id: string;
|
|
6
|
+
locale: string;
|
|
7
|
+
themeJSON: string | null;
|
|
8
|
+
shipping: string | null;
|
|
9
|
+
paymentSettingsId: string | null;
|
|
10
|
+
priceListId: string | null;
|
|
11
|
+
locations: IkasStorefrontLocation[] | null;
|
|
12
|
+
routes: IkasStorefrontRoute[] | null;
|
|
13
|
+
termsOfService: string;
|
|
14
|
+
privacyPolicy: string;
|
|
15
|
+
returnPolicy: string;
|
|
16
|
+
theme: IkasTheme;
|
|
17
|
+
constructor(data?: Partial<IkasStorefrontRegion>);
|
|
18
|
+
}
|
|
@@ -53,7 +53,7 @@ export declare class IkasProductList {
|
|
|
53
53
|
getPrev: () => Promise<void>;
|
|
54
54
|
getNext: () => Promise<void>;
|
|
55
55
|
getPage: (page: number) => Promise<void>;
|
|
56
|
-
onFilterCategoryClick(filterCategory: IkasFilterCategory
|
|
56
|
+
onFilterCategoryClick(filterCategory: IkasFilterCategory): void;
|
|
57
57
|
toJSON(): {
|
|
58
58
|
data: IkasProductDetail[];
|
|
59
59
|
type: IkasProductListType;
|
|
@@ -4,9 +4,6 @@ import { GetServerSideProps } from "next";
|
|
|
4
4
|
import { ParsedUrlQuery } from "querystring";
|
|
5
5
|
declare type Props = {
|
|
6
6
|
checkoutStr: string;
|
|
7
|
-
returnPolicy: string;
|
|
8
|
-
privacyPolicy: string;
|
|
9
|
-
termsOfService: string;
|
|
10
7
|
queryParams: ParsedUrlQuery;
|
|
11
8
|
};
|
|
12
9
|
declare const _default: React.FunctionComponent<Props>;
|
|
@@ -4,11 +4,5 @@ export declare class IkasStorefrontConfig {
|
|
|
4
4
|
static components: any;
|
|
5
5
|
static config: Record<string, any>;
|
|
6
6
|
static apiUrlOverride: string | null;
|
|
7
|
-
static storefrontId?: string;
|
|
8
|
-
static storefrontRoutingId?: string;
|
|
9
|
-
static storefrontThemeId?: string;
|
|
10
|
-
static salesChannelId?: string;
|
|
11
|
-
static priceListId?: string;
|
|
12
|
-
static stockLocationIds?: string[];
|
|
13
7
|
static init(store: IkasBaseStore, components: any, config: Record<string, any>, apiUrlOverride?: string): void;
|
|
14
8
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare class IkasSalesChannel {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
priceListId: string | null;
|
|
5
|
-
stockLocations: IkasSalesChannelStockLocation[] | null;
|
|
6
|
-
constructor(data: Partial<IkasSalesChannel>);
|
|
7
|
-
}
|
|
8
|
-
export declare class IkasSalesChannelStockLocation {
|
|
9
|
-
id: string;
|
|
10
|
-
order: number;
|
|
11
|
-
constructor(data: Partial<IkasSalesChannelStockLocation>);
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum IkasStorefrontThemeStatus {
|
|
2
|
-
WAITING = "WAITING",
|
|
3
|
-
READY = "READY"
|
|
4
|
-
}
|
|
5
|
-
export declare class IkasStorefrontTheme {
|
|
6
|
-
id: string;
|
|
7
|
-
isMainTheme: boolean;
|
|
8
|
-
name: string;
|
|
9
|
-
status: IkasStorefrontThemeStatus;
|
|
10
|
-
themeId: string;
|
|
11
|
-
themeVersionId: string;
|
|
12
|
-
constructor(data: Partial<IkasStorefrontTheme>);
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IkasTheme } from "../../../theme/index";
|
|
2
|
-
export declare class IkasStorefrontThemeLocalization {
|
|
3
|
-
id: string;
|
|
4
|
-
locale: string;
|
|
5
|
-
storefrontId: string;
|
|
6
|
-
storefrontThemeId: string;
|
|
7
|
-
themeJson: IkasTheme;
|
|
8
|
-
privacyPolicy: string | null;
|
|
9
|
-
returnPolicy: string | null;
|
|
10
|
-
termsOfService: string | null;
|
|
11
|
-
constructor(data: Partial<IkasStorefrontThemeLocalization>);
|
|
12
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { GetServerSidePropsContext, GetStaticPropsContext } from "next";
|
|
3
|
-
import { ParsedUrlQuery } from "querystring";
|
|
4
|
-
import { IkasThemePageType } from "../models/index";
|
|
5
|
-
import { IkasStorefront } from "../models/data/storefront/index";
|
|
6
|
-
import { IkasSalesChannel } from "../models/data/sales-channel/index";
|
|
7
|
-
import { IkasStorefrontRouting } from "../models/data/storefront/routing/index";
|
|
8
|
-
import { IkasStorefrontThemeLocalization } from "../models/data/storefront/theme-localization/index";
|
|
9
|
-
export declare class SettingsHelper {
|
|
10
|
-
static readSettingsFile(): Promise<any>;
|
|
11
|
-
static getSettings(locale: string): Promise<SettingsData | null>;
|
|
12
|
-
static getPageData(context: GetStaticPropsContext<ParsedUrlQuery> | GetServerSidePropsContext<ParsedUrlQuery>, isServer: boolean, pageType?: IkasThemePageType): Promise<{
|
|
13
|
-
props: {
|
|
14
|
-
propValuesStr: string;
|
|
15
|
-
page: import("../models/index").IkasThemePage | null;
|
|
16
|
-
settingsStr: string;
|
|
17
|
-
merchantSettings: string | null;
|
|
18
|
-
};
|
|
19
|
-
} | {
|
|
20
|
-
props: {};
|
|
21
|
-
notFound: boolean;
|
|
22
|
-
revalidate?: undefined;
|
|
23
|
-
} | {
|
|
24
|
-
props: {
|
|
25
|
-
pageSpecificDataStr: string;
|
|
26
|
-
propValuesStr: string;
|
|
27
|
-
page: import("../models/index").IkasThemePage | null;
|
|
28
|
-
settingsStr: string;
|
|
29
|
-
merchantSettings: string | null;
|
|
30
|
-
};
|
|
31
|
-
revalidate: number;
|
|
32
|
-
notFound?: undefined;
|
|
33
|
-
}>;
|
|
34
|
-
static getStaticProps(context: GetStaticPropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType): Promise<{
|
|
35
|
-
props: {
|
|
36
|
-
propValuesStr: string;
|
|
37
|
-
page: import("../models/index").IkasThemePage | null;
|
|
38
|
-
settingsStr: string;
|
|
39
|
-
merchantSettings: string | null;
|
|
40
|
-
};
|
|
41
|
-
} | {
|
|
42
|
-
props: {};
|
|
43
|
-
notFound: boolean;
|
|
44
|
-
revalidate?: undefined;
|
|
45
|
-
} | {
|
|
46
|
-
props: {
|
|
47
|
-
pageSpecificDataStr: string;
|
|
48
|
-
propValuesStr: string;
|
|
49
|
-
page: import("../models/index").IkasThemePage | null;
|
|
50
|
-
settingsStr: string;
|
|
51
|
-
merchantSettings: string | null;
|
|
52
|
-
};
|
|
53
|
-
revalidate: number;
|
|
54
|
-
notFound?: undefined;
|
|
55
|
-
}>;
|
|
56
|
-
static getServerSideProps(context: GetServerSidePropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType): Promise<{
|
|
57
|
-
props: {
|
|
58
|
-
propValuesStr: string;
|
|
59
|
-
page: import("../models/index").IkasThemePage | null;
|
|
60
|
-
settingsStr: string;
|
|
61
|
-
merchantSettings: string | null;
|
|
62
|
-
};
|
|
63
|
-
} | {
|
|
64
|
-
props: {};
|
|
65
|
-
notFound: boolean;
|
|
66
|
-
revalidate?: undefined;
|
|
67
|
-
} | {
|
|
68
|
-
props: {
|
|
69
|
-
pageSpecificDataStr: string;
|
|
70
|
-
propValuesStr: string;
|
|
71
|
-
page: import("../models/index").IkasThemePage | null;
|
|
72
|
-
settingsStr: string;
|
|
73
|
-
merchantSettings: string | null;
|
|
74
|
-
};
|
|
75
|
-
revalidate: number;
|
|
76
|
-
notFound?: undefined;
|
|
77
|
-
}>;
|
|
78
|
-
}
|
|
79
|
-
export declare type SettingsData = {
|
|
80
|
-
storefront: IkasStorefront;
|
|
81
|
-
themeLocalization: IkasStorefrontThemeLocalization;
|
|
82
|
-
salesChannel: IkasSalesChannel;
|
|
83
|
-
routing: IkasStorefrontRouting;
|
|
84
|
-
};
|