@talkplay/shared-types 1.0.73 → 1.0.75
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 +8 -20
- package/dist/index.d.ts +8 -20
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -931,7 +931,7 @@ type CasterEntity = BaseEntity & {
|
|
|
931
931
|
name: string;
|
|
932
932
|
bio: string;
|
|
933
933
|
email: string;
|
|
934
|
-
password
|
|
934
|
+
password?: string;
|
|
935
935
|
voiceGender: VoiceGenderEnum;
|
|
936
936
|
segments: ProgramSegmentEnum[];
|
|
937
937
|
communicationTones: CommunicationToneEnum[];
|
|
@@ -948,7 +948,7 @@ type CasterEntity = BaseEntity & {
|
|
|
948
948
|
type RadioUserEntity = BaseEntity & {
|
|
949
949
|
name: string;
|
|
950
950
|
email: string;
|
|
951
|
-
password
|
|
951
|
+
password?: string;
|
|
952
952
|
birthDate: string;
|
|
953
953
|
role: UserRolesEnum;
|
|
954
954
|
avatarImgId: string | null;
|
|
@@ -960,7 +960,7 @@ type RadioUserEntity = BaseEntity & {
|
|
|
960
960
|
type SystemUserEntity = BaseEntity & {
|
|
961
961
|
name: string;
|
|
962
962
|
email: string;
|
|
963
|
-
password
|
|
963
|
+
password?: string;
|
|
964
964
|
role: UserRolesEnum;
|
|
965
965
|
};
|
|
966
966
|
|
|
@@ -972,51 +972,39 @@ type S3FileEntity = BaseEntity & {
|
|
|
972
972
|
radioId: string | null;
|
|
973
973
|
radio?: RadioEntity;
|
|
974
974
|
radioUserId: string | null;
|
|
975
|
-
radioUser
|
|
975
|
+
radioUser?: RadioUserEntity;
|
|
976
976
|
casterId: string | null;
|
|
977
977
|
caster?: CasterEntity;
|
|
978
978
|
programId: string | null;
|
|
979
979
|
program?: ProgramEntity;
|
|
980
980
|
};
|
|
981
|
-
type RadioUserAvatarEntity = Omit<S3FileEntity, "radioId" | "casterId" | "programId"> & {
|
|
981
|
+
type RadioUserAvatarEntity = Omit<S3FileEntity, "radioId" | "casterId" | "programId" | "radio" | "caster" | "program"> & {
|
|
982
982
|
kind: "radioUser";
|
|
983
983
|
radioUserId: string;
|
|
984
984
|
radioId: null;
|
|
985
985
|
casterId: null;
|
|
986
986
|
programId: null;
|
|
987
|
-
radio: never;
|
|
988
|
-
caster: never;
|
|
989
|
-
program: never;
|
|
990
987
|
};
|
|
991
|
-
type CasterAvatarEntity = Omit<S3FileEntity, "radioId" | "radioUserId" | "programId"> & {
|
|
988
|
+
type CasterAvatarEntity = Omit<S3FileEntity, "radioId" | "radioUserId" | "programId" | "radio" | "radioUser" | "program"> & {
|
|
992
989
|
kind: "caster";
|
|
993
990
|
casterId: string;
|
|
994
991
|
radioId: null;
|
|
995
992
|
radioUserId: null;
|
|
996
993
|
programId: null;
|
|
997
|
-
user: never;
|
|
998
|
-
radio: never;
|
|
999
|
-
program: never;
|
|
1000
994
|
};
|
|
1001
|
-
type RadioLogoEntity = Omit<S3FileEntity, "casterId" | "radioUserId" | "programId"> & {
|
|
995
|
+
type RadioLogoEntity = Omit<S3FileEntity, "casterId" | "radioUserId" | "programId" | "caster" | "radioUser" | "program"> & {
|
|
1002
996
|
kind: "radioLogo";
|
|
1003
997
|
radioId: string;
|
|
1004
998
|
radioUserId: null;
|
|
1005
999
|
casterId: null;
|
|
1006
1000
|
programId: null;
|
|
1007
|
-
radioUser: never;
|
|
1008
|
-
caster: never;
|
|
1009
|
-
program: never;
|
|
1010
1001
|
};
|
|
1011
|
-
type ProgramLogoEntity = Omit<S3FileEntity, "casterId" | "radioUserId" | "radioId"> & {
|
|
1002
|
+
type ProgramLogoEntity = Omit<S3FileEntity, "casterId" | "radioUserId" | "radioId" | "caster" | "radioUser" | "radio"> & {
|
|
1012
1003
|
kind: "programLogo";
|
|
1013
1004
|
programId: string;
|
|
1014
1005
|
radioId: null;
|
|
1015
1006
|
radioUserId: null;
|
|
1016
1007
|
casterId: null;
|
|
1017
|
-
radioUser: never;
|
|
1018
|
-
radio: never;
|
|
1019
|
-
caster: never;
|
|
1020
1008
|
};
|
|
1021
1009
|
|
|
1022
1010
|
type LegalTermEntity = Pick<BaseEntity, "id" | "createdAt"> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -931,7 +931,7 @@ type CasterEntity = BaseEntity & {
|
|
|
931
931
|
name: string;
|
|
932
932
|
bio: string;
|
|
933
933
|
email: string;
|
|
934
|
-
password
|
|
934
|
+
password?: string;
|
|
935
935
|
voiceGender: VoiceGenderEnum;
|
|
936
936
|
segments: ProgramSegmentEnum[];
|
|
937
937
|
communicationTones: CommunicationToneEnum[];
|
|
@@ -948,7 +948,7 @@ type CasterEntity = BaseEntity & {
|
|
|
948
948
|
type RadioUserEntity = BaseEntity & {
|
|
949
949
|
name: string;
|
|
950
950
|
email: string;
|
|
951
|
-
password
|
|
951
|
+
password?: string;
|
|
952
952
|
birthDate: string;
|
|
953
953
|
role: UserRolesEnum;
|
|
954
954
|
avatarImgId: string | null;
|
|
@@ -960,7 +960,7 @@ type RadioUserEntity = BaseEntity & {
|
|
|
960
960
|
type SystemUserEntity = BaseEntity & {
|
|
961
961
|
name: string;
|
|
962
962
|
email: string;
|
|
963
|
-
password
|
|
963
|
+
password?: string;
|
|
964
964
|
role: UserRolesEnum;
|
|
965
965
|
};
|
|
966
966
|
|
|
@@ -972,51 +972,39 @@ type S3FileEntity = BaseEntity & {
|
|
|
972
972
|
radioId: string | null;
|
|
973
973
|
radio?: RadioEntity;
|
|
974
974
|
radioUserId: string | null;
|
|
975
|
-
radioUser
|
|
975
|
+
radioUser?: RadioUserEntity;
|
|
976
976
|
casterId: string | null;
|
|
977
977
|
caster?: CasterEntity;
|
|
978
978
|
programId: string | null;
|
|
979
979
|
program?: ProgramEntity;
|
|
980
980
|
};
|
|
981
|
-
type RadioUserAvatarEntity = Omit<S3FileEntity, "radioId" | "casterId" | "programId"> & {
|
|
981
|
+
type RadioUserAvatarEntity = Omit<S3FileEntity, "radioId" | "casterId" | "programId" | "radio" | "caster" | "program"> & {
|
|
982
982
|
kind: "radioUser";
|
|
983
983
|
radioUserId: string;
|
|
984
984
|
radioId: null;
|
|
985
985
|
casterId: null;
|
|
986
986
|
programId: null;
|
|
987
|
-
radio: never;
|
|
988
|
-
caster: never;
|
|
989
|
-
program: never;
|
|
990
987
|
};
|
|
991
|
-
type CasterAvatarEntity = Omit<S3FileEntity, "radioId" | "radioUserId" | "programId"> & {
|
|
988
|
+
type CasterAvatarEntity = Omit<S3FileEntity, "radioId" | "radioUserId" | "programId" | "radio" | "radioUser" | "program"> & {
|
|
992
989
|
kind: "caster";
|
|
993
990
|
casterId: string;
|
|
994
991
|
radioId: null;
|
|
995
992
|
radioUserId: null;
|
|
996
993
|
programId: null;
|
|
997
|
-
user: never;
|
|
998
|
-
radio: never;
|
|
999
|
-
program: never;
|
|
1000
994
|
};
|
|
1001
|
-
type RadioLogoEntity = Omit<S3FileEntity, "casterId" | "radioUserId" | "programId"> & {
|
|
995
|
+
type RadioLogoEntity = Omit<S3FileEntity, "casterId" | "radioUserId" | "programId" | "caster" | "radioUser" | "program"> & {
|
|
1002
996
|
kind: "radioLogo";
|
|
1003
997
|
radioId: string;
|
|
1004
998
|
radioUserId: null;
|
|
1005
999
|
casterId: null;
|
|
1006
1000
|
programId: null;
|
|
1007
|
-
radioUser: never;
|
|
1008
|
-
caster: never;
|
|
1009
|
-
program: never;
|
|
1010
1001
|
};
|
|
1011
|
-
type ProgramLogoEntity = Omit<S3FileEntity, "casterId" | "radioUserId" | "radioId"> & {
|
|
1002
|
+
type ProgramLogoEntity = Omit<S3FileEntity, "casterId" | "radioUserId" | "radioId" | "caster" | "radioUser" | "radio"> & {
|
|
1012
1003
|
kind: "programLogo";
|
|
1013
1004
|
programId: string;
|
|
1014
1005
|
radioId: null;
|
|
1015
1006
|
radioUserId: null;
|
|
1016
1007
|
casterId: null;
|
|
1017
|
-
radioUser: never;
|
|
1018
|
-
radio: never;
|
|
1019
|
-
caster: never;
|
|
1020
1008
|
};
|
|
1021
1009
|
|
|
1022
1010
|
type LegalTermEntity = Pick<BaseEntity, "id" | "createdAt"> & {
|
package/dist/index.js
CHANGED
|
@@ -856,7 +856,7 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
856
856
|
LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
|
|
857
857
|
LEAD_NOT_FOUND: "Lead not found",
|
|
858
858
|
// Caster Errors
|
|
859
|
-
CASTER_VOICE_CLONING_ERROR: (provider) => `
|
|
859
|
+
CASTER_VOICE_CLONING_ERROR: (provider) => `Error while cloning caster voice at "${provider}"`,
|
|
860
860
|
CASTER_EMAIL_IS_TAKEN: "Caster email is taken",
|
|
861
861
|
CASTER_NOT_FOUND: "Caster not found",
|
|
862
862
|
CASTER_IMAGE_IS_REQUIRED: "Caster avatar image is required",
|
package/dist/index.mjs
CHANGED
|
@@ -761,7 +761,7 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
761
761
|
LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
|
|
762
762
|
LEAD_NOT_FOUND: "Lead not found",
|
|
763
763
|
// Caster Errors
|
|
764
|
-
CASTER_VOICE_CLONING_ERROR: (provider) => `
|
|
764
|
+
CASTER_VOICE_CLONING_ERROR: (provider) => `Error while cloning caster voice at "${provider}"`,
|
|
765
765
|
CASTER_EMAIL_IS_TAKEN: "Caster email is taken",
|
|
766
766
|
CASTER_NOT_FOUND: "Caster not found",
|
|
767
767
|
CASTER_IMAGE_IS_REQUIRED: "Caster avatar image is required",
|