@talkplay/shared-types 1.0.57 → 1.0.58

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,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
 
@@ -1263,6 +1266,10 @@ type EpisodeErrorEvt = {};
1263
1266
 
1264
1267
  type EpisodeProgressEvt = {};
1265
1268
 
1269
+ declare const PRICE_PER_PROGRAM_HOUR = 12000;
1270
+ declare const MIN_CASTER_SAMPLES_DURATION_IN_SECONDS = 30;
1271
+ declare const MAX_CASTER_SAMPLES_DURATION_IN_SECONDS = 270;
1272
+
1266
1273
  type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
1267
1274
  declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
1268
1275
 
@@ -1271,4 +1278,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
1271
1278
 
1272
1279
  declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
1273
1280
 
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 };
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 };
package/dist/index.d.ts 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
 
@@ -1263,6 +1266,10 @@ type EpisodeErrorEvt = {};
1263
1266
 
1264
1267
  type EpisodeProgressEvt = {};
1265
1268
 
1269
+ declare const PRICE_PER_PROGRAM_HOUR = 12000;
1270
+ declare const MIN_CASTER_SAMPLES_DURATION_IN_SECONDS = 30;
1271
+ declare const MAX_CASTER_SAMPLES_DURATION_IN_SECONDS = 270;
1272
+
1266
1273
  type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
1267
1274
  declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
1268
1275
 
@@ -1271,4 +1278,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
1271
1278
 
1272
1279
  declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
1273
1280
 
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 };
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 };
package/dist/index.js CHANGED
@@ -49,11 +49,14 @@ __export(index_exports, {
49
49
  LeadTypesTranslationsEnum: () => LeadTypesTranslationsEnum,
50
50
  LegalTermTypesEnum: () => LegalTermTypesEnum,
51
51
  LegalTermTypesTranslationsEnum: () => LegalTermTypesTranslationsEnum,
52
+ MAX_CASTER_SAMPLES_DURATION_IN_SECONDS: () => MAX_CASTER_SAMPLES_DURATION_IN_SECONDS,
53
+ MIN_CASTER_SAMPLES_DURATION_IN_SECONDS: () => MIN_CASTER_SAMPLES_DURATION_IN_SECONDS,
52
54
  MusicCategoriesEnum: () => MusicCategoriesEnum,
53
55
  MusicCategoriesTranslationsEnum: () => MusicCategoriesTranslationsEnum,
54
56
  MusicSubGenresEnum: () => MusicSubGenresEnum,
55
57
  MusicSubGenresTranslationsEnum: () => MusicSubGenresTranslationsEnum,
56
58
  NewsCategoriesEnum: () => NewsCategoriesEnum,
59
+ PRICE_PER_PROGRAM_HOUR: () => PRICE_PER_PROGRAM_HOUR,
57
60
  ProgramAudienceEnum: () => ProgramAudienceEnum,
58
61
  ProgramAudienceTranslationsEnum: () => ProgramAudienceTranslationsEnum,
59
62
  ProgramDayPeriodEnum: () => ProgramDayPeriodEnum,
@@ -330,7 +333,11 @@ var TkplayErrorCodesEnum = {
330
333
  UNABLE_TO_DELETE_USER: "UNABLE_TO_DELETE_USER",
331
334
  // Leads
332
335
  LEAD_RADIO_ALREADY_EXISTIS: "LEAD_RADIO_ALREADY_EXISTIS",
333
- LEAD_NOT_FOUND: "LEAD_NOT_FOUND"
336
+ LEAD_NOT_FOUND: "LEAD_NOT_FOUND",
337
+ // Casters
338
+ CASTER_IMAGE_IS_REQUIRED: "CASTER_IMAGE_IS_REQUIRED",
339
+ CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: "CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT",
340
+ CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: "CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE"
334
341
  };
335
342
 
336
343
  // src/enums/commom/error-names.ts
@@ -706,6 +713,11 @@ var MusicCategoriesTranslationsEnum = {
706
713
  MIXED: "Misto / Variado"
707
714
  };
708
715
 
716
+ // src/constants/global-consts.ts
717
+ var PRICE_PER_PROGRAM_HOUR = 12e3;
718
+ var MIN_CASTER_SAMPLES_DURATION_IN_SECONDS = 30;
719
+ var MAX_CASTER_SAMPLES_DURATION_IN_SECONDS = 270;
720
+
709
721
  // src/constants/tkplay-errors-map.ts
710
722
  var TKPLAY_ERRORS_MAP = {
711
723
  // Commoon
@@ -758,7 +770,11 @@ var TKPLAY_ERRORS_MAP = {
758
770
  UNABLE_TO_DELETE_USER: "Admin users cannot be deleted",
759
771
  // Lead Errors
760
772
  LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
761
- LEAD_NOT_FOUND: "Lead not found"
773
+ LEAD_NOT_FOUND: "Lead not found",
774
+ // Caster Errors
775
+ CASTER_IMAGE_IS_REQUIRED: "Caster avatar image is required",
776
+ CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: (duration) => `Provided samples has ${duration} seconds length. Minimum is ${MIN_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`,
777
+ CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: (duration) => `Provided samples has ${duration} seconds length. M\xE1ximum is ${MAX_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`
762
778
  };
763
779
 
764
780
  // src/constants/tkplay-errors-ptbr.ts
@@ -813,7 +829,11 @@ var TKPLAY_ERRORS__PTBR = {
813
829
  UNABLE_TO_DELETE_USER: "Usu\xE1rios administradores n\xE3o podem ser removidos",
814
830
  // Lead Errors
815
831
  LEAD_RADIO_ALREADY_EXISTIS: "J\xE1 existe uma r\xE1dio cadastrada com as informa\xE7\xF5es do lead",
816
- LEAD_NOT_FOUND: "Lead n\xE3o encontrado"
832
+ LEAD_NOT_FOUND: "Lead n\xE3o encontrado",
833
+ // Caster Errors
834
+ CASTER_IMAGE_IS_REQUIRED: "A imagem de perfil do locutor \xE9 obrigat\xF3ria",
835
+ 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`,
836
+ 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`
817
837
  };
818
838
 
819
839
  // src/constants/tkplay-error-message-splitter.ts
@@ -849,11 +869,14 @@ var TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
849
869
  LeadTypesTranslationsEnum,
850
870
  LegalTermTypesEnum,
851
871
  LegalTermTypesTranslationsEnum,
872
+ MAX_CASTER_SAMPLES_DURATION_IN_SECONDS,
873
+ MIN_CASTER_SAMPLES_DURATION_IN_SECONDS,
852
874
  MusicCategoriesEnum,
853
875
  MusicCategoriesTranslationsEnum,
854
876
  MusicSubGenresEnum,
855
877
  MusicSubGenresTranslationsEnum,
856
878
  NewsCategoriesEnum,
879
+ PRICE_PER_PROGRAM_HOUR,
857
880
  ProgramAudienceEnum,
858
881
  ProgramAudienceTranslationsEnum,
859
882
  ProgramDayPeriodEnum,
package/dist/index.mjs CHANGED
@@ -250,7 +250,11 @@ var TkplayErrorCodesEnum = {
250
250
  UNABLE_TO_DELETE_USER: "UNABLE_TO_DELETE_USER",
251
251
  // Leads
252
252
  LEAD_RADIO_ALREADY_EXISTIS: "LEAD_RADIO_ALREADY_EXISTIS",
253
- LEAD_NOT_FOUND: "LEAD_NOT_FOUND"
253
+ LEAD_NOT_FOUND: "LEAD_NOT_FOUND",
254
+ // Casters
255
+ CASTER_IMAGE_IS_REQUIRED: "CASTER_IMAGE_IS_REQUIRED",
256
+ CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: "CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT",
257
+ CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: "CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE"
254
258
  };
255
259
 
256
260
  // src/enums/commom/error-names.ts
@@ -626,6 +630,11 @@ var MusicCategoriesTranslationsEnum = {
626
630
  MIXED: "Misto / Variado"
627
631
  };
628
632
 
633
+ // src/constants/global-consts.ts
634
+ var PRICE_PER_PROGRAM_HOUR = 12e3;
635
+ var MIN_CASTER_SAMPLES_DURATION_IN_SECONDS = 30;
636
+ var MAX_CASTER_SAMPLES_DURATION_IN_SECONDS = 270;
637
+
629
638
  // src/constants/tkplay-errors-map.ts
630
639
  var TKPLAY_ERRORS_MAP = {
631
640
  // Commoon
@@ -678,7 +687,11 @@ var TKPLAY_ERRORS_MAP = {
678
687
  UNABLE_TO_DELETE_USER: "Admin users cannot be deleted",
679
688
  // Lead Errors
680
689
  LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
681
- LEAD_NOT_FOUND: "Lead not found"
690
+ LEAD_NOT_FOUND: "Lead not found",
691
+ // Caster Errors
692
+ CASTER_IMAGE_IS_REQUIRED: "Caster avatar image is required",
693
+ CASTER_AUDIO_SAMPLES_DURATION_TOO_SHORT: (duration) => `Provided samples has ${duration} seconds length. Minimum is ${MIN_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`,
694
+ CASTER_AUDIO_SAMPLES_DURATION_TOO_LARGE: (duration) => `Provided samples has ${duration} seconds length. M\xE1ximum is ${MAX_CASTER_SAMPLES_DURATION_IN_SECONDS} seconds`
682
695
  };
683
696
 
684
697
  // src/constants/tkplay-errors-ptbr.ts
@@ -733,7 +746,11 @@ var TKPLAY_ERRORS__PTBR = {
733
746
  UNABLE_TO_DELETE_USER: "Usu\xE1rios administradores n\xE3o podem ser removidos",
734
747
  // Lead Errors
735
748
  LEAD_RADIO_ALREADY_EXISTIS: "J\xE1 existe uma r\xE1dio cadastrada com as informa\xE7\xF5es do lead",
736
- LEAD_NOT_FOUND: "Lead n\xE3o encontrado"
749
+ LEAD_NOT_FOUND: "Lead n\xE3o encontrado",
750
+ // Caster Errors
751
+ CASTER_IMAGE_IS_REQUIRED: "A imagem de perfil do locutor \xE9 obrigat\xF3ria",
752
+ 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`,
753
+ 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`
737
754
  };
738
755
 
739
756
  // src/constants/tkplay-error-message-splitter.ts
@@ -768,11 +785,14 @@ export {
768
785
  LeadTypesTranslationsEnum,
769
786
  LegalTermTypesEnum,
770
787
  LegalTermTypesTranslationsEnum,
788
+ MAX_CASTER_SAMPLES_DURATION_IN_SECONDS,
789
+ MIN_CASTER_SAMPLES_DURATION_IN_SECONDS,
771
790
  MusicCategoriesEnum,
772
791
  MusicCategoriesTranslationsEnum,
773
792
  MusicSubGenresEnum,
774
793
  MusicSubGenresTranslationsEnum,
775
794
  NewsCategoriesEnum,
795
+ PRICE_PER_PROGRAM_HOUR,
776
796
  ProgramAudienceEnum,
777
797
  ProgramAudienceTranslationsEnum,
778
798
  ProgramDayPeriodEnum,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkplay/shared-types",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",