@talkplay/shared-types 1.0.72 → 1.0.74
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 +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -78,6 +78,7 @@ 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_VOICE_CLONING_ERROR: string;
|
|
81
82
|
CASTER_EMAIL_IS_TAKEN: string;
|
|
82
83
|
CASTER_NOT_FOUND: string;
|
|
83
84
|
CASTER_IMAGE_IS_REQUIRED: string;
|
|
@@ -930,7 +931,7 @@ type CasterEntity = BaseEntity & {
|
|
|
930
931
|
name: string;
|
|
931
932
|
bio: string;
|
|
932
933
|
email: string;
|
|
933
|
-
password
|
|
934
|
+
password?: string;
|
|
934
935
|
voiceGender: VoiceGenderEnum;
|
|
935
936
|
segments: ProgramSegmentEnum[];
|
|
936
937
|
communicationTones: CommunicationToneEnum[];
|
|
@@ -947,7 +948,7 @@ type CasterEntity = BaseEntity & {
|
|
|
947
948
|
type RadioUserEntity = BaseEntity & {
|
|
948
949
|
name: string;
|
|
949
950
|
email: string;
|
|
950
|
-
password
|
|
951
|
+
password?: string;
|
|
951
952
|
birthDate: string;
|
|
952
953
|
role: UserRolesEnum;
|
|
953
954
|
avatarImgId: string | null;
|
|
@@ -959,7 +960,7 @@ type RadioUserEntity = BaseEntity & {
|
|
|
959
960
|
type SystemUserEntity = BaseEntity & {
|
|
960
961
|
name: string;
|
|
961
962
|
email: string;
|
|
962
|
-
password
|
|
963
|
+
password?: string;
|
|
963
964
|
role: UserRolesEnum;
|
|
964
965
|
};
|
|
965
966
|
|
|
@@ -971,7 +972,7 @@ type S3FileEntity = BaseEntity & {
|
|
|
971
972
|
radioId: string | null;
|
|
972
973
|
radio?: RadioEntity;
|
|
973
974
|
radioUserId: string | null;
|
|
974
|
-
radioUser
|
|
975
|
+
radioUser?: RadioUserEntity;
|
|
975
976
|
casterId: string | null;
|
|
976
977
|
caster?: CasterEntity;
|
|
977
978
|
programId: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ 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_VOICE_CLONING_ERROR: string;
|
|
81
82
|
CASTER_EMAIL_IS_TAKEN: string;
|
|
82
83
|
CASTER_NOT_FOUND: string;
|
|
83
84
|
CASTER_IMAGE_IS_REQUIRED: string;
|
|
@@ -930,7 +931,7 @@ type CasterEntity = BaseEntity & {
|
|
|
930
931
|
name: string;
|
|
931
932
|
bio: string;
|
|
932
933
|
email: string;
|
|
933
|
-
password
|
|
934
|
+
password?: string;
|
|
934
935
|
voiceGender: VoiceGenderEnum;
|
|
935
936
|
segments: ProgramSegmentEnum[];
|
|
936
937
|
communicationTones: CommunicationToneEnum[];
|
|
@@ -947,7 +948,7 @@ type CasterEntity = BaseEntity & {
|
|
|
947
948
|
type RadioUserEntity = BaseEntity & {
|
|
948
949
|
name: string;
|
|
949
950
|
email: string;
|
|
950
|
-
password
|
|
951
|
+
password?: string;
|
|
951
952
|
birthDate: string;
|
|
952
953
|
role: UserRolesEnum;
|
|
953
954
|
avatarImgId: string | null;
|
|
@@ -959,7 +960,7 @@ type RadioUserEntity = BaseEntity & {
|
|
|
959
960
|
type SystemUserEntity = BaseEntity & {
|
|
960
961
|
name: string;
|
|
961
962
|
email: string;
|
|
962
|
-
password
|
|
963
|
+
password?: string;
|
|
963
964
|
role: UserRolesEnum;
|
|
964
965
|
};
|
|
965
966
|
|
|
@@ -971,7 +972,7 @@ type S3FileEntity = BaseEntity & {
|
|
|
971
972
|
radioId: string | null;
|
|
972
973
|
radio?: RadioEntity;
|
|
973
974
|
radioUserId: string | null;
|
|
974
|
-
radioUser
|
|
975
|
+
radioUser?: RadioUserEntity;
|
|
975
976
|
casterId: string | null;
|
|
976
977
|
caster?: CasterEntity;
|
|
977
978
|
programId: string | null;
|
package/dist/index.js
CHANGED
|
@@ -358,6 +358,7 @@ var TkplayErrorCodesEnum = {
|
|
|
358
358
|
LEAD_RADIO_ALREADY_EXISTIS: "LEAD_RADIO_ALREADY_EXISTIS",
|
|
359
359
|
LEAD_NOT_FOUND: "LEAD_NOT_FOUND",
|
|
360
360
|
// Casters
|
|
361
|
+
CASTER_VOICE_CLONING_ERROR: "CASTER_VOICE_CLONING_ERROR",
|
|
361
362
|
CASTER_EMAIL_IS_TAKEN: "CASTER_EMAIL_IS_TAKEN",
|
|
362
363
|
CASTER_NOT_FOUND: "CASTER_NOT_FOUND",
|
|
363
364
|
CASTER_IMAGE_IS_REQUIRED: "CASTER_IMAGE_IS_REQUIRED",
|
|
@@ -855,6 +856,7 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
855
856
|
LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
|
|
856
857
|
LEAD_NOT_FOUND: "Lead not found",
|
|
857
858
|
// Caster Errors
|
|
859
|
+
CASTER_VOICE_CLONING_ERROR: (provider) => `Error while cloning caster voice at "${provider}"`,
|
|
858
860
|
CASTER_EMAIL_IS_TAKEN: "Caster email is taken",
|
|
859
861
|
CASTER_NOT_FOUND: "Caster not found",
|
|
860
862
|
CASTER_IMAGE_IS_REQUIRED: "Caster avatar image is required",
|
|
@@ -916,6 +918,7 @@ var TKPLAY_ERRORS__PTBR = {
|
|
|
916
918
|
LEAD_RADIO_ALREADY_EXISTIS: "J\xE1 existe uma r\xE1dio cadastrada com as informa\xE7\xF5es do lead",
|
|
917
919
|
LEAD_NOT_FOUND: "Lead n\xE3o encontrado",
|
|
918
920
|
// Caster Errors
|
|
921
|
+
CASTER_VOICE_CLONING_ERROR: "Erro ao clonar a voz do locutor em um dos servi\xE7os de TTS",
|
|
919
922
|
CASTER_EMAIL_IS_TAKEN: "O email do locutor j\xE1 est\xE1 em uso",
|
|
920
923
|
CASTER_NOT_FOUND: "Locutor n\xE3o encontrado",
|
|
921
924
|
CASTER_IMAGE_IS_REQUIRED: "A imagem de perfil do locutor \xE9 obrigat\xF3ria",
|
package/dist/index.mjs
CHANGED
|
@@ -263,6 +263,7 @@ var TkplayErrorCodesEnum = {
|
|
|
263
263
|
LEAD_RADIO_ALREADY_EXISTIS: "LEAD_RADIO_ALREADY_EXISTIS",
|
|
264
264
|
LEAD_NOT_FOUND: "LEAD_NOT_FOUND",
|
|
265
265
|
// Casters
|
|
266
|
+
CASTER_VOICE_CLONING_ERROR: "CASTER_VOICE_CLONING_ERROR",
|
|
266
267
|
CASTER_EMAIL_IS_TAKEN: "CASTER_EMAIL_IS_TAKEN",
|
|
267
268
|
CASTER_NOT_FOUND: "CASTER_NOT_FOUND",
|
|
268
269
|
CASTER_IMAGE_IS_REQUIRED: "CASTER_IMAGE_IS_REQUIRED",
|
|
@@ -760,6 +761,7 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
760
761
|
LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
|
|
761
762
|
LEAD_NOT_FOUND: "Lead not found",
|
|
762
763
|
// Caster Errors
|
|
764
|
+
CASTER_VOICE_CLONING_ERROR: (provider) => `Error while cloning caster voice at "${provider}"`,
|
|
763
765
|
CASTER_EMAIL_IS_TAKEN: "Caster email is taken",
|
|
764
766
|
CASTER_NOT_FOUND: "Caster not found",
|
|
765
767
|
CASTER_IMAGE_IS_REQUIRED: "Caster avatar image is required",
|
|
@@ -821,6 +823,7 @@ var TKPLAY_ERRORS__PTBR = {
|
|
|
821
823
|
LEAD_RADIO_ALREADY_EXISTIS: "J\xE1 existe uma r\xE1dio cadastrada com as informa\xE7\xF5es do lead",
|
|
822
824
|
LEAD_NOT_FOUND: "Lead n\xE3o encontrado",
|
|
823
825
|
// Caster Errors
|
|
826
|
+
CASTER_VOICE_CLONING_ERROR: "Erro ao clonar a voz do locutor em um dos servi\xE7os de TTS",
|
|
824
827
|
CASTER_EMAIL_IS_TAKEN: "O email do locutor j\xE1 est\xE1 em uso",
|
|
825
828
|
CASTER_NOT_FOUND: "Locutor n\xE3o encontrado",
|
|
826
829
|
CASTER_IMAGE_IS_REQUIRED: "A imagem de perfil do locutor \xE9 obrigat\xF3ria",
|