@talkplay/shared-types 1.0.70 → 1.0.72

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 CHANGED
@@ -78,6 +78,8 @@ 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_EMAIL_IS_TAKEN: string;
82
+ CASTER_NOT_FOUND: string;
81
83
  CASTER_IMAGE_IS_REQUIRED: string;
82
84
  CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: string;
83
85
  CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: string;
@@ -939,8 +941,7 @@ type CasterEntity = BaseEntity & {
939
941
  voiceEnergy: VoiceEnergyEnum[];
940
942
  avatarImgId: string;
941
943
  avatarImg?: S3FileEntity;
942
- voiceProfileId: string;
943
- voiceProfile?: VoiceProfileEntity;
944
+ voiceProfiles?: VoiceProfileEntity[];
944
945
  };
945
946
 
946
947
  type RadioUserEntity = BaseEntity & {
package/dist/index.d.ts CHANGED
@@ -78,6 +78,8 @@ 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_EMAIL_IS_TAKEN: string;
82
+ CASTER_NOT_FOUND: string;
81
83
  CASTER_IMAGE_IS_REQUIRED: string;
82
84
  CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: string;
83
85
  CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: string;
@@ -939,8 +941,7 @@ type CasterEntity = BaseEntity & {
939
941
  voiceEnergy: VoiceEnergyEnum[];
940
942
  avatarImgId: string;
941
943
  avatarImg?: S3FileEntity;
942
- voiceProfileId: string;
943
- voiceProfile?: VoiceProfileEntity;
944
+ voiceProfiles?: VoiceProfileEntity[];
944
945
  };
945
946
 
946
947
  type RadioUserEntity = BaseEntity & {
package/dist/index.js CHANGED
@@ -358,6 +358,8 @@ 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_EMAIL_IS_TAKEN: "CASTER_EMAIL_IS_TAKEN",
362
+ CASTER_NOT_FOUND: "CASTER_NOT_FOUND",
361
363
  CASTER_IMAGE_IS_REQUIRED: "CASTER_IMAGE_IS_REQUIRED",
362
364
  CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: "CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT",
363
365
  CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: "CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE"
@@ -853,6 +855,8 @@ var TKPLAY_ERRORS_MAP = {
853
855
  LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
854
856
  LEAD_NOT_FOUND: "Lead not found",
855
857
  // Caster Errors
858
+ CASTER_EMAIL_IS_TAKEN: "Caster email is taken",
859
+ CASTER_NOT_FOUND: "Caster not found",
856
860
  CASTER_IMAGE_IS_REQUIRED: "Caster avatar image is required",
857
861
  CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: (duration) => `Provided samples has ${duration} seconds length. Minimum is ${MIN_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`,
858
862
  CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: (duration) => `Provided samples has ${duration} seconds length. M\xE1ximum is ${MAX_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`
@@ -912,6 +916,8 @@ var TKPLAY_ERRORS__PTBR = {
912
916
  LEAD_RADIO_ALREADY_EXISTIS: "J\xE1 existe uma r\xE1dio cadastrada com as informa\xE7\xF5es do lead",
913
917
  LEAD_NOT_FOUND: "Lead n\xE3o encontrado",
914
918
  // Caster Errors
919
+ CASTER_EMAIL_IS_TAKEN: "O email do locutor j\xE1 est\xE1 em uso",
920
+ CASTER_NOT_FOUND: "Locutor n\xE3o encontrado",
915
921
  CASTER_IMAGE_IS_REQUIRED: "A imagem de perfil do locutor \xE9 obrigat\xF3ria",
916
922
  CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: `A dura\xE7\xE3o total das amostras de \xE1udio enviadas possui menos que ${MIN_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`,
917
923
  CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: `A dura\xE7\xE3o total das amostras de \xE1udio n\xE3o deve ultrapassar ${MAX_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`
package/dist/index.mjs CHANGED
@@ -263,6 +263,8 @@ 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_EMAIL_IS_TAKEN: "CASTER_EMAIL_IS_TAKEN",
267
+ CASTER_NOT_FOUND: "CASTER_NOT_FOUND",
266
268
  CASTER_IMAGE_IS_REQUIRED: "CASTER_IMAGE_IS_REQUIRED",
267
269
  CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: "CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT",
268
270
  CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: "CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE"
@@ -758,6 +760,8 @@ var TKPLAY_ERRORS_MAP = {
758
760
  LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
759
761
  LEAD_NOT_FOUND: "Lead not found",
760
762
  // Caster Errors
763
+ CASTER_EMAIL_IS_TAKEN: "Caster email is taken",
764
+ CASTER_NOT_FOUND: "Caster not found",
761
765
  CASTER_IMAGE_IS_REQUIRED: "Caster avatar image is required",
762
766
  CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: (duration) => `Provided samples has ${duration} seconds length. Minimum is ${MIN_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`,
763
767
  CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: (duration) => `Provided samples has ${duration} seconds length. M\xE1ximum is ${MAX_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`
@@ -817,6 +821,8 @@ var TKPLAY_ERRORS__PTBR = {
817
821
  LEAD_RADIO_ALREADY_EXISTIS: "J\xE1 existe uma r\xE1dio cadastrada com as informa\xE7\xF5es do lead",
818
822
  LEAD_NOT_FOUND: "Lead n\xE3o encontrado",
819
823
  // Caster Errors
824
+ CASTER_EMAIL_IS_TAKEN: "O email do locutor j\xE1 est\xE1 em uso",
825
+ CASTER_NOT_FOUND: "Locutor n\xE3o encontrado",
820
826
  CASTER_IMAGE_IS_REQUIRED: "A imagem de perfil do locutor \xE9 obrigat\xF3ria",
821
827
  CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: `A dura\xE7\xE3o total das amostras de \xE1udio enviadas possui menos que ${MIN_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`,
822
828
  CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: `A dura\xE7\xE3o total das amostras de \xE1udio n\xE3o deve ultrapassar ${MAX_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkplay/shared-types",
3
- "version": "1.0.70",
3
+ "version": "1.0.72",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",