waha-shared 1.0.50 → 1.0.51
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/functions/sets.js +14 -0
- package/dist/types/sets.d.ts +1 -0
- package/package.json +1 -1
package/dist/functions/sets.js
CHANGED
|
@@ -182,6 +182,7 @@ function getLessonInfo({ lessonId, meetLanguageInfo, setInfo, t, useSpokenQuesti
|
|
|
182
182
|
else if (setInfo.setId === specialIds_1.specialIds.dmCourseSetId ||
|
|
183
183
|
meetLanguageId === 'ase') {
|
|
184
184
|
let video;
|
|
185
|
+
let trainingVideo;
|
|
185
186
|
if (meetLanguageInfo.languageId === 'ase') {
|
|
186
187
|
const path = `ase/full_lessons/${setInfo.setId}/ase.${lessonId}.1080.mp4`;
|
|
187
188
|
video = {
|
|
@@ -192,6 +193,7 @@ function getLessonInfo({ lessonId, meetLanguageInfo, setInfo, t, useSpokenQuesti
|
|
|
192
193
|
remoteFileName: `ase.${lessonId}.1080.mp4`,
|
|
193
194
|
url: exports.firebaseUrl + encodeURIComponent(path) + `?alt=media`,
|
|
194
195
|
};
|
|
196
|
+
trainingVideo = undefined;
|
|
195
197
|
}
|
|
196
198
|
else {
|
|
197
199
|
const id = `${meetLanguageId}.${meetLanguageInfo.trainingVideoLanguage}.${lessonId}`;
|
|
@@ -206,6 +208,17 @@ function getLessonInfo({ lessonId, meetLanguageInfo, setInfo, t, useSpokenQuesti
|
|
|
206
208
|
remoteFileName,
|
|
207
209
|
url: exports.firebaseUrl + encodeURIComponent(path) + `?alt=media`,
|
|
208
210
|
};
|
|
211
|
+
const trainingVideoId = `${meetLanguageInfo.trainingVideoLanguage}.${lessonId}`;
|
|
212
|
+
const trainingVideoFileName = `${trainingVideoId}.m4v`;
|
|
213
|
+
const trainingVideoPath = `${meetLanguageInfo.trainingVideoLanguage}/course/videos_export/${trainingVideoFileName}`;
|
|
214
|
+
trainingVideo = {
|
|
215
|
+
id: trainingVideoId,
|
|
216
|
+
languageId: meetLanguageInfo.trainingVideoLanguage,
|
|
217
|
+
path: trainingVideoPath,
|
|
218
|
+
localFileName: trainingVideoFileName,
|
|
219
|
+
remoteFileName,
|
|
220
|
+
url: exports.firebaseUrl + encodeURIComponent(trainingVideoPath) + `?alt=media`,
|
|
221
|
+
};
|
|
209
222
|
}
|
|
210
223
|
let youtubeLink;
|
|
211
224
|
if (video.remoteFileName && video.remoteFileName in youtubeVideos_1.youtubeVideos)
|
|
@@ -218,6 +231,7 @@ function getLessonInfo({ lessonId, meetLanguageInfo, setInfo, t, useSpokenQuesti
|
|
|
218
231
|
lessonSectionHeader: thisSetTranslations?.sectionHeaders?.[lessonId],
|
|
219
232
|
lessonSectionBody: thisSetTranslations?.sectionBodies?.[lessonId],
|
|
220
233
|
video,
|
|
234
|
+
trainingVideo,
|
|
221
235
|
youtubeLink,
|
|
222
236
|
passagesString: (0, scripturePassages_1.getPassagesString)(lesson.s, meetLanguageInfo),
|
|
223
237
|
};
|
package/dist/types/sets.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export interface DbsInfo extends BaseInfo, SetInfo, Lesson {
|
|
|
52
52
|
export interface VideoInfo extends BaseInfo, SetInfo, Lesson {
|
|
53
53
|
type: 'video';
|
|
54
54
|
video: Content;
|
|
55
|
+
trainingVideo: Content | undefined;
|
|
55
56
|
lessonSectionHeader: string | undefined;
|
|
56
57
|
lessonSectionBody: string | undefined;
|
|
57
58
|
youtubeLink: string | undefined;
|