@techstuff-dev/foundation-api-utils 1.31.0 → 1.32.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.
|
@@ -40,6 +40,7 @@ export interface ESPromo {
|
|
|
40
40
|
image: string[];
|
|
41
41
|
langcode: string[];
|
|
42
42
|
link: string[];
|
|
43
|
+
link_mobile: string[];
|
|
43
44
|
section: number[];
|
|
44
45
|
uuid: string[];
|
|
45
46
|
video: string[];
|
|
@@ -62,6 +63,7 @@ export interface ESWorkout {
|
|
|
62
63
|
description: string[];
|
|
63
64
|
duration: string[];
|
|
64
65
|
duration_filter: number[];
|
|
66
|
+
image_16_9: string[];
|
|
65
67
|
image: string[];
|
|
66
68
|
level: string[];
|
|
67
69
|
published: boolean[];
|
|
@@ -546,23 +548,15 @@ export interface Promo {
|
|
|
546
548
|
uuid?: string;
|
|
547
549
|
id?: string;
|
|
548
550
|
title?: string;
|
|
549
|
-
video?: string;
|
|
550
|
-
align?: string;
|
|
551
|
-
section?: number;
|
|
552
551
|
image?: string;
|
|
553
552
|
imageFormatted?: string;
|
|
554
|
-
backgroundImage?: string;
|
|
555
|
-
backgroundVideo?: string;
|
|
556
|
-
backgroundImageFormatted?: string;
|
|
557
553
|
description?: string;
|
|
558
554
|
created?: number;
|
|
559
555
|
updated?: number;
|
|
560
|
-
langcode?: string;
|
|
561
556
|
weight?: number;
|
|
562
|
-
authPanel?: boolean;
|
|
563
557
|
buttonText?: string;
|
|
564
558
|
link?: string;
|
|
565
|
-
|
|
559
|
+
linkMobile?: string;
|
|
566
560
|
}
|
|
567
561
|
export interface Workout {
|
|
568
562
|
created: number;
|
|
@@ -570,6 +564,7 @@ export interface Workout {
|
|
|
570
564
|
uuid: string;
|
|
571
565
|
description: string;
|
|
572
566
|
duration: number;
|
|
567
|
+
imageStyled: string;
|
|
573
568
|
image: string;
|
|
574
569
|
level: string;
|
|
575
570
|
published: boolean;
|
package/dist/index.esm.js
CHANGED
|
@@ -221,34 +221,35 @@ var formatUserPayload = function (payload) {
|
|
|
221
221
|
};
|
|
222
222
|
function formatPromos(data) {
|
|
223
223
|
return data.map(function (item) {
|
|
224
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1
|
|
224
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
|
|
225
225
|
return {
|
|
226
226
|
uuid: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.uuid) === null || _b === void 0 ? void 0 : _b[0],
|
|
227
227
|
id: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.uuid) === null || _d === void 0 ? void 0 : _d[0],
|
|
228
228
|
title: (_f = (_e = item === null || item === void 0 ? void 0 : item._source) === null || _e === void 0 ? void 0 : _e.title) === null || _f === void 0 ? void 0 : _f[0],
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
229
|
+
image: (_h = (_g = item === null || item === void 0 ? void 0 : item._source) === null || _g === void 0 ? void 0 : _g.image) === null || _h === void 0 ? void 0 : _h[0],
|
|
230
|
+
imageFormatted: (_k = (_j = item === null || item === void 0 ? void 0 : item._source) === null || _j === void 0 ? void 0 : _j.image_formatted) === null || _k === void 0 ? void 0 : _k[0],
|
|
231
|
+
description: (_m = (_l = item === null || item === void 0 ? void 0 : item._source) === null || _l === void 0 ? void 0 : _l.description) === null || _m === void 0 ? void 0 : _m[0],
|
|
232
|
+
created: (_p = (_o = item === null || item === void 0 ? void 0 : item._source) === null || _o === void 0 ? void 0 : _o.created) === null || _p === void 0 ? void 0 : _p[0],
|
|
233
|
+
updated: (_r = (_q = item === null || item === void 0 ? void 0 : item._source) === null || _q === void 0 ? void 0 : _q.updated) === null || _r === void 0 ? void 0 : _r[0],
|
|
234
|
+
weight: (_t = (_s = item === null || item === void 0 ? void 0 : item._source) === null || _s === void 0 ? void 0 : _s.weight) === null || _t === void 0 ? void 0 : _t[0],
|
|
235
|
+
buttonText: (_v = (_u = item === null || item === void 0 ? void 0 : item._source) === null || _u === void 0 ? void 0 : _u.button_text) === null || _v === void 0 ? void 0 : _v[0],
|
|
236
|
+
link: (_x = (_w = item === null || item === void 0 ? void 0 : item._source) === null || _w === void 0 ? void 0 : _w.link) === null || _x === void 0 ? void 0 : _x[0],
|
|
237
|
+
linkMobile: (_z = (_y = item === null || item === void 0 ? void 0 : item._source) === null || _y === void 0 ? void 0 : _y.link_mobile) === null || _z === void 0 ? void 0 : _z[0],
|
|
238
|
+
term: (_1 = (_0 = item === null || item === void 0 ? void 0 : item._source) === null || _0 === void 0 ? void 0 : _0.term) === null || _1 === void 0 ? void 0 : _1[0],
|
|
239
|
+
// video: item?._source?.video?.[0],
|
|
240
|
+
// align: item?._source?.align?.[0],
|
|
241
|
+
// section: item?._source?.section?.[0],
|
|
242
|
+
// backgroundImage: item?._source?.background_image?.[0],
|
|
243
|
+
// backgroundVideo: item?._source?.background_video?.[0],
|
|
244
|
+
// backgroundImageFormatted: item?._source?.background_image_formatted?.[0],
|
|
245
|
+
// langcode: item?._source?.langcode?.[0],
|
|
246
|
+
// authPanel: item?._source?.auth_panel?.[0],
|
|
246
247
|
};
|
|
247
248
|
});
|
|
248
249
|
}
|
|
249
250
|
function formatWorkout(data) {
|
|
250
251
|
return data.map(function (item) {
|
|
251
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9;
|
|
252
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
|
|
252
253
|
return {
|
|
253
254
|
changed: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.changed) === null || _b === void 0 ? void 0 : _b[0],
|
|
254
255
|
created: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.created) === null || _d === void 0 ? void 0 : _d[0],
|
|
@@ -260,14 +261,15 @@ function formatWorkout(data) {
|
|
|
260
261
|
published: (_p = (_o = item === null || item === void 0 ? void 0 : item._source) === null || _o === void 0 ? void 0 : _o.published) === null || _p === void 0 ? void 0 : _p[0],
|
|
261
262
|
targeted_section: (_r = (_q = item === null || item === void 0 ? void 0 : item._source) === null || _q === void 0 ? void 0 : _q.targeted_section) === null || _r === void 0 ? void 0 : _r[0],
|
|
262
263
|
uid: (_t = (_s = item === null || item === void 0 ? void 0 : item._source) === null || _s === void 0 ? void 0 : _s.uid) === null || _t === void 0 ? void 0 : _t[0],
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
264
|
+
imageStyled: (_v = (_u = item === null || item === void 0 ? void 0 : item._source) === null || _u === void 0 ? void 0 : _u.image_16_9) === null || _v === void 0 ? void 0 : _v[0],
|
|
265
|
+
image: (_x = (_w = item === null || item === void 0 ? void 0 : item._source) === null || _w === void 0 ? void 0 : _w.image) === null || _x === void 0 ? void 0 : _x[0],
|
|
266
|
+
title: (_z = (_y = item === null || item === void 0 ? void 0 : item._source) === null || _y === void 0 ? void 0 : _y.title) === null || _z === void 0 ? void 0 : _z[0],
|
|
267
|
+
video: (_1 = (_0 = item === null || item === void 0 ? void 0 : item._source) === null || _0 === void 0 ? void 0 : _0.video_url) === null || _1 === void 0 ? void 0 : _1[0],
|
|
268
|
+
videoDownload: (_3 = (_2 = item === null || item === void 0 ? void 0 : item._source) === null || _2 === void 0 ? void 0 : _2.video_download) === null || _3 === void 0 ? void 0 : _3[0],
|
|
269
|
+
videoPoster: (_5 = (_4 = item === null || item === void 0 ? void 0 : item._source) === null || _4 === void 0 ? void 0 : _4.video_poster) === null || _5 === void 0 ? void 0 : _5[0],
|
|
270
|
+
workoutCategory: (_7 = (_6 = item === null || item === void 0 ? void 0 : item._source) === null || _6 === void 0 ? void 0 : _6.workout_category) === null || _7 === void 0 ? void 0 : _7[0],
|
|
271
|
+
workoutType: (_9 = (_8 = item === null || item === void 0 ? void 0 : item._source) === null || _8 === void 0 ? void 0 : _8.workout_type) === null || _9 === void 0 ? void 0 : _9[0],
|
|
272
|
+
livestreamSection: (_11 = (_10 = item === null || item === void 0 ? void 0 : item._source) === null || _10 === void 0 ? void 0 : _10.livestream_section) === null || _11 === void 0 ? void 0 : _11[0],
|
|
271
273
|
};
|
|
272
274
|
});
|
|
273
275
|
}
|