@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.d.mts
CHANGED
|
@@ -78,6 +78,9 @@ declare const TkplayErrorCodesEnum: {
|
|
|
78
78
|
UNABLE_TO_DELETE_USER: string;
|
|
79
79
|
LEAD_RADIO_ALREADY_EXISTIS: string;
|
|
80
80
|
LEAD_NOT_FOUND: string;
|
|
81
|
+
CASTER_IMAGE_IS_REQUIRED: string;
|
|
82
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: string;
|
|
83
|
+
CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: string;
|
|
81
84
|
};
|
|
82
85
|
type TkplayErrorCodesEnum = Enum<typeof TkplayErrorCodesEnum>;
|
|
83
86
|
|
|
@@ -101,7 +104,29 @@ declare const TkplayErrorNamesEnum: {
|
|
|
101
104
|
};
|
|
102
105
|
type TkplayErrorNamesEnum = Enum<typeof TkplayErrorNamesEnum>;
|
|
103
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
|
+
|
|
104
128
|
declare const SessionTypesEnum: {
|
|
129
|
+
readonly CASTER_USER: "CASTER_USER";
|
|
105
130
|
readonly RADIO_USER: "RADIO_USER";
|
|
106
131
|
readonly SYSTEM_USER: "SYSTEM_USER";
|
|
107
132
|
};
|
|
@@ -272,6 +297,17 @@ declare const VoiceEnergyTranslationsEnum: {
|
|
|
272
297
|
};
|
|
273
298
|
type VoiceEnergyTranslationsEnum = Enum<typeof VoiceEnergyTranslationsEnum>;
|
|
274
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
|
+
|
|
275
311
|
declare const EpGenerationQualityEnum: {
|
|
276
312
|
readonly DEFAULT: "DEFAULT";
|
|
277
313
|
readonly MASTERIZED: "MASTERIZED";
|
|
@@ -606,6 +642,56 @@ declare const MusicCategoriesTranslationsEnum: {
|
|
|
606
642
|
};
|
|
607
643
|
type MusicCategoriesTranslationEnum = Enum<typeof MusicCategoriesTranslationsEnum>;
|
|
608
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
|
+
|
|
609
695
|
type DateString = string | Date;
|
|
610
696
|
|
|
611
697
|
type SessionUser = {
|
|
@@ -745,43 +831,23 @@ type RadioExternalMediasEntity = {
|
|
|
745
831
|
radio?: RadioEntity;
|
|
746
832
|
};
|
|
747
833
|
|
|
748
|
-
type
|
|
834
|
+
type VoiceProfileEntity = BaseEntity & {
|
|
749
835
|
name: string;
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
address?: AddressEntity;
|
|
836
|
+
source: VoiceProfileSourcesEnum;
|
|
837
|
+
provider: TtsProvidersEnum;
|
|
838
|
+
externalProviderId: string;
|
|
839
|
+
casterId?: string;
|
|
840
|
+
caster?: CasterEntity;
|
|
756
841
|
radios?: RadioEntity[];
|
|
757
842
|
programs?: ProgramEntity[];
|
|
758
843
|
};
|
|
759
844
|
|
|
760
|
-
type RadioUserEntity = BaseEntity & {
|
|
761
|
-
name: string;
|
|
762
|
-
email: string;
|
|
763
|
-
password: string;
|
|
764
|
-
birthDate: string;
|
|
765
|
-
role: UserRolesEnum;
|
|
766
|
-
avatarImgId: string | null;
|
|
767
|
-
avatarImg?: RadioUserAvatarEntity | null;
|
|
768
|
-
radioId: string;
|
|
769
|
-
radio?: RadioEntity;
|
|
770
|
-
};
|
|
771
|
-
|
|
772
|
-
type SystemUserEntity = BaseEntity & {
|
|
773
|
-
name: string;
|
|
774
|
-
email: string;
|
|
775
|
-
password: string;
|
|
776
|
-
role: UserRolesEnum;
|
|
777
|
-
};
|
|
778
|
-
|
|
779
845
|
type ProgramEntity = BaseEntity & {
|
|
780
846
|
name: string;
|
|
781
847
|
description: string;
|
|
782
848
|
blockNamePrefix: string;
|
|
783
849
|
blocksAmount: number;
|
|
784
|
-
|
|
850
|
+
durationInMinutes: number;
|
|
785
851
|
dayPeriod: ProgramDayPeriodEnum;
|
|
786
852
|
allowAiGeneratedPersonNames: boolean;
|
|
787
853
|
allowCityMentions: boolean;
|
|
@@ -797,7 +863,69 @@ type ProgramEntity = BaseEntity & {
|
|
|
797
863
|
voiceEnergy: VoiceEnergyEnum;
|
|
798
864
|
radio?: RadioEntity;
|
|
799
865
|
radioId: string;
|
|
800
|
-
|
|
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;
|
|
801
929
|
};
|
|
802
930
|
|
|
803
931
|
type S3FileEntity = BaseEntity & {
|
|
@@ -855,6 +983,59 @@ type ProgramLogoEntity = Omit<S3FileEntity, "casterId" | "radioUserId" | "radioI
|
|
|
855
983
|
caster: never;
|
|
856
984
|
};
|
|
857
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
|
+
|
|
858
1039
|
type RadioEntity = BaseEntity & {
|
|
859
1040
|
name: string;
|
|
860
1041
|
fantasyName: string;
|
|
@@ -873,6 +1054,13 @@ type RadioEntity = BaseEntity & {
|
|
|
873
1054
|
logoImg?: S3FileEntity | null;
|
|
874
1055
|
addressId: string;
|
|
875
1056
|
address?: AddressEntity;
|
|
1057
|
+
programs?: ProgramEntity[];
|
|
1058
|
+
programsDrafts?: ProgramDraftEntity[];
|
|
1059
|
+
users?: RadioUserEntity[];
|
|
1060
|
+
contracts?: RadioContractEntity[];
|
|
1061
|
+
legalAgreements?: RadioLegalAgreementEntity[];
|
|
1062
|
+
modules?: SystemModuleEntity[];
|
|
1063
|
+
voices?: VoiceProfileEntity[];
|
|
876
1064
|
subscription?: RadioSubscriptionEntity;
|
|
877
1065
|
externalMedias?: RadioExternalMediasEntity;
|
|
878
1066
|
};
|
|
@@ -899,35 +1087,6 @@ type ChargeEntity = BaseEntity & {
|
|
|
899
1087
|
couponActivation?: CouponActivationEntity;
|
|
900
1088
|
};
|
|
901
1089
|
|
|
902
|
-
type LegalTermEntity = Pick<BaseEntity, "id" | "createdAt"> & {
|
|
903
|
-
title: string;
|
|
904
|
-
version: string;
|
|
905
|
-
content: string;
|
|
906
|
-
hash: string;
|
|
907
|
-
isActive: Boolean;
|
|
908
|
-
type: LegalTermTypesEnum;
|
|
909
|
-
};
|
|
910
|
-
|
|
911
|
-
type RadioLegalAgreementEntity = Pick<BaseEntity, "id"> & {
|
|
912
|
-
ipAddress: string;
|
|
913
|
-
userAgent: string;
|
|
914
|
-
acceptedAt: DateString;
|
|
915
|
-
termId: string;
|
|
916
|
-
term?: LegalTermEntity;
|
|
917
|
-
radioId: string;
|
|
918
|
-
radio?: RadioEntity;
|
|
919
|
-
};
|
|
920
|
-
|
|
921
|
-
type UserLegalAgreementEntity = Pick<BaseEntity, "id"> & {
|
|
922
|
-
ipAddress: string;
|
|
923
|
-
userAgent: string;
|
|
924
|
-
acceptedAt: DateString;
|
|
925
|
-
termId: string;
|
|
926
|
-
term?: LegalTermEntity;
|
|
927
|
-
userId: string;
|
|
928
|
-
user?: RadioUserEntity;
|
|
929
|
-
};
|
|
930
|
-
|
|
931
1090
|
type LeadEntity = BaseEntity & {
|
|
932
1091
|
directorName: string | null;
|
|
933
1092
|
radioFantasyName: string | null;
|
|
@@ -939,22 +1098,6 @@ type LeadEntity = BaseEntity & {
|
|
|
939
1098
|
status: LeadStatusEnum;
|
|
940
1099
|
};
|
|
941
1100
|
|
|
942
|
-
type SystemModuleEntity = BaseEntity & {
|
|
943
|
-
name: string;
|
|
944
|
-
description: string;
|
|
945
|
-
shortDescription: string;
|
|
946
|
-
monthlyPrice: number;
|
|
947
|
-
color: string;
|
|
948
|
-
icon: string;
|
|
949
|
-
};
|
|
950
|
-
|
|
951
|
-
type PlanEntity = BaseEntity & {
|
|
952
|
-
name: string;
|
|
953
|
-
description: string;
|
|
954
|
-
modules: SystemModuleEntity[];
|
|
955
|
-
isMain: boolean;
|
|
956
|
-
};
|
|
957
|
-
|
|
958
1101
|
type LoginPayload = {
|
|
959
1102
|
email: string;
|
|
960
1103
|
password: string;
|
|
@@ -1039,6 +1182,37 @@ type GenerateEpisodePayload = {
|
|
|
1039
1182
|
};
|
|
1040
1183
|
type GenerateEpisodeResponse = {};
|
|
1041
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
|
+
|
|
1042
1216
|
type CreateLegalTermPayload = {
|
|
1043
1217
|
title: string;
|
|
1044
1218
|
content: string;
|
|
@@ -1056,6 +1230,18 @@ type ListLegalTermsParams = {
|
|
|
1056
1230
|
};
|
|
1057
1231
|
type ListLegalTermsResponse = PaginatedResponseDTO<LegalTermEntity>;
|
|
1058
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
|
+
|
|
1059
1245
|
type PaymentProgram = {
|
|
1060
1246
|
name: string;
|
|
1061
1247
|
duration: number;
|
|
@@ -1161,18 +1347,6 @@ type UpsertSystemModulePayload = {
|
|
|
1161
1347
|
};
|
|
1162
1348
|
type UpsertSystemModuleResponse = SystemModuleEntity;
|
|
1163
1349
|
|
|
1164
|
-
type ListProgramsParams = PaginationParams & {
|
|
1165
|
-
radioId?: string;
|
|
1166
|
-
name?: string;
|
|
1167
|
-
castersIds?: string[];
|
|
1168
|
-
};
|
|
1169
|
-
|
|
1170
|
-
type UpsertProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "casters"> & {
|
|
1171
|
-
castersIds: string[];
|
|
1172
|
-
}> & {
|
|
1173
|
-
draftId?: string;
|
|
1174
|
-
};
|
|
1175
|
-
|
|
1176
1350
|
type PassConfirmation$1 = {
|
|
1177
1351
|
passwordConfirmation: string;
|
|
1178
1352
|
};
|
|
@@ -1226,36 +1400,40 @@ type VerifyEmailAvailabilityResponse = {
|
|
|
1226
1400
|
isAvailable: boolean;
|
|
1227
1401
|
};
|
|
1228
1402
|
|
|
1229
|
-
type
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
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
|
+
}>;
|
|
1239
1420
|
|
|
1240
|
-
type
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
status?: LeadStatusEnum[];
|
|
1421
|
+
type ListVoiceProfilesParams = PaginationParams & {
|
|
1422
|
+
name?: string;
|
|
1423
|
+
source?: VoiceProfileSourcesEnum;
|
|
1424
|
+
provider?: TtsProvidersEnum;
|
|
1425
|
+
casterId?: string;
|
|
1246
1426
|
};
|
|
1247
|
-
type
|
|
1427
|
+
type ListVoiceProfilesResponse = PaginatedResponseDTO<VoiceProfileEntity & {
|
|
1428
|
+
avatarImgSrc: string;
|
|
1429
|
+
}>;
|
|
1248
1430
|
|
|
1249
|
-
type
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
type UpdateLandingPageLeadPayload = UpdateSignupLeadPayload & {
|
|
1254
|
-
directorName?: string;
|
|
1255
|
-
radioFantasyName?: string;
|
|
1256
|
-
radioComercialEmail?: string;
|
|
1257
|
-
radioFinancialEmail?: string;
|
|
1431
|
+
type ListVoiceTracksParams = PaginationParams & {
|
|
1432
|
+
programId: string;
|
|
1433
|
+
date?: `${number}-${number}-${number}`;
|
|
1434
|
+
status?: VoiceTrackStatusEnum;
|
|
1258
1435
|
};
|
|
1436
|
+
type ListVoiceTracksResponse = PaginatedResponseDTO<VoiceTrackEntity>;
|
|
1259
1437
|
|
|
1260
1438
|
type EpisodeCreatedEvt = {};
|
|
1261
1439
|
|
|
@@ -1263,6 +1441,10 @@ type EpisodeErrorEvt = {};
|
|
|
1263
1441
|
|
|
1264
1442
|
type EpisodeProgressEvt = {};
|
|
1265
1443
|
|
|
1444
|
+
declare const PRICE_PER_PROGRAM_HOUR = 12000;
|
|
1445
|
+
declare const MIN_CASTER_SAMPLES_DURATION_IN_SECONDS = 30;
|
|
1446
|
+
declare const MAX_CASTER_SAMPLES_DURATION_IN_SECONDS = 270;
|
|
1447
|
+
|
|
1266
1448
|
type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
|
|
1267
1449
|
declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
|
|
1268
1450
|
|
|
@@ -1271,4 +1453,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
|
|
|
1271
1453
|
|
|
1272
1454
|
declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
1273
1455
|
|
|
1274
|
-
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, MusicCategoriesEnum, type MusicCategoriesTranslationEnum, MusicCategoriesTranslationsEnum, type MusicProgramScriptElement, MusicSubGenresEnum, type MusicSubGenresTranslationEnum, MusicSubGenresTranslationsEnum, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, 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 };
|