@techstuff-dev/foundation-api-utils 1.23.1 → 1.25.0
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/dist/@types/lib/hooks/index.d.ts +4 -4
- package/dist/@types/lib/services/cart/slice.d.ts +155 -0
- package/dist/@types/lib/services/content/content.interfaces.d.ts +306 -40
- package/dist/@types/lib/services/index.d.ts +1 -0
- package/dist/@types/lib/store/index.d.ts +10 -10
- package/dist/@types/lib/utils/dataFormat/index.d.ts +9 -37
- package/dist/@types/lib/utils/helpers/index.d.ts +12 -0
- package/dist/index.esm.js +386 -118
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +410 -116
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const useAppDispatch: import("react-redux").UseDispatch<import("redux-thunk").ThunkDispatch<{
|
|
2
|
-
"": import("..").AuthState;
|
|
2
|
+
"": import("..").AuthState & CartState;
|
|
3
3
|
authApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
4
4
|
resetPassword: import("@reduxjs/toolkit/query").MutationDefinition<import("..").ResetPasswordRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "UserToken" | "UserData", import("..").ResetPasswordResponse, "authApi">;
|
|
5
5
|
resetPasswordAuth: import("@reduxjs/toolkit/query").MutationDefinition<import("..").ResetPasswordAuthRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "UserToken" | "UserData", import("..").ResetPasswordAuthResponse, "authApi">;
|
|
@@ -22,7 +22,7 @@ export declare const useAppDispatch: import("react-redux").UseDispatch<import("r
|
|
|
22
22
|
}, "UserSubscription" | "Plans", "paymentApi">;
|
|
23
23
|
} & import("redux-persist/es/persistReducer").PersistPartial, undefined, import("redux").UnknownAction> & import("redux").Dispatch<import("redux").Action>>;
|
|
24
24
|
export declare const useAppSelector: import("react-redux").UseSelector<{
|
|
25
|
-
"": import("..").AuthState;
|
|
25
|
+
"": import("..").AuthState & CartState;
|
|
26
26
|
authApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
27
27
|
resetPassword: import("@reduxjs/toolkit/query").MutationDefinition<import("..").ResetPasswordRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "UserToken" | "UserData", import("..").ResetPasswordResponse, "authApi">;
|
|
28
28
|
resetPasswordAuth: import("@reduxjs/toolkit/query").MutationDefinition<import("..").ResetPasswordAuthRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "UserToken" | "UserData", import("..").ResetPasswordAuthResponse, "authApi">;
|
|
@@ -45,7 +45,7 @@ export declare const useAppSelector: import("react-redux").UseSelector<{
|
|
|
45
45
|
}, "UserSubscription" | "Plans", "paymentApi">;
|
|
46
46
|
}>;
|
|
47
47
|
export declare const useAppStore: import("react-redux").UseStore<import("@reduxjs/toolkit").EnhancedStore<{
|
|
48
|
-
"": import("..").AuthState;
|
|
48
|
+
"": import("..").AuthState & CartState;
|
|
49
49
|
authApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
50
50
|
resetPassword: import("@reduxjs/toolkit/query").MutationDefinition<import("..").ResetPasswordRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "UserToken" | "UserData", import("..").ResetPasswordResponse, "authApi">;
|
|
51
51
|
resetPasswordAuth: import("@reduxjs/toolkit/query").MutationDefinition<import("..").ResetPasswordAuthRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "UserToken" | "UserData", import("..").ResetPasswordAuthResponse, "authApi">;
|
|
@@ -68,7 +68,7 @@ export declare const useAppStore: import("react-redux").UseStore<import("@reduxj
|
|
|
68
68
|
}, "UserSubscription" | "Plans", "paymentApi">;
|
|
69
69
|
} & import("redux-persist/es/persistReducer").PersistPartial, import("redux").Action, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
70
70
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
71
|
-
"": import("..").AuthState;
|
|
71
|
+
"": import("..").AuthState & CartState;
|
|
72
72
|
authApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
73
73
|
resetPassword: import("@reduxjs/toolkit/query").MutationDefinition<import("..").ResetPasswordRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "UserToken" | "UserData", import("..").ResetPasswordResponse, "authApi">;
|
|
74
74
|
resetPasswordAuth: import("@reduxjs/toolkit/query").MutationDefinition<import("..").ResetPasswordAuthRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "UserToken" | "UserData", import("..").ResetPasswordAuthResponse, "authApi">;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { PayloadAction, Slice } from '@reduxjs/toolkit';
|
|
2
|
+
export declare const cartSlice: Slice<CartState, {
|
|
3
|
+
setTaxRate: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
4
|
+
resetTaxRate: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
5
|
+
setPromoCode: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
6
|
+
removePromoCode: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
7
|
+
addToCart: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
8
|
+
updateCart: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
9
|
+
removeFromCart: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
10
|
+
toggleCart: (state: CartState, action: PayloadAction<any>) => CartState;
|
|
11
|
+
emptyCart: (state: CartState) => CartState;
|
|
12
|
+
}, 'cart', '', {
|
|
13
|
+
selectMediaInCart: (state: CartState) => MediaEntity[];
|
|
14
|
+
selectCartTotal: (state: CartState) => number;
|
|
15
|
+
selectCartNetTotal: (state: CartState) => number;
|
|
16
|
+
selectCartTaxRate: (state: CartState) => {
|
|
17
|
+
country: string;
|
|
18
|
+
percentage: number;
|
|
19
|
+
};
|
|
20
|
+
selectCartTaxAmount: (state: CartState) => number;
|
|
21
|
+
selectCartCount: (state: CartState) => number;
|
|
22
|
+
selectCartStatus: (state: CartState) => boolean;
|
|
23
|
+
selectPromoCode: (state: CartState) => {
|
|
24
|
+
code: string;
|
|
25
|
+
name: string;
|
|
26
|
+
discount: string;
|
|
27
|
+
discountedAmount: number;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
export declare const setTaxRate: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/setTaxRate">, resetTaxRate: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/resetTaxRate">, setPromoCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/setPromoCode">, removePromoCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/removePromoCode">, addToCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/addToCart">, updateCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/updateCart">, removeFromCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/removeFromCart">, emptyCart: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cart/emptyCart">, toggleCart: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "cart/toggleCart">;
|
|
31
|
+
export declare const selectMediaInCart: import("reselect").Selector<{
|
|
32
|
+
"": CartState;
|
|
33
|
+
}, MediaEntity[], []> & {
|
|
34
|
+
unwrapped: (state: CartState) => MediaEntity[];
|
|
35
|
+
}, selectCartTotal: import("reselect").Selector<{
|
|
36
|
+
"": CartState;
|
|
37
|
+
}, number, []> & {
|
|
38
|
+
unwrapped: (state: CartState) => number;
|
|
39
|
+
}, selectCartNetTotal: import("reselect").Selector<{
|
|
40
|
+
"": CartState;
|
|
41
|
+
}, number, []> & {
|
|
42
|
+
unwrapped: (state: CartState) => number;
|
|
43
|
+
}, selectCartTaxRate: import("reselect").Selector<{
|
|
44
|
+
"": CartState;
|
|
45
|
+
}, {
|
|
46
|
+
country: string;
|
|
47
|
+
percentage: number;
|
|
48
|
+
}, []> & {
|
|
49
|
+
unwrapped: (state: CartState) => {
|
|
50
|
+
country: string;
|
|
51
|
+
percentage: number;
|
|
52
|
+
};
|
|
53
|
+
}, selectCartTaxAmount: import("reselect").Selector<{
|
|
54
|
+
"": CartState;
|
|
55
|
+
}, number, []> & {
|
|
56
|
+
unwrapped: (state: CartState) => number;
|
|
57
|
+
}, selectCartCount: import("reselect").Selector<{
|
|
58
|
+
"": CartState;
|
|
59
|
+
}, number, []> & {
|
|
60
|
+
unwrapped: (state: CartState) => number;
|
|
61
|
+
}, selectCartStatus: import("reselect").Selector<{
|
|
62
|
+
"": CartState;
|
|
63
|
+
}, boolean, []> & {
|
|
64
|
+
unwrapped: (state: CartState) => boolean;
|
|
65
|
+
}, selectPromoCode: import("reselect").Selector<{
|
|
66
|
+
"": CartState;
|
|
67
|
+
}, {
|
|
68
|
+
code: string;
|
|
69
|
+
name: string;
|
|
70
|
+
discount: string;
|
|
71
|
+
discountedAmount: number;
|
|
72
|
+
}, []> & {
|
|
73
|
+
unwrapped: (state: CartState) => {
|
|
74
|
+
code: string;
|
|
75
|
+
name: string;
|
|
76
|
+
discount: string;
|
|
77
|
+
discountedAmount: number;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const selectCartItems: ((state: {
|
|
81
|
+
"": CartState;
|
|
82
|
+
}) => {
|
|
83
|
+
title: string;
|
|
84
|
+
file: string;
|
|
85
|
+
options: Options;
|
|
86
|
+
script: string;
|
|
87
|
+
}[]) & {
|
|
88
|
+
clearCache: () => void;
|
|
89
|
+
resultsCount: () => number;
|
|
90
|
+
resetResultsCount: () => void;
|
|
91
|
+
} & {
|
|
92
|
+
resultFunc: (resultFuncArgs_0: MediaEntity[]) => {
|
|
93
|
+
title: string;
|
|
94
|
+
file: string;
|
|
95
|
+
options: Options;
|
|
96
|
+
script: string;
|
|
97
|
+
}[];
|
|
98
|
+
memoizedResultFunc: ((resultFuncArgs_0: MediaEntity[]) => {
|
|
99
|
+
title: string;
|
|
100
|
+
file: string;
|
|
101
|
+
options: Options;
|
|
102
|
+
script: string;
|
|
103
|
+
}[]) & {
|
|
104
|
+
clearCache: () => void;
|
|
105
|
+
resultsCount: () => number;
|
|
106
|
+
resetResultsCount: () => void;
|
|
107
|
+
};
|
|
108
|
+
lastResult: () => {
|
|
109
|
+
title: string;
|
|
110
|
+
file: string;
|
|
111
|
+
options: Options;
|
|
112
|
+
script: string;
|
|
113
|
+
}[];
|
|
114
|
+
dependencies: [import("reselect").Selector<{
|
|
115
|
+
"": CartState;
|
|
116
|
+
}, MediaEntity[], []> & {
|
|
117
|
+
unwrapped: (state: CartState) => MediaEntity[];
|
|
118
|
+
}];
|
|
119
|
+
recomputations: () => number;
|
|
120
|
+
resetRecomputations: () => void;
|
|
121
|
+
dependencyRecomputations: () => number;
|
|
122
|
+
resetDependencyRecomputations: () => void;
|
|
123
|
+
} & {
|
|
124
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
125
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
126
|
+
};
|
|
127
|
+
export declare const selectCartItemsIds: ((state: {
|
|
128
|
+
"": CartState;
|
|
129
|
+
}) => string[]) & {
|
|
130
|
+
clearCache: () => void;
|
|
131
|
+
resultsCount: () => number;
|
|
132
|
+
resetResultsCount: () => void;
|
|
133
|
+
} & {
|
|
134
|
+
resultFunc: (resultFuncArgs_0: MediaEntity[]) => string[];
|
|
135
|
+
memoizedResultFunc: ((resultFuncArgs_0: MediaEntity[]) => string[]) & {
|
|
136
|
+
clearCache: () => void;
|
|
137
|
+
resultsCount: () => number;
|
|
138
|
+
resetResultsCount: () => void;
|
|
139
|
+
};
|
|
140
|
+
lastResult: () => string[];
|
|
141
|
+
dependencies: [import("reselect").Selector<{
|
|
142
|
+
"": CartState;
|
|
143
|
+
}, MediaEntity[], []> & {
|
|
144
|
+
unwrapped: (state: CartState) => MediaEntity[];
|
|
145
|
+
}];
|
|
146
|
+
recomputations: () => number;
|
|
147
|
+
resetRecomputations: () => void;
|
|
148
|
+
dependencyRecomputations: () => number;
|
|
149
|
+
resetDependencyRecomputations: () => void;
|
|
150
|
+
} & {
|
|
151
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
152
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
153
|
+
};
|
|
154
|
+
declare const _default: import("redux").Reducer<CartState>;
|
|
155
|
+
export default _default;
|
|
@@ -44,6 +44,10 @@ export interface ESPromo {
|
|
|
44
44
|
uuid: string[];
|
|
45
45
|
video: string[];
|
|
46
46
|
weight: number[];
|
|
47
|
+
search_api_datasource?: string[];
|
|
48
|
+
search_api_id?: string[];
|
|
49
|
+
search_api_language?: string[];
|
|
50
|
+
term?: string[];
|
|
47
51
|
};
|
|
48
52
|
sort: number[];
|
|
49
53
|
}
|
|
@@ -311,6 +315,168 @@ export interface ESChallengeDay {
|
|
|
311
315
|
};
|
|
312
316
|
sort: number[];
|
|
313
317
|
}
|
|
318
|
+
export interface ESConfig {
|
|
319
|
+
_index: string;
|
|
320
|
+
_id: string;
|
|
321
|
+
_score: null;
|
|
322
|
+
_source: {
|
|
323
|
+
uuid?: string[];
|
|
324
|
+
id?: string[];
|
|
325
|
+
created?: number[];
|
|
326
|
+
updated?: number[];
|
|
327
|
+
type?: string[];
|
|
328
|
+
cla?: string[];
|
|
329
|
+
enabled?: boolean[];
|
|
330
|
+
name?: string[];
|
|
331
|
+
price?: number[];
|
|
332
|
+
video?: string[];
|
|
333
|
+
image_homepage?: string[];
|
|
334
|
+
image_section_banner?: string[];
|
|
335
|
+
search_api_id?: string[];
|
|
336
|
+
search_api_datasource?: string[];
|
|
337
|
+
search_api_language?: string[];
|
|
338
|
+
};
|
|
339
|
+
sort: number[];
|
|
340
|
+
}
|
|
341
|
+
export interface ESSectionPanel {
|
|
342
|
+
_index: string;
|
|
343
|
+
_id: string;
|
|
344
|
+
_score: null;
|
|
345
|
+
_source: {
|
|
346
|
+
uuid?: string[];
|
|
347
|
+
title?: string[];
|
|
348
|
+
created?: number[];
|
|
349
|
+
updated?: number[];
|
|
350
|
+
weight?: number[];
|
|
351
|
+
item_uuid?: string[];
|
|
352
|
+
type?: string[];
|
|
353
|
+
};
|
|
354
|
+
sort: number[];
|
|
355
|
+
}
|
|
356
|
+
export interface ESSectionItem {
|
|
357
|
+
_index: string;
|
|
358
|
+
_id: string;
|
|
359
|
+
_score: null;
|
|
360
|
+
_source: {
|
|
361
|
+
uuid?: string[];
|
|
362
|
+
title?: string[];
|
|
363
|
+
created?: number[];
|
|
364
|
+
updated?: number[];
|
|
365
|
+
type?: string[];
|
|
366
|
+
term?: string[];
|
|
367
|
+
custom_image_formatted?: string[];
|
|
368
|
+
banner_image_formatted?: string;
|
|
369
|
+
};
|
|
370
|
+
sort: number[];
|
|
371
|
+
}
|
|
372
|
+
export interface ESTaxonomy {
|
|
373
|
+
_index: string;
|
|
374
|
+
_id: string;
|
|
375
|
+
_score: null;
|
|
376
|
+
_source: {
|
|
377
|
+
uuid?: string[];
|
|
378
|
+
updated?: number[];
|
|
379
|
+
vocabulary?: string[];
|
|
380
|
+
name?: string[];
|
|
381
|
+
description?: string[];
|
|
382
|
+
image?: string[];
|
|
383
|
+
image_banner?: string[];
|
|
384
|
+
image_banner_taxonomy?: string[];
|
|
385
|
+
image_large_16_9?: string[];
|
|
386
|
+
weight?: number[];
|
|
387
|
+
parent_name?: string[];
|
|
388
|
+
color?: string[];
|
|
389
|
+
};
|
|
390
|
+
sort: number[];
|
|
391
|
+
}
|
|
392
|
+
export interface ESSeries {
|
|
393
|
+
_index: string;
|
|
394
|
+
_id: string;
|
|
395
|
+
_score: null;
|
|
396
|
+
_source: {
|
|
397
|
+
uuid?: string[];
|
|
398
|
+
created?: number[];
|
|
399
|
+
updated?: number[];
|
|
400
|
+
display_title?: string[];
|
|
401
|
+
synopsis?: string[];
|
|
402
|
+
image_style_poster?: string[];
|
|
403
|
+
image_style_thumb?: string[];
|
|
404
|
+
category?: string[];
|
|
405
|
+
category_id?: string[];
|
|
406
|
+
seasons?: string[];
|
|
407
|
+
};
|
|
408
|
+
sort: number[];
|
|
409
|
+
}
|
|
410
|
+
export interface ESSeason {
|
|
411
|
+
_index: string;
|
|
412
|
+
_id: string;
|
|
413
|
+
_score: null;
|
|
414
|
+
_source: {
|
|
415
|
+
uuid?: string[];
|
|
416
|
+
created?: number[];
|
|
417
|
+
updated?: number[];
|
|
418
|
+
display_title?: string[];
|
|
419
|
+
synopsis?: string[];
|
|
420
|
+
image_style_poster?: string[];
|
|
421
|
+
image_style_thumb?: string[];
|
|
422
|
+
episodes?: string[];
|
|
423
|
+
season_number?: string[];
|
|
424
|
+
show?: string[];
|
|
425
|
+
};
|
|
426
|
+
sort: number[];
|
|
427
|
+
}
|
|
428
|
+
export interface ESLongform {
|
|
429
|
+
_index: string;
|
|
430
|
+
_id: string;
|
|
431
|
+
_score: null;
|
|
432
|
+
_source: {
|
|
433
|
+
uuid?: string[];
|
|
434
|
+
created?: number[];
|
|
435
|
+
updated?: number[];
|
|
436
|
+
display_title?: string[];
|
|
437
|
+
synopsis?: string[];
|
|
438
|
+
image_style_poster?: string[];
|
|
439
|
+
image_style_thumb?: string[];
|
|
440
|
+
duration?: string[];
|
|
441
|
+
release_date?: string[];
|
|
442
|
+
video?: string[];
|
|
443
|
+
image_url?: string[];
|
|
444
|
+
episode_number?: string[];
|
|
445
|
+
};
|
|
446
|
+
sort: number[];
|
|
447
|
+
}
|
|
448
|
+
export interface ESMediaItem {
|
|
449
|
+
_index: string;
|
|
450
|
+
_id: string;
|
|
451
|
+
_score: null;
|
|
452
|
+
_source: {
|
|
453
|
+
changed?: number[];
|
|
454
|
+
created?: number[];
|
|
455
|
+
image?: string[];
|
|
456
|
+
custom_thumbnail?: string[];
|
|
457
|
+
price?: number[];
|
|
458
|
+
price_2_year?: number[];
|
|
459
|
+
revision_timestamp?: string[];
|
|
460
|
+
sku?: string[];
|
|
461
|
+
status?: string[];
|
|
462
|
+
uuid?: string[];
|
|
463
|
+
description?: string[];
|
|
464
|
+
transcript?: string[];
|
|
465
|
+
entities?: string[];
|
|
466
|
+
phrases?: string[];
|
|
467
|
+
video?: string[];
|
|
468
|
+
title?: string[];
|
|
469
|
+
generated_title?: string[];
|
|
470
|
+
project_pricing?: string[];
|
|
471
|
+
related_uuids?: string[];
|
|
472
|
+
franchise_name?: string[];
|
|
473
|
+
franchise_tid?: string[];
|
|
474
|
+
original?: string[];
|
|
475
|
+
script?: string[];
|
|
476
|
+
hide_thumbnail_title?: string[];
|
|
477
|
+
};
|
|
478
|
+
sort: number[];
|
|
479
|
+
}
|
|
314
480
|
/**
|
|
315
481
|
* QUERY RESPONSE INTERFACES
|
|
316
482
|
**/
|
|
@@ -329,7 +495,7 @@ export interface ESWorkoutResponse {
|
|
|
329
495
|
hits: ESWorkout[];
|
|
330
496
|
};
|
|
331
497
|
}
|
|
332
|
-
export type ESDataTypes = ESWorkout[] | ESPromo[] | ESShortform[] | ESLongForm[] | ESFaq[] | ESPage[] | ESSetting[] | ESPress[] | ESGuest[] | ESVideo[] | ESSection[] | ESSchedule[] | ESChallenge[] | ESChallengeDay[];
|
|
498
|
+
export type ESDataTypes = ESWorkout[] | ESPromo[] | ESShortform[] | ESLongForm[] | ESFaq[] | ESPage[] | ESSetting[] | ESPress[] | ESGuest[] | ESVideo[] | ESSection[] | ESSchedule[] | ESChallenge[] | ESChallengeDay[] | ESConfig[];
|
|
333
499
|
export interface ESDataResponse {
|
|
334
500
|
took: number;
|
|
335
501
|
timed_out: boolean;
|
|
@@ -361,9 +527,7 @@ export interface DataArgs {
|
|
|
361
527
|
order: string;
|
|
362
528
|
};
|
|
363
529
|
}[];
|
|
364
|
-
query?:
|
|
365
|
-
match_all: {};
|
|
366
|
-
};
|
|
530
|
+
query?: any;
|
|
367
531
|
};
|
|
368
532
|
}
|
|
369
533
|
/**
|
|
@@ -379,25 +543,26 @@ export interface Page {
|
|
|
379
543
|
url?: string;
|
|
380
544
|
}
|
|
381
545
|
export interface Promo {
|
|
382
|
-
uuid
|
|
383
|
-
id
|
|
384
|
-
title
|
|
385
|
-
video
|
|
386
|
-
align
|
|
387
|
-
section
|
|
388
|
-
image
|
|
389
|
-
imageFormatted
|
|
390
|
-
backgroundImage
|
|
391
|
-
backgroundVideo
|
|
392
|
-
backgroundImageFormatted
|
|
393
|
-
description
|
|
394
|
-
created
|
|
395
|
-
updated
|
|
396
|
-
langcode
|
|
397
|
-
weight
|
|
398
|
-
authPanel
|
|
399
|
-
buttonText
|
|
400
|
-
link
|
|
546
|
+
uuid?: string;
|
|
547
|
+
id?: string;
|
|
548
|
+
title?: string;
|
|
549
|
+
video?: string;
|
|
550
|
+
align?: string;
|
|
551
|
+
section?: number;
|
|
552
|
+
image?: string;
|
|
553
|
+
imageFormatted?: string;
|
|
554
|
+
backgroundImage?: string;
|
|
555
|
+
backgroundVideo?: string;
|
|
556
|
+
backgroundImageFormatted?: string;
|
|
557
|
+
description?: string;
|
|
558
|
+
created?: number;
|
|
559
|
+
updated?: number;
|
|
560
|
+
langcode?: string;
|
|
561
|
+
weight?: number;
|
|
562
|
+
authPanel?: boolean;
|
|
563
|
+
buttonText?: string;
|
|
564
|
+
link?: string;
|
|
565
|
+
term?: string;
|
|
401
566
|
}
|
|
402
567
|
export interface Workout {
|
|
403
568
|
created: number;
|
|
@@ -432,23 +597,6 @@ export interface Video {
|
|
|
432
597
|
videoDownload: string;
|
|
433
598
|
sectionId: number;
|
|
434
599
|
}
|
|
435
|
-
export interface Series {
|
|
436
|
-
uuid: string;
|
|
437
|
-
id: string;
|
|
438
|
-
title: string;
|
|
439
|
-
subtitle: string;
|
|
440
|
-
imageThumbnailURL: string;
|
|
441
|
-
imageURL: string;
|
|
442
|
-
description: string;
|
|
443
|
-
summary: {
|
|
444
|
-
value: string[];
|
|
445
|
-
};
|
|
446
|
-
body: {
|
|
447
|
-
value: string[];
|
|
448
|
-
};
|
|
449
|
-
nid: string;
|
|
450
|
-
season: string;
|
|
451
|
-
}
|
|
452
600
|
export interface Section {
|
|
453
601
|
uuid?: string;
|
|
454
602
|
title?: string;
|
|
@@ -537,3 +685,121 @@ export interface ChallengeDay {
|
|
|
537
685
|
video?: string;
|
|
538
686
|
workout?: string;
|
|
539
687
|
}
|
|
688
|
+
export interface Config {
|
|
689
|
+
uuid?: string;
|
|
690
|
+
id?: string;
|
|
691
|
+
created?: number;
|
|
692
|
+
updated?: number;
|
|
693
|
+
type?: string;
|
|
694
|
+
cla?: string;
|
|
695
|
+
enabled?: boolean;
|
|
696
|
+
name?: string;
|
|
697
|
+
price?: number;
|
|
698
|
+
video?: string;
|
|
699
|
+
imageHomepage?: string;
|
|
700
|
+
imageSectionBanner?: string;
|
|
701
|
+
searchApiId?: string;
|
|
702
|
+
searchApiDatasource?: string;
|
|
703
|
+
searchApiLanguage?: string;
|
|
704
|
+
}
|
|
705
|
+
export interface SectionPanel {
|
|
706
|
+
uuid?: string;
|
|
707
|
+
title?: string;
|
|
708
|
+
created?: number;
|
|
709
|
+
updated?: number;
|
|
710
|
+
weight?: number;
|
|
711
|
+
items?: string[];
|
|
712
|
+
type?: string;
|
|
713
|
+
}
|
|
714
|
+
export interface SectionItem {
|
|
715
|
+
uuid?: string;
|
|
716
|
+
title?: string;
|
|
717
|
+
created?: number;
|
|
718
|
+
updated?: number;
|
|
719
|
+
type?: string;
|
|
720
|
+
term?: string;
|
|
721
|
+
image?: string;
|
|
722
|
+
bannerImage?: string;
|
|
723
|
+
}
|
|
724
|
+
export interface Taxonomy {
|
|
725
|
+
id?: string;
|
|
726
|
+
uuid?: string;
|
|
727
|
+
updated?: number;
|
|
728
|
+
vocabulary?: string;
|
|
729
|
+
name?: string;
|
|
730
|
+
description?: string;
|
|
731
|
+
image?: string;
|
|
732
|
+
imageBanner?: string;
|
|
733
|
+
imageBannerTaxonomy?: string;
|
|
734
|
+
imageLarge?: string;
|
|
735
|
+
weight?: number;
|
|
736
|
+
parentName?: string;
|
|
737
|
+
color?: string;
|
|
738
|
+
}
|
|
739
|
+
export interface Series {
|
|
740
|
+
id?: string;
|
|
741
|
+
uuid?: string;
|
|
742
|
+
created?: number;
|
|
743
|
+
updated?: number;
|
|
744
|
+
displayTitle?: string;
|
|
745
|
+
synopsis?: string;
|
|
746
|
+
imagePoster?: string;
|
|
747
|
+
imageThumb?: string;
|
|
748
|
+
category?: string;
|
|
749
|
+
categoryId?: string;
|
|
750
|
+
seasons?: string[];
|
|
751
|
+
}
|
|
752
|
+
export interface Season {
|
|
753
|
+
id?: string;
|
|
754
|
+
uuid?: string;
|
|
755
|
+
created?: number;
|
|
756
|
+
updated?: number;
|
|
757
|
+
displayTitle?: string;
|
|
758
|
+
synopsis?: string;
|
|
759
|
+
imagePoster?: string;
|
|
760
|
+
imageThumb?: string;
|
|
761
|
+
episodes?: string[];
|
|
762
|
+
seasonNumber?: string;
|
|
763
|
+
showId?: string;
|
|
764
|
+
}
|
|
765
|
+
export interface LongForm {
|
|
766
|
+
id?: string;
|
|
767
|
+
uuid?: string;
|
|
768
|
+
created?: number;
|
|
769
|
+
updated?: number;
|
|
770
|
+
displayTitle?: string;
|
|
771
|
+
synopsis?: string;
|
|
772
|
+
imagePoster?: string;
|
|
773
|
+
imageThumb?: string;
|
|
774
|
+
duration?: string;
|
|
775
|
+
releaseDate?: string;
|
|
776
|
+
video?: string;
|
|
777
|
+
imageUrl?: string;
|
|
778
|
+
episodeNumber?: string;
|
|
779
|
+
}
|
|
780
|
+
export interface MediaItem {
|
|
781
|
+
changed?: number;
|
|
782
|
+
created?: number;
|
|
783
|
+
image?: string;
|
|
784
|
+
customThumbnail?: string;
|
|
785
|
+
price?: number;
|
|
786
|
+
priceTwoYear?: number;
|
|
787
|
+
revisionTimestamp?: string;
|
|
788
|
+
sku?: string;
|
|
789
|
+
status?: string;
|
|
790
|
+
uuid?: string;
|
|
791
|
+
description?: string;
|
|
792
|
+
transcript?: string;
|
|
793
|
+
entities?: string[];
|
|
794
|
+
phrases?: string[];
|
|
795
|
+
video?: string;
|
|
796
|
+
title?: string;
|
|
797
|
+
generatedTitle?: string;
|
|
798
|
+
projectPricing?: string;
|
|
799
|
+
relatedItems?: string[];
|
|
800
|
+
franchises?: string[];
|
|
801
|
+
franchisesIds?: string[];
|
|
802
|
+
original?: string;
|
|
803
|
+
script?: string;
|
|
804
|
+
hideThumbnailTitle?: string;
|
|
805
|
+
}
|