@talkplay/shared-types 1.0.18 → 1.0.21

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
@@ -36,61 +36,63 @@ declare const JobsEnum: {
36
36
  };
37
37
  type JobsEnum = Enum<typeof JobsEnum>;
38
38
 
39
- declare enum TkplayErrorCodesEnum {
40
- EFI_ERROR = "EFI_ERROR",
41
- VALIDATION_ERROR = "VALIDATION_ERROR",
42
- MODULE_NAME_IS_TAKEN = "MODULE_NAME_IS_TAKEN",
43
- MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
44
- PLAN_NAME_IS_TAKEN = "PLAN_NAME_IS_TAKEN",
45
- PLAN_AMOUNT_INVALID = "PLAN_AMOUNT_INVALID",
46
- RADIO_EMAIL_IS_TAKEN = "RADIO_EMAIL_IS_TAKEN",
47
- RADIO_CNPJ_IS_TAKEN = "RADIO_CNPJ_IS_TAKEN",
48
- RADIO_NOT_FOUND = "RADIO_NOT_FOUND",
49
- RADIO_CONTRACT_NOT_FOUND = "RADIO_CONTRACT_NOT_FOUND",
50
- RADIO_DIRECTOR_NOT_FOUND = "RADIO_DIRECTOR_NOT_FOUND",
51
- RADIO_DIFF = "RADIO_DIFF",
52
- INVALID_AUTH_TOKEN = "INVALID_AUTH_TOKEN",
53
- MISSING_AUTH_TOKEN = "MISSING_AUTH_TOKEN",
54
- WRONG_PASSWORD = "WRONG_PASSWORD",
55
- RADIO_INACTIVE = "RADIO_INACTIVE",
56
- RADIO_PAYMENT_DELINQUENT = "RADIO_PAYMENT_DELINQUENT",
57
- SESSION_NOT_FOUND = "SESSION_NOT_FOUND",
58
- FORBIDDEN_SESSION_TYPE = "FORBIDDEN_SESSION_TYPE",
59
- FORBIDDEN_ROLE = "FORBIDDEN_ROLE",
60
- PAYMENT_UNAUTHORIZED = "PAYMENT_UNAUTHORIZED",
61
- PAYMENT_FAIL = "PAYMENT_FAIL",
62
- SUBSCRIPTION_NOT_FOUND = "SUBSCRIPTION_NOT_FOUND",
63
- LEGAL_TERMS_NOT_FOUND = "LEGAL_TERMS_NOT_FOUND",
64
- LEGAL_TERM_INACTIVE = "LEGAL_TERM_INACTIVE",
65
- LEGAL_TERM_TYPE_INVALID = "LEGAL_TERM_TYPE_INVALID",
66
- COUPON_NOT_FOUND = "COUPON_NOT_FOUND",
67
- INVALID_COUPON_DISCOUNT = "INVALID_COUPON_DISCOUNT",
68
- COUPON_CODE_IS_TAKEN = "COUPON_CODE_IS_TAKEN",
69
- PAST_COUPON_VALIDATION = "PAST_COUPON_VALIDATION",
70
- USER_NOT_FOUND = "USER_NOT_FOUND",
71
- USER_EMAIL_IS_TAKEN = "USER_EMAIL_IS_TAKEN",
72
- USER_PASSWORDS_DONT_MATCH = "USER_PASSWORDS_DONT_MATCH",
73
- UNABLE_TO_DELETE_USER = "UNABLE_TO_DELETE_USER"
74
- }
75
-
76
- declare enum TkplayErrorNamesEnum {
77
- EFI_ERROR = "EfiError",// 400
78
- VALIDATION_ERROR = "ValidationError",// 400
79
- BILLING_ERROR = "BillingError",// 402
80
- BAD_REQUEST = "BadRequestError",// 400
81
- UNAUTHORIZED = "UnauthorizedError",// 401
82
- FORBIDDEN = "ForbiddenError",// 403
83
- NOT_FOUND = "NotFoundError",// 404
84
- METHOD_NOT_ALLOWED = "MethodNotAllowedError",// 405
85
- CONFLICT = "ConflictError",// 409
86
- UNPROCESSABLE_ENTITY = "UnprocessableEntityError",// 422
87
- TOO_MANY_REQUESTS = "TooManyRequestsError",// 429
88
- INTERNAL_SERVER_ERROR = "InternalServerErrorError",// 500
89
- NOT_IMPLEMENTED = "NotImplementedError",// 501
90
- BAD_GATEWAY = "BadGatewayError",// 502
91
- SERVICE_UNAVAILABLE = "ServiceUnavailableError",// 503
92
- GATEWAY_TIMEOUT = "GatewayTimeoutError"
93
- }
39
+ declare const TkplayErrorCodesEnum: {
40
+ EFI_ERROR: string;
41
+ VALIDATION_ERROR: string;
42
+ MODULE_NAME_IS_TAKEN: string;
43
+ MODULE_NOT_FOUND: string;
44
+ PLAN_NAME_IS_TAKEN: string;
45
+ PLAN_AMOUNT_INVALID: string;
46
+ RADIO_EMAIL_IS_TAKEN: string;
47
+ RADIO_CNPJ_IS_TAKEN: string;
48
+ RADIO_NOT_FOUND: string;
49
+ RADIO_CONTRACT_NOT_FOUND: string;
50
+ RADIO_DIRECTOR_NOT_FOUND: string;
51
+ RADIO_DIFF: string;
52
+ INVALID_AUTH_TOKEN: string;
53
+ MISSING_AUTH_TOKEN: string;
54
+ WRONG_PASSWORD: string;
55
+ RADIO_INACTIVE: string;
56
+ RADIO_PAYMENT_DELINQUENT: string;
57
+ SESSION_NOT_FOUND: string;
58
+ FORBIDDEN_SESSION_TYPE: string;
59
+ FORBIDDEN_ROLE: string;
60
+ PAYMENT_UNAUTHORIZED: string;
61
+ PAYMENT_FAIL: string;
62
+ SUBSCRIPTION_NOT_FOUND: string;
63
+ LEGAL_TERMS_NOT_FOUND: string;
64
+ LEGAL_TERM_INACTIVE: string;
65
+ LEGAL_TERM_TYPE_INVALID: string;
66
+ COUPON_NOT_FOUND: string;
67
+ INVALID_COUPON_DISCOUNT: string;
68
+ COUPON_CODE_IS_TAKEN: string;
69
+ PAST_COUPON_VALIDATION: string;
70
+ USER_NOT_FOUND: string;
71
+ USER_EMAIL_IS_TAKEN: string;
72
+ USER_PASSWORDS_DONT_MATCH: string;
73
+ UNABLE_TO_DELETE_USER: string;
74
+ };
75
+ type TkplayErrorCodesEnum = Enum<typeof TkplayErrorCodesEnum>;
76
+
77
+ declare const TkplayErrorNamesEnum: {
78
+ EFI_ERROR: string;
79
+ VALIDATION_ERROR: string;
80
+ BILLING_ERROR: string;
81
+ BAD_REQUEST: string;
82
+ UNAUTHORIZED: string;
83
+ FORBIDDEN: string;
84
+ NOT_FOUND: string;
85
+ METHOD_NOT_ALLOWED: string;
86
+ CONFLICT: string;
87
+ UNPROCESSABLE_ENTITY: string;
88
+ TOO_MANY_REQUESTS: string;
89
+ INTERNAL_SERVER_ERROR: string;
90
+ NOT_IMPLEMENTED: string;
91
+ BAD_GATEWAY: string;
92
+ SERVICE_UNAVAILABLE: string;
93
+ GATEWAY_TIMEOUT: string;
94
+ };
95
+ type TkplayErrorNamesEnum = Enum<typeof TkplayErrorNamesEnum>;
94
96
 
95
97
  declare const SessionTypesEnum: {
96
98
  readonly RADIO_USER: "RADIO_USER";
@@ -526,6 +528,18 @@ type UserLegalAgreementEntity = Pick<BaseEntity, "id"> & {
526
528
  user?: RadioUserEntity;
527
529
  };
528
530
 
531
+ declare const LeadStatusEnum: {
532
+ readonly PENDING: "PENDING";
533
+ readonly IN_PROSPECTION: "IN_PROSPECTION";
534
+ readonly CONVERTED: "CONVERTED";
535
+ readonly FAILED: "FAILED";
536
+ };
537
+ type LeadStatusEnum = Enum<typeof LeadStatusEnum>;
538
+
539
+ type LeadEntity = BaseEntity & Pick<RadioEntity, "cnpj" | "fantasyName" | "comercialEmail" | "financialEmail" | "wppNumber"> & {
540
+ status: LeadStatusEnum;
541
+ };
542
+
529
543
  type SystemModuleEntity = BaseEntity & {
530
544
  name: string;
531
545
  description: string;
@@ -765,6 +779,10 @@ type UpdateSystemUserPaswordPayload = {
765
779
  passwordConfirmation: string;
766
780
  };
767
781
 
782
+ type VerifyEmailAvailabilityResponse = {
783
+ isAvailable: boolean;
784
+ };
785
+
768
786
  type EpisodeCreatedEvt = {};
769
787
 
770
788
  type EpisodeErrorEvt = {};
@@ -779,4 +797,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
779
797
 
780
798
  declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
781
799
 
782
- export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSystemUserPayload, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, JobsEnum, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListCouponsParams, type ListCouponsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type LoginPayload, type LoginResponse, type MusicProgramScriptElement, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, 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 UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VignetteProgramScriptElement };
800
+ export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSystemUserPayload, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, JobsEnum, type LeadEntity, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListCouponsParams, type ListCouponsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type LoginPayload, type LoginResponse, type MusicProgramScriptElement, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, 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 UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VerifyEmailAvailabilityResponse, type VignetteProgramScriptElement };
package/dist/index.d.ts CHANGED
@@ -36,61 +36,63 @@ declare const JobsEnum: {
36
36
  };
37
37
  type JobsEnum = Enum<typeof JobsEnum>;
38
38
 
39
- declare enum TkplayErrorCodesEnum {
40
- EFI_ERROR = "EFI_ERROR",
41
- VALIDATION_ERROR = "VALIDATION_ERROR",
42
- MODULE_NAME_IS_TAKEN = "MODULE_NAME_IS_TAKEN",
43
- MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
44
- PLAN_NAME_IS_TAKEN = "PLAN_NAME_IS_TAKEN",
45
- PLAN_AMOUNT_INVALID = "PLAN_AMOUNT_INVALID",
46
- RADIO_EMAIL_IS_TAKEN = "RADIO_EMAIL_IS_TAKEN",
47
- RADIO_CNPJ_IS_TAKEN = "RADIO_CNPJ_IS_TAKEN",
48
- RADIO_NOT_FOUND = "RADIO_NOT_FOUND",
49
- RADIO_CONTRACT_NOT_FOUND = "RADIO_CONTRACT_NOT_FOUND",
50
- RADIO_DIRECTOR_NOT_FOUND = "RADIO_DIRECTOR_NOT_FOUND",
51
- RADIO_DIFF = "RADIO_DIFF",
52
- INVALID_AUTH_TOKEN = "INVALID_AUTH_TOKEN",
53
- MISSING_AUTH_TOKEN = "MISSING_AUTH_TOKEN",
54
- WRONG_PASSWORD = "WRONG_PASSWORD",
55
- RADIO_INACTIVE = "RADIO_INACTIVE",
56
- RADIO_PAYMENT_DELINQUENT = "RADIO_PAYMENT_DELINQUENT",
57
- SESSION_NOT_FOUND = "SESSION_NOT_FOUND",
58
- FORBIDDEN_SESSION_TYPE = "FORBIDDEN_SESSION_TYPE",
59
- FORBIDDEN_ROLE = "FORBIDDEN_ROLE",
60
- PAYMENT_UNAUTHORIZED = "PAYMENT_UNAUTHORIZED",
61
- PAYMENT_FAIL = "PAYMENT_FAIL",
62
- SUBSCRIPTION_NOT_FOUND = "SUBSCRIPTION_NOT_FOUND",
63
- LEGAL_TERMS_NOT_FOUND = "LEGAL_TERMS_NOT_FOUND",
64
- LEGAL_TERM_INACTIVE = "LEGAL_TERM_INACTIVE",
65
- LEGAL_TERM_TYPE_INVALID = "LEGAL_TERM_TYPE_INVALID",
66
- COUPON_NOT_FOUND = "COUPON_NOT_FOUND",
67
- INVALID_COUPON_DISCOUNT = "INVALID_COUPON_DISCOUNT",
68
- COUPON_CODE_IS_TAKEN = "COUPON_CODE_IS_TAKEN",
69
- PAST_COUPON_VALIDATION = "PAST_COUPON_VALIDATION",
70
- USER_NOT_FOUND = "USER_NOT_FOUND",
71
- USER_EMAIL_IS_TAKEN = "USER_EMAIL_IS_TAKEN",
72
- USER_PASSWORDS_DONT_MATCH = "USER_PASSWORDS_DONT_MATCH",
73
- UNABLE_TO_DELETE_USER = "UNABLE_TO_DELETE_USER"
74
- }
75
-
76
- declare enum TkplayErrorNamesEnum {
77
- EFI_ERROR = "EfiError",// 400
78
- VALIDATION_ERROR = "ValidationError",// 400
79
- BILLING_ERROR = "BillingError",// 402
80
- BAD_REQUEST = "BadRequestError",// 400
81
- UNAUTHORIZED = "UnauthorizedError",// 401
82
- FORBIDDEN = "ForbiddenError",// 403
83
- NOT_FOUND = "NotFoundError",// 404
84
- METHOD_NOT_ALLOWED = "MethodNotAllowedError",// 405
85
- CONFLICT = "ConflictError",// 409
86
- UNPROCESSABLE_ENTITY = "UnprocessableEntityError",// 422
87
- TOO_MANY_REQUESTS = "TooManyRequestsError",// 429
88
- INTERNAL_SERVER_ERROR = "InternalServerErrorError",// 500
89
- NOT_IMPLEMENTED = "NotImplementedError",// 501
90
- BAD_GATEWAY = "BadGatewayError",// 502
91
- SERVICE_UNAVAILABLE = "ServiceUnavailableError",// 503
92
- GATEWAY_TIMEOUT = "GatewayTimeoutError"
93
- }
39
+ declare const TkplayErrorCodesEnum: {
40
+ EFI_ERROR: string;
41
+ VALIDATION_ERROR: string;
42
+ MODULE_NAME_IS_TAKEN: string;
43
+ MODULE_NOT_FOUND: string;
44
+ PLAN_NAME_IS_TAKEN: string;
45
+ PLAN_AMOUNT_INVALID: string;
46
+ RADIO_EMAIL_IS_TAKEN: string;
47
+ RADIO_CNPJ_IS_TAKEN: string;
48
+ RADIO_NOT_FOUND: string;
49
+ RADIO_CONTRACT_NOT_FOUND: string;
50
+ RADIO_DIRECTOR_NOT_FOUND: string;
51
+ RADIO_DIFF: string;
52
+ INVALID_AUTH_TOKEN: string;
53
+ MISSING_AUTH_TOKEN: string;
54
+ WRONG_PASSWORD: string;
55
+ RADIO_INACTIVE: string;
56
+ RADIO_PAYMENT_DELINQUENT: string;
57
+ SESSION_NOT_FOUND: string;
58
+ FORBIDDEN_SESSION_TYPE: string;
59
+ FORBIDDEN_ROLE: string;
60
+ PAYMENT_UNAUTHORIZED: string;
61
+ PAYMENT_FAIL: string;
62
+ SUBSCRIPTION_NOT_FOUND: string;
63
+ LEGAL_TERMS_NOT_FOUND: string;
64
+ LEGAL_TERM_INACTIVE: string;
65
+ LEGAL_TERM_TYPE_INVALID: string;
66
+ COUPON_NOT_FOUND: string;
67
+ INVALID_COUPON_DISCOUNT: string;
68
+ COUPON_CODE_IS_TAKEN: string;
69
+ PAST_COUPON_VALIDATION: string;
70
+ USER_NOT_FOUND: string;
71
+ USER_EMAIL_IS_TAKEN: string;
72
+ USER_PASSWORDS_DONT_MATCH: string;
73
+ UNABLE_TO_DELETE_USER: string;
74
+ };
75
+ type TkplayErrorCodesEnum = Enum<typeof TkplayErrorCodesEnum>;
76
+
77
+ declare const TkplayErrorNamesEnum: {
78
+ EFI_ERROR: string;
79
+ VALIDATION_ERROR: string;
80
+ BILLING_ERROR: string;
81
+ BAD_REQUEST: string;
82
+ UNAUTHORIZED: string;
83
+ FORBIDDEN: string;
84
+ NOT_FOUND: string;
85
+ METHOD_NOT_ALLOWED: string;
86
+ CONFLICT: string;
87
+ UNPROCESSABLE_ENTITY: string;
88
+ TOO_MANY_REQUESTS: string;
89
+ INTERNAL_SERVER_ERROR: string;
90
+ NOT_IMPLEMENTED: string;
91
+ BAD_GATEWAY: string;
92
+ SERVICE_UNAVAILABLE: string;
93
+ GATEWAY_TIMEOUT: string;
94
+ };
95
+ type TkplayErrorNamesEnum = Enum<typeof TkplayErrorNamesEnum>;
94
96
 
95
97
  declare const SessionTypesEnum: {
96
98
  readonly RADIO_USER: "RADIO_USER";
@@ -526,6 +528,18 @@ type UserLegalAgreementEntity = Pick<BaseEntity, "id"> & {
526
528
  user?: RadioUserEntity;
527
529
  };
528
530
 
531
+ declare const LeadStatusEnum: {
532
+ readonly PENDING: "PENDING";
533
+ readonly IN_PROSPECTION: "IN_PROSPECTION";
534
+ readonly CONVERTED: "CONVERTED";
535
+ readonly FAILED: "FAILED";
536
+ };
537
+ type LeadStatusEnum = Enum<typeof LeadStatusEnum>;
538
+
539
+ type LeadEntity = BaseEntity & Pick<RadioEntity, "cnpj" | "fantasyName" | "comercialEmail" | "financialEmail" | "wppNumber"> & {
540
+ status: LeadStatusEnum;
541
+ };
542
+
529
543
  type SystemModuleEntity = BaseEntity & {
530
544
  name: string;
531
545
  description: string;
@@ -765,6 +779,10 @@ type UpdateSystemUserPaswordPayload = {
765
779
  passwordConfirmation: string;
766
780
  };
767
781
 
782
+ type VerifyEmailAvailabilityResponse = {
783
+ isAvailable: boolean;
784
+ };
785
+
768
786
  type EpisodeCreatedEvt = {};
769
787
 
770
788
  type EpisodeErrorEvt = {};
@@ -779,4 +797,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
779
797
 
780
798
  declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
781
799
 
782
- export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSystemUserPayload, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, JobsEnum, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListCouponsParams, type ListCouponsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type LoginPayload, type LoginResponse, type MusicProgramScriptElement, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, 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 UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VignetteProgramScriptElement };
800
+ export { type AddressEntity, AudioBitratesEnum, AudioFormatsEnum, AudioFrequenciesEnum, type BaseEntity, BrStatesEnum, type CasterAvatarEntity, type CasterEntity, type ChargeEntity, ChargeItemTypesEnum, ChargeStatusEnum, type CouponActivationEntity, type CouponEntity, CouponTypesEnum, CouponTypesTranslationsEnum, type CreateCouponPayload, type CreateCouponResponse, type CreateLegalTermAgreementPayload, type CreateLegalTermPayload, type CreateLegalTermResponse, type CreateRadioPayload, type CreateRadioUserPayload, type CreateRadioUserResponse, type CreateSystemUserPayload, type Enum, EpGenerationQualityEnum, EpGenerationTypesEnum, type EpisodeCreatedEvt, type EpisodeErrorEvt, type EpisodeProgressEvt, FFmpegAudioCurveEnum, type GenerateEpJobPayload, type GenerateEpisodePayload, type GenerateEpisodeResponse, type GetCouponByIdResponse, type GetCouponValidationResponse, type GetPenaltyValueResponse, type GetRadioDetailsResponse, JobsEnum, type LeadEntity, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListCouponsParams, type ListCouponsResponse, type ListLegalTermsParams, type ListLegalTermsResponse, type ListRadioUsersParams, type ListRadioUsersResponse, type ListRadiosParams, type ListRadiosResponse, type ListSystemModulesResponse, type ListSystemUsersParams, type ListSystemUsersResponse, type LoginPayload, type LoginResponse, type MusicProgramScriptElement, NewsCategoriesEnum, type NewsProgramScriptElement, type NewsProgramScriptElementOptions, type OffProgramScriptElement, type PaginatedResponseDTO, type Pagination, type PaginationParams, type PlanEntity, type PopulatedProgramScriptBlock, type PopulatedProgramScriptElement, type PopulatedProgramScriptEntity, type ProgramEntity, type ProgramEpisodeBlockEntity, type ProgramEpisodeEntity, type ProgramScriptElement, type ProgramScriptElementOptionsAll, ProgramScriptElementTypesEnum, type ProgramScriptEntity, RadioBandsEnum, type RadioContractEntity, type RadioEntity, type RadioLegalAgreementEntity, type RadioLogoEntity, type RadioSubscriptionEntity, RadioSubscriptionStatusEnum, 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 UpdateRadioUserPasswordPayload, type UpdateRadioUserProfilePayload, type UpdateRadioUserResponse, type UpdateRadioUserRolePayload, type UpdateSystemUserPaswordPayload, type UpdateSystemUserPayload, type UpdateSystemUserResponse, type UpsertPlanPayload, type UpsertPlanResponse, type UpsertSystemModulePayload, type UpsertSystemModuleResponse, type UpsertSystemUserResponse, type UserLegalAgreementEntity, UserRolesEnum, UserRolesTranslationsEnum, type VerifyEmailAvailabilityResponse, type VignetteProgramScriptElement };
package/dist/index.js CHANGED
@@ -136,64 +136,89 @@ var JobsEnum = {
136
136
  };
137
137
 
138
138
  // src/enums/commom/error-codes.ts
139
- var TkplayErrorCodesEnum = /* @__PURE__ */ ((TkplayErrorCodesEnum2) => {
140
- TkplayErrorCodesEnum2["EFI_ERROR"] = "EFI_ERROR";
141
- TkplayErrorCodesEnum2["VALIDATION_ERROR"] = "VALIDATION_ERROR";
142
- TkplayErrorCodesEnum2["MODULE_NAME_IS_TAKEN"] = "MODULE_NAME_IS_TAKEN";
143
- TkplayErrorCodesEnum2["MODULE_NOT_FOUND"] = "MODULE_NOT_FOUND";
144
- TkplayErrorCodesEnum2["PLAN_NAME_IS_TAKEN"] = "PLAN_NAME_IS_TAKEN";
145
- TkplayErrorCodesEnum2["PLAN_AMOUNT_INVALID"] = "PLAN_AMOUNT_INVALID";
146
- TkplayErrorCodesEnum2["RADIO_EMAIL_IS_TAKEN"] = "RADIO_EMAIL_IS_TAKEN";
147
- TkplayErrorCodesEnum2["RADIO_CNPJ_IS_TAKEN"] = "RADIO_CNPJ_IS_TAKEN";
148
- TkplayErrorCodesEnum2["RADIO_NOT_FOUND"] = "RADIO_NOT_FOUND";
149
- TkplayErrorCodesEnum2["RADIO_CONTRACT_NOT_FOUND"] = "RADIO_CONTRACT_NOT_FOUND";
150
- TkplayErrorCodesEnum2["RADIO_DIRECTOR_NOT_FOUND"] = "RADIO_DIRECTOR_NOT_FOUND";
151
- TkplayErrorCodesEnum2["RADIO_DIFF"] = "RADIO_DIFF";
152
- TkplayErrorCodesEnum2["INVALID_AUTH_TOKEN"] = "INVALID_AUTH_TOKEN";
153
- TkplayErrorCodesEnum2["MISSING_AUTH_TOKEN"] = "MISSING_AUTH_TOKEN";
154
- TkplayErrorCodesEnum2["WRONG_PASSWORD"] = "WRONG_PASSWORD";
155
- TkplayErrorCodesEnum2["RADIO_INACTIVE"] = "RADIO_INACTIVE";
156
- TkplayErrorCodesEnum2["RADIO_PAYMENT_DELINQUENT"] = "RADIO_PAYMENT_DELINQUENT";
157
- TkplayErrorCodesEnum2["SESSION_NOT_FOUND"] = "SESSION_NOT_FOUND";
158
- TkplayErrorCodesEnum2["FORBIDDEN_SESSION_TYPE"] = "FORBIDDEN_SESSION_TYPE";
159
- TkplayErrorCodesEnum2["FORBIDDEN_ROLE"] = "FORBIDDEN_ROLE";
160
- TkplayErrorCodesEnum2["PAYMENT_UNAUTHORIZED"] = "PAYMENT_UNAUTHORIZED";
161
- TkplayErrorCodesEnum2["PAYMENT_FAIL"] = "PAYMENT_FAIL";
162
- TkplayErrorCodesEnum2["SUBSCRIPTION_NOT_FOUND"] = "SUBSCRIPTION_NOT_FOUND";
163
- TkplayErrorCodesEnum2["LEGAL_TERMS_NOT_FOUND"] = "LEGAL_TERMS_NOT_FOUND";
164
- TkplayErrorCodesEnum2["LEGAL_TERM_INACTIVE"] = "LEGAL_TERM_INACTIVE";
165
- TkplayErrorCodesEnum2["LEGAL_TERM_TYPE_INVALID"] = "LEGAL_TERM_TYPE_INVALID";
166
- TkplayErrorCodesEnum2["COUPON_NOT_FOUND"] = "COUPON_NOT_FOUND";
167
- TkplayErrorCodesEnum2["INVALID_COUPON_DISCOUNT"] = "INVALID_COUPON_DISCOUNT";
168
- TkplayErrorCodesEnum2["COUPON_CODE_IS_TAKEN"] = "COUPON_CODE_IS_TAKEN";
169
- TkplayErrorCodesEnum2["PAST_COUPON_VALIDATION"] = "PAST_COUPON_VALIDATION";
170
- TkplayErrorCodesEnum2["USER_NOT_FOUND"] = "USER_NOT_FOUND";
171
- TkplayErrorCodesEnum2["USER_EMAIL_IS_TAKEN"] = "USER_EMAIL_IS_TAKEN";
172
- TkplayErrorCodesEnum2["USER_PASSWORDS_DONT_MATCH"] = "USER_PASSWORDS_DONT_MATCH";
173
- TkplayErrorCodesEnum2["UNABLE_TO_DELETE_USER"] = "UNABLE_TO_DELETE_USER";
174
- return TkplayErrorCodesEnum2;
175
- })(TkplayErrorCodesEnum || {});
139
+ var TkplayErrorCodesEnum = {
140
+ // Commom
141
+ EFI_ERROR: "EFI_ERROR",
142
+ VALIDATION_ERROR: "VALIDATION_ERROR",
143
+ // Module
144
+ MODULE_NAME_IS_TAKEN: "MODULE_NAME_IS_TAKEN",
145
+ MODULE_NOT_FOUND: "MODULE_NOT_FOUND",
146
+ // Plan
147
+ PLAN_NAME_IS_TAKEN: "PLAN_NAME_IS_TAKEN",
148
+ PLAN_AMOUNT_INVALID: "PLAN_AMOUNT_INVALID",
149
+ // Radio
150
+ RADIO_EMAIL_IS_TAKEN: "RADIO_EMAIL_IS_TAKEN",
151
+ RADIO_CNPJ_IS_TAKEN: "RADIO_CNPJ_IS_TAKEN",
152
+ RADIO_NOT_FOUND: "RADIO_NOT_FOUND",
153
+ RADIO_CONTRACT_NOT_FOUND: "RADIO_CONTRACT_NOT_FOUND",
154
+ RADIO_DIRECTOR_NOT_FOUND: "RADIO_DIRECTOR_NOT_FOUND",
155
+ RADIO_DIFF: "RADIO_DIFF",
156
+ // Auth
157
+ INVALID_AUTH_TOKEN: "INVALID_AUTH_TOKEN",
158
+ MISSING_AUTH_TOKEN: "MISSING_AUTH_TOKEN",
159
+ WRONG_PASSWORD: "WRONG_PASSWORD",
160
+ RADIO_INACTIVE: "RADIO_INACTIVE",
161
+ RADIO_PAYMENT_DELINQUENT: "RADIO_PAYMENT_DELINQUENT",
162
+ SESSION_NOT_FOUND: "SESSION_NOT_FOUND",
163
+ FORBIDDEN_SESSION_TYPE: "FORBIDDEN_SESSION_TYPE",
164
+ FORBIDDEN_ROLE: "FORBIDDEN_ROLE",
165
+ // Billing
166
+ PAYMENT_UNAUTHORIZED: "PAYMENT_UNAUTHORIZED",
167
+ PAYMENT_FAIL: "PAYMENT_FAIL",
168
+ SUBSCRIPTION_NOT_FOUND: "SUBSCRIPTION_NOT_FOUND",
169
+ // Legal
170
+ LEGAL_TERMS_NOT_FOUND: "LEGAL_TERMS_NOT_FOUND",
171
+ LEGAL_TERM_INACTIVE: "LEGAL_TERM_INACTIVE",
172
+ LEGAL_TERM_TYPE_INVALID: "LEGAL_TERM_TYPE_INVALID",
173
+ // Coupon
174
+ COUPON_NOT_FOUND: "COUPON_NOT_FOUND",
175
+ INVALID_COUPON_DISCOUNT: "INVALID_COUPON_DISCOUNT",
176
+ COUPON_CODE_IS_TAKEN: "COUPON_CODE_IS_TAKEN",
177
+ PAST_COUPON_VALIDATION: "PAST_COUPON_VALIDATION",
178
+ // User
179
+ USER_NOT_FOUND: "USER_NOT_FOUND",
180
+ USER_EMAIL_IS_TAKEN: "USER_EMAIL_IS_TAKEN",
181
+ USER_PASSWORDS_DONT_MATCH: "USER_PASSWORDS_DONT_MATCH",
182
+ UNABLE_TO_DELETE_USER: "UNABLE_TO_DELETE_USER"
183
+ };
176
184
 
177
185
  // src/enums/commom/error-names.ts
178
- var TkplayErrorNamesEnum = /* @__PURE__ */ ((TkplayErrorNamesEnum2) => {
179
- TkplayErrorNamesEnum2["EFI_ERROR"] = "EfiError";
180
- TkplayErrorNamesEnum2["VALIDATION_ERROR"] = "ValidationError";
181
- TkplayErrorNamesEnum2["BILLING_ERROR"] = "BillingError";
182
- TkplayErrorNamesEnum2["BAD_REQUEST"] = "BadRequestError";
183
- TkplayErrorNamesEnum2["UNAUTHORIZED"] = "UnauthorizedError";
184
- TkplayErrorNamesEnum2["FORBIDDEN"] = "ForbiddenError";
185
- TkplayErrorNamesEnum2["NOT_FOUND"] = "NotFoundError";
186
- TkplayErrorNamesEnum2["METHOD_NOT_ALLOWED"] = "MethodNotAllowedError";
187
- TkplayErrorNamesEnum2["CONFLICT"] = "ConflictError";
188
- TkplayErrorNamesEnum2["UNPROCESSABLE_ENTITY"] = "UnprocessableEntityError";
189
- TkplayErrorNamesEnum2["TOO_MANY_REQUESTS"] = "TooManyRequestsError";
190
- TkplayErrorNamesEnum2["INTERNAL_SERVER_ERROR"] = "InternalServerErrorError";
191
- TkplayErrorNamesEnum2["NOT_IMPLEMENTED"] = "NotImplementedError";
192
- TkplayErrorNamesEnum2["BAD_GATEWAY"] = "BadGatewayError";
193
- TkplayErrorNamesEnum2["SERVICE_UNAVAILABLE"] = "ServiceUnavailableError";
194
- TkplayErrorNamesEnum2["GATEWAY_TIMEOUT"] = "GatewayTimeoutError";
195
- return TkplayErrorNamesEnum2;
196
- })(TkplayErrorNamesEnum || {});
186
+ var TkplayErrorNamesEnum = {
187
+ // Custom
188
+ EFI_ERROR: "EfiError",
189
+ // 400
190
+ VALIDATION_ERROR: "ValidationError",
191
+ // 400
192
+ BILLING_ERROR: "BillingError",
193
+ // 402
194
+ // HTTP
195
+ BAD_REQUEST: "BadRequestError",
196
+ // 400
197
+ UNAUTHORIZED: "UnauthorizedError",
198
+ // 401
199
+ FORBIDDEN: "ForbiddenError",
200
+ // 403
201
+ NOT_FOUND: "NotFoundError",
202
+ // 404
203
+ METHOD_NOT_ALLOWED: "MethodNotAllowedError",
204
+ // 405
205
+ CONFLICT: "ConflictError",
206
+ // 409
207
+ UNPROCESSABLE_ENTITY: "UnprocessableEntityError",
208
+ // 422
209
+ TOO_MANY_REQUESTS: "TooManyRequestsError",
210
+ // 429
211
+ INTERNAL_SERVER_ERROR: "InternalServerErrorError",
212
+ // 500
213
+ NOT_IMPLEMENTED: "NotImplementedError",
214
+ // 501
215
+ BAD_GATEWAY: "BadGatewayError",
216
+ // 502
217
+ SERVICE_UNAVAILABLE: "ServiceUnavailableError",
218
+ // 503
219
+ GATEWAY_TIMEOUT: "GatewayTimeoutError"
220
+ // 504
221
+ };
197
222
 
198
223
  // src/enums/content-creation/episode-generation-quality.enum.ts
199
224
  var EpGenerationQualityEnum = {
package/dist/index.mjs CHANGED
@@ -84,64 +84,89 @@ var JobsEnum = {
84
84
  };
85
85
 
86
86
  // src/enums/commom/error-codes.ts
87
- var TkplayErrorCodesEnum = /* @__PURE__ */ ((TkplayErrorCodesEnum2) => {
88
- TkplayErrorCodesEnum2["EFI_ERROR"] = "EFI_ERROR";
89
- TkplayErrorCodesEnum2["VALIDATION_ERROR"] = "VALIDATION_ERROR";
90
- TkplayErrorCodesEnum2["MODULE_NAME_IS_TAKEN"] = "MODULE_NAME_IS_TAKEN";
91
- TkplayErrorCodesEnum2["MODULE_NOT_FOUND"] = "MODULE_NOT_FOUND";
92
- TkplayErrorCodesEnum2["PLAN_NAME_IS_TAKEN"] = "PLAN_NAME_IS_TAKEN";
93
- TkplayErrorCodesEnum2["PLAN_AMOUNT_INVALID"] = "PLAN_AMOUNT_INVALID";
94
- TkplayErrorCodesEnum2["RADIO_EMAIL_IS_TAKEN"] = "RADIO_EMAIL_IS_TAKEN";
95
- TkplayErrorCodesEnum2["RADIO_CNPJ_IS_TAKEN"] = "RADIO_CNPJ_IS_TAKEN";
96
- TkplayErrorCodesEnum2["RADIO_NOT_FOUND"] = "RADIO_NOT_FOUND";
97
- TkplayErrorCodesEnum2["RADIO_CONTRACT_NOT_FOUND"] = "RADIO_CONTRACT_NOT_FOUND";
98
- TkplayErrorCodesEnum2["RADIO_DIRECTOR_NOT_FOUND"] = "RADIO_DIRECTOR_NOT_FOUND";
99
- TkplayErrorCodesEnum2["RADIO_DIFF"] = "RADIO_DIFF";
100
- TkplayErrorCodesEnum2["INVALID_AUTH_TOKEN"] = "INVALID_AUTH_TOKEN";
101
- TkplayErrorCodesEnum2["MISSING_AUTH_TOKEN"] = "MISSING_AUTH_TOKEN";
102
- TkplayErrorCodesEnum2["WRONG_PASSWORD"] = "WRONG_PASSWORD";
103
- TkplayErrorCodesEnum2["RADIO_INACTIVE"] = "RADIO_INACTIVE";
104
- TkplayErrorCodesEnum2["RADIO_PAYMENT_DELINQUENT"] = "RADIO_PAYMENT_DELINQUENT";
105
- TkplayErrorCodesEnum2["SESSION_NOT_FOUND"] = "SESSION_NOT_FOUND";
106
- TkplayErrorCodesEnum2["FORBIDDEN_SESSION_TYPE"] = "FORBIDDEN_SESSION_TYPE";
107
- TkplayErrorCodesEnum2["FORBIDDEN_ROLE"] = "FORBIDDEN_ROLE";
108
- TkplayErrorCodesEnum2["PAYMENT_UNAUTHORIZED"] = "PAYMENT_UNAUTHORIZED";
109
- TkplayErrorCodesEnum2["PAYMENT_FAIL"] = "PAYMENT_FAIL";
110
- TkplayErrorCodesEnum2["SUBSCRIPTION_NOT_FOUND"] = "SUBSCRIPTION_NOT_FOUND";
111
- TkplayErrorCodesEnum2["LEGAL_TERMS_NOT_FOUND"] = "LEGAL_TERMS_NOT_FOUND";
112
- TkplayErrorCodesEnum2["LEGAL_TERM_INACTIVE"] = "LEGAL_TERM_INACTIVE";
113
- TkplayErrorCodesEnum2["LEGAL_TERM_TYPE_INVALID"] = "LEGAL_TERM_TYPE_INVALID";
114
- TkplayErrorCodesEnum2["COUPON_NOT_FOUND"] = "COUPON_NOT_FOUND";
115
- TkplayErrorCodesEnum2["INVALID_COUPON_DISCOUNT"] = "INVALID_COUPON_DISCOUNT";
116
- TkplayErrorCodesEnum2["COUPON_CODE_IS_TAKEN"] = "COUPON_CODE_IS_TAKEN";
117
- TkplayErrorCodesEnum2["PAST_COUPON_VALIDATION"] = "PAST_COUPON_VALIDATION";
118
- TkplayErrorCodesEnum2["USER_NOT_FOUND"] = "USER_NOT_FOUND";
119
- TkplayErrorCodesEnum2["USER_EMAIL_IS_TAKEN"] = "USER_EMAIL_IS_TAKEN";
120
- TkplayErrorCodesEnum2["USER_PASSWORDS_DONT_MATCH"] = "USER_PASSWORDS_DONT_MATCH";
121
- TkplayErrorCodesEnum2["UNABLE_TO_DELETE_USER"] = "UNABLE_TO_DELETE_USER";
122
- return TkplayErrorCodesEnum2;
123
- })(TkplayErrorCodesEnum || {});
87
+ var TkplayErrorCodesEnum = {
88
+ // Commom
89
+ EFI_ERROR: "EFI_ERROR",
90
+ VALIDATION_ERROR: "VALIDATION_ERROR",
91
+ // Module
92
+ MODULE_NAME_IS_TAKEN: "MODULE_NAME_IS_TAKEN",
93
+ MODULE_NOT_FOUND: "MODULE_NOT_FOUND",
94
+ // Plan
95
+ PLAN_NAME_IS_TAKEN: "PLAN_NAME_IS_TAKEN",
96
+ PLAN_AMOUNT_INVALID: "PLAN_AMOUNT_INVALID",
97
+ // Radio
98
+ RADIO_EMAIL_IS_TAKEN: "RADIO_EMAIL_IS_TAKEN",
99
+ RADIO_CNPJ_IS_TAKEN: "RADIO_CNPJ_IS_TAKEN",
100
+ RADIO_NOT_FOUND: "RADIO_NOT_FOUND",
101
+ RADIO_CONTRACT_NOT_FOUND: "RADIO_CONTRACT_NOT_FOUND",
102
+ RADIO_DIRECTOR_NOT_FOUND: "RADIO_DIRECTOR_NOT_FOUND",
103
+ RADIO_DIFF: "RADIO_DIFF",
104
+ // Auth
105
+ INVALID_AUTH_TOKEN: "INVALID_AUTH_TOKEN",
106
+ MISSING_AUTH_TOKEN: "MISSING_AUTH_TOKEN",
107
+ WRONG_PASSWORD: "WRONG_PASSWORD",
108
+ RADIO_INACTIVE: "RADIO_INACTIVE",
109
+ RADIO_PAYMENT_DELINQUENT: "RADIO_PAYMENT_DELINQUENT",
110
+ SESSION_NOT_FOUND: "SESSION_NOT_FOUND",
111
+ FORBIDDEN_SESSION_TYPE: "FORBIDDEN_SESSION_TYPE",
112
+ FORBIDDEN_ROLE: "FORBIDDEN_ROLE",
113
+ // Billing
114
+ PAYMENT_UNAUTHORIZED: "PAYMENT_UNAUTHORIZED",
115
+ PAYMENT_FAIL: "PAYMENT_FAIL",
116
+ SUBSCRIPTION_NOT_FOUND: "SUBSCRIPTION_NOT_FOUND",
117
+ // Legal
118
+ LEGAL_TERMS_NOT_FOUND: "LEGAL_TERMS_NOT_FOUND",
119
+ LEGAL_TERM_INACTIVE: "LEGAL_TERM_INACTIVE",
120
+ LEGAL_TERM_TYPE_INVALID: "LEGAL_TERM_TYPE_INVALID",
121
+ // Coupon
122
+ COUPON_NOT_FOUND: "COUPON_NOT_FOUND",
123
+ INVALID_COUPON_DISCOUNT: "INVALID_COUPON_DISCOUNT",
124
+ COUPON_CODE_IS_TAKEN: "COUPON_CODE_IS_TAKEN",
125
+ PAST_COUPON_VALIDATION: "PAST_COUPON_VALIDATION",
126
+ // User
127
+ USER_NOT_FOUND: "USER_NOT_FOUND",
128
+ USER_EMAIL_IS_TAKEN: "USER_EMAIL_IS_TAKEN",
129
+ USER_PASSWORDS_DONT_MATCH: "USER_PASSWORDS_DONT_MATCH",
130
+ UNABLE_TO_DELETE_USER: "UNABLE_TO_DELETE_USER"
131
+ };
124
132
 
125
133
  // src/enums/commom/error-names.ts
126
- var TkplayErrorNamesEnum = /* @__PURE__ */ ((TkplayErrorNamesEnum2) => {
127
- TkplayErrorNamesEnum2["EFI_ERROR"] = "EfiError";
128
- TkplayErrorNamesEnum2["VALIDATION_ERROR"] = "ValidationError";
129
- TkplayErrorNamesEnum2["BILLING_ERROR"] = "BillingError";
130
- TkplayErrorNamesEnum2["BAD_REQUEST"] = "BadRequestError";
131
- TkplayErrorNamesEnum2["UNAUTHORIZED"] = "UnauthorizedError";
132
- TkplayErrorNamesEnum2["FORBIDDEN"] = "ForbiddenError";
133
- TkplayErrorNamesEnum2["NOT_FOUND"] = "NotFoundError";
134
- TkplayErrorNamesEnum2["METHOD_NOT_ALLOWED"] = "MethodNotAllowedError";
135
- TkplayErrorNamesEnum2["CONFLICT"] = "ConflictError";
136
- TkplayErrorNamesEnum2["UNPROCESSABLE_ENTITY"] = "UnprocessableEntityError";
137
- TkplayErrorNamesEnum2["TOO_MANY_REQUESTS"] = "TooManyRequestsError";
138
- TkplayErrorNamesEnum2["INTERNAL_SERVER_ERROR"] = "InternalServerErrorError";
139
- TkplayErrorNamesEnum2["NOT_IMPLEMENTED"] = "NotImplementedError";
140
- TkplayErrorNamesEnum2["BAD_GATEWAY"] = "BadGatewayError";
141
- TkplayErrorNamesEnum2["SERVICE_UNAVAILABLE"] = "ServiceUnavailableError";
142
- TkplayErrorNamesEnum2["GATEWAY_TIMEOUT"] = "GatewayTimeoutError";
143
- return TkplayErrorNamesEnum2;
144
- })(TkplayErrorNamesEnum || {});
134
+ var TkplayErrorNamesEnum = {
135
+ // Custom
136
+ EFI_ERROR: "EfiError",
137
+ // 400
138
+ VALIDATION_ERROR: "ValidationError",
139
+ // 400
140
+ BILLING_ERROR: "BillingError",
141
+ // 402
142
+ // HTTP
143
+ BAD_REQUEST: "BadRequestError",
144
+ // 400
145
+ UNAUTHORIZED: "UnauthorizedError",
146
+ // 401
147
+ FORBIDDEN: "ForbiddenError",
148
+ // 403
149
+ NOT_FOUND: "NotFoundError",
150
+ // 404
151
+ METHOD_NOT_ALLOWED: "MethodNotAllowedError",
152
+ // 405
153
+ CONFLICT: "ConflictError",
154
+ // 409
155
+ UNPROCESSABLE_ENTITY: "UnprocessableEntityError",
156
+ // 422
157
+ TOO_MANY_REQUESTS: "TooManyRequestsError",
158
+ // 429
159
+ INTERNAL_SERVER_ERROR: "InternalServerErrorError",
160
+ // 500
161
+ NOT_IMPLEMENTED: "NotImplementedError",
162
+ // 501
163
+ BAD_GATEWAY: "BadGatewayError",
164
+ // 502
165
+ SERVICE_UNAVAILABLE: "ServiceUnavailableError",
166
+ // 503
167
+ GATEWAY_TIMEOUT: "GatewayTimeoutError"
168
+ // 504
169
+ };
145
170
 
146
171
  // src/enums/content-creation/episode-generation-quality.enum.ts
147
172
  var EpGenerationQualityEnum = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkplay/shared-types",
3
- "version": "1.0.18",
3
+ "version": "1.0.21",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",