@talkplay/shared-types 1.0.57 → 1.0.59
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/index.d.mts +294 -112
- package/dist/index.d.ts +294 -112
- package/dist/index.js +130 -6
- package/dist/index.mjs +114 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49,11 +49,14 @@ __export(index_exports, {
|
|
|
49
49
|
LeadTypesTranslationsEnum: () => LeadTypesTranslationsEnum,
|
|
50
50
|
LegalTermTypesEnum: () => LegalTermTypesEnum,
|
|
51
51
|
LegalTermTypesTranslationsEnum: () => LegalTermTypesTranslationsEnum,
|
|
52
|
+
MAX_CASTER_SAMPLES_DURATION_IN_SECONDS: () => MAX_CASTER_SAMPLES_DURATION_IN_SECONDS,
|
|
53
|
+
MIN_CASTER_SAMPLES_DURATION_IN_SECONDS: () => MIN_CASTER_SAMPLES_DURATION_IN_SECONDS,
|
|
52
54
|
MusicCategoriesEnum: () => MusicCategoriesEnum,
|
|
53
55
|
MusicCategoriesTranslationsEnum: () => MusicCategoriesTranslationsEnum,
|
|
54
56
|
MusicSubGenresEnum: () => MusicSubGenresEnum,
|
|
55
57
|
MusicSubGenresTranslationsEnum: () => MusicSubGenresTranslationsEnum,
|
|
56
58
|
NewsCategoriesEnum: () => NewsCategoriesEnum,
|
|
59
|
+
PRICE_PER_PROGRAM_HOUR: () => PRICE_PER_PROGRAM_HOUR,
|
|
57
60
|
ProgramAudienceEnum: () => ProgramAudienceEnum,
|
|
58
61
|
ProgramAudienceTranslationsEnum: () => ProgramAudienceTranslationsEnum,
|
|
59
62
|
ProgramDayPeriodEnum: () => ProgramDayPeriodEnum,
|
|
@@ -71,15 +74,28 @@ __export(index_exports, {
|
|
|
71
74
|
TKPLAY_ERROR_MESSAGE_SPLITTER: () => TKPLAY_ERROR_MESSAGE_SPLITTER,
|
|
72
75
|
TkplayErrorCodesEnum: () => TkplayErrorCodesEnum,
|
|
73
76
|
TkplayErrorNamesEnum: () => TkplayErrorNamesEnum,
|
|
77
|
+
TtsProvidersEnum: () => TtsProvidersEnum,
|
|
78
|
+
TtsProvidersTranslationsEnum: () => TtsProvidersTranslationsEnum,
|
|
74
79
|
UserRolesEnum: () => UserRolesEnum,
|
|
75
80
|
UserRolesTranslationsEnum: () => UserRolesTranslationsEnum,
|
|
76
81
|
VoiceEnergyEnum: () => VoiceEnergyEnum,
|
|
77
|
-
VoiceEnergyTranslationsEnum: () => VoiceEnergyTranslationsEnum
|
|
82
|
+
VoiceEnergyTranslationsEnum: () => VoiceEnergyTranslationsEnum,
|
|
83
|
+
VoiceGenderEnum: () => VoiceGenderEnum,
|
|
84
|
+
VoiceGenderTranslationsEnum: () => VoiceGenderTranslationsEnum,
|
|
85
|
+
VoiceProfileSourcesEnum: () => VoiceProfileSourcesEnum,
|
|
86
|
+
VoiceProfileSourcesTranslationsEnum: () => VoiceProfileSourcesTranslationsEnum,
|
|
87
|
+
VoiceTrackSourcesEnum: () => VoiceTrackSourcesEnum,
|
|
88
|
+
VoiceTrackSourcesTranslationsEnum: () => VoiceTrackSourcesTranslationsEnum,
|
|
89
|
+
VoiceTrackStatusEnum: () => VoiceTrackStatusEnum,
|
|
90
|
+
VoiceTrackStatusTranslationsEnum: () => VoiceTrackStatusTranslationsEnum,
|
|
91
|
+
WeekDayEnum: () => WeekDayEnum,
|
|
92
|
+
WeekDayTranslationsEnum: () => WeekDayTranslationsEnum
|
|
78
93
|
});
|
|
79
94
|
module.exports = __toCommonJS(index_exports);
|
|
80
95
|
|
|
81
96
|
// src/enums/auth/session-types.enum.ts
|
|
82
97
|
var SessionTypesEnum = {
|
|
98
|
+
CASTER_USER: "CASTER_USER",
|
|
83
99
|
RADIO_USER: "RADIO_USER",
|
|
84
100
|
SYSTEM_USER: "SYSTEM_USER"
|
|
85
101
|
};
|
|
@@ -227,7 +243,7 @@ var LanguageStyleTranslationsEnum = {
|
|
|
227
243
|
POPULAR: "Popular"
|
|
228
244
|
};
|
|
229
245
|
|
|
230
|
-
// src/enums/communication/voice-energy.ts
|
|
246
|
+
// src/enums/communication/voice-energy.enum.ts
|
|
231
247
|
var VoiceEnergyEnum = {
|
|
232
248
|
CALM: "CALM",
|
|
233
249
|
BALANCED: "BALANCED",
|
|
@@ -241,6 +257,16 @@ var VoiceEnergyTranslationsEnum = {
|
|
|
241
257
|
HIGH: "Alta"
|
|
242
258
|
};
|
|
243
259
|
|
|
260
|
+
// src/enums/communication/voice-gender.enum.ts
|
|
261
|
+
var VoiceGenderEnum = {
|
|
262
|
+
MALE: "MALE",
|
|
263
|
+
FEMALE: "FEMALE"
|
|
264
|
+
};
|
|
265
|
+
var VoiceGenderTranslationsEnum = {
|
|
266
|
+
MALE: "Voz Masculina",
|
|
267
|
+
FEMALE: "Voz Feminina"
|
|
268
|
+
};
|
|
269
|
+
|
|
244
270
|
// src/enums/commom/br-states.enum.ts
|
|
245
271
|
var BrStatesEnum = {
|
|
246
272
|
AC: "AC",
|
|
@@ -330,7 +356,11 @@ var TkplayErrorCodesEnum = {
|
|
|
330
356
|
UNABLE_TO_DELETE_USER: "UNABLE_TO_DELETE_USER",
|
|
331
357
|
// Leads
|
|
332
358
|
LEAD_RADIO_ALREADY_EXISTIS: "LEAD_RADIO_ALREADY_EXISTIS",
|
|
333
|
-
LEAD_NOT_FOUND: "LEAD_NOT_FOUND"
|
|
359
|
+
LEAD_NOT_FOUND: "LEAD_NOT_FOUND",
|
|
360
|
+
// Casters
|
|
361
|
+
CASTER_IMAGE_IS_REQUIRED: "CASTER_IMAGE_IS_REQUIRED",
|
|
362
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: "CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT",
|
|
363
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: "CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE"
|
|
334
364
|
};
|
|
335
365
|
|
|
336
366
|
// src/enums/commom/error-names.ts
|
|
@@ -371,6 +401,26 @@ var TkplayErrorNamesEnum = {
|
|
|
371
401
|
// 504
|
|
372
402
|
};
|
|
373
403
|
|
|
404
|
+
// src/enums/commom/week-day.enum.ts
|
|
405
|
+
var WeekDayEnum = {
|
|
406
|
+
SUNDAY: "SUNDAY",
|
|
407
|
+
MONDAY: "MONDAY",
|
|
408
|
+
TUESDAY: "TUESDAY",
|
|
409
|
+
WEDNESDAY: "WEDNESDAY",
|
|
410
|
+
THURSDAY: "THURSDAY",
|
|
411
|
+
FRIDAY: "FRIDAY",
|
|
412
|
+
SATURDAY: "SATURDAY"
|
|
413
|
+
};
|
|
414
|
+
var WeekDayTranslationsEnum = {
|
|
415
|
+
SUNDAY: "Domingo",
|
|
416
|
+
MONDAY: "Segunda-feira",
|
|
417
|
+
TUESDAY: "Ter\xE7a-feira",
|
|
418
|
+
WEDNESDAY: "Quarta-feira",
|
|
419
|
+
THURSDAY: "Quinta-feira",
|
|
420
|
+
FRIDAY: "Sexta-feira",
|
|
421
|
+
SATURDAY: "S\xE1bado"
|
|
422
|
+
};
|
|
423
|
+
|
|
374
424
|
// src/enums/content-creation/episode-generation-quality.enum.ts
|
|
375
425
|
var EpGenerationQualityEnum = {
|
|
376
426
|
DEFAULT: "DEFAULT",
|
|
@@ -706,6 +756,57 @@ var MusicCategoriesTranslationsEnum = {
|
|
|
706
756
|
MIXED: "Misto / Variado"
|
|
707
757
|
};
|
|
708
758
|
|
|
759
|
+
// src/enums/voices/tts-providers.enum.ts
|
|
760
|
+
var TtsProvidersEnum = {
|
|
761
|
+
FISH_AUDIO: "FISH_AUDIO"
|
|
762
|
+
};
|
|
763
|
+
var TtsProvidersTranslationsEnum = {
|
|
764
|
+
FISH_AUDIO: "Fish.Audio"
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
// src/enums/voices/voice-profile-sources.enum.ts
|
|
768
|
+
var VoiceProfileSourcesEnum = {
|
|
769
|
+
PROVIDER_NATIVE: "PROVIDER_NATIVE",
|
|
770
|
+
CASTER_CLONED: "CASTER_CLONED"
|
|
771
|
+
};
|
|
772
|
+
var VoiceProfileSourcesTranslationsEnum = {
|
|
773
|
+
PROVIDER_NATIVE: "Voz nativa do provedor TTS",
|
|
774
|
+
CASTER_CLONED: "Voz clonada do locutor"
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
// src/enums/voices/voice-track-sources.enum.ts
|
|
778
|
+
var VoiceTrackSourcesEnum = {
|
|
779
|
+
TTS: "TTS",
|
|
780
|
+
CASTER_UPLOAD: "CASTER_UPLOAD"
|
|
781
|
+
};
|
|
782
|
+
var VoiceTrackSourcesTranslationsEnum = {
|
|
783
|
+
TTS: "Gerado por IA (TTS)",
|
|
784
|
+
CASTER_UPLOAD: "Enviado pelo locutor"
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
// src/enums/voices/voice-track-status.enum.ts
|
|
788
|
+
var VoiceTrackStatusEnum = {
|
|
789
|
+
CREATING_SCRIPT: "CREATING_SCRIPT",
|
|
790
|
+
SCRIPT_CREATION_ERROR: "SCRIPT_CREATION_ERROR",
|
|
791
|
+
READY_TO_RECORD: "READY_TO_RECORD",
|
|
792
|
+
RECORDED: "RECORDED",
|
|
793
|
+
RECORD_ERROR: "RECORD_ERROR",
|
|
794
|
+
AIRED: "AIRED"
|
|
795
|
+
};
|
|
796
|
+
var VoiceTrackStatusTranslationsEnum = {
|
|
797
|
+
CREATING_SCRIPT: "Gerando roteiro",
|
|
798
|
+
SCRIPT_CREATION_ERROR: "Erro ao gerar roteiro",
|
|
799
|
+
READY_TO_RECORD: "Aguardando grava\xE7\xE3o",
|
|
800
|
+
RECORDED: "Gravado",
|
|
801
|
+
RECORD_ERROR: "Erro na grava\xE7\xE3o",
|
|
802
|
+
AIRED: "Foi ao ar"
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
// src/constants/global-consts.ts
|
|
806
|
+
var PRICE_PER_PROGRAM_HOUR = 12e3;
|
|
807
|
+
var MIN_CASTER_SAMPLES_DURATION_IN_SECONDS = 30;
|
|
808
|
+
var MAX_CASTER_SAMPLES_DURATION_IN_SECONDS = 270;
|
|
809
|
+
|
|
709
810
|
// src/constants/tkplay-errors-map.ts
|
|
710
811
|
var TKPLAY_ERRORS_MAP = {
|
|
711
812
|
// Commoon
|
|
@@ -758,7 +859,11 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
758
859
|
UNABLE_TO_DELETE_USER: "Admin users cannot be deleted",
|
|
759
860
|
// Lead Errors
|
|
760
861
|
LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
|
|
761
|
-
LEAD_NOT_FOUND: "Lead not found"
|
|
862
|
+
LEAD_NOT_FOUND: "Lead not found",
|
|
863
|
+
// Caster Errors
|
|
864
|
+
CASTER_IMAGE_IS_REQUIRED: "Caster avatar image is required",
|
|
865
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: (duration) => `Provided samples has ${duration} seconds length. Minimum is ${MIN_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`,
|
|
866
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: (duration) => `Provided samples has ${duration} seconds length. M\xE1ximum is ${MAX_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`
|
|
762
867
|
};
|
|
763
868
|
|
|
764
869
|
// src/constants/tkplay-errors-ptbr.ts
|
|
@@ -813,7 +918,11 @@ var TKPLAY_ERRORS__PTBR = {
|
|
|
813
918
|
UNABLE_TO_DELETE_USER: "Usu\xE1rios administradores n\xE3o podem ser removidos",
|
|
814
919
|
// Lead Errors
|
|
815
920
|
LEAD_RADIO_ALREADY_EXISTIS: "J\xE1 existe uma r\xE1dio cadastrada com as informa\xE7\xF5es do lead",
|
|
816
|
-
LEAD_NOT_FOUND: "Lead n\xE3o encontrado"
|
|
921
|
+
LEAD_NOT_FOUND: "Lead n\xE3o encontrado",
|
|
922
|
+
// Caster Errors
|
|
923
|
+
CASTER_IMAGE_IS_REQUIRED: "A imagem de perfil do locutor \xE9 obrigat\xF3ria",
|
|
924
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: `A dura\xE7\xE3o total das amostras de \xE1udio enviadas possui menos que ${MIN_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`,
|
|
925
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: `A dura\xE7\xE3o total das amostras de \xE1udio n\xE3o deve ultrapassar ${MAX_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`
|
|
817
926
|
};
|
|
818
927
|
|
|
819
928
|
// src/constants/tkplay-error-message-splitter.ts
|
|
@@ -849,11 +958,14 @@ var TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
|
849
958
|
LeadTypesTranslationsEnum,
|
|
850
959
|
LegalTermTypesEnum,
|
|
851
960
|
LegalTermTypesTranslationsEnum,
|
|
961
|
+
MAX_CASTER_SAMPLES_DURATION_IN_SECONDS,
|
|
962
|
+
MIN_CASTER_SAMPLES_DURATION_IN_SECONDS,
|
|
852
963
|
MusicCategoriesEnum,
|
|
853
964
|
MusicCategoriesTranslationsEnum,
|
|
854
965
|
MusicSubGenresEnum,
|
|
855
966
|
MusicSubGenresTranslationsEnum,
|
|
856
967
|
NewsCategoriesEnum,
|
|
968
|
+
PRICE_PER_PROGRAM_HOUR,
|
|
857
969
|
ProgramAudienceEnum,
|
|
858
970
|
ProgramAudienceTranslationsEnum,
|
|
859
971
|
ProgramDayPeriodEnum,
|
|
@@ -871,8 +983,20 @@ var TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
|
871
983
|
TKPLAY_ERROR_MESSAGE_SPLITTER,
|
|
872
984
|
TkplayErrorCodesEnum,
|
|
873
985
|
TkplayErrorNamesEnum,
|
|
986
|
+
TtsProvidersEnum,
|
|
987
|
+
TtsProvidersTranslationsEnum,
|
|
874
988
|
UserRolesEnum,
|
|
875
989
|
UserRolesTranslationsEnum,
|
|
876
990
|
VoiceEnergyEnum,
|
|
877
|
-
VoiceEnergyTranslationsEnum
|
|
991
|
+
VoiceEnergyTranslationsEnum,
|
|
992
|
+
VoiceGenderEnum,
|
|
993
|
+
VoiceGenderTranslationsEnum,
|
|
994
|
+
VoiceProfileSourcesEnum,
|
|
995
|
+
VoiceProfileSourcesTranslationsEnum,
|
|
996
|
+
VoiceTrackSourcesEnum,
|
|
997
|
+
VoiceTrackSourcesTranslationsEnum,
|
|
998
|
+
VoiceTrackStatusEnum,
|
|
999
|
+
VoiceTrackStatusTranslationsEnum,
|
|
1000
|
+
WeekDayEnum,
|
|
1001
|
+
WeekDayTranslationsEnum
|
|
878
1002
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// src/enums/auth/session-types.enum.ts
|
|
2
2
|
var SessionTypesEnum = {
|
|
3
|
+
CASTER_USER: "CASTER_USER",
|
|
3
4
|
RADIO_USER: "RADIO_USER",
|
|
4
5
|
SYSTEM_USER: "SYSTEM_USER"
|
|
5
6
|
};
|
|
@@ -147,7 +148,7 @@ var LanguageStyleTranslationsEnum = {
|
|
|
147
148
|
POPULAR: "Popular"
|
|
148
149
|
};
|
|
149
150
|
|
|
150
|
-
// src/enums/communication/voice-energy.ts
|
|
151
|
+
// src/enums/communication/voice-energy.enum.ts
|
|
151
152
|
var VoiceEnergyEnum = {
|
|
152
153
|
CALM: "CALM",
|
|
153
154
|
BALANCED: "BALANCED",
|
|
@@ -161,6 +162,16 @@ var VoiceEnergyTranslationsEnum = {
|
|
|
161
162
|
HIGH: "Alta"
|
|
162
163
|
};
|
|
163
164
|
|
|
165
|
+
// src/enums/communication/voice-gender.enum.ts
|
|
166
|
+
var VoiceGenderEnum = {
|
|
167
|
+
MALE: "MALE",
|
|
168
|
+
FEMALE: "FEMALE"
|
|
169
|
+
};
|
|
170
|
+
var VoiceGenderTranslationsEnum = {
|
|
171
|
+
MALE: "Voz Masculina",
|
|
172
|
+
FEMALE: "Voz Feminina"
|
|
173
|
+
};
|
|
174
|
+
|
|
164
175
|
// src/enums/commom/br-states.enum.ts
|
|
165
176
|
var BrStatesEnum = {
|
|
166
177
|
AC: "AC",
|
|
@@ -250,7 +261,11 @@ var TkplayErrorCodesEnum = {
|
|
|
250
261
|
UNABLE_TO_DELETE_USER: "UNABLE_TO_DELETE_USER",
|
|
251
262
|
// Leads
|
|
252
263
|
LEAD_RADIO_ALREADY_EXISTIS: "LEAD_RADIO_ALREADY_EXISTIS",
|
|
253
|
-
LEAD_NOT_FOUND: "LEAD_NOT_FOUND"
|
|
264
|
+
LEAD_NOT_FOUND: "LEAD_NOT_FOUND",
|
|
265
|
+
// Casters
|
|
266
|
+
CASTER_IMAGE_IS_REQUIRED: "CASTER_IMAGE_IS_REQUIRED",
|
|
267
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: "CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT",
|
|
268
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: "CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE"
|
|
254
269
|
};
|
|
255
270
|
|
|
256
271
|
// src/enums/commom/error-names.ts
|
|
@@ -291,6 +306,26 @@ var TkplayErrorNamesEnum = {
|
|
|
291
306
|
// 504
|
|
292
307
|
};
|
|
293
308
|
|
|
309
|
+
// src/enums/commom/week-day.enum.ts
|
|
310
|
+
var WeekDayEnum = {
|
|
311
|
+
SUNDAY: "SUNDAY",
|
|
312
|
+
MONDAY: "MONDAY",
|
|
313
|
+
TUESDAY: "TUESDAY",
|
|
314
|
+
WEDNESDAY: "WEDNESDAY",
|
|
315
|
+
THURSDAY: "THURSDAY",
|
|
316
|
+
FRIDAY: "FRIDAY",
|
|
317
|
+
SATURDAY: "SATURDAY"
|
|
318
|
+
};
|
|
319
|
+
var WeekDayTranslationsEnum = {
|
|
320
|
+
SUNDAY: "Domingo",
|
|
321
|
+
MONDAY: "Segunda-feira",
|
|
322
|
+
TUESDAY: "Ter\xE7a-feira",
|
|
323
|
+
WEDNESDAY: "Quarta-feira",
|
|
324
|
+
THURSDAY: "Quinta-feira",
|
|
325
|
+
FRIDAY: "Sexta-feira",
|
|
326
|
+
SATURDAY: "S\xE1bado"
|
|
327
|
+
};
|
|
328
|
+
|
|
294
329
|
// src/enums/content-creation/episode-generation-quality.enum.ts
|
|
295
330
|
var EpGenerationQualityEnum = {
|
|
296
331
|
DEFAULT: "DEFAULT",
|
|
@@ -626,6 +661,57 @@ var MusicCategoriesTranslationsEnum = {
|
|
|
626
661
|
MIXED: "Misto / Variado"
|
|
627
662
|
};
|
|
628
663
|
|
|
664
|
+
// src/enums/voices/tts-providers.enum.ts
|
|
665
|
+
var TtsProvidersEnum = {
|
|
666
|
+
FISH_AUDIO: "FISH_AUDIO"
|
|
667
|
+
};
|
|
668
|
+
var TtsProvidersTranslationsEnum = {
|
|
669
|
+
FISH_AUDIO: "Fish.Audio"
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
// src/enums/voices/voice-profile-sources.enum.ts
|
|
673
|
+
var VoiceProfileSourcesEnum = {
|
|
674
|
+
PROVIDER_NATIVE: "PROVIDER_NATIVE",
|
|
675
|
+
CASTER_CLONED: "CASTER_CLONED"
|
|
676
|
+
};
|
|
677
|
+
var VoiceProfileSourcesTranslationsEnum = {
|
|
678
|
+
PROVIDER_NATIVE: "Voz nativa do provedor TTS",
|
|
679
|
+
CASTER_CLONED: "Voz clonada do locutor"
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
// src/enums/voices/voice-track-sources.enum.ts
|
|
683
|
+
var VoiceTrackSourcesEnum = {
|
|
684
|
+
TTS: "TTS",
|
|
685
|
+
CASTER_UPLOAD: "CASTER_UPLOAD"
|
|
686
|
+
};
|
|
687
|
+
var VoiceTrackSourcesTranslationsEnum = {
|
|
688
|
+
TTS: "Gerado por IA (TTS)",
|
|
689
|
+
CASTER_UPLOAD: "Enviado pelo locutor"
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
// src/enums/voices/voice-track-status.enum.ts
|
|
693
|
+
var VoiceTrackStatusEnum = {
|
|
694
|
+
CREATING_SCRIPT: "CREATING_SCRIPT",
|
|
695
|
+
SCRIPT_CREATION_ERROR: "SCRIPT_CREATION_ERROR",
|
|
696
|
+
READY_TO_RECORD: "READY_TO_RECORD",
|
|
697
|
+
RECORDED: "RECORDED",
|
|
698
|
+
RECORD_ERROR: "RECORD_ERROR",
|
|
699
|
+
AIRED: "AIRED"
|
|
700
|
+
};
|
|
701
|
+
var VoiceTrackStatusTranslationsEnum = {
|
|
702
|
+
CREATING_SCRIPT: "Gerando roteiro",
|
|
703
|
+
SCRIPT_CREATION_ERROR: "Erro ao gerar roteiro",
|
|
704
|
+
READY_TO_RECORD: "Aguardando grava\xE7\xE3o",
|
|
705
|
+
RECORDED: "Gravado",
|
|
706
|
+
RECORD_ERROR: "Erro na grava\xE7\xE3o",
|
|
707
|
+
AIRED: "Foi ao ar"
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
// src/constants/global-consts.ts
|
|
711
|
+
var PRICE_PER_PROGRAM_HOUR = 12e3;
|
|
712
|
+
var MIN_CASTER_SAMPLES_DURATION_IN_SECONDS = 30;
|
|
713
|
+
var MAX_CASTER_SAMPLES_DURATION_IN_SECONDS = 270;
|
|
714
|
+
|
|
629
715
|
// src/constants/tkplay-errors-map.ts
|
|
630
716
|
var TKPLAY_ERRORS_MAP = {
|
|
631
717
|
// Commoon
|
|
@@ -678,7 +764,11 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
678
764
|
UNABLE_TO_DELETE_USER: "Admin users cannot be deleted",
|
|
679
765
|
// Lead Errors
|
|
680
766
|
LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
|
|
681
|
-
LEAD_NOT_FOUND: "Lead not found"
|
|
767
|
+
LEAD_NOT_FOUND: "Lead not found",
|
|
768
|
+
// Caster Errors
|
|
769
|
+
CASTER_IMAGE_IS_REQUIRED: "Caster avatar image is required",
|
|
770
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: (duration) => `Provided samples has ${duration} seconds length. Minimum is ${MIN_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`,
|
|
771
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: (duration) => `Provided samples has ${duration} seconds length. M\xE1ximum is ${MAX_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`
|
|
682
772
|
};
|
|
683
773
|
|
|
684
774
|
// src/constants/tkplay-errors-ptbr.ts
|
|
@@ -733,7 +823,11 @@ var TKPLAY_ERRORS__PTBR = {
|
|
|
733
823
|
UNABLE_TO_DELETE_USER: "Usu\xE1rios administradores n\xE3o podem ser removidos",
|
|
734
824
|
// Lead Errors
|
|
735
825
|
LEAD_RADIO_ALREADY_EXISTIS: "J\xE1 existe uma r\xE1dio cadastrada com as informa\xE7\xF5es do lead",
|
|
736
|
-
LEAD_NOT_FOUND: "Lead n\xE3o encontrado"
|
|
826
|
+
LEAD_NOT_FOUND: "Lead n\xE3o encontrado",
|
|
827
|
+
// Caster Errors
|
|
828
|
+
CASTER_IMAGE_IS_REQUIRED: "A imagem de perfil do locutor \xE9 obrigat\xF3ria",
|
|
829
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: `A dura\xE7\xE3o total das amostras de \xE1udio enviadas possui menos que ${MIN_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`,
|
|
830
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: `A dura\xE7\xE3o total das amostras de \xE1udio n\xE3o deve ultrapassar ${MAX_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`
|
|
737
831
|
};
|
|
738
832
|
|
|
739
833
|
// src/constants/tkplay-error-message-splitter.ts
|
|
@@ -768,11 +862,14 @@ export {
|
|
|
768
862
|
LeadTypesTranslationsEnum,
|
|
769
863
|
LegalTermTypesEnum,
|
|
770
864
|
LegalTermTypesTranslationsEnum,
|
|
865
|
+
MAX_CASTER_SAMPLES_DURATION_IN_SECONDS,
|
|
866
|
+
MIN_CASTER_SAMPLES_DURATION_IN_SECONDS,
|
|
771
867
|
MusicCategoriesEnum,
|
|
772
868
|
MusicCategoriesTranslationsEnum,
|
|
773
869
|
MusicSubGenresEnum,
|
|
774
870
|
MusicSubGenresTranslationsEnum,
|
|
775
871
|
NewsCategoriesEnum,
|
|
872
|
+
PRICE_PER_PROGRAM_HOUR,
|
|
776
873
|
ProgramAudienceEnum,
|
|
777
874
|
ProgramAudienceTranslationsEnum,
|
|
778
875
|
ProgramDayPeriodEnum,
|
|
@@ -790,8 +887,20 @@ export {
|
|
|
790
887
|
TKPLAY_ERROR_MESSAGE_SPLITTER,
|
|
791
888
|
TkplayErrorCodesEnum,
|
|
792
889
|
TkplayErrorNamesEnum,
|
|
890
|
+
TtsProvidersEnum,
|
|
891
|
+
TtsProvidersTranslationsEnum,
|
|
793
892
|
UserRolesEnum,
|
|
794
893
|
UserRolesTranslationsEnum,
|
|
795
894
|
VoiceEnergyEnum,
|
|
796
|
-
VoiceEnergyTranslationsEnum
|
|
895
|
+
VoiceEnergyTranslationsEnum,
|
|
896
|
+
VoiceGenderEnum,
|
|
897
|
+
VoiceGenderTranslationsEnum,
|
|
898
|
+
VoiceProfileSourcesEnum,
|
|
899
|
+
VoiceProfileSourcesTranslationsEnum,
|
|
900
|
+
VoiceTrackSourcesEnum,
|
|
901
|
+
VoiceTrackSourcesTranslationsEnum,
|
|
902
|
+
VoiceTrackStatusEnum,
|
|
903
|
+
VoiceTrackStatusTranslationsEnum,
|
|
904
|
+
WeekDayEnum,
|
|
905
|
+
WeekDayTranslationsEnum
|
|
797
906
|
};
|