@websolutespa/bom-mixer-models 2.0.2 → 3.0.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.
- package/CHANGELOG.md +5 -10
- package/dist/exports/proxy.d.ts +12 -0
- package/dist/exports/proxy.d.ts.map +1 -0
- package/dist/exports/proxy.js +172 -0
- package/dist/exports/proxy.js.map +1 -0
- package/dist/exports/server.d.ts +184 -0
- package/dist/exports/server.d.ts.map +1 -0
- package/dist/exports/server.js +960 -0
- package/dist/exports/server.js.map +1 -0
- package/dist/index.d.ts +254 -424
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +41 -1450
- package/dist/index.js.map +1 -0
- package/dist/lazy-JamSYYoh.d.ts +84 -0
- package/dist/lazy-JamSYYoh.d.ts.map +1 -0
- package/dist/page-BLbZbnWg.js +12 -0
- package/dist/page-BLbZbnWg.js.map +1 -0
- package/dist/route-k0W3AKyo.js +53 -0
- package/dist/route-k0W3AKyo.js.map +1 -0
- package/package.json +75 -27
- package/src/app/app.service.ts +1 -1
- package/src/captions/captions.handler.ts +1 -1
- package/src/category/category.service.ts +3 -3
- package/src/consent_preference/consent_preference.service.ts +4 -4
- package/src/consent_preference/consent_preference.ts +1 -1
- package/src/country/country.service.ts +4 -4
- package/src/exports/proxy.ts +2 -0
- package/src/exports/server.ts +22 -0
- package/src/index.ts +3 -20
- package/src/label/label.service.ts +3 -3
- package/src/lazy/lazy.service.ts +28 -0
- package/src/lazy/lazy.ts +0 -26
- package/src/locale/locale.service.ts +3 -13
- package/src/locale/locale.ts +9 -0
- package/src/market/market.service.ts +3 -3
- package/src/menu/menu.service.ts +3 -3
- package/src/page/page.service.ts +47 -7
- package/src/page/page.ts +9 -0
- package/src/province/province.service.ts +4 -4
- package/src/redirect/redirect.service.ts +4 -4
- package/src/region/region.service.ts +4 -4
- package/src/route/route-revalidate.handler.ts +54 -43
- package/src/route/route.interceptor.ts +18 -3
- package/src/route/route.service.ts +11 -49
- package/src/route/route.ts +64 -0
- package/src/session/session.service.ts +12 -4
- package/src/sitemap/sitemap.service.ts +5 -5
- package/dist/index.mjs +0 -1363
package/dist/index.d.ts
CHANGED
|
@@ -1,500 +1,330 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import * as StructuredData from
|
|
7
|
-
import { ContactPoint, Organization, PostalAddress } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { IncomingMessage, ServerResponse } from 'http';
|
|
11
|
-
import { IronSession } from 'iron-session';
|
|
12
|
-
|
|
13
|
-
type IAddressOptions = {
|
|
14
|
-
countries: IOption[];
|
|
15
|
-
regions: IOption[];
|
|
16
|
-
provinces: IOption[];
|
|
17
|
-
};
|
|
18
|
-
type IAddress = {
|
|
19
|
-
address: string;
|
|
20
|
-
addressLine2?: string;
|
|
21
|
-
city: string;
|
|
22
|
-
companyName?: string;
|
|
23
|
-
country: IOption;
|
|
24
|
-
email?: string;
|
|
25
|
-
firstName?: string;
|
|
26
|
-
lastName?: string;
|
|
27
|
-
phoneNumber?: string;
|
|
28
|
-
faxNumber?: string;
|
|
29
|
-
province?: IOption;
|
|
30
|
-
region?: IOption;
|
|
31
|
-
streetNumber: string;
|
|
32
|
-
title?: string;
|
|
33
|
-
websiteUrl?: string;
|
|
34
|
-
zipCode: string;
|
|
35
|
-
};
|
|
36
|
-
type ICompanyAddress = IAddress & {
|
|
37
|
-
name: string;
|
|
38
|
-
companyName: string;
|
|
39
|
-
email: string;
|
|
40
|
-
websiteUrl?: string;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
declare function getAddressOptions(locale: string): Promise<IAddressOptions>;
|
|
44
|
-
|
|
1
|
+
import { IAddress, IAddressOptions, ICompanyAddress, IConsentPreference, ILazyComponent, ILazyComponentFunc, ILazyComponentProps, ILazyFuncProps, ILazyModules, ILazyProps, ILazyStaticProps, ILazyStaticPropsFunc, ILazyableProps, ILazyedProps, ILegalNotice, INullableLazyableProps } from "./lazy-JamSYYoh.js";
|
|
2
|
+
import { IApp, ICategory, IEntity, ILabel, ILayout, ILocale, ILocalized, IMarket, IMenu, INamedEntity, IPage, IQuerable, IRedirect, IRoute, IRouteLink, IRouteParams } from "@websolutespa/bom-core";
|
|
3
|
+
import { NextApiRequest } from "next";
|
|
4
|
+
import { FC, ReactNode } from "react";
|
|
5
|
+
import { AppProps } from "next/app";
|
|
6
|
+
import * as StructuredData from "schema-dts";
|
|
7
|
+
import { ContactPoint, Organization, PostalAddress } from "schema-dts";
|
|
8
|
+
|
|
9
|
+
//#region src/application/application.d.ts
|
|
45
10
|
type IAppProps<T> = AppProps<T> & {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
11
|
+
Component: {
|
|
12
|
+
Layout?: FC<{
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
51
16
|
};
|
|
52
17
|
type IApplicationProps = Record<string, any> & {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
18
|
+
layout: ILayout;
|
|
19
|
+
page: IPage;
|
|
20
|
+
params: IRouteParams;
|
|
56
21
|
};
|
|
57
22
|
type IApplication = IAppProps<IApplicationProps>;
|
|
23
|
+
//# sourceMappingURL=application.d.ts.map
|
|
58
24
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
declare function getCategory(id: IEquatable, params?: QueryParams): Promise<ICategory | undefined>;
|
|
63
|
-
declare function getSegments(item: ICategorized, params?: QueryParams): Promise<ICategory[]>;
|
|
64
|
-
|
|
65
|
-
type ILegalNotice = IEntity & {
|
|
66
|
-
id: string;
|
|
67
|
-
text: string;
|
|
68
|
-
};
|
|
69
|
-
type IConsentPreference = IEntity & {
|
|
70
|
-
id: string;
|
|
71
|
-
description: string;
|
|
72
|
-
legalNotice: ILegalNotice;
|
|
73
|
-
createdAt?: Date | string;
|
|
74
|
-
updatedAt?: Date | string;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
declare function getConsentPreference(id: IEquatable, params?: QueryParams): Promise<IConsentPreference | undefined>;
|
|
78
|
-
declare function getConsentPreferences(params?: QueryParams): Promise<IConsentPreference[]>;
|
|
79
|
-
declare function getConsentPreferencesPagination(params?: QueryParams): Promise<IPaginationResult<IConsentPreference>>;
|
|
80
|
-
|
|
81
|
-
declare function getCountries(locale?: string): Promise<INamedEntity[]>;
|
|
82
|
-
declare function getCountry(id: IEquatable, params?: QueryParams): Promise<INamedEntity | undefined>;
|
|
83
|
-
declare function getCountriesPagination(params?: QueryParams): Promise<IPaginationResult<INamedEntity>>;
|
|
84
|
-
|
|
85
|
-
declare global {
|
|
86
|
-
interface Window {
|
|
87
|
-
dataLayer?: Record<string, any>[];
|
|
88
|
-
}
|
|
89
|
-
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/gtm/gtm.service.d.ts
|
|
27
|
+
[20, () => Record, sideEffect()];
|
|
90
28
|
declare function pushDataLayer(record: Record<string, any>): void;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
declare function resolveLabel(labels: ILabel[], id: string): string;
|
|
95
|
-
|
|
96
|
-
declare function getLayout<T extends IAppExtended = IAppExtended>(market: string, locale: string): Promise<ILayout<T>>;
|
|
97
|
-
|
|
98
|
-
type ILazyComponent = IComponent;
|
|
99
|
-
type ILazyProps<T> = {
|
|
100
|
-
item: T & ILazyComponent;
|
|
101
|
-
index: number;
|
|
102
|
-
children?: ReactNode;
|
|
103
|
-
};
|
|
104
|
-
type ILazyableProps<T> = {
|
|
105
|
-
item: T & Partial<ILazyComponent>;
|
|
106
|
-
index?: number;
|
|
107
|
-
children?: ReactNode;
|
|
108
|
-
};
|
|
109
|
-
type INullableLazyableProps<T> = {
|
|
110
|
-
item?: T & Partial<ILazyComponent>;
|
|
111
|
-
index?: number;
|
|
112
|
-
children?: ReactNode;
|
|
113
|
-
};
|
|
114
|
-
type ILazyedProps<T> = Omit<ILazyProps<T>, 'children'>;
|
|
115
|
-
type ILazyComponentProps = {
|
|
116
|
-
item: ILazyComponent;
|
|
117
|
-
index: number;
|
|
118
|
-
};
|
|
119
|
-
type ILazyModules = Record<string, ComponentType<ILazyProps<any>>>;
|
|
120
|
-
type ILazyComponentFunc<P = {}> = DynamicOptions<P> | Loader<P>;
|
|
121
|
-
type ILazyFuncProps<T> = PageProps & {
|
|
122
|
-
component: T & ILazyComponent;
|
|
123
|
-
};
|
|
124
|
-
type ILazyStaticPropsFunc<T = any> = (props: ILazyFuncProps<T>) => Promise<T & ILazyComponent>;
|
|
125
|
-
type ILazyStaticProps = Record<string, ILazyStaticPropsFunc>;
|
|
126
|
-
declare const LAZY_PROPS: ILazyStaticProps;
|
|
127
|
-
declare function withLazyProps<T>(key: string, getComponentProps: ILazyStaticPropsFunc<T>): void;
|
|
128
|
-
declare function getDecoratedComponents(props: PageProps, extraComponents?: IComponent[]): Promise<void>;
|
|
129
|
-
|
|
29
|
+
//# sourceMappingURL=gtm.service.d.ts.map
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/link/link.service.d.ts
|
|
130
32
|
declare function getLink(category: string, layout: ILayout): string | undefined;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
33
|
+
//# sourceMappingURL=link.service.d.ts.map
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/locale/locale.d.ts
|
|
134
36
|
declare function getLocaleFromProps(props?: {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
};
|
|
37
|
+
__NEXT_DATA__?: {
|
|
38
|
+
query?: {
|
|
39
|
+
locale?: string;
|
|
139
40
|
};
|
|
41
|
+
};
|
|
140
42
|
}): string | undefined;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
declare function getMenus(params?: QueryParams): Promise<IMenu[]>;
|
|
146
|
-
declare function getMenu(id: IEquatable, params?: QueryParams): Promise<IMenu | undefined>;
|
|
147
|
-
|
|
43
|
+
//# sourceMappingURL=locale.d.ts.map
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/meta-data/open-graph.d.ts
|
|
148
46
|
interface OpenGraphBase {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
47
|
+
type: string;
|
|
48
|
+
title?: string;
|
|
49
|
+
image?: string | OpenGraphImage | OpenGraphImage[];
|
|
50
|
+
url?: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
siteName?: string;
|
|
53
|
+
locale?: string;
|
|
54
|
+
localeAlternate?: string[];
|
|
157
55
|
}
|
|
158
56
|
interface OpenGraphImage {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
57
|
+
url: string;
|
|
58
|
+
secureUrl?: string;
|
|
59
|
+
type?: string;
|
|
60
|
+
width?: number;
|
|
61
|
+
height?: number;
|
|
62
|
+
alt?: string;
|
|
165
63
|
}
|
|
166
64
|
interface OpenGraphAudio {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
65
|
+
url: string;
|
|
66
|
+
secureUrl?: string;
|
|
67
|
+
type?: string;
|
|
170
68
|
}
|
|
171
69
|
interface OpenGraphWebsite extends OpenGraphBase {
|
|
172
|
-
|
|
70
|
+
type: 'website';
|
|
173
71
|
}
|
|
174
72
|
interface OpenGraphArticle extends OpenGraphBase {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
73
|
+
type: 'article';
|
|
74
|
+
publishedTime?: string;
|
|
75
|
+
modifiedTime?: string;
|
|
76
|
+
expirationTime?: string;
|
|
77
|
+
author?: string | string[];
|
|
78
|
+
section?: string;
|
|
79
|
+
tag?: string | string[];
|
|
182
80
|
}
|
|
183
81
|
interface OpenGraphBook extends OpenGraphBase {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
82
|
+
type: 'book';
|
|
83
|
+
author?: string | string[];
|
|
84
|
+
isbn?: string;
|
|
85
|
+
releaseDate?: string;
|
|
86
|
+
tag?: string | string[];
|
|
189
87
|
}
|
|
190
88
|
interface OpenGraphProfile extends OpenGraphBase {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
89
|
+
type: 'profile';
|
|
90
|
+
firstName?: string;
|
|
91
|
+
lastName?: string;
|
|
92
|
+
username?: string;
|
|
93
|
+
gender?: string;
|
|
196
94
|
}
|
|
197
95
|
interface OpenGraphMusic extends OpenGraphBase {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
96
|
+
type: 'music.song' | 'music.album' | 'music.playlist' | 'music.radio_station';
|
|
97
|
+
duration?: number;
|
|
98
|
+
album?: string | string[];
|
|
99
|
+
musician?: string | string[];
|
|
100
|
+
song?: string | string[];
|
|
101
|
+
creator?: string;
|
|
204
102
|
}
|
|
205
103
|
interface OpenGraphVideo extends Omit<OpenGraphBase, 'type'> {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
104
|
+
type: 'video.movie' | 'video.episode' | 'video.tv_show' | 'video.other';
|
|
105
|
+
actor?: string | string[];
|
|
106
|
+
director?: string | string[];
|
|
107
|
+
writer?: string | string[];
|
|
108
|
+
duration?: number;
|
|
109
|
+
releaseDate?: string;
|
|
110
|
+
tag?: string | string[];
|
|
111
|
+
series?: string;
|
|
112
|
+
url: string;
|
|
113
|
+
secureUrl?: string;
|
|
114
|
+
width?: number;
|
|
115
|
+
height?: number;
|
|
218
116
|
}
|
|
219
117
|
interface OpenGraphProduct extends OpenGraphBase {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
118
|
+
type: 'product';
|
|
119
|
+
price?: {
|
|
120
|
+
amount: number;
|
|
121
|
+
currency: string;
|
|
122
|
+
};
|
|
123
|
+
availability?: 'instock' | 'oos' | 'pending';
|
|
124
|
+
condition?: 'new' | 'refurbished' | 'used';
|
|
125
|
+
priceAmount?: number;
|
|
126
|
+
priceCurrency?: string;
|
|
127
|
+
retailerItemId?: string;
|
|
128
|
+
brand?: string;
|
|
129
|
+
category?: string;
|
|
130
|
+
color?: string;
|
|
131
|
+
material?: string;
|
|
132
|
+
pattern?: string;
|
|
133
|
+
size?: string;
|
|
236
134
|
}
|
|
237
135
|
interface OpenGraphProductGroup extends OpenGraphBase {
|
|
238
|
-
|
|
136
|
+
type: 'product.group';
|
|
239
137
|
}
|
|
240
138
|
interface OpenGraphPlace extends OpenGraphBase {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
139
|
+
type: 'place';
|
|
140
|
+
latitude?: number;
|
|
141
|
+
longitude?: number;
|
|
142
|
+
streetAddress?: string;
|
|
143
|
+
locality?: string;
|
|
144
|
+
region?: string;
|
|
145
|
+
postalCode?: string;
|
|
146
|
+
countryName?: string;
|
|
147
|
+
}
|
|
148
|
+
interface OpenGraphRestaurant extends Omit<OpenGraphPlace, 'type'> {
|
|
149
|
+
type: 'restaurant.restaurant';
|
|
150
|
+
contactData?: {
|
|
244
151
|
streetAddress?: string;
|
|
245
152
|
locality?: string;
|
|
246
153
|
region?: string;
|
|
247
154
|
postalCode?: string;
|
|
248
155
|
countryName?: string;
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
postalCode?: string;
|
|
257
|
-
countryName?: string;
|
|
258
|
-
email?: string;
|
|
259
|
-
phoneNumber?: string;
|
|
260
|
-
faxNumber?: string;
|
|
261
|
-
};
|
|
262
|
-
menu?: string;
|
|
263
|
-
section?: string;
|
|
264
|
-
priceRange?: string;
|
|
156
|
+
email?: string;
|
|
157
|
+
phoneNumber?: string;
|
|
158
|
+
faxNumber?: string;
|
|
159
|
+
};
|
|
160
|
+
menu?: string;
|
|
161
|
+
section?: string;
|
|
162
|
+
priceRange?: string;
|
|
265
163
|
}
|
|
266
164
|
interface OpenGraphBusiness extends OpenGraphBase {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
165
|
+
type: 'business.business';
|
|
166
|
+
contactData?: {
|
|
167
|
+
streetAddress?: string;
|
|
168
|
+
locality?: string;
|
|
169
|
+
region?: string;
|
|
170
|
+
postalCode?: string;
|
|
171
|
+
countryName?: string;
|
|
172
|
+
email?: string;
|
|
173
|
+
phoneNumber?: string;
|
|
174
|
+
faxNumber?: string;
|
|
175
|
+
website?: string;
|
|
176
|
+
};
|
|
177
|
+
hours?: {
|
|
178
|
+
day: string;
|
|
179
|
+
start: string;
|
|
180
|
+
end: string;
|
|
181
|
+
}[];
|
|
284
182
|
}
|
|
285
183
|
type OpenGraphType = OpenGraphArticle | OpenGraphBook | OpenGraphBusiness | OpenGraphMusic | OpenGraphPlace | OpenGraphProduct | OpenGraphProductGroup | OpenGraphProfile | OpenGraphRestaurant | OpenGraphVideo | OpenGraphWebsite;
|
|
286
|
-
|
|
184
|
+
//# sourceMappingURL=open-graph.d.ts.map
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/meta-data/structured-data.d.ts
|
|
287
187
|
type StructuredDataType = StructuredData.Article | StructuredData.AudioObject | StructuredData.BlogPosting | StructuredData.BreadcrumbList | StructuredData.Course | StructuredData.Event | StructuredData.FAQPage | StructuredData.HowTo | StructuredData.ItemList | StructuredData.JobPosting | StructuredData.ListItem | StructuredData.LocalBusiness | StructuredData.NewsArticle | StructuredData.Organization | StructuredData.Person | StructuredData.Place | StructuredData.Product | StructuredData.Recipe | StructuredData.VideoObject | StructuredData.WebPage | StructuredData.WebSite;
|
|
288
|
-
|
|
188
|
+
//# sourceMappingURL=structured-data.d.ts.map
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/meta-data/twitter-card.d.ts
|
|
289
191
|
interface TwitterCardBase {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
192
|
+
card: 'summary' | 'summary_large_image' | 'app' | 'player';
|
|
193
|
+
site?: string;
|
|
194
|
+
siteId?: string;
|
|
195
|
+
creator?: string;
|
|
196
|
+
creatorId?: string;
|
|
197
|
+
title?: string;
|
|
198
|
+
description?: string;
|
|
199
|
+
image?: string;
|
|
200
|
+
imageAlt?: string;
|
|
299
201
|
}
|
|
300
202
|
interface TwitterCardSummary extends TwitterCardBase {
|
|
301
|
-
|
|
203
|
+
card: 'summary';
|
|
302
204
|
}
|
|
303
205
|
interface TwitterCardSummaryLargeImage extends TwitterCardBase {
|
|
304
|
-
|
|
206
|
+
card: 'summary_large_image';
|
|
305
207
|
}
|
|
306
208
|
interface TwitterCardApp extends TwitterCardBase {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
209
|
+
card: 'app';
|
|
210
|
+
appNameIphone?: string;
|
|
211
|
+
appIdIphone?: string;
|
|
212
|
+
appUrlIphone?: string;
|
|
213
|
+
appNameIpad?: string;
|
|
214
|
+
appIdIpad?: string;
|
|
215
|
+
appUrlIpad?: string;
|
|
216
|
+
appNameGoogleplay?: string;
|
|
217
|
+
appIdGoogleplay?: string;
|
|
218
|
+
appUrlGoogleplay?: string;
|
|
219
|
+
appCountry?: string;
|
|
318
220
|
}
|
|
319
221
|
interface TwitterCardPlayer extends TwitterCardBase {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
222
|
+
card: 'player';
|
|
223
|
+
player: string;
|
|
224
|
+
playerWidth: number;
|
|
225
|
+
playerHeight: number;
|
|
226
|
+
playerStream?: string;
|
|
325
227
|
}
|
|
326
228
|
type TwitterCardType = TwitterCardApp | TwitterCardPlayer | TwitterCardSummary | TwitterCardSummaryLargeImage;
|
|
327
|
-
|
|
229
|
+
//# sourceMappingURL=twitter-card.d.ts.map
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region src/meta-data/meta-data.d.ts
|
|
328
232
|
type IBrand = {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
233
|
+
name: string;
|
|
234
|
+
businessName: string;
|
|
235
|
+
appName: string;
|
|
236
|
+
logo: string;
|
|
237
|
+
url: string;
|
|
238
|
+
email?: string;
|
|
239
|
+
telephone?: string;
|
|
240
|
+
address?: string;
|
|
241
|
+
city?: string;
|
|
242
|
+
zipCode?: string;
|
|
243
|
+
provinceCode?: string;
|
|
244
|
+
countryCode?: string;
|
|
245
|
+
twitterName?: string;
|
|
246
|
+
social?: Record<string, string>;
|
|
343
247
|
};
|
|
344
248
|
type IAlternate = {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
249
|
+
id: string;
|
|
250
|
+
href: string;
|
|
251
|
+
hrefLang: string;
|
|
348
252
|
};
|
|
349
253
|
type IMeta = {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
254
|
+
title: string;
|
|
255
|
+
description?: string;
|
|
256
|
+
image: string;
|
|
257
|
+
slug: string;
|
|
258
|
+
url: string;
|
|
259
|
+
canonical: string;
|
|
260
|
+
alternates: IAlternate[];
|
|
261
|
+
xDefault?: IAlternate;
|
|
262
|
+
keywords?: string;
|
|
263
|
+
robots?: string;
|
|
360
264
|
};
|
|
361
265
|
type IMetaData = {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
266
|
+
layout: ILayout;
|
|
267
|
+
page: ILocalized<IPage>;
|
|
268
|
+
brand: IBrand;
|
|
269
|
+
contactPoint: ContactPoint;
|
|
270
|
+
meta: IMeta;
|
|
271
|
+
openGraph: OpenGraphType;
|
|
272
|
+
organization: Organization;
|
|
273
|
+
postalAddress: PostalAddress;
|
|
274
|
+
structuredData: StructuredDataType;
|
|
275
|
+
twitterCard?: TwitterCardType;
|
|
372
276
|
};
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
declare function getPage<T extends ICategorized = ICategorized>(schema: string, id: IEquatable, market?: string, locale?: string, options?: {
|
|
377
|
-
depth?: number;
|
|
378
|
-
draftMode?: boolean;
|
|
379
|
-
preview?: boolean;
|
|
380
|
-
previewData?: any;
|
|
381
|
-
}): Promise<IPage<T> | undefined>;
|
|
382
|
-
declare function NotFound(market: string, locale: string): Promise<{
|
|
383
|
-
redirect: Redirect;
|
|
384
|
-
} | void>;
|
|
385
|
-
declare function getPageRoutes(schema: string, id: IEquatable): Promise<IRoute[]>;
|
|
386
|
-
declare function getPageCategory<T extends ICategorized>(schema: string, page?: IPage, market?: string, locale?: string): Promise<T | undefined>;
|
|
387
|
-
declare function getErrorPageLayout(): Promise<{
|
|
388
|
-
layout: ILayout;
|
|
389
|
-
page: IPage;
|
|
390
|
-
}>;
|
|
391
|
-
type PartialPageProps<T extends ICategorized, B> = Omit<PageProps<T>, 'page'> & Partial<Pick<PageProps<T>, 'page'>> & B;
|
|
392
|
-
declare function getPageProps<T extends ICategorized, B = any>(props: PartialPageProps<T, B>, extraComponents?: IComponent[]): Promise<PageProps<T> & B>;
|
|
277
|
+
//# sourceMappingURL=meta-data.d.ts.map
|
|
278
|
+
//#endregion
|
|
279
|
+
//#region src/page/page.d.ts
|
|
393
280
|
declare function getPublicUrl(): string;
|
|
394
|
-
declare function resolveHref(href?: string
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
declare function getProvincesPagination(params?: QueryParams): Promise<IPaginationResult<INamedEntity>>;
|
|
399
|
-
|
|
400
|
-
declare function getRedirects(locale?: string): Promise<IRedirect[]>;
|
|
401
|
-
declare function getRedirect(id: IEquatable, params?: QueryParams): Promise<IRedirect | undefined>;
|
|
402
|
-
declare function getRedirectsPagination(params?: QueryParams): Promise<IPaginationResult<IRedirect>>;
|
|
403
|
-
declare function redirectTo(layout: ILayout, key?: string): {
|
|
404
|
-
redirect: {
|
|
405
|
-
permanent: boolean;
|
|
406
|
-
destination: string;
|
|
407
|
-
};
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
declare function getRegions(locale?: string): Promise<INamedEntity[]>;
|
|
411
|
-
declare function getRegion(id: IEquatable, params?: QueryParams): Promise<INamedEntity | undefined>;
|
|
412
|
-
declare function getRegionsPagination(params?: QueryParams): Promise<IPaginationResult<INamedEntity>>;
|
|
413
|
-
|
|
414
|
-
declare function routeRevalidateHandler(): _websolutespa_bom_mixer_store.IHandler<any>;
|
|
415
|
-
|
|
416
|
-
declare function detectLocale(request: NextRequest, defaultLocale?: string): Promise<string>;
|
|
417
|
-
declare function detectCountry(request: NextRequest, defaultMarket?: string): Promise<string | undefined>;
|
|
418
|
-
declare function routeAutoDetection(request: NextRequest, next: NextFetchEvent): Promise<string | undefined>;
|
|
419
|
-
declare function routeInterceptor(request: NextRequest, next: NextFetchEvent): Promise<NextResponse<unknown> | undefined>;
|
|
420
|
-
|
|
281
|
+
declare function resolveHref(href?: string): string;
|
|
282
|
+
//# sourceMappingURL=page.d.ts.map
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region src/route/route.d.ts
|
|
421
285
|
type StaticPath = {
|
|
422
|
-
|
|
423
|
-
[key: string]: string;
|
|
424
|
-
};
|
|
425
|
-
};
|
|
426
|
-
declare function getRoutes(params?: QueryParams): Promise<IRoute[]>;
|
|
427
|
-
declare function getRoute(id: string): Promise<IRoute | undefined>;
|
|
428
|
-
declare function getRoutesForSchemas(schemas: string[], market?: string, locale?: string): Promise<{
|
|
286
|
+
params: {
|
|
429
287
|
[key: string]: string;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
}>;
|
|
434
|
-
declare function getStaticPathsForSchema(schema: string, template?: string): Promise<StaticPath[]>;
|
|
435
|
-
declare function getStaticPathsForSchemaAndFallback(schema: string, fallback?: 'blocking' | true | false, template?: string): Promise<{
|
|
436
|
-
paths: StaticPath[];
|
|
437
|
-
fallback: boolean | "blocking";
|
|
438
|
-
}>;
|
|
439
|
-
declare function getBreadcrumbFromSegments(segments: ICategory[], route: IRoute): Promise<IRouteLink[]>;
|
|
440
|
-
declare function getRouteLinkTree(market: string, locale: string): Promise<IRouteLink | undefined>;
|
|
441
|
-
declare function getRouteLinkCategory(locale: string, routes: IRoute[], categories: ICategory[], rootCategory: ICategory, category: ICategory): IRouteLink | IRouteLink[] | undefined;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
declare function categoryToRouteLink(routes: IRoute[], categories: ICategory[], category: ICategory, locale: string): IRouteLink | undefined;
|
|
442
291
|
declare function newRouteLink(category: ICategory, route: IRoute | undefined, locale: string): IRouteLink;
|
|
443
292
|
declare function routeToRouteLink(route: IRoute): IRouteLink;
|
|
444
293
|
declare function resolveRoute(route: IRoute & {
|
|
445
|
-
|
|
294
|
+
splat?: string;
|
|
446
295
|
}): string;
|
|
447
|
-
|
|
296
|
+
//# sourceMappingURL=route.d.ts.map
|
|
297
|
+
//#endregion
|
|
298
|
+
//#region src/seo/seo.service.d.ts
|
|
448
299
|
type SeoWeight = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
449
300
|
declare const getSeoWeight: (index?: number, seoWeight?: SeoWeight) => (subIndex?: number) => SeoWeight;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
[key: string]: string;
|
|
454
|
-
}>;
|
|
455
|
-
}), response: NextResponse | NextApiResponse | ServerResponse<IncomingMessage>): Promise<IronSession<T>>;
|
|
456
|
-
type SessionWithToken<T extends object = Record<string, any>> = T & Partial<{
|
|
457
|
-
token: string;
|
|
458
|
-
exp: number;
|
|
459
|
-
}>;
|
|
460
|
-
declare function getSessionToken<T extends SessionWithToken>(request: NextRequest | NextApiRequest | (IncomingMessage & {
|
|
461
|
-
cookies: Partial<{
|
|
462
|
-
[key: string]: string;
|
|
463
|
-
}>;
|
|
464
|
-
}), response: NextResponse | NextApiResponse | ServerResponse<IncomingMessage>): Promise<string | undefined>;
|
|
465
|
-
|
|
466
|
-
declare const getSiteMapIndexProps: GetServerSideProps;
|
|
467
|
-
declare const getSiteMapXMLProps: GetServerSideProps;
|
|
468
|
-
declare const getSiteMapXSLProps: GetServerSideProps;
|
|
469
|
-
|
|
470
|
-
type ISiteMap = {
|
|
471
|
-
id: string;
|
|
472
|
-
updatedAt?: Date;
|
|
473
|
-
};
|
|
474
|
-
declare function getSiteMapIndex(origin: string): Promise<string>;
|
|
475
|
-
declare function escapeHtml(string: string): string;
|
|
476
|
-
declare function getSiteMapXML(origin: string, marketId?: string, localeId?: string): Promise<string>;
|
|
477
|
-
declare function getSiteMapXSL(localeId?: string): Promise<string>;
|
|
478
|
-
|
|
301
|
+
//# sourceMappingURL=seo.service.d.ts.map
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region src/store/store.d.ts
|
|
479
304
|
type IModelStore = {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
305
|
+
app: IQuerable<IApp>;
|
|
306
|
+
category: IQuerable<ICategory>;
|
|
307
|
+
label: IQuerable<ILabel>;
|
|
308
|
+
locale: IQuerable<ILocale>;
|
|
309
|
+
market: IQuerable<IMarket>;
|
|
310
|
+
menu: IQuerable<IMenu>;
|
|
311
|
+
redirect: IQuerable<IRedirect>;
|
|
312
|
+
route: IQuerable<IRoute>;
|
|
313
|
+
i18n_continent: IQuerable<INamedEntity>;
|
|
314
|
+
i18n_country: IQuerable<INamedEntity>;
|
|
315
|
+
i18n_country_zone: IQuerable<INamedEntity>;
|
|
316
|
+
i18n_language: IQuerable<INamedEntity>;
|
|
317
|
+
i18n_province: IQuerable<INamedEntity>;
|
|
318
|
+
i18n_region: IQuerable<INamedEntity>;
|
|
319
|
+
i18n_sub_continent: IQuerable<INamedEntity>;
|
|
320
|
+
[key: string]: IQuerable<IEntity>;
|
|
496
321
|
};
|
|
497
|
-
|
|
322
|
+
//# sourceMappingURL=store.d.ts.map
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region src/utmz/utmz.service.d.ts
|
|
498
325
|
declare function getUtmz(request: NextApiRequest): string;
|
|
326
|
+
//# sourceMappingURL=utmz.service.d.ts.map
|
|
499
327
|
|
|
500
|
-
|
|
328
|
+
//#endregion
|
|
329
|
+
export { IAddress, IAddressOptions, IAlternate, IAppProps, IApplication, IApplicationProps, IBrand, ICompanyAddress, IConsentPreference, ILazyComponent, ILazyComponentFunc, ILazyComponentProps, ILazyFuncProps, ILazyModules, ILazyProps, ILazyStaticProps, ILazyStaticPropsFunc, ILazyableProps, ILazyedProps, ILegalNotice, IMeta, IMetaData, IModelStore, INullableLazyableProps, OpenGraphArticle, OpenGraphAudio, OpenGraphBase, OpenGraphBook, OpenGraphBusiness, OpenGraphImage, OpenGraphMusic, OpenGraphPlace, OpenGraphProduct, OpenGraphProductGroup, OpenGraphProfile, OpenGraphRestaurant, OpenGraphType, OpenGraphVideo, OpenGraphWebsite, SeoWeight, StaticPath, StructuredDataType, TwitterCardApp, TwitterCardBase, TwitterCardPlayer, TwitterCardSummary, TwitterCardSummaryLargeImage, TwitterCardType, categoryToRouteLink, getLink, getLocaleFromProps, getPublicUrl, getSeoWeight, getUtmz, newRouteLink, pushDataLayer, resolveHref, resolveRoute, routeToRouteLink };
|
|
330
|
+
//# sourceMappingURL=index.d.ts.map
|