@talkplay/shared-types 1.0.58 → 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 +287 -112
- package/dist/index.d.ts +287 -112
- package/dist/index.js +104 -3
- package/dist/index.mjs +91 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -104,7 +104,29 @@ declare const TkplayErrorNamesEnum: {
|
|
|
104
104
|
};
|
|
105
105
|
type TkplayErrorNamesEnum = Enum<typeof TkplayErrorNamesEnum>;
|
|
106
106
|
|
|
107
|
+
declare const WeekDayEnum: {
|
|
108
|
+
readonly SUNDAY: "SUNDAY";
|
|
109
|
+
readonly MONDAY: "MONDAY";
|
|
110
|
+
readonly TUESDAY: "TUESDAY";
|
|
111
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
112
|
+
readonly THURSDAY: "THURSDAY";
|
|
113
|
+
readonly FRIDAY: "FRIDAY";
|
|
114
|
+
readonly SATURDAY: "SATURDAY";
|
|
115
|
+
};
|
|
116
|
+
type WeekDayEnum = Enum<typeof WeekDayEnum>;
|
|
117
|
+
declare const WeekDayTranslationsEnum: {
|
|
118
|
+
readonly SUNDAY: "Domingo";
|
|
119
|
+
readonly MONDAY: "Segunda-feira";
|
|
120
|
+
readonly TUESDAY: "Terça-feira";
|
|
121
|
+
readonly WEDNESDAY: "Quarta-feira";
|
|
122
|
+
readonly THURSDAY: "Quinta-feira";
|
|
123
|
+
readonly FRIDAY: "Sexta-feira";
|
|
124
|
+
readonly SATURDAY: "Sábado";
|
|
125
|
+
};
|
|
126
|
+
type WeekDayTranslationsEnum = Enum<typeof WeekDayTranslationsEnum>;
|
|
127
|
+
|
|
107
128
|
declare const SessionTypesEnum: {
|
|
129
|
+
readonly CASTER_USER: "CASTER_USER";
|
|
108
130
|
readonly RADIO_USER: "RADIO_USER";
|
|
109
131
|
readonly SYSTEM_USER: "SYSTEM_USER";
|
|
110
132
|
};
|
|
@@ -275,6 +297,17 @@ declare const VoiceEnergyTranslationsEnum: {
|
|
|
275
297
|
};
|
|
276
298
|
type VoiceEnergyTranslationsEnum = Enum<typeof VoiceEnergyTranslationsEnum>;
|
|
277
299
|
|
|
300
|
+
declare const VoiceGenderEnum: {
|
|
301
|
+
readonly MALE: "MALE";
|
|
302
|
+
readonly FEMALE: "FEMALE";
|
|
303
|
+
};
|
|
304
|
+
type VoiceGenderEnum = Enum<typeof VoiceGenderEnum>;
|
|
305
|
+
declare const VoiceGenderTranslationsEnum: {
|
|
306
|
+
readonly MALE: "Voz Masculina";
|
|
307
|
+
readonly FEMALE: "Voz Feminina";
|
|
308
|
+
};
|
|
309
|
+
type VoiceGenderTranslationsEnum = Enum<typeof VoiceGenderTranslationsEnum>;
|
|
310
|
+
|
|
278
311
|
declare const EpGenerationQualityEnum: {
|
|
279
312
|
readonly DEFAULT: "DEFAULT";
|
|
280
313
|
readonly MASTERIZED: "MASTERIZED";
|
|
@@ -609,6 +642,56 @@ declare const MusicCategoriesTranslationsEnum: {
|
|
|
609
642
|
};
|
|
610
643
|
type MusicCategoriesTranslationEnum = Enum<typeof MusicCategoriesTranslationsEnum>;
|
|
611
644
|
|
|
645
|
+
declare const TtsProvidersEnum: {
|
|
646
|
+
readonly FISH_AUDIO: "FISH_AUDIO";
|
|
647
|
+
};
|
|
648
|
+
type TtsProvidersEnum = Enum<typeof TtsProvidersEnum>;
|
|
649
|
+
declare const TtsProvidersTranslationsEnum: {
|
|
650
|
+
readonly FISH_AUDIO: "Fish.Audio";
|
|
651
|
+
};
|
|
652
|
+
type TtsProvidersTranslationsEnum = Enum<typeof TtsProvidersTranslationsEnum>;
|
|
653
|
+
|
|
654
|
+
declare const VoiceProfileSourcesEnum: {
|
|
655
|
+
readonly PROVIDER_NATIVE: "PROVIDER_NATIVE";
|
|
656
|
+
readonly CASTER_CLONED: "CASTER_CLONED";
|
|
657
|
+
};
|
|
658
|
+
type VoiceProfileSourcesEnum = Enum<typeof VoiceProfileSourcesEnum>;
|
|
659
|
+
declare const VoiceProfileSourcesTranslationsEnum: {
|
|
660
|
+
readonly PROVIDER_NATIVE: "Voz nativa do provedor TTS";
|
|
661
|
+
readonly CASTER_CLONED: "Voz clonada do locutor";
|
|
662
|
+
};
|
|
663
|
+
type VoiceProfileSourcesTranslationsEnum = Enum<typeof VoiceProfileSourcesTranslationsEnum>;
|
|
664
|
+
|
|
665
|
+
declare const VoiceTrackSourcesEnum: {
|
|
666
|
+
readonly TTS: "TTS";
|
|
667
|
+
readonly CASTER_UPLOAD: "CASTER_UPLOAD";
|
|
668
|
+
};
|
|
669
|
+
type VoiceTrackSourcesEnum = Enum<typeof VoiceTrackSourcesEnum>;
|
|
670
|
+
declare const VoiceTrackSourcesTranslationsEnum: {
|
|
671
|
+
readonly TTS: "Gerado por IA (TTS)";
|
|
672
|
+
readonly CASTER_UPLOAD: "Enviado pelo locutor";
|
|
673
|
+
};
|
|
674
|
+
type VoiceTrackSourcesTranslationsEnum = Enum<typeof VoiceTrackSourcesTranslationsEnum>;
|
|
675
|
+
|
|
676
|
+
declare const VoiceTrackStatusEnum: {
|
|
677
|
+
readonly CREATING_SCRIPT: "CREATING_SCRIPT";
|
|
678
|
+
readonly SCRIPT_CREATION_ERROR: "SCRIPT_CREATION_ERROR";
|
|
679
|
+
readonly READY_TO_RECORD: "READY_TO_RECORD";
|
|
680
|
+
readonly RECORDED: "RECORDED";
|
|
681
|
+
readonly RECORD_ERROR: "RECORD_ERROR";
|
|
682
|
+
readonly AIRED: "AIRED";
|
|
683
|
+
};
|
|
684
|
+
type VoiceTrackStatusEnum = Enum<typeof VoiceTrackStatusEnum>;
|
|
685
|
+
declare const VoiceTrackStatusTranslationsEnum: {
|
|
686
|
+
readonly CREATING_SCRIPT: "Gerando roteiro";
|
|
687
|
+
readonly SCRIPT_CREATION_ERROR: "Erro ao gerar roteiro";
|
|
688
|
+
readonly READY_TO_RECORD: "Aguardando gravação";
|
|
689
|
+
readonly RECORDED: "Gravado";
|
|
690
|
+
readonly RECORD_ERROR: "Erro na gravação";
|
|
691
|
+
readonly AIRED: "Foi ao ar";
|
|
692
|
+
};
|
|
693
|
+
type VoiceTrackStatusTranslationsEnum = Enum<typeof VoiceTrackStatusTranslationsEnum>;
|
|
694
|
+
|
|
612
695
|
type DateString = string | Date;
|
|
613
696
|
|
|
614
697
|
type SessionUser = {
|
|
@@ -748,43 +831,23 @@ type RadioExternalMediasEntity = {
|
|
|
748
831
|
radio?: RadioEntity;
|
|
749
832
|
};
|
|
750
833
|
|
|
751
|
-
type
|
|
834
|
+
type VoiceProfileEntity = BaseEntity & {
|
|
752
835
|
name: string;
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
address?: AddressEntity;
|
|
836
|
+
source: VoiceProfileSourcesEnum;
|
|
837
|
+
provider: TtsProvidersEnum;
|
|
838
|
+
externalProviderId: string;
|
|
839
|
+
casterId?: string;
|
|
840
|
+
caster?: CasterEntity;
|
|
759
841
|
radios?: RadioEntity[];
|
|
760
842
|
programs?: ProgramEntity[];
|
|
761
843
|
};
|
|
762
844
|
|
|
763
|
-
type RadioUserEntity = BaseEntity & {
|
|
764
|
-
name: string;
|
|
765
|
-
email: string;
|
|
766
|
-
password: string;
|
|
767
|
-
birthDate: string;
|
|
768
|
-
role: UserRolesEnum;
|
|
769
|
-
avatarImgId: string | null;
|
|
770
|
-
avatarImg?: RadioUserAvatarEntity | null;
|
|
771
|
-
radioId: string;
|
|
772
|
-
radio?: RadioEntity;
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
type SystemUserEntity = BaseEntity & {
|
|
776
|
-
name: string;
|
|
777
|
-
email: string;
|
|
778
|
-
password: string;
|
|
779
|
-
role: UserRolesEnum;
|
|
780
|
-
};
|
|
781
|
-
|
|
782
845
|
type ProgramEntity = BaseEntity & {
|
|
783
846
|
name: string;
|
|
784
847
|
description: string;
|
|
785
848
|
blockNamePrefix: string;
|
|
786
849
|
blocksAmount: number;
|
|
787
|
-
|
|
850
|
+
durationInMinutes: number;
|
|
788
851
|
dayPeriod: ProgramDayPeriodEnum;
|
|
789
852
|
allowAiGeneratedPersonNames: boolean;
|
|
790
853
|
allowCityMentions: boolean;
|
|
@@ -800,7 +863,69 @@ type ProgramEntity = BaseEntity & {
|
|
|
800
863
|
voiceEnergy: VoiceEnergyEnum;
|
|
801
864
|
radio?: RadioEntity;
|
|
802
865
|
radioId: string;
|
|
803
|
-
|
|
866
|
+
voices?: VoiceProfileEntity[];
|
|
867
|
+
weekSchedule: ProgramDayScheduleEntity[];
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
type ProgramDayScheduleEntity = BaseEntity & {
|
|
871
|
+
programId: string;
|
|
872
|
+
weekDay: WeekDayEnum;
|
|
873
|
+
isActive: boolean;
|
|
874
|
+
script: ProgramScriptEntity;
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
type VoiceTrackEntity = BaseEntity & {
|
|
878
|
+
textScript: string | null;
|
|
879
|
+
source: VoiceTrackSourcesEnum;
|
|
880
|
+
date: `${number}-${number}-${number}`;
|
|
881
|
+
status: VoiceTrackStatusEnum;
|
|
882
|
+
durationInSeconds: number | null;
|
|
883
|
+
programBlockIndex: number;
|
|
884
|
+
blockElementIndex: number;
|
|
885
|
+
programId: string;
|
|
886
|
+
program?: ProgramEntity;
|
|
887
|
+
fileId: string | null;
|
|
888
|
+
file: S3FileEntity | null;
|
|
889
|
+
error: string | null;
|
|
890
|
+
};
|
|
891
|
+
|
|
892
|
+
type CasterEntity = BaseEntity & {
|
|
893
|
+
name: string;
|
|
894
|
+
bio: string;
|
|
895
|
+
email: string;
|
|
896
|
+
password: string;
|
|
897
|
+
voiceGender: VoiceGenderEnum;
|
|
898
|
+
segments: ProgramSegmentEnum[];
|
|
899
|
+
communicationTones: CommunicationToneEnum[];
|
|
900
|
+
emotionStyles: EmotionStyleEnum[];
|
|
901
|
+
formalityLevels: FormalityLevelEnum[];
|
|
902
|
+
humorStyle: HumorStyleEnum[];
|
|
903
|
+
languageStyles: LanguageStyleEnum[];
|
|
904
|
+
voiceEnergy: VoiceEnergyEnum[];
|
|
905
|
+
avatarImgId: string;
|
|
906
|
+
avatarImg?: S3FileEntity;
|
|
907
|
+
voiceProfileId: string;
|
|
908
|
+
voiceProfile?: VoiceProfileEntity;
|
|
909
|
+
audioSamples?: S3FileEntity[];
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
type RadioUserEntity = BaseEntity & {
|
|
913
|
+
name: string;
|
|
914
|
+
email: string;
|
|
915
|
+
password: string;
|
|
916
|
+
birthDate: string;
|
|
917
|
+
role: UserRolesEnum;
|
|
918
|
+
avatarImgId: string | null;
|
|
919
|
+
avatarImg?: RadioUserAvatarEntity | null;
|
|
920
|
+
radioId: string;
|
|
921
|
+
radio?: RadioEntity;
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
type SystemUserEntity = BaseEntity & {
|
|
925
|
+
name: string;
|
|
926
|
+
email: string;
|
|
927
|
+
password: string;
|
|
928
|
+
role: UserRolesEnum;
|
|
804
929
|
};
|
|
805
930
|
|
|
806
931
|
type S3FileEntity = BaseEntity & {
|
|
@@ -858,6 +983,59 @@ type ProgramLogoEntity = Omit<S3FileEntity, "casterId" | "radioUserId" | "radioI
|
|
|
858
983
|
caster: never;
|
|
859
984
|
};
|
|
860
985
|
|
|
986
|
+
type LegalTermEntity = Pick<BaseEntity, "id" | "createdAt"> & {
|
|
987
|
+
title: string;
|
|
988
|
+
version: string;
|
|
989
|
+
content: string;
|
|
990
|
+
hash: string;
|
|
991
|
+
isActive: Boolean;
|
|
992
|
+
type: LegalTermTypesEnum;
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
type RadioLegalAgreementEntity = Pick<BaseEntity, "id"> & {
|
|
996
|
+
ipAddress: string;
|
|
997
|
+
userAgent: string;
|
|
998
|
+
acceptedAt: DateString;
|
|
999
|
+
termId: string;
|
|
1000
|
+
term?: LegalTermEntity;
|
|
1001
|
+
radioId: string;
|
|
1002
|
+
radio?: RadioEntity;
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
type UserLegalAgreementEntity = Pick<BaseEntity, "id"> & {
|
|
1006
|
+
ipAddress: string;
|
|
1007
|
+
userAgent: string;
|
|
1008
|
+
acceptedAt: DateString;
|
|
1009
|
+
termId: string;
|
|
1010
|
+
term?: LegalTermEntity;
|
|
1011
|
+
userId: string;
|
|
1012
|
+
user?: RadioUserEntity;
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
type ProgramDraftEntity = BaseEntity & {
|
|
1016
|
+
name: string;
|
|
1017
|
+
durationInMinutes: number;
|
|
1018
|
+
blocksAmount: number;
|
|
1019
|
+
radio?: RadioEntity;
|
|
1020
|
+
radioId: string;
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
type SystemModuleEntity = BaseEntity & {
|
|
1024
|
+
name: string;
|
|
1025
|
+
description: string;
|
|
1026
|
+
shortDescription: string;
|
|
1027
|
+
monthlyPrice: number;
|
|
1028
|
+
color: string;
|
|
1029
|
+
icon: string;
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
type PlanEntity = BaseEntity & {
|
|
1033
|
+
name: string;
|
|
1034
|
+
description: string;
|
|
1035
|
+
modules: SystemModuleEntity[];
|
|
1036
|
+
isMain: boolean;
|
|
1037
|
+
};
|
|
1038
|
+
|
|
861
1039
|
type RadioEntity = BaseEntity & {
|
|
862
1040
|
name: string;
|
|
863
1041
|
fantasyName: string;
|
|
@@ -876,6 +1054,13 @@ type RadioEntity = BaseEntity & {
|
|
|
876
1054
|
logoImg?: S3FileEntity | null;
|
|
877
1055
|
addressId: string;
|
|
878
1056
|
address?: AddressEntity;
|
|
1057
|
+
programs?: ProgramEntity[];
|
|
1058
|
+
programsDrafts?: ProgramDraftEntity[];
|
|
1059
|
+
users?: RadioUserEntity[];
|
|
1060
|
+
contracts?: RadioContractEntity[];
|
|
1061
|
+
legalAgreements?: RadioLegalAgreementEntity[];
|
|
1062
|
+
modules?: SystemModuleEntity[];
|
|
1063
|
+
voices?: VoiceProfileEntity[];
|
|
879
1064
|
subscription?: RadioSubscriptionEntity;
|
|
880
1065
|
externalMedias?: RadioExternalMediasEntity;
|
|
881
1066
|
};
|
|
@@ -902,35 +1087,6 @@ type ChargeEntity = BaseEntity & {
|
|
|
902
1087
|
couponActivation?: CouponActivationEntity;
|
|
903
1088
|
};
|
|
904
1089
|
|
|
905
|
-
type LegalTermEntity = Pick<BaseEntity, "id" | "createdAt"> & {
|
|
906
|
-
title: string;
|
|
907
|
-
version: string;
|
|
908
|
-
content: string;
|
|
909
|
-
hash: string;
|
|
910
|
-
isActive: Boolean;
|
|
911
|
-
type: LegalTermTypesEnum;
|
|
912
|
-
};
|
|
913
|
-
|
|
914
|
-
type RadioLegalAgreementEntity = Pick<BaseEntity, "id"> & {
|
|
915
|
-
ipAddress: string;
|
|
916
|
-
userAgent: string;
|
|
917
|
-
acceptedAt: DateString;
|
|
918
|
-
termId: string;
|
|
919
|
-
term?: LegalTermEntity;
|
|
920
|
-
radioId: string;
|
|
921
|
-
radio?: RadioEntity;
|
|
922
|
-
};
|
|
923
|
-
|
|
924
|
-
type UserLegalAgreementEntity = Pick<BaseEntity, "id"> & {
|
|
925
|
-
ipAddress: string;
|
|
926
|
-
userAgent: string;
|
|
927
|
-
acceptedAt: DateString;
|
|
928
|
-
termId: string;
|
|
929
|
-
term?: LegalTermEntity;
|
|
930
|
-
userId: string;
|
|
931
|
-
user?: RadioUserEntity;
|
|
932
|
-
};
|
|
933
|
-
|
|
934
1090
|
type LeadEntity = BaseEntity & {
|
|
935
1091
|
directorName: string | null;
|
|
936
1092
|
radioFantasyName: string | null;
|
|
@@ -942,22 +1098,6 @@ type LeadEntity = BaseEntity & {
|
|
|
942
1098
|
status: LeadStatusEnum;
|
|
943
1099
|
};
|
|
944
1100
|
|
|
945
|
-
type SystemModuleEntity = BaseEntity & {
|
|
946
|
-
name: string;
|
|
947
|
-
description: string;
|
|
948
|
-
shortDescription: string;
|
|
949
|
-
monthlyPrice: number;
|
|
950
|
-
color: string;
|
|
951
|
-
icon: string;
|
|
952
|
-
};
|
|
953
|
-
|
|
954
|
-
type PlanEntity = BaseEntity & {
|
|
955
|
-
name: string;
|
|
956
|
-
description: string;
|
|
957
|
-
modules: SystemModuleEntity[];
|
|
958
|
-
isMain: boolean;
|
|
959
|
-
};
|
|
960
|
-
|
|
961
1101
|
type LoginPayload = {
|
|
962
1102
|
email: string;
|
|
963
1103
|
password: string;
|
|
@@ -1042,6 +1182,37 @@ type GenerateEpisodePayload = {
|
|
|
1042
1182
|
};
|
|
1043
1183
|
type GenerateEpisodeResponse = {};
|
|
1044
1184
|
|
|
1185
|
+
type CreateSignupLeadPayload = {
|
|
1186
|
+
directorName: string;
|
|
1187
|
+
radioFantasyName: string;
|
|
1188
|
+
radioComercialEmail: string;
|
|
1189
|
+
radioFinancialEmail: string;
|
|
1190
|
+
radioWppNumber: string;
|
|
1191
|
+
};
|
|
1192
|
+
type CreateLandingPageLeadPayload = {
|
|
1193
|
+
radioWppNumber: string;
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
type ListLeadsParams = PaginationParams & {
|
|
1197
|
+
radioWppNumber?: string;
|
|
1198
|
+
directorName?: string;
|
|
1199
|
+
radioFantasyName?: string;
|
|
1200
|
+
type?: LeadTypesEnum;
|
|
1201
|
+
status?: LeadStatusEnum[];
|
|
1202
|
+
};
|
|
1203
|
+
type ListLeadsResponse = PaginatedResponseDTO<LeadEntity>;
|
|
1204
|
+
|
|
1205
|
+
type UpdateSignupLeadPayload = {
|
|
1206
|
+
status: LeadStatusEnum;
|
|
1207
|
+
notes?: string;
|
|
1208
|
+
};
|
|
1209
|
+
type UpdateLandingPageLeadPayload = UpdateSignupLeadPayload & {
|
|
1210
|
+
directorName?: string;
|
|
1211
|
+
radioFantasyName?: string;
|
|
1212
|
+
radioComercialEmail?: string;
|
|
1213
|
+
radioFinancialEmail?: string;
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1045
1216
|
type CreateLegalTermPayload = {
|
|
1046
1217
|
title: string;
|
|
1047
1218
|
content: string;
|
|
@@ -1059,6 +1230,18 @@ type ListLegalTermsParams = {
|
|
|
1059
1230
|
};
|
|
1060
1231
|
type ListLegalTermsResponse = PaginatedResponseDTO<LegalTermEntity>;
|
|
1061
1232
|
|
|
1233
|
+
type ListProgramsParams = PaginationParams & {
|
|
1234
|
+
radioId?: string;
|
|
1235
|
+
name?: string;
|
|
1236
|
+
castersIds?: string[];
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
type UpsertProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "casters"> & {
|
|
1240
|
+
castersIds: string[];
|
|
1241
|
+
}> & {
|
|
1242
|
+
draftId?: string;
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1062
1245
|
type PaymentProgram = {
|
|
1063
1246
|
name: string;
|
|
1064
1247
|
duration: number;
|
|
@@ -1164,18 +1347,6 @@ type UpsertSystemModulePayload = {
|
|
|
1164
1347
|
};
|
|
1165
1348
|
type UpsertSystemModuleResponse = SystemModuleEntity;
|
|
1166
1349
|
|
|
1167
|
-
type ListProgramsParams = PaginationParams & {
|
|
1168
|
-
radioId?: string;
|
|
1169
|
-
name?: string;
|
|
1170
|
-
castersIds?: string[];
|
|
1171
|
-
};
|
|
1172
|
-
|
|
1173
|
-
type UpsertProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "casters"> & {
|
|
1174
|
-
castersIds: string[];
|
|
1175
|
-
}> & {
|
|
1176
|
-
draftId?: string;
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
1350
|
type PassConfirmation$1 = {
|
|
1180
1351
|
passwordConfirmation: string;
|
|
1181
1352
|
};
|
|
@@ -1229,36 +1400,40 @@ type VerifyEmailAvailabilityResponse = {
|
|
|
1229
1400
|
isAvailable: boolean;
|
|
1230
1401
|
};
|
|
1231
1402
|
|
|
1232
|
-
type
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1403
|
+
type ListCastersParams = PaginationParams & {
|
|
1404
|
+
name?: string;
|
|
1405
|
+
email?: string;
|
|
1406
|
+
radiosIds?: string[];
|
|
1407
|
+
programsIds?: string[];
|
|
1408
|
+
voiceGender?: VoiceGenderEnum;
|
|
1409
|
+
segments?: ProgramSegmentEnum[];
|
|
1410
|
+
communicationTones?: CommunicationToneEnum[];
|
|
1411
|
+
emotionStyles?: EmotionStyleEnum[];
|
|
1412
|
+
formalityLevels?: FormalityLevelEnum[];
|
|
1413
|
+
humorStyle?: HumorStyleEnum[];
|
|
1414
|
+
languageStyles?: LanguageStyleEnum[];
|
|
1415
|
+
voiceEnergy?: VoiceEnergyEnum[];
|
|
1416
|
+
};
|
|
1417
|
+
type ListCastersResponse = PaginatedResponseDTO<Omit<CasterEntity, "voiceProfile"> & {
|
|
1418
|
+
voiceProfile: VoiceProfileEntity;
|
|
1419
|
+
}>;
|
|
1242
1420
|
|
|
1243
|
-
type
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
status?: LeadStatusEnum[];
|
|
1421
|
+
type ListVoiceProfilesParams = PaginationParams & {
|
|
1422
|
+
name?: string;
|
|
1423
|
+
source?: VoiceProfileSourcesEnum;
|
|
1424
|
+
provider?: TtsProvidersEnum;
|
|
1425
|
+
casterId?: string;
|
|
1249
1426
|
};
|
|
1250
|
-
type
|
|
1427
|
+
type ListVoiceProfilesResponse = PaginatedResponseDTO<VoiceProfileEntity & {
|
|
1428
|
+
avatarImgSrc: string;
|
|
1429
|
+
}>;
|
|
1251
1430
|
|
|
1252
|
-
type
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
type UpdateLandingPageLeadPayload = UpdateSignupLeadPayload & {
|
|
1257
|
-
directorName?: string;
|
|
1258
|
-
radioFantasyName?: string;
|
|
1259
|
-
radioComercialEmail?: string;
|
|
1260
|
-
radioFinancialEmail?: string;
|
|
1431
|
+
type ListVoiceTracksParams = PaginationParams & {
|
|
1432
|
+
programId: string;
|
|
1433
|
+
date?: `${number}-${number}-${number}`;
|
|
1434
|
+
status?: VoiceTrackStatusEnum;
|
|
1261
1435
|
};
|
|
1436
|
+
type ListVoiceTracksResponse = PaginatedResponseDTO<VoiceTrackEntity>;
|
|
1262
1437
|
|
|
1263
1438
|
type EpisodeCreatedEvt = {};
|
|
1264
1439
|
|
|
@@ -1278,4 +1453,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
|
|
|
1278
1453
|
|
|
1279
1454
|
declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
1280
1455
|
|
|
1281
|
-
export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, ChargeTypesEnum, CommunicationToneEnum, CommunicationToneTranslationsEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLandingPageLeadPayload, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSignupLeadPayload, type CreateSystemUserPayload, EmotionStyleEnum, EmotionStyleTranslationsEnum, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, FormalityLevelEnum, FormalityLevelTranslationsEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, HumorStyleEnum, HumorStyleTranslationsEnum, JobsEnum, LanguageStyleEnum, LanguageStyleTranslationsEnum, type LeadEntity, LeadStatusEnum, LeadStatusTranslationsEnum, LeadTypesEnum, LeadTypesTranslationsEnum, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListChargesResponse, type ListCouponsParams, type ListCouponsResponse, type ListLeadsParams, type ListLeadsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListProgramsParams, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type LoginPayload, type LoginResponse, MAX_CASTER_SAMPLES_DURATION_IN_SECONDS, MIN_CASTER_SAMPLES_DURATION_IN_SECONDS, MusicCategoriesEnum, type MusicCategoriesTranslationEnum, MusicCategoriesTranslationsEnum, type MusicProgramScriptElement, MusicSubGenresEnum, type MusicSubGenresTranslationEnum, MusicSubGenresTranslationsEnum, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, PRICE_PER_PROGRAM_HOUR, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, ProgramAudienceEnum, type ProgramAudienceTranslation, ProgramAudienceTranslationsEnum, ProgramDayPeriodEnum, ProgramDayPeriodTranslationsEnum, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramLogoEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, ProgramSegmentEnum, ProgramSegmentTranslationsEnum, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioExternalMediasEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, RadioSubscriptionStatusTranslationsEnum, type RadioUserAvatarEntity, type RadioUserEntity, S3DirectoriesEnum, type S3FileEntity, type ScriptBlock, type SessionEntity, SessionTypesEnum, type SessionUser, type SoundtrackProgramScriptElementOptions, type SystemModuleEntity, type SystemUserEntity, TKPLAY_ERRORS_MAP, TKPLAY_ERRORS__PTBR, TKPLAY_ERROR_MESSAGE_SPLITTER, TkplayErrorCodesEnum, type TkplayErrorEntity, TkplayErrorNamesEnum, type TkplayMappedErrors, type TkplayMappedErrors__Ptbr, type UpdateCouponPayload, type UpdateCouponResponse, type UpdateLandingPageLeadPayload, type UpdateRadioPayload, type UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSignupLeadPayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertProgramPayload, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VerifyEmailAvailabilityResponse, type VignetteProgramScriptElement, VoiceEnergyEnum, VoiceEnergyTranslationsEnum };
|
|
1456
|
+
export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, ChargeTypesEnum, CommunicationToneEnum, CommunicationToneTranslationsEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLandingPageLeadPayload, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSignupLeadPayload, type CreateSystemUserPayload, EmotionStyleEnum, EmotionStyleTranslationsEnum, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, FormalityLevelEnum, FormalityLevelTranslationsEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, HumorStyleEnum, HumorStyleTranslationsEnum, JobsEnum, LanguageStyleEnum, LanguageStyleTranslationsEnum, type LeadEntity, LeadStatusEnum, LeadStatusTranslationsEnum, LeadTypesEnum, LeadTypesTranslationsEnum, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListCastersParams, type ListCastersResponse, type ListChargesParams, type ListChargesResponse, type ListCouponsParams, type ListCouponsResponse, type ListLeadsParams, type ListLeadsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListProgramsParams, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type ListVoiceProfilesParams, type ListVoiceProfilesResponse, type ListVoiceTracksParams, type ListVoiceTracksResponse, type LoginPayload, type LoginResponse, MAX_CASTER_SAMPLES_DURATION_IN_SECONDS, MIN_CASTER_SAMPLES_DURATION_IN_SECONDS, MusicCategoriesEnum, type MusicCategoriesTranslationEnum, MusicCategoriesTranslationsEnum, type MusicProgramScriptElement, MusicSubGenresEnum, type MusicSubGenresTranslationEnum, MusicSubGenresTranslationsEnum, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, PRICE_PER_PROGRAM_HOUR, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, ProgramAudienceEnum, type ProgramAudienceTranslation, ProgramAudienceTranslationsEnum, ProgramDayPeriodEnum, ProgramDayPeriodTranslationsEnum, type ProgramDayScheduleEntity, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramLogoEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, ProgramSegmentEnum, ProgramSegmentTranslationsEnum, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioExternalMediasEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, RadioSubscriptionStatusTranslationsEnum, type RadioUserAvatarEntity, type RadioUserEntity, S3DirectoriesEnum, type S3FileEntity, type ScriptBlock, type SessionEntity, SessionTypesEnum, type SessionUser, type SoundtrackProgramScriptElementOptions, type SystemModuleEntity, type SystemUserEntity, TKPLAY_ERRORS_MAP, TKPLAY_ERRORS__PTBR, TKPLAY_ERROR_MESSAGE_SPLITTER, TkplayErrorCodesEnum, type TkplayErrorEntity, TkplayErrorNamesEnum, type TkplayMappedErrors, type TkplayMappedErrors__Ptbr, TtsProvidersEnum, TtsProvidersTranslationsEnum, type UpdateCouponPayload, type UpdateCouponResponse, type UpdateLandingPageLeadPayload, type UpdateRadioPayload, type UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSignupLeadPayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertProgramPayload, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VerifyEmailAvailabilityResponse, type VignetteProgramScriptElement, VoiceEnergyEnum, VoiceEnergyTranslationsEnum, VoiceGenderEnum, VoiceGenderTranslationsEnum, VoiceProfileSourcesEnum, VoiceProfileSourcesTranslationsEnum, VoiceTrackSourcesEnum, VoiceTrackSourcesTranslationsEnum, VoiceTrackStatusEnum, VoiceTrackStatusTranslationsEnum, WeekDayEnum, WeekDayTranslationsEnum };
|
package/dist/index.d.ts
CHANGED
|
@@ -104,7 +104,29 @@ declare const TkplayErrorNamesEnum: {
|
|
|
104
104
|
};
|
|
105
105
|
type TkplayErrorNamesEnum = Enum<typeof TkplayErrorNamesEnum>;
|
|
106
106
|
|
|
107
|
+
declare const WeekDayEnum: {
|
|
108
|
+
readonly SUNDAY: "SUNDAY";
|
|
109
|
+
readonly MONDAY: "MONDAY";
|
|
110
|
+
readonly TUESDAY: "TUESDAY";
|
|
111
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
112
|
+
readonly THURSDAY: "THURSDAY";
|
|
113
|
+
readonly FRIDAY: "FRIDAY";
|
|
114
|
+
readonly SATURDAY: "SATURDAY";
|
|
115
|
+
};
|
|
116
|
+
type WeekDayEnum = Enum<typeof WeekDayEnum>;
|
|
117
|
+
declare const WeekDayTranslationsEnum: {
|
|
118
|
+
readonly SUNDAY: "Domingo";
|
|
119
|
+
readonly MONDAY: "Segunda-feira";
|
|
120
|
+
readonly TUESDAY: "Terça-feira";
|
|
121
|
+
readonly WEDNESDAY: "Quarta-feira";
|
|
122
|
+
readonly THURSDAY: "Quinta-feira";
|
|
123
|
+
readonly FRIDAY: "Sexta-feira";
|
|
124
|
+
readonly SATURDAY: "Sábado";
|
|
125
|
+
};
|
|
126
|
+
type WeekDayTranslationsEnum = Enum<typeof WeekDayTranslationsEnum>;
|
|
127
|
+
|
|
107
128
|
declare const SessionTypesEnum: {
|
|
129
|
+
readonly CASTER_USER: "CASTER_USER";
|
|
108
130
|
readonly RADIO_USER: "RADIO_USER";
|
|
109
131
|
readonly SYSTEM_USER: "SYSTEM_USER";
|
|
110
132
|
};
|
|
@@ -275,6 +297,17 @@ declare const VoiceEnergyTranslationsEnum: {
|
|
|
275
297
|
};
|
|
276
298
|
type VoiceEnergyTranslationsEnum = Enum<typeof VoiceEnergyTranslationsEnum>;
|
|
277
299
|
|
|
300
|
+
declare const VoiceGenderEnum: {
|
|
301
|
+
readonly MALE: "MALE";
|
|
302
|
+
readonly FEMALE: "FEMALE";
|
|
303
|
+
};
|
|
304
|
+
type VoiceGenderEnum = Enum<typeof VoiceGenderEnum>;
|
|
305
|
+
declare const VoiceGenderTranslationsEnum: {
|
|
306
|
+
readonly MALE: "Voz Masculina";
|
|
307
|
+
readonly FEMALE: "Voz Feminina";
|
|
308
|
+
};
|
|
309
|
+
type VoiceGenderTranslationsEnum = Enum<typeof VoiceGenderTranslationsEnum>;
|
|
310
|
+
|
|
278
311
|
declare const EpGenerationQualityEnum: {
|
|
279
312
|
readonly DEFAULT: "DEFAULT";
|
|
280
313
|
readonly MASTERIZED: "MASTERIZED";
|
|
@@ -609,6 +642,56 @@ declare const MusicCategoriesTranslationsEnum: {
|
|
|
609
642
|
};
|
|
610
643
|
type MusicCategoriesTranslationEnum = Enum<typeof MusicCategoriesTranslationsEnum>;
|
|
611
644
|
|
|
645
|
+
declare const TtsProvidersEnum: {
|
|
646
|
+
readonly FISH_AUDIO: "FISH_AUDIO";
|
|
647
|
+
};
|
|
648
|
+
type TtsProvidersEnum = Enum<typeof TtsProvidersEnum>;
|
|
649
|
+
declare const TtsProvidersTranslationsEnum: {
|
|
650
|
+
readonly FISH_AUDIO: "Fish.Audio";
|
|
651
|
+
};
|
|
652
|
+
type TtsProvidersTranslationsEnum = Enum<typeof TtsProvidersTranslationsEnum>;
|
|
653
|
+
|
|
654
|
+
declare const VoiceProfileSourcesEnum: {
|
|
655
|
+
readonly PROVIDER_NATIVE: "PROVIDER_NATIVE";
|
|
656
|
+
readonly CASTER_CLONED: "CASTER_CLONED";
|
|
657
|
+
};
|
|
658
|
+
type VoiceProfileSourcesEnum = Enum<typeof VoiceProfileSourcesEnum>;
|
|
659
|
+
declare const VoiceProfileSourcesTranslationsEnum: {
|
|
660
|
+
readonly PROVIDER_NATIVE: "Voz nativa do provedor TTS";
|
|
661
|
+
readonly CASTER_CLONED: "Voz clonada do locutor";
|
|
662
|
+
};
|
|
663
|
+
type VoiceProfileSourcesTranslationsEnum = Enum<typeof VoiceProfileSourcesTranslationsEnum>;
|
|
664
|
+
|
|
665
|
+
declare const VoiceTrackSourcesEnum: {
|
|
666
|
+
readonly TTS: "TTS";
|
|
667
|
+
readonly CASTER_UPLOAD: "CASTER_UPLOAD";
|
|
668
|
+
};
|
|
669
|
+
type VoiceTrackSourcesEnum = Enum<typeof VoiceTrackSourcesEnum>;
|
|
670
|
+
declare const VoiceTrackSourcesTranslationsEnum: {
|
|
671
|
+
readonly TTS: "Gerado por IA (TTS)";
|
|
672
|
+
readonly CASTER_UPLOAD: "Enviado pelo locutor";
|
|
673
|
+
};
|
|
674
|
+
type VoiceTrackSourcesTranslationsEnum = Enum<typeof VoiceTrackSourcesTranslationsEnum>;
|
|
675
|
+
|
|
676
|
+
declare const VoiceTrackStatusEnum: {
|
|
677
|
+
readonly CREATING_SCRIPT: "CREATING_SCRIPT";
|
|
678
|
+
readonly SCRIPT_CREATION_ERROR: "SCRIPT_CREATION_ERROR";
|
|
679
|
+
readonly READY_TO_RECORD: "READY_TO_RECORD";
|
|
680
|
+
readonly RECORDED: "RECORDED";
|
|
681
|
+
readonly RECORD_ERROR: "RECORD_ERROR";
|
|
682
|
+
readonly AIRED: "AIRED";
|
|
683
|
+
};
|
|
684
|
+
type VoiceTrackStatusEnum = Enum<typeof VoiceTrackStatusEnum>;
|
|
685
|
+
declare const VoiceTrackStatusTranslationsEnum: {
|
|
686
|
+
readonly CREATING_SCRIPT: "Gerando roteiro";
|
|
687
|
+
readonly SCRIPT_CREATION_ERROR: "Erro ao gerar roteiro";
|
|
688
|
+
readonly READY_TO_RECORD: "Aguardando gravação";
|
|
689
|
+
readonly RECORDED: "Gravado";
|
|
690
|
+
readonly RECORD_ERROR: "Erro na gravação";
|
|
691
|
+
readonly AIRED: "Foi ao ar";
|
|
692
|
+
};
|
|
693
|
+
type VoiceTrackStatusTranslationsEnum = Enum<typeof VoiceTrackStatusTranslationsEnum>;
|
|
694
|
+
|
|
612
695
|
type DateString = string | Date;
|
|
613
696
|
|
|
614
697
|
type SessionUser = {
|
|
@@ -748,43 +831,23 @@ type RadioExternalMediasEntity = {
|
|
|
748
831
|
radio?: RadioEntity;
|
|
749
832
|
};
|
|
750
833
|
|
|
751
|
-
type
|
|
834
|
+
type VoiceProfileEntity = BaseEntity & {
|
|
752
835
|
name: string;
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
address?: AddressEntity;
|
|
836
|
+
source: VoiceProfileSourcesEnum;
|
|
837
|
+
provider: TtsProvidersEnum;
|
|
838
|
+
externalProviderId: string;
|
|
839
|
+
casterId?: string;
|
|
840
|
+
caster?: CasterEntity;
|
|
759
841
|
radios?: RadioEntity[];
|
|
760
842
|
programs?: ProgramEntity[];
|
|
761
843
|
};
|
|
762
844
|
|
|
763
|
-
type RadioUserEntity = BaseEntity & {
|
|
764
|
-
name: string;
|
|
765
|
-
email: string;
|
|
766
|
-
password: string;
|
|
767
|
-
birthDate: string;
|
|
768
|
-
role: UserRolesEnum;
|
|
769
|
-
avatarImgId: string | null;
|
|
770
|
-
avatarImg?: RadioUserAvatarEntity | null;
|
|
771
|
-
radioId: string;
|
|
772
|
-
radio?: RadioEntity;
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
type SystemUserEntity = BaseEntity & {
|
|
776
|
-
name: string;
|
|
777
|
-
email: string;
|
|
778
|
-
password: string;
|
|
779
|
-
role: UserRolesEnum;
|
|
780
|
-
};
|
|
781
|
-
|
|
782
845
|
type ProgramEntity = BaseEntity & {
|
|
783
846
|
name: string;
|
|
784
847
|
description: string;
|
|
785
848
|
blockNamePrefix: string;
|
|
786
849
|
blocksAmount: number;
|
|
787
|
-
|
|
850
|
+
durationInMinutes: number;
|
|
788
851
|
dayPeriod: ProgramDayPeriodEnum;
|
|
789
852
|
allowAiGeneratedPersonNames: boolean;
|
|
790
853
|
allowCityMentions: boolean;
|
|
@@ -800,7 +863,69 @@ type ProgramEntity = BaseEntity & {
|
|
|
800
863
|
voiceEnergy: VoiceEnergyEnum;
|
|
801
864
|
radio?: RadioEntity;
|
|
802
865
|
radioId: string;
|
|
803
|
-
|
|
866
|
+
voices?: VoiceProfileEntity[];
|
|
867
|
+
weekSchedule: ProgramDayScheduleEntity[];
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
type ProgramDayScheduleEntity = BaseEntity & {
|
|
871
|
+
programId: string;
|
|
872
|
+
weekDay: WeekDayEnum;
|
|
873
|
+
isActive: boolean;
|
|
874
|
+
script: ProgramScriptEntity;
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
type VoiceTrackEntity = BaseEntity & {
|
|
878
|
+
textScript: string | null;
|
|
879
|
+
source: VoiceTrackSourcesEnum;
|
|
880
|
+
date: `${number}-${number}-${number}`;
|
|
881
|
+
status: VoiceTrackStatusEnum;
|
|
882
|
+
durationInSeconds: number | null;
|
|
883
|
+
programBlockIndex: number;
|
|
884
|
+
blockElementIndex: number;
|
|
885
|
+
programId: string;
|
|
886
|
+
program?: ProgramEntity;
|
|
887
|
+
fileId: string | null;
|
|
888
|
+
file: S3FileEntity | null;
|
|
889
|
+
error: string | null;
|
|
890
|
+
};
|
|
891
|
+
|
|
892
|
+
type CasterEntity = BaseEntity & {
|
|
893
|
+
name: string;
|
|
894
|
+
bio: string;
|
|
895
|
+
email: string;
|
|
896
|
+
password: string;
|
|
897
|
+
voiceGender: VoiceGenderEnum;
|
|
898
|
+
segments: ProgramSegmentEnum[];
|
|
899
|
+
communicationTones: CommunicationToneEnum[];
|
|
900
|
+
emotionStyles: EmotionStyleEnum[];
|
|
901
|
+
formalityLevels: FormalityLevelEnum[];
|
|
902
|
+
humorStyle: HumorStyleEnum[];
|
|
903
|
+
languageStyles: LanguageStyleEnum[];
|
|
904
|
+
voiceEnergy: VoiceEnergyEnum[];
|
|
905
|
+
avatarImgId: string;
|
|
906
|
+
avatarImg?: S3FileEntity;
|
|
907
|
+
voiceProfileId: string;
|
|
908
|
+
voiceProfile?: VoiceProfileEntity;
|
|
909
|
+
audioSamples?: S3FileEntity[];
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
type RadioUserEntity = BaseEntity & {
|
|
913
|
+
name: string;
|
|
914
|
+
email: string;
|
|
915
|
+
password: string;
|
|
916
|
+
birthDate: string;
|
|
917
|
+
role: UserRolesEnum;
|
|
918
|
+
avatarImgId: string | null;
|
|
919
|
+
avatarImg?: RadioUserAvatarEntity | null;
|
|
920
|
+
radioId: string;
|
|
921
|
+
radio?: RadioEntity;
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
type SystemUserEntity = BaseEntity & {
|
|
925
|
+
name: string;
|
|
926
|
+
email: string;
|
|
927
|
+
password: string;
|
|
928
|
+
role: UserRolesEnum;
|
|
804
929
|
};
|
|
805
930
|
|
|
806
931
|
type S3FileEntity = BaseEntity & {
|
|
@@ -858,6 +983,59 @@ type ProgramLogoEntity = Omit<S3FileEntity, "casterId" | "radioUserId" | "radioI
|
|
|
858
983
|
caster: never;
|
|
859
984
|
};
|
|
860
985
|
|
|
986
|
+
type LegalTermEntity = Pick<BaseEntity, "id" | "createdAt"> & {
|
|
987
|
+
title: string;
|
|
988
|
+
version: string;
|
|
989
|
+
content: string;
|
|
990
|
+
hash: string;
|
|
991
|
+
isActive: Boolean;
|
|
992
|
+
type: LegalTermTypesEnum;
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
type RadioLegalAgreementEntity = Pick<BaseEntity, "id"> & {
|
|
996
|
+
ipAddress: string;
|
|
997
|
+
userAgent: string;
|
|
998
|
+
acceptedAt: DateString;
|
|
999
|
+
termId: string;
|
|
1000
|
+
term?: LegalTermEntity;
|
|
1001
|
+
radioId: string;
|
|
1002
|
+
radio?: RadioEntity;
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
type UserLegalAgreementEntity = Pick<BaseEntity, "id"> & {
|
|
1006
|
+
ipAddress: string;
|
|
1007
|
+
userAgent: string;
|
|
1008
|
+
acceptedAt: DateString;
|
|
1009
|
+
termId: string;
|
|
1010
|
+
term?: LegalTermEntity;
|
|
1011
|
+
userId: string;
|
|
1012
|
+
user?: RadioUserEntity;
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
type ProgramDraftEntity = BaseEntity & {
|
|
1016
|
+
name: string;
|
|
1017
|
+
durationInMinutes: number;
|
|
1018
|
+
blocksAmount: number;
|
|
1019
|
+
radio?: RadioEntity;
|
|
1020
|
+
radioId: string;
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
type SystemModuleEntity = BaseEntity & {
|
|
1024
|
+
name: string;
|
|
1025
|
+
description: string;
|
|
1026
|
+
shortDescription: string;
|
|
1027
|
+
monthlyPrice: number;
|
|
1028
|
+
color: string;
|
|
1029
|
+
icon: string;
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
type PlanEntity = BaseEntity & {
|
|
1033
|
+
name: string;
|
|
1034
|
+
description: string;
|
|
1035
|
+
modules: SystemModuleEntity[];
|
|
1036
|
+
isMain: boolean;
|
|
1037
|
+
};
|
|
1038
|
+
|
|
861
1039
|
type RadioEntity = BaseEntity & {
|
|
862
1040
|
name: string;
|
|
863
1041
|
fantasyName: string;
|
|
@@ -876,6 +1054,13 @@ type RadioEntity = BaseEntity & {
|
|
|
876
1054
|
logoImg?: S3FileEntity | null;
|
|
877
1055
|
addressId: string;
|
|
878
1056
|
address?: AddressEntity;
|
|
1057
|
+
programs?: ProgramEntity[];
|
|
1058
|
+
programsDrafts?: ProgramDraftEntity[];
|
|
1059
|
+
users?: RadioUserEntity[];
|
|
1060
|
+
contracts?: RadioContractEntity[];
|
|
1061
|
+
legalAgreements?: RadioLegalAgreementEntity[];
|
|
1062
|
+
modules?: SystemModuleEntity[];
|
|
1063
|
+
voices?: VoiceProfileEntity[];
|
|
879
1064
|
subscription?: RadioSubscriptionEntity;
|
|
880
1065
|
externalMedias?: RadioExternalMediasEntity;
|
|
881
1066
|
};
|
|
@@ -902,35 +1087,6 @@ type ChargeEntity = BaseEntity & {
|
|
|
902
1087
|
couponActivation?: CouponActivationEntity;
|
|
903
1088
|
};
|
|
904
1089
|
|
|
905
|
-
type LegalTermEntity = Pick<BaseEntity, "id" | "createdAt"> & {
|
|
906
|
-
title: string;
|
|
907
|
-
version: string;
|
|
908
|
-
content: string;
|
|
909
|
-
hash: string;
|
|
910
|
-
isActive: Boolean;
|
|
911
|
-
type: LegalTermTypesEnum;
|
|
912
|
-
};
|
|
913
|
-
|
|
914
|
-
type RadioLegalAgreementEntity = Pick<BaseEntity, "id"> & {
|
|
915
|
-
ipAddress: string;
|
|
916
|
-
userAgent: string;
|
|
917
|
-
acceptedAt: DateString;
|
|
918
|
-
termId: string;
|
|
919
|
-
term?: LegalTermEntity;
|
|
920
|
-
radioId: string;
|
|
921
|
-
radio?: RadioEntity;
|
|
922
|
-
};
|
|
923
|
-
|
|
924
|
-
type UserLegalAgreementEntity = Pick<BaseEntity, "id"> & {
|
|
925
|
-
ipAddress: string;
|
|
926
|
-
userAgent: string;
|
|
927
|
-
acceptedAt: DateString;
|
|
928
|
-
termId: string;
|
|
929
|
-
term?: LegalTermEntity;
|
|
930
|
-
userId: string;
|
|
931
|
-
user?: RadioUserEntity;
|
|
932
|
-
};
|
|
933
|
-
|
|
934
1090
|
type LeadEntity = BaseEntity & {
|
|
935
1091
|
directorName: string | null;
|
|
936
1092
|
radioFantasyName: string | null;
|
|
@@ -942,22 +1098,6 @@ type LeadEntity = BaseEntity & {
|
|
|
942
1098
|
status: LeadStatusEnum;
|
|
943
1099
|
};
|
|
944
1100
|
|
|
945
|
-
type SystemModuleEntity = BaseEntity & {
|
|
946
|
-
name: string;
|
|
947
|
-
description: string;
|
|
948
|
-
shortDescription: string;
|
|
949
|
-
monthlyPrice: number;
|
|
950
|
-
color: string;
|
|
951
|
-
icon: string;
|
|
952
|
-
};
|
|
953
|
-
|
|
954
|
-
type PlanEntity = BaseEntity & {
|
|
955
|
-
name: string;
|
|
956
|
-
description: string;
|
|
957
|
-
modules: SystemModuleEntity[];
|
|
958
|
-
isMain: boolean;
|
|
959
|
-
};
|
|
960
|
-
|
|
961
1101
|
type LoginPayload = {
|
|
962
1102
|
email: string;
|
|
963
1103
|
password: string;
|
|
@@ -1042,6 +1182,37 @@ type GenerateEpisodePayload = {
|
|
|
1042
1182
|
};
|
|
1043
1183
|
type GenerateEpisodeResponse = {};
|
|
1044
1184
|
|
|
1185
|
+
type CreateSignupLeadPayload = {
|
|
1186
|
+
directorName: string;
|
|
1187
|
+
radioFantasyName: string;
|
|
1188
|
+
radioComercialEmail: string;
|
|
1189
|
+
radioFinancialEmail: string;
|
|
1190
|
+
radioWppNumber: string;
|
|
1191
|
+
};
|
|
1192
|
+
type CreateLandingPageLeadPayload = {
|
|
1193
|
+
radioWppNumber: string;
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
type ListLeadsParams = PaginationParams & {
|
|
1197
|
+
radioWppNumber?: string;
|
|
1198
|
+
directorName?: string;
|
|
1199
|
+
radioFantasyName?: string;
|
|
1200
|
+
type?: LeadTypesEnum;
|
|
1201
|
+
status?: LeadStatusEnum[];
|
|
1202
|
+
};
|
|
1203
|
+
type ListLeadsResponse = PaginatedResponseDTO<LeadEntity>;
|
|
1204
|
+
|
|
1205
|
+
type UpdateSignupLeadPayload = {
|
|
1206
|
+
status: LeadStatusEnum;
|
|
1207
|
+
notes?: string;
|
|
1208
|
+
};
|
|
1209
|
+
type UpdateLandingPageLeadPayload = UpdateSignupLeadPayload & {
|
|
1210
|
+
directorName?: string;
|
|
1211
|
+
radioFantasyName?: string;
|
|
1212
|
+
radioComercialEmail?: string;
|
|
1213
|
+
radioFinancialEmail?: string;
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1045
1216
|
type CreateLegalTermPayload = {
|
|
1046
1217
|
title: string;
|
|
1047
1218
|
content: string;
|
|
@@ -1059,6 +1230,18 @@ type ListLegalTermsParams = {
|
|
|
1059
1230
|
};
|
|
1060
1231
|
type ListLegalTermsResponse = PaginatedResponseDTO<LegalTermEntity>;
|
|
1061
1232
|
|
|
1233
|
+
type ListProgramsParams = PaginationParams & {
|
|
1234
|
+
radioId?: string;
|
|
1235
|
+
name?: string;
|
|
1236
|
+
castersIds?: string[];
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
type UpsertProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "casters"> & {
|
|
1240
|
+
castersIds: string[];
|
|
1241
|
+
}> & {
|
|
1242
|
+
draftId?: string;
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1062
1245
|
type PaymentProgram = {
|
|
1063
1246
|
name: string;
|
|
1064
1247
|
duration: number;
|
|
@@ -1164,18 +1347,6 @@ type UpsertSystemModulePayload = {
|
|
|
1164
1347
|
};
|
|
1165
1348
|
type UpsertSystemModuleResponse = SystemModuleEntity;
|
|
1166
1349
|
|
|
1167
|
-
type ListProgramsParams = PaginationParams & {
|
|
1168
|
-
radioId?: string;
|
|
1169
|
-
name?: string;
|
|
1170
|
-
castersIds?: string[];
|
|
1171
|
-
};
|
|
1172
|
-
|
|
1173
|
-
type UpsertProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "casters"> & {
|
|
1174
|
-
castersIds: string[];
|
|
1175
|
-
}> & {
|
|
1176
|
-
draftId?: string;
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
1350
|
type PassConfirmation$1 = {
|
|
1180
1351
|
passwordConfirmation: string;
|
|
1181
1352
|
};
|
|
@@ -1229,36 +1400,40 @@ type VerifyEmailAvailabilityResponse = {
|
|
|
1229
1400
|
isAvailable: boolean;
|
|
1230
1401
|
};
|
|
1231
1402
|
|
|
1232
|
-
type
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1403
|
+
type ListCastersParams = PaginationParams & {
|
|
1404
|
+
name?: string;
|
|
1405
|
+
email?: string;
|
|
1406
|
+
radiosIds?: string[];
|
|
1407
|
+
programsIds?: string[];
|
|
1408
|
+
voiceGender?: VoiceGenderEnum;
|
|
1409
|
+
segments?: ProgramSegmentEnum[];
|
|
1410
|
+
communicationTones?: CommunicationToneEnum[];
|
|
1411
|
+
emotionStyles?: EmotionStyleEnum[];
|
|
1412
|
+
formalityLevels?: FormalityLevelEnum[];
|
|
1413
|
+
humorStyle?: HumorStyleEnum[];
|
|
1414
|
+
languageStyles?: LanguageStyleEnum[];
|
|
1415
|
+
voiceEnergy?: VoiceEnergyEnum[];
|
|
1416
|
+
};
|
|
1417
|
+
type ListCastersResponse = PaginatedResponseDTO<Omit<CasterEntity, "voiceProfile"> & {
|
|
1418
|
+
voiceProfile: VoiceProfileEntity;
|
|
1419
|
+
}>;
|
|
1242
1420
|
|
|
1243
|
-
type
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
status?: LeadStatusEnum[];
|
|
1421
|
+
type ListVoiceProfilesParams = PaginationParams & {
|
|
1422
|
+
name?: string;
|
|
1423
|
+
source?: VoiceProfileSourcesEnum;
|
|
1424
|
+
provider?: TtsProvidersEnum;
|
|
1425
|
+
casterId?: string;
|
|
1249
1426
|
};
|
|
1250
|
-
type
|
|
1427
|
+
type ListVoiceProfilesResponse = PaginatedResponseDTO<VoiceProfileEntity & {
|
|
1428
|
+
avatarImgSrc: string;
|
|
1429
|
+
}>;
|
|
1251
1430
|
|
|
1252
|
-
type
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
type UpdateLandingPageLeadPayload = UpdateSignupLeadPayload & {
|
|
1257
|
-
directorName?: string;
|
|
1258
|
-
radioFantasyName?: string;
|
|
1259
|
-
radioComercialEmail?: string;
|
|
1260
|
-
radioFinancialEmail?: string;
|
|
1431
|
+
type ListVoiceTracksParams = PaginationParams & {
|
|
1432
|
+
programId: string;
|
|
1433
|
+
date?: `${number}-${number}-${number}`;
|
|
1434
|
+
status?: VoiceTrackStatusEnum;
|
|
1261
1435
|
};
|
|
1436
|
+
type ListVoiceTracksResponse = PaginatedResponseDTO<VoiceTrackEntity>;
|
|
1262
1437
|
|
|
1263
1438
|
type EpisodeCreatedEvt = {};
|
|
1264
1439
|
|
|
@@ -1278,4 +1453,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
|
|
|
1278
1453
|
|
|
1279
1454
|
declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
1280
1455
|
|
|
1281
|
-
export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, ChargeTypesEnum, CommunicationToneEnum, CommunicationToneTranslationsEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLandingPageLeadPayload, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSignupLeadPayload, type CreateSystemUserPayload, EmotionStyleEnum, EmotionStyleTranslationsEnum, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, FormalityLevelEnum, FormalityLevelTranslationsEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, HumorStyleEnum, HumorStyleTranslationsEnum, JobsEnum, LanguageStyleEnum, LanguageStyleTranslationsEnum, type LeadEntity, LeadStatusEnum, LeadStatusTranslationsEnum, LeadTypesEnum, LeadTypesTranslationsEnum, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListChargesResponse, type ListCouponsParams, type ListCouponsResponse, type ListLeadsParams, type ListLeadsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListProgramsParams, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type LoginPayload, type LoginResponse, MAX_CASTER_SAMPLES_DURATION_IN_SECONDS, MIN_CASTER_SAMPLES_DURATION_IN_SECONDS, MusicCategoriesEnum, type MusicCategoriesTranslationEnum, MusicCategoriesTranslationsEnum, type MusicProgramScriptElement, MusicSubGenresEnum, type MusicSubGenresTranslationEnum, MusicSubGenresTranslationsEnum, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, PRICE_PER_PROGRAM_HOUR, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, ProgramAudienceEnum, type ProgramAudienceTranslation, ProgramAudienceTranslationsEnum, ProgramDayPeriodEnum, ProgramDayPeriodTranslationsEnum, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramLogoEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, ProgramSegmentEnum, ProgramSegmentTranslationsEnum, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioExternalMediasEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, RadioSubscriptionStatusTranslationsEnum, type RadioUserAvatarEntity, type RadioUserEntity, S3DirectoriesEnum, type S3FileEntity, type ScriptBlock, type SessionEntity, SessionTypesEnum, type SessionUser, type SoundtrackProgramScriptElementOptions, type SystemModuleEntity, type SystemUserEntity, TKPLAY_ERRORS_MAP, TKPLAY_ERRORS__PTBR, TKPLAY_ERROR_MESSAGE_SPLITTER, TkplayErrorCodesEnum, type TkplayErrorEntity, TkplayErrorNamesEnum, type TkplayMappedErrors, type TkplayMappedErrors__Ptbr, type UpdateCouponPayload, type UpdateCouponResponse, type UpdateLandingPageLeadPayload, type UpdateRadioPayload, type UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSignupLeadPayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertProgramPayload, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VerifyEmailAvailabilityResponse, type VignetteProgramScriptElement, VoiceEnergyEnum, VoiceEnergyTranslationsEnum };
|
|
1456
|
+
export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, ChargeTypesEnum, CommunicationToneEnum, CommunicationToneTranslationsEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLandingPageLeadPayload, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSignupLeadPayload, type CreateSystemUserPayload, EmotionStyleEnum, EmotionStyleTranslationsEnum, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, FormalityLevelEnum, FormalityLevelTranslationsEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, HumorStyleEnum, HumorStyleTranslationsEnum, JobsEnum, LanguageStyleEnum, LanguageStyleTranslationsEnum, type LeadEntity, LeadStatusEnum, LeadStatusTranslationsEnum, LeadTypesEnum, LeadTypesTranslationsEnum, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListCastersParams, type ListCastersResponse, type ListChargesParams, type ListChargesResponse, type ListCouponsParams, type ListCouponsResponse, type ListLeadsParams, type ListLeadsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListProgramsParams, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type ListVoiceProfilesParams, type ListVoiceProfilesResponse, type ListVoiceTracksParams, type ListVoiceTracksResponse, type LoginPayload, type LoginResponse, MAX_CASTER_SAMPLES_DURATION_IN_SECONDS, MIN_CASTER_SAMPLES_DURATION_IN_SECONDS, MusicCategoriesEnum, type MusicCategoriesTranslationEnum, MusicCategoriesTranslationsEnum, type MusicProgramScriptElement, MusicSubGenresEnum, type MusicSubGenresTranslationEnum, MusicSubGenresTranslationsEnum, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, PRICE_PER_PROGRAM_HOUR, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, ProgramAudienceEnum, type ProgramAudienceTranslation, ProgramAudienceTranslationsEnum, ProgramDayPeriodEnum, ProgramDayPeriodTranslationsEnum, type ProgramDayScheduleEntity, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramLogoEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, ProgramSegmentEnum, ProgramSegmentTranslationsEnum, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioExternalMediasEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, RadioSubscriptionStatusTranslationsEnum, type RadioUserAvatarEntity, type RadioUserEntity, S3DirectoriesEnum, type S3FileEntity, type ScriptBlock, type SessionEntity, SessionTypesEnum, type SessionUser, type SoundtrackProgramScriptElementOptions, type SystemModuleEntity, type SystemUserEntity, TKPLAY_ERRORS_MAP, TKPLAY_ERRORS__PTBR, TKPLAY_ERROR_MESSAGE_SPLITTER, TkplayErrorCodesEnum, type TkplayErrorEntity, TkplayErrorNamesEnum, type TkplayMappedErrors, type TkplayMappedErrors__Ptbr, TtsProvidersEnum, TtsProvidersTranslationsEnum, type UpdateCouponPayload, type UpdateCouponResponse, type UpdateLandingPageLeadPayload, type UpdateRadioPayload, type UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSignupLeadPayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertProgramPayload, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VerifyEmailAvailabilityResponse, type VignetteProgramScriptElement, VoiceEnergyEnum, VoiceEnergyTranslationsEnum, VoiceGenderEnum, VoiceGenderTranslationsEnum, VoiceProfileSourcesEnum, VoiceProfileSourcesTranslationsEnum, VoiceTrackSourcesEnum, VoiceTrackSourcesTranslationsEnum, VoiceTrackStatusEnum, VoiceTrackStatusTranslationsEnum, WeekDayEnum, WeekDayTranslationsEnum };
|
package/dist/index.js
CHANGED
|
@@ -74,15 +74,28 @@ __export(index_exports, {
|
|
|
74
74
|
TKPLAY_ERROR_MESSAGE_SPLITTER: () => TKPLAY_ERROR_MESSAGE_SPLITTER,
|
|
75
75
|
TkplayErrorCodesEnum: () => TkplayErrorCodesEnum,
|
|
76
76
|
TkplayErrorNamesEnum: () => TkplayErrorNamesEnum,
|
|
77
|
+
TtsProvidersEnum: () => TtsProvidersEnum,
|
|
78
|
+
TtsProvidersTranslationsEnum: () => TtsProvidersTranslationsEnum,
|
|
77
79
|
UserRolesEnum: () => UserRolesEnum,
|
|
78
80
|
UserRolesTranslationsEnum: () => UserRolesTranslationsEnum,
|
|
79
81
|
VoiceEnergyEnum: () => VoiceEnergyEnum,
|
|
80
|
-
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
|
|
81
93
|
});
|
|
82
94
|
module.exports = __toCommonJS(index_exports);
|
|
83
95
|
|
|
84
96
|
// src/enums/auth/session-types.enum.ts
|
|
85
97
|
var SessionTypesEnum = {
|
|
98
|
+
CASTER_USER: "CASTER_USER",
|
|
86
99
|
RADIO_USER: "RADIO_USER",
|
|
87
100
|
SYSTEM_USER: "SYSTEM_USER"
|
|
88
101
|
};
|
|
@@ -230,7 +243,7 @@ var LanguageStyleTranslationsEnum = {
|
|
|
230
243
|
POPULAR: "Popular"
|
|
231
244
|
};
|
|
232
245
|
|
|
233
|
-
// src/enums/communication/voice-energy.ts
|
|
246
|
+
// src/enums/communication/voice-energy.enum.ts
|
|
234
247
|
var VoiceEnergyEnum = {
|
|
235
248
|
CALM: "CALM",
|
|
236
249
|
BALANCED: "BALANCED",
|
|
@@ -244,6 +257,16 @@ var VoiceEnergyTranslationsEnum = {
|
|
|
244
257
|
HIGH: "Alta"
|
|
245
258
|
};
|
|
246
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
|
+
|
|
247
270
|
// src/enums/commom/br-states.enum.ts
|
|
248
271
|
var BrStatesEnum = {
|
|
249
272
|
AC: "AC",
|
|
@@ -378,6 +401,26 @@ var TkplayErrorNamesEnum = {
|
|
|
378
401
|
// 504
|
|
379
402
|
};
|
|
380
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
|
+
|
|
381
424
|
// src/enums/content-creation/episode-generation-quality.enum.ts
|
|
382
425
|
var EpGenerationQualityEnum = {
|
|
383
426
|
DEFAULT: "DEFAULT",
|
|
@@ -713,6 +756,52 @@ var MusicCategoriesTranslationsEnum = {
|
|
|
713
756
|
MIXED: "Misto / Variado"
|
|
714
757
|
};
|
|
715
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
|
+
|
|
716
805
|
// src/constants/global-consts.ts
|
|
717
806
|
var PRICE_PER_PROGRAM_HOUR = 12e3;
|
|
718
807
|
var MIN_CASTER_SAMPLES_DURATION_IN_SECONDS = 30;
|
|
@@ -894,8 +983,20 @@ var TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
|
894
983
|
TKPLAY_ERROR_MESSAGE_SPLITTER,
|
|
895
984
|
TkplayErrorCodesEnum,
|
|
896
985
|
TkplayErrorNamesEnum,
|
|
986
|
+
TtsProvidersEnum,
|
|
987
|
+
TtsProvidersTranslationsEnum,
|
|
897
988
|
UserRolesEnum,
|
|
898
989
|
UserRolesTranslationsEnum,
|
|
899
990
|
VoiceEnergyEnum,
|
|
900
|
-
VoiceEnergyTranslationsEnum
|
|
991
|
+
VoiceEnergyTranslationsEnum,
|
|
992
|
+
VoiceGenderEnum,
|
|
993
|
+
VoiceGenderTranslationsEnum,
|
|
994
|
+
VoiceProfileSourcesEnum,
|
|
995
|
+
VoiceProfileSourcesTranslationsEnum,
|
|
996
|
+
VoiceTrackSourcesEnum,
|
|
997
|
+
VoiceTrackSourcesTranslationsEnum,
|
|
998
|
+
VoiceTrackStatusEnum,
|
|
999
|
+
VoiceTrackStatusTranslationsEnum,
|
|
1000
|
+
WeekDayEnum,
|
|
1001
|
+
WeekDayTranslationsEnum
|
|
901
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",
|
|
@@ -295,6 +306,26 @@ var TkplayErrorNamesEnum = {
|
|
|
295
306
|
// 504
|
|
296
307
|
};
|
|
297
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
|
+
|
|
298
329
|
// src/enums/content-creation/episode-generation-quality.enum.ts
|
|
299
330
|
var EpGenerationQualityEnum = {
|
|
300
331
|
DEFAULT: "DEFAULT",
|
|
@@ -630,6 +661,52 @@ var MusicCategoriesTranslationsEnum = {
|
|
|
630
661
|
MIXED: "Misto / Variado"
|
|
631
662
|
};
|
|
632
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
|
+
|
|
633
710
|
// src/constants/global-consts.ts
|
|
634
711
|
var PRICE_PER_PROGRAM_HOUR = 12e3;
|
|
635
712
|
var MIN_CASTER_SAMPLES_DURATION_IN_SECONDS = 30;
|
|
@@ -810,8 +887,20 @@ export {
|
|
|
810
887
|
TKPLAY_ERROR_MESSAGE_SPLITTER,
|
|
811
888
|
TkplayErrorCodesEnum,
|
|
812
889
|
TkplayErrorNamesEnum,
|
|
890
|
+
TtsProvidersEnum,
|
|
891
|
+
TtsProvidersTranslationsEnum,
|
|
813
892
|
UserRolesEnum,
|
|
814
893
|
UserRolesTranslationsEnum,
|
|
815
894
|
VoiceEnergyEnum,
|
|
816
|
-
VoiceEnergyTranslationsEnum
|
|
895
|
+
VoiceEnergyTranslationsEnum,
|
|
896
|
+
VoiceGenderEnum,
|
|
897
|
+
VoiceGenderTranslationsEnum,
|
|
898
|
+
VoiceProfileSourcesEnum,
|
|
899
|
+
VoiceProfileSourcesTranslationsEnum,
|
|
900
|
+
VoiceTrackSourcesEnum,
|
|
901
|
+
VoiceTrackSourcesTranslationsEnum,
|
|
902
|
+
VoiceTrackStatusEnum,
|
|
903
|
+
VoiceTrackStatusTranslationsEnum,
|
|
904
|
+
WeekDayEnum,
|
|
905
|
+
WeekDayTranslationsEnum
|
|
817
906
|
};
|