@talkplay/shared-types 1.0.56 → 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
@@ -57,6 +57,7 @@ declare const TkplayErrorCodesEnum: {
57
57
  SESSION_NOT_FOUND: string;
58
58
  FORBIDDEN_SESSION_TYPE: string;
59
59
  FORBIDDEN_ROLE: string;
60
+ FORBBIDEN_RESOURCE: string;
60
61
  PAYMENT_UNAUTHORIZED: string;
61
62
  PAYMENT_FAIL: string;
62
63
  SUBSCRIPTION_NOT_FOUND: string;
@@ -77,6 +78,9 @@ declare const TkplayErrorCodesEnum: {
77
78
  UNABLE_TO_DELETE_USER: string;
78
79
  LEAD_RADIO_ALREADY_EXISTIS: string;
79
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;
80
84
  };
81
85
  type TkplayErrorCodesEnum = Enum<typeof TkplayErrorCodesEnum>;
82
86
 
@@ -1262,6 +1266,10 @@ type EpisodeErrorEvt = {};
1262
1266
 
1263
1267
  type EpisodeProgressEvt = {};
1264
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
+
1265
1273
  type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
1266
1274
  declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
1267
1275
 
@@ -1270,4 +1278,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
1270
1278
 
1271
1279
  declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
1272
1280
 
1273
- 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
@@ -57,6 +57,7 @@ declare const TkplayErrorCodesEnum: {
57
57
  SESSION_NOT_FOUND: string;
58
58
  FORBIDDEN_SESSION_TYPE: string;
59
59
  FORBIDDEN_ROLE: string;
60
+ FORBBIDEN_RESOURCE: string;
60
61
  PAYMENT_UNAUTHORIZED: string;
61
62
  PAYMENT_FAIL: string;
62
63
  SUBSCRIPTION_NOT_FOUND: string;
@@ -77,6 +78,9 @@ declare const TkplayErrorCodesEnum: {
77
78
  UNABLE_TO_DELETE_USER: string;
78
79
  LEAD_RADIO_ALREADY_EXISTIS: string;
79
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;
80
84
  };
81
85
  type TkplayErrorCodesEnum = Enum<typeof TkplayErrorCodesEnum>;
82
86
 
@@ -1262,6 +1266,10 @@ type EpisodeErrorEvt = {};
1262
1266
 
1263
1267
  type EpisodeProgressEvt = {};
1264
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
+
1265
1273
  type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
1266
1274
  declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
1267
1275
 
@@ -1270,4 +1278,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
1270
1278
 
1271
1279
  declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
1272
1280
 
1273
- 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,
@@ -304,6 +307,7 @@ var TkplayErrorCodesEnum = {
304
307
  SESSION_NOT_FOUND: "SESSION_NOT_FOUND",
305
308
  FORBIDDEN_SESSION_TYPE: "FORBIDDEN_SESSION_TYPE",
306
309
  FORBIDDEN_ROLE: "FORBIDDEN_ROLE",
310
+ FORBBIDEN_RESOURCE: "FORBBIDEN_RESOURCE",
307
311
  // Billing
308
312
  PAYMENT_UNAUTHORIZED: "PAYMENT_UNAUTHORIZED",
309
313
  PAYMENT_FAIL: "PAYMENT_FAIL",
@@ -329,7 +333,11 @@ var TkplayErrorCodesEnum = {
329
333
  UNABLE_TO_DELETE_USER: "UNABLE_TO_DELETE_USER",
330
334
  // Leads
331
335
  LEAD_RADIO_ALREADY_EXISTIS: "LEAD_RADIO_ALREADY_EXISTIS",
332
- 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"
333
341
  };
334
342
 
335
343
  // src/enums/commom/error-names.ts
@@ -705,6 +713,11 @@ var MusicCategoriesTranslationsEnum = {
705
713
  MIXED: "Misto / Variado"
706
714
  };
707
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
+
708
721
  // src/constants/tkplay-errors-map.ts
709
722
  var TKPLAY_ERRORS_MAP = {
710
723
  // Commoon
@@ -730,6 +743,7 @@ var TKPLAY_ERRORS_MAP = {
730
743
  RADIO_PAYMENT_DELINQUENT: "Payment required",
731
744
  SESSION_NOT_FOUND: "Session not found or expired",
732
745
  FORBIDDEN_SESSION_TYPE: "Access denied for this session type",
746
+ FORBBIDEN_RESOURCE: "The requested resource belongs to another radio",
733
747
  FORBIDDEN_ROLE: (roles) => `Access denied. Required role(s): ${roles.join(" | ")}`,
734
748
  // Billing Errors
735
749
  PAYMENT_UNAUTHORIZED: "Payment provider authentication failed",
@@ -756,7 +770,11 @@ var TKPLAY_ERRORS_MAP = {
756
770
  UNABLE_TO_DELETE_USER: "Admin users cannot be deleted",
757
771
  // Lead Errors
758
772
  LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
759
- 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`
760
778
  };
761
779
 
762
780
  // src/constants/tkplay-errors-ptbr.ts
@@ -785,6 +803,7 @@ var TKPLAY_ERRORS__PTBR = {
785
803
  SESSION_NOT_FOUND: "Sess\xE3o n\xE3o encontrada ou expirada",
786
804
  FORBIDDEN_SESSION_TYPE: "Acesso negado para este tipo de sess\xE3o",
787
805
  FORBIDDEN_ROLE: "Acesso negado para o perfil informado",
806
+ FORBBIDEN_RESOURCE: "O recurso solicitado/processado pertence \xE0 outra r\xE1dio",
788
807
  // Billing Errors
789
808
  PAYMENT_UNAUTHORIZED: "Falha na autentica\xE7\xE3o com o provedor de pagamento",
790
809
  PAYMENT_FAIL: "Falha no pagamento",
@@ -810,7 +829,11 @@ var TKPLAY_ERRORS__PTBR = {
810
829
  UNABLE_TO_DELETE_USER: "Usu\xE1rios administradores n\xE3o podem ser removidos",
811
830
  // Lead Errors
812
831
  LEAD_RADIO_ALREADY_EXISTIS: "J\xE1 existe uma r\xE1dio cadastrada com as informa\xE7\xF5es do lead",
813
- 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`
814
837
  };
815
838
 
816
839
  // src/constants/tkplay-error-message-splitter.ts
@@ -846,11 +869,14 @@ var TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
846
869
  LeadTypesTranslationsEnum,
847
870
  LegalTermTypesEnum,
848
871
  LegalTermTypesTranslationsEnum,
872
+ MAX_CASTER_SAMPLES_DURATION_IN_SECONDS,
873
+ MIN_CASTER_SAMPLES_DURATION_IN_SECONDS,
849
874
  MusicCategoriesEnum,
850
875
  MusicCategoriesTranslationsEnum,
851
876
  MusicSubGenresEnum,
852
877
  MusicSubGenresTranslationsEnum,
853
878
  NewsCategoriesEnum,
879
+ PRICE_PER_PROGRAM_HOUR,
854
880
  ProgramAudienceEnum,
855
881
  ProgramAudienceTranslationsEnum,
856
882
  ProgramDayPeriodEnum,
package/dist/index.mjs CHANGED
@@ -224,6 +224,7 @@ var TkplayErrorCodesEnum = {
224
224
  SESSION_NOT_FOUND: "SESSION_NOT_FOUND",
225
225
  FORBIDDEN_SESSION_TYPE: "FORBIDDEN_SESSION_TYPE",
226
226
  FORBIDDEN_ROLE: "FORBIDDEN_ROLE",
227
+ FORBBIDEN_RESOURCE: "FORBBIDEN_RESOURCE",
227
228
  // Billing
228
229
  PAYMENT_UNAUTHORIZED: "PAYMENT_UNAUTHORIZED",
229
230
  PAYMENT_FAIL: "PAYMENT_FAIL",
@@ -249,7 +250,11 @@ var TkplayErrorCodesEnum = {
249
250
  UNABLE_TO_DELETE_USER: "UNABLE_TO_DELETE_USER",
250
251
  // Leads
251
252
  LEAD_RADIO_ALREADY_EXISTIS: "LEAD_RADIO_ALREADY_EXISTIS",
252
- 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"
253
258
  };
254
259
 
255
260
  // src/enums/commom/error-names.ts
@@ -625,6 +630,11 @@ var MusicCategoriesTranslationsEnum = {
625
630
  MIXED: "Misto / Variado"
626
631
  };
627
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
+
628
638
  // src/constants/tkplay-errors-map.ts
629
639
  var TKPLAY_ERRORS_MAP = {
630
640
  // Commoon
@@ -650,6 +660,7 @@ var TKPLAY_ERRORS_MAP = {
650
660
  RADIO_PAYMENT_DELINQUENT: "Payment required",
651
661
  SESSION_NOT_FOUND: "Session not found or expired",
652
662
  FORBIDDEN_SESSION_TYPE: "Access denied for this session type",
663
+ FORBBIDEN_RESOURCE: "The requested resource belongs to another radio",
653
664
  FORBIDDEN_ROLE: (roles) => `Access denied. Required role(s): ${roles.join(" | ")}`,
654
665
  // Billing Errors
655
666
  PAYMENT_UNAUTHORIZED: "Payment provider authentication failed",
@@ -676,7 +687,11 @@ var TKPLAY_ERRORS_MAP = {
676
687
  UNABLE_TO_DELETE_USER: "Admin users cannot be deleted",
677
688
  // Lead Errors
678
689
  LEAD_RADIO_ALREADY_EXISTIS: "A radio with this lead infos alkready exists",
679
- 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`
680
695
  };
681
696
 
682
697
  // src/constants/tkplay-errors-ptbr.ts
@@ -705,6 +720,7 @@ var TKPLAY_ERRORS__PTBR = {
705
720
  SESSION_NOT_FOUND: "Sess\xE3o n\xE3o encontrada ou expirada",
706
721
  FORBIDDEN_SESSION_TYPE: "Acesso negado para este tipo de sess\xE3o",
707
722
  FORBIDDEN_ROLE: "Acesso negado para o perfil informado",
723
+ FORBBIDEN_RESOURCE: "O recurso solicitado/processado pertence \xE0 outra r\xE1dio",
708
724
  // Billing Errors
709
725
  PAYMENT_UNAUTHORIZED: "Falha na autentica\xE7\xE3o com o provedor de pagamento",
710
726
  PAYMENT_FAIL: "Falha no pagamento",
@@ -730,7 +746,11 @@ var TKPLAY_ERRORS__PTBR = {
730
746
  UNABLE_TO_DELETE_USER: "Usu\xE1rios administradores n\xE3o podem ser removidos",
731
747
  // Lead Errors
732
748
  LEAD_RADIO_ALREADY_EXISTIS: "J\xE1 existe uma r\xE1dio cadastrada com as informa\xE7\xF5es do lead",
733
- 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`
734
754
  };
735
755
 
736
756
  // src/constants/tkplay-error-message-splitter.ts
@@ -765,11 +785,14 @@ export {
765
785
  LeadTypesTranslationsEnum,
766
786
  LegalTermTypesEnum,
767
787
  LegalTermTypesTranslationsEnum,
788
+ MAX_CASTER_SAMPLES_DURATION_IN_SECONDS,
789
+ MIN_CASTER_SAMPLES_DURATION_IN_SECONDS,
768
790
  MusicCategoriesEnum,
769
791
  MusicCategoriesTranslationsEnum,
770
792
  MusicSubGenresEnum,
771
793
  MusicSubGenresTranslationsEnum,
772
794
  NewsCategoriesEnum,
795
+ PRICE_PER_PROGRAM_HOUR,
773
796
  ProgramAudienceEnum,
774
797
  ProgramAudienceTranslationsEnum,
775
798
  ProgramDayPeriodEnum,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkplay/shared-types",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",