@techstuff-dev/foundation-api-utils 1.6.0 → 1.7.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 +12 -20
- package/dist/@types/lib/services/content/content.interfaces.d.ts +327 -37
- package/dist/@types/lib/services/content/index.d.ts +4 -6
- package/dist/@types/lib/services/index.d.ts +2 -2
- package/dist/@types/lib/store/index.d.ts +30 -50
- package/dist/@types/lib/utils/dataFormat/index.d.ts +247 -9
- package/dist/index.esm.js +389 -71
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +402 -99
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,11 +17,9 @@ export declare const useAppDispatch: import("react-redux").UseDispatch<import("r
|
|
|
17
17
|
updateUser: import("@reduxjs/toolkit/query").MutationDefinition<import("..").UpdateUserRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "UserToken", any, "authApi">;
|
|
18
18
|
}, "UserToken", "authApi">;
|
|
19
19
|
contentApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
20
|
-
getData: import("@reduxjs/toolkit/query").QueryDefinition<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
getWorkoutById: import("@reduxjs/toolkit/query").QueryDefinition<IdArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Workout, "contentApi">;
|
|
24
|
-
}, "Data" | "Promos" | "Workouts", "contentApi">;
|
|
20
|
+
getData: import("@reduxjs/toolkit/query").QueryDefinition<DataArgs, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data", ESDataTypes, "contentApi">;
|
|
21
|
+
getWorkoutById: import("@reduxjs/toolkit/query").QueryDefinition<IdArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data", Workout, "contentApi">;
|
|
22
|
+
}, "Data", "contentApi">;
|
|
25
23
|
} & import("redux-persist/es/persistReducer").PersistPartial, undefined, import("redux").UnknownAction> & import("redux").Dispatch<import("redux").Action>>;
|
|
26
24
|
export declare const useAppSelector: import("react-redux").UseSelector<{
|
|
27
25
|
auth: import("..").AuthState;
|
|
@@ -41,11 +39,9 @@ export declare const useAppSelector: import("react-redux").UseSelector<{
|
|
|
41
39
|
updateUser: import("@reduxjs/toolkit/query").MutationDefinition<import("..").UpdateUserRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "UserToken", any, "authApi">;
|
|
42
40
|
}, "UserToken", "authApi">;
|
|
43
41
|
contentApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
44
|
-
getData: import("@reduxjs/toolkit/query").QueryDefinition<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
getWorkoutById: import("@reduxjs/toolkit/query").QueryDefinition<IdArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Workout, "contentApi">;
|
|
48
|
-
}, "Data" | "Promos" | "Workouts", "contentApi">;
|
|
42
|
+
getData: import("@reduxjs/toolkit/query").QueryDefinition<DataArgs, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data", ESDataTypes, "contentApi">;
|
|
43
|
+
getWorkoutById: import("@reduxjs/toolkit/query").QueryDefinition<IdArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data", Workout, "contentApi">;
|
|
44
|
+
}, "Data", "contentApi">;
|
|
49
45
|
}>;
|
|
50
46
|
export declare const useAppStore: import("react-redux").UseStore<import("@reduxjs/toolkit").EnhancedStore<{
|
|
51
47
|
auth: import("..").AuthState;
|
|
@@ -65,11 +61,9 @@ export declare const useAppStore: import("react-redux").UseStore<import("@reduxj
|
|
|
65
61
|
updateUser: import("@reduxjs/toolkit/query").MutationDefinition<import("..").UpdateUserRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "UserToken", any, "authApi">;
|
|
66
62
|
}, "UserToken", "authApi">;
|
|
67
63
|
contentApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
68
|
-
getData: import("@reduxjs/toolkit/query").QueryDefinition<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
getWorkoutById: import("@reduxjs/toolkit/query").QueryDefinition<IdArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Workout, "contentApi">;
|
|
72
|
-
}, "Data" | "Promos" | "Workouts", "contentApi">;
|
|
64
|
+
getData: import("@reduxjs/toolkit/query").QueryDefinition<DataArgs, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data", ESDataTypes, "contentApi">;
|
|
65
|
+
getWorkoutById: import("@reduxjs/toolkit/query").QueryDefinition<IdArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data", Workout, "contentApi">;
|
|
66
|
+
}, "Data", "contentApi">;
|
|
73
67
|
} & import("redux-persist/es/persistReducer").PersistPartial, import("redux").Action, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
74
68
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
75
69
|
auth: import("..").AuthState;
|
|
@@ -89,11 +83,9 @@ export declare const useAppStore: import("react-redux").UseStore<import("@reduxj
|
|
|
89
83
|
updateUser: import("@reduxjs/toolkit/query").MutationDefinition<import("..").UpdateUserRequest, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "UserToken", any, "authApi">;
|
|
90
84
|
}, "UserToken", "authApi">;
|
|
91
85
|
contentApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
92
|
-
getData: import("@reduxjs/toolkit/query").QueryDefinition<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
getWorkoutById: import("@reduxjs/toolkit/query").QueryDefinition<IdArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Workout, "contentApi">;
|
|
96
|
-
}, "Data" | "Promos" | "Workouts", "contentApi">;
|
|
86
|
+
getData: import("@reduxjs/toolkit/query").QueryDefinition<DataArgs, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data", ESDataTypes, "contentApi">;
|
|
87
|
+
getWorkoutById: import("@reduxjs/toolkit/query").QueryDefinition<IdArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data", Workout, "contentApi">;
|
|
88
|
+
}, "Data", "contentApi">;
|
|
97
89
|
} & import("redux-persist/es/persistReducer").PersistPartial, undefined, import("redux").UnknownAction>;
|
|
98
90
|
}>, ...any[]]>>>;
|
|
99
91
|
export * from "./useAuth";
|
|
@@ -2,26 +2,22 @@ type VideoSource = {
|
|
|
2
2
|
type: string;
|
|
3
3
|
src: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
weight: number;
|
|
22
|
-
authPanel: boolean;
|
|
23
|
-
buttonText: string;
|
|
24
|
-
link: string;
|
|
5
|
+
type S3Image = {
|
|
6
|
+
uri: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* ES OBJECT INTERFACES
|
|
10
|
+
**/
|
|
11
|
+
interface UserPayload {
|
|
12
|
+
email: string;
|
|
13
|
+
given_name: string;
|
|
14
|
+
family_name: string;
|
|
15
|
+
birthdate: string;
|
|
16
|
+
'cognito:username': string;
|
|
17
|
+
'custom:termsAccepted': string;
|
|
18
|
+
'custom:subscriptionId': string;
|
|
19
|
+
'custom:contactPreferences': string;
|
|
20
|
+
'custom:customerId': string;
|
|
25
21
|
}
|
|
26
22
|
interface ESPromo {
|
|
27
23
|
_index: string;
|
|
@@ -50,27 +46,13 @@ interface ESPromo {
|
|
|
50
46
|
};
|
|
51
47
|
sort: number[];
|
|
52
48
|
}
|
|
53
|
-
interface ESPromoResponse {
|
|
54
|
-
took: number;
|
|
55
|
-
timed_out: boolean;
|
|
56
|
-
_shards: {
|
|
57
|
-
total: number;
|
|
58
|
-
successful: number;
|
|
59
|
-
skipped: number;
|
|
60
|
-
failed: number;
|
|
61
|
-
};
|
|
62
|
-
hits: {
|
|
63
|
-
total: number;
|
|
64
|
-
max_score: null;
|
|
65
|
-
hits: ESPromo[];
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
49
|
interface ESWorkout {
|
|
69
50
|
_index: string;
|
|
70
51
|
_id: string;
|
|
71
52
|
_score: null;
|
|
72
53
|
_source: {
|
|
73
54
|
changed: number[];
|
|
55
|
+
created: number[];
|
|
74
56
|
uuid: string[];
|
|
75
57
|
description: string[];
|
|
76
58
|
duration: string[];
|
|
@@ -83,12 +65,245 @@ interface ESWorkout {
|
|
|
83
65
|
uid: string[];
|
|
84
66
|
video_url: string[];
|
|
85
67
|
video_poster: string[];
|
|
68
|
+
video_download: string[];
|
|
86
69
|
workout_category: string[];
|
|
87
70
|
workout_type: string[];
|
|
88
71
|
livestream_section: string[];
|
|
89
72
|
};
|
|
90
73
|
sort: number[];
|
|
91
74
|
}
|
|
75
|
+
interface ESShortform {
|
|
76
|
+
_index: string;
|
|
77
|
+
_id: string;
|
|
78
|
+
_score: null;
|
|
79
|
+
_source: {
|
|
80
|
+
uuid?: string;
|
|
81
|
+
nid?: string;
|
|
82
|
+
title?: string;
|
|
83
|
+
field_image_thumb?: string;
|
|
84
|
+
field_image_poster?: string;
|
|
85
|
+
field_short_synopsis?: string;
|
|
86
|
+
field_body?: string;
|
|
87
|
+
field_channel?: string;
|
|
88
|
+
revision_timestamp?: string;
|
|
89
|
+
langcode?: string;
|
|
90
|
+
field_videomanifest?: string;
|
|
91
|
+
field_duration?: string;
|
|
92
|
+
field_category?: string;
|
|
93
|
+
};
|
|
94
|
+
sort: number[];
|
|
95
|
+
}
|
|
96
|
+
interface ESLongForm {
|
|
97
|
+
_index: string;
|
|
98
|
+
_id: string;
|
|
99
|
+
_score: null;
|
|
100
|
+
_source: {
|
|
101
|
+
uuid?: string[];
|
|
102
|
+
nid?: string[];
|
|
103
|
+
title?: string[];
|
|
104
|
+
image?: string[];
|
|
105
|
+
image_promo?: string[];
|
|
106
|
+
image_promo_large?: string[];
|
|
107
|
+
image_poster?: string[];
|
|
108
|
+
summary?: string[];
|
|
109
|
+
created?: string[];
|
|
110
|
+
revision_timestamp?: string[];
|
|
111
|
+
video_manifest?: string[];
|
|
112
|
+
rating?: string[];
|
|
113
|
+
released_date?: string[];
|
|
114
|
+
source_id?: string[];
|
|
115
|
+
director?: string[];
|
|
116
|
+
duration?: string[];
|
|
117
|
+
path?: string[];
|
|
118
|
+
genres?: string[];
|
|
119
|
+
actors?: string[];
|
|
120
|
+
writers?: string[];
|
|
121
|
+
};
|
|
122
|
+
sort: number[];
|
|
123
|
+
}
|
|
124
|
+
interface ESFaq {
|
|
125
|
+
_index: string;
|
|
126
|
+
_id: string;
|
|
127
|
+
_score: null;
|
|
128
|
+
_source: {
|
|
129
|
+
uuid?: string[];
|
|
130
|
+
title?: string[];
|
|
131
|
+
answer?: string[];
|
|
132
|
+
created?: string[];
|
|
133
|
+
updated?: string[];
|
|
134
|
+
};
|
|
135
|
+
sort: number[];
|
|
136
|
+
}
|
|
137
|
+
interface ESPage {
|
|
138
|
+
_index: string;
|
|
139
|
+
_id: string;
|
|
140
|
+
_score: null;
|
|
141
|
+
_source: {
|
|
142
|
+
uuid?: string[];
|
|
143
|
+
title?: string[];
|
|
144
|
+
body?: string[];
|
|
145
|
+
created?: string[];
|
|
146
|
+
updated?: string[];
|
|
147
|
+
langcode?: string;
|
|
148
|
+
url?: string[];
|
|
149
|
+
};
|
|
150
|
+
sort: number[];
|
|
151
|
+
}
|
|
152
|
+
interface ESSetting {
|
|
153
|
+
_index: string;
|
|
154
|
+
_id: string;
|
|
155
|
+
_score: null;
|
|
156
|
+
_source: {
|
|
157
|
+
uuid?: string[];
|
|
158
|
+
created?: string[];
|
|
159
|
+
updated?: string[];
|
|
160
|
+
status?: string[];
|
|
161
|
+
type?: string[];
|
|
162
|
+
video?: string[];
|
|
163
|
+
number?: string[];
|
|
164
|
+
pass?: string[];
|
|
165
|
+
fieldset?: string[];
|
|
166
|
+
};
|
|
167
|
+
sort: number[];
|
|
168
|
+
}
|
|
169
|
+
interface ESPress {
|
|
170
|
+
_index: string;
|
|
171
|
+
_id: string;
|
|
172
|
+
_score: null;
|
|
173
|
+
_source: {
|
|
174
|
+
uuid?: string[];
|
|
175
|
+
title?: string[];
|
|
176
|
+
image?: string[];
|
|
177
|
+
created?: string[];
|
|
178
|
+
updated?: string[];
|
|
179
|
+
};
|
|
180
|
+
sort: number[];
|
|
181
|
+
}
|
|
182
|
+
interface ESGuest {
|
|
183
|
+
_index: string;
|
|
184
|
+
_id: string;
|
|
185
|
+
_score: null;
|
|
186
|
+
_source: {
|
|
187
|
+
uuid?: string[];
|
|
188
|
+
id?: string[];
|
|
189
|
+
title?: string[];
|
|
190
|
+
description?: string[];
|
|
191
|
+
image_16_9?: string[];
|
|
192
|
+
display?: string[];
|
|
193
|
+
updated?: string[];
|
|
194
|
+
};
|
|
195
|
+
sort: number[];
|
|
196
|
+
}
|
|
197
|
+
interface ESVideo {
|
|
198
|
+
_index: string;
|
|
199
|
+
_id: string;
|
|
200
|
+
_score: null;
|
|
201
|
+
_source: {
|
|
202
|
+
uuid?: string[];
|
|
203
|
+
title?: string[];
|
|
204
|
+
updated?: string[];
|
|
205
|
+
description?: string[];
|
|
206
|
+
image?: string[];
|
|
207
|
+
duration?: string[];
|
|
208
|
+
section?: string[];
|
|
209
|
+
video_poster?: string[];
|
|
210
|
+
video_url?: string[];
|
|
211
|
+
section_id?: string[];
|
|
212
|
+
};
|
|
213
|
+
sort: number[];
|
|
214
|
+
}
|
|
215
|
+
interface ESSection {
|
|
216
|
+
_index: string;
|
|
217
|
+
_id: string;
|
|
218
|
+
_score: null;
|
|
219
|
+
_source: {
|
|
220
|
+
uuid?: string[];
|
|
221
|
+
title?: string[];
|
|
222
|
+
description?: string[];
|
|
223
|
+
image?: string[];
|
|
224
|
+
display?: string[];
|
|
225
|
+
challenge?: string[];
|
|
226
|
+
id?: string[];
|
|
227
|
+
};
|
|
228
|
+
sort: number[];
|
|
229
|
+
}
|
|
230
|
+
interface ESSchedule {
|
|
231
|
+
_index: string;
|
|
232
|
+
_id: string;
|
|
233
|
+
_score: null;
|
|
234
|
+
_source: {
|
|
235
|
+
uuid?: string[];
|
|
236
|
+
created?: string[];
|
|
237
|
+
langcode?: string[];
|
|
238
|
+
updated?: string[];
|
|
239
|
+
monday_title?: string[];
|
|
240
|
+
monday_start?: string[];
|
|
241
|
+
monday_end?: string[];
|
|
242
|
+
monday_video?: string[];
|
|
243
|
+
tuesday_title?: string[];
|
|
244
|
+
tuesday_start?: string[];
|
|
245
|
+
tuesday_end?: string[];
|
|
246
|
+
tuesday_video?: string[];
|
|
247
|
+
wednesday_title?: string[];
|
|
248
|
+
wednesday_start?: string[];
|
|
249
|
+
wednesday_end?: string[];
|
|
250
|
+
wednesday_video?: string[];
|
|
251
|
+
thursday_title?: string[];
|
|
252
|
+
thursday_start?: string[];
|
|
253
|
+
thursday_end?: string[];
|
|
254
|
+
thursday_video?: string[];
|
|
255
|
+
friday_title?: string[];
|
|
256
|
+
friday_start?: string[];
|
|
257
|
+
friday_end?: string[];
|
|
258
|
+
friday_video?: string[];
|
|
259
|
+
saturday_title?: string[];
|
|
260
|
+
saturday_start?: string[];
|
|
261
|
+
saturday_end?: string[];
|
|
262
|
+
saturday_video?: string[];
|
|
263
|
+
sunday_title?: string[];
|
|
264
|
+
sunday_start?: string[];
|
|
265
|
+
sunday_end?: string[];
|
|
266
|
+
sunday_video?: string[];
|
|
267
|
+
};
|
|
268
|
+
sort: number[];
|
|
269
|
+
}
|
|
270
|
+
interface ESChallenge {
|
|
271
|
+
_index: string;
|
|
272
|
+
_id: string;
|
|
273
|
+
_score: null;
|
|
274
|
+
_source: {
|
|
275
|
+
uuid?: string[];
|
|
276
|
+
title?: string[];
|
|
277
|
+
body?: string[];
|
|
278
|
+
image?: string[];
|
|
279
|
+
challenge_key?: string[];
|
|
280
|
+
created?: string[];
|
|
281
|
+
days?: string[];
|
|
282
|
+
updated?: string[];
|
|
283
|
+
purchase_button_label?: string[];
|
|
284
|
+
price?: string[];
|
|
285
|
+
};
|
|
286
|
+
sort: number[];
|
|
287
|
+
}
|
|
288
|
+
interface ESChallengeDay {
|
|
289
|
+
_index: string;
|
|
290
|
+
_id: string;
|
|
291
|
+
_score: null;
|
|
292
|
+
_source: {
|
|
293
|
+
uuid?: string[];
|
|
294
|
+
title?: string[];
|
|
295
|
+
body?: string[];
|
|
296
|
+
image?: string[];
|
|
297
|
+
created?: string[];
|
|
298
|
+
updated?: string[];
|
|
299
|
+
video?: string[];
|
|
300
|
+
workout?: string[];
|
|
301
|
+
};
|
|
302
|
+
sort: number[];
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* QUERY RESPONSE INTERFACES
|
|
306
|
+
**/
|
|
92
307
|
interface ESWorkoutResponse {
|
|
93
308
|
took: number;
|
|
94
309
|
timed_out: boolean;
|
|
@@ -104,6 +319,67 @@ interface ESWorkoutResponse {
|
|
|
104
319
|
hits: ESWorkout[];
|
|
105
320
|
};
|
|
106
321
|
}
|
|
322
|
+
type ESDataTypes = ESWorkout[] | ESPromo[] | ESShortform[] | ESLongForm[] | ESFaq[] | ESPage[] | ESSetting[] | ESPress[] | ESGuest[] | ESVideo[] | ESSection[] | ESSchedule[] | ESChallenge[] | ESChallengeDay[];
|
|
323
|
+
interface ESDataResponse {
|
|
324
|
+
took: number;
|
|
325
|
+
timed_out: boolean;
|
|
326
|
+
_shards: {
|
|
327
|
+
total: number;
|
|
328
|
+
successful: number;
|
|
329
|
+
skipped: number;
|
|
330
|
+
failed: number;
|
|
331
|
+
};
|
|
332
|
+
hits: {
|
|
333
|
+
total: number;
|
|
334
|
+
max_score: null;
|
|
335
|
+
hits: ESDataTypes;
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* QUERY INTERFACES
|
|
340
|
+
**/
|
|
341
|
+
interface IdArg {
|
|
342
|
+
index: string;
|
|
343
|
+
id: string;
|
|
344
|
+
}
|
|
345
|
+
interface DataArgs {
|
|
346
|
+
index: string;
|
|
347
|
+
options?: {
|
|
348
|
+
size: number;
|
|
349
|
+
sort: {
|
|
350
|
+
created: {
|
|
351
|
+
order: string;
|
|
352
|
+
};
|
|
353
|
+
}[];
|
|
354
|
+
query: {
|
|
355
|
+
match_all: {};
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* FORMATTED INTERFACES
|
|
361
|
+
**/
|
|
362
|
+
interface Promo {
|
|
363
|
+
uuid: string;
|
|
364
|
+
id: string;
|
|
365
|
+
title: string;
|
|
366
|
+
video: string;
|
|
367
|
+
align: string;
|
|
368
|
+
section: number;
|
|
369
|
+
image: string;
|
|
370
|
+
imageFormatted: string;
|
|
371
|
+
backgroundImage: string;
|
|
372
|
+
backgroundVideo: string;
|
|
373
|
+
backgroundImageFormatted: string;
|
|
374
|
+
description: string;
|
|
375
|
+
created: number;
|
|
376
|
+
updated: number;
|
|
377
|
+
langcode: string;
|
|
378
|
+
weight: number;
|
|
379
|
+
authPanel: boolean;
|
|
380
|
+
buttonText: string;
|
|
381
|
+
link: string;
|
|
382
|
+
}
|
|
107
383
|
interface Workout {
|
|
108
384
|
changed: number;
|
|
109
385
|
uuid: string;
|
|
@@ -118,11 +394,25 @@ interface Workout {
|
|
|
118
394
|
uid: string;
|
|
119
395
|
video: string;
|
|
120
396
|
video_poster: string;
|
|
397
|
+
video_download: string;
|
|
121
398
|
workout_category: string;
|
|
122
399
|
workout_type: string;
|
|
123
400
|
livestream_section: string;
|
|
124
401
|
}
|
|
125
|
-
interface
|
|
126
|
-
|
|
402
|
+
interface Series {
|
|
403
|
+
uuid: string;
|
|
127
404
|
id: string;
|
|
405
|
+
title: string;
|
|
406
|
+
subtitle: string;
|
|
407
|
+
imageThumbnailURL: string;
|
|
408
|
+
imageURL: string;
|
|
409
|
+
description: string;
|
|
410
|
+
summary: {
|
|
411
|
+
value: string[];
|
|
412
|
+
};
|
|
413
|
+
body: {
|
|
414
|
+
value: string[];
|
|
415
|
+
};
|
|
416
|
+
nid: string;
|
|
417
|
+
season: string;
|
|
128
418
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const contentApi: import("@reduxjs/toolkit/query/react").Api<import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, {
|
|
2
|
-
getData: import("@reduxjs/toolkit/query/react").QueryDefinition<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}, "contentApi", "Data" | "Promos" | "Workouts", typeof import("@reduxjs/toolkit/query/react").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
7
|
-
export declare const useGetDataQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Promo[], "contentApi">>, useLazyGetDataQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Promo[], "contentApi">>, useGetPromosQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Promo[], "contentApi">>, useLazyGetPromosQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Promo[], "contentApi">>, useGetWorkoutsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Workout[], "contentApi">>, useLazyGetWorkoutsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Workout[], "contentApi">>, useGetWorkoutByIdQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<IdArg, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Workout, "contentApi">>, useLazyGetWorkoutByIdQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<IdArg, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data" | "Promos" | "Workouts", Workout, "contentApi">>;
|
|
2
|
+
getData: import("@reduxjs/toolkit/query/react").QueryDefinition<DataArgs, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data", ESDataTypes, "contentApi">;
|
|
3
|
+
getWorkoutById: import("@reduxjs/toolkit/query/react").QueryDefinition<IdArg, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data", Workout, "contentApi">;
|
|
4
|
+
}, "contentApi", "Data", typeof import("@reduxjs/toolkit/query/react").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
5
|
+
export declare const useGetDataQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<DataArgs, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data", ESDataTypes, "contentApi">>, useLazyGetDataQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<DataArgs, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data", ESDataTypes, "contentApi">>, useGetWorkoutByIdQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<IdArg, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data", Workout, "contentApi">>, useLazyGetWorkoutByIdQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<IdArg, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "Data", Workout, "contentApi">>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { authApi
|
|
2
|
-
export { contentApi
|
|
1
|
+
export { authApi } from './auth';
|
|
2
|
+
export { contentApi } from './content';
|