@talkplay/shared-types 1.0.18 → 1.0.22

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";
@@ -187,6 +189,14 @@ declare const LegalTermTypesTranslationsEnum: {
187
189
  };
188
190
  type LegalTermTypesTranslationsEnum = Enum<typeof LegalTermTypesTranslationsEnum>;
189
191
 
192
+ declare const LeadStatusEnum: {
193
+ readonly PENDING: "PENDING";
194
+ readonly IN_PROSPECTION: "IN_PROSPECTION";
195
+ readonly CONVERTED: "CONVERTED";
196
+ readonly FAILED: "FAILED";
197
+ };
198
+ type LeadStatusEnum = Enum<typeof LeadStatusEnum>;
199
+
190
200
  declare const AudioBitratesEnum: {
191
201
  readonly "32k": "32k";
192
202
  readonly "48k": "48k";
@@ -526,6 +536,10 @@ type UserLegalAgreementEntity = Pick<BaseEntity, "id"> & {
526
536
  user?: RadioUserEntity;
527
537
  };
528
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,26 @@ type UpdateSystemUserPaswordPayload = {
765
779
  passwordConfirmation: string;
766
780
  };
767
781
 
782
+ type VerifyEmailAvailabilityResponse = {
783
+ isAvailable: boolean;
784
+ };
785
+
786
+ type CreateLeadPayload = Omit<LeadEntity, "status" | keyof BaseEntity>;
787
+
788
+ type ListLeadsParams = PaginationParams & {
789
+ cnpj?: string;
790
+ fantasyName?: string;
791
+ comercialEmail?: string;
792
+ financialEmail?: string;
793
+ wppNumber?: string;
794
+ status: LeadStatusEnum;
795
+ };
796
+ type ListLeadsResponse = PaginatedResponseDTO<LeadEntity>;
797
+
798
+ type UpdateLeadPayload = {
799
+ status: LeadStatusEnum;
800
+ };
801
+
768
802
  type EpisodeCreatedEvt = {};
769
803
 
770
804
  type EpisodeErrorEvt = {};
@@ -779,4 +813,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
779
813
 
780
814
  declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
781
815
 
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 };
816
+ 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 CreateLeadPayload, 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, LeadStatusEnum, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListCouponsParams, type ListCouponsResponse, type ListLeadsParams, type ListLeadsResponse, 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 UpdateLeadPayload, 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";
@@ -187,6 +189,14 @@ declare const LegalTermTypesTranslationsEnum: {
187
189
  };
188
190
  type LegalTermTypesTranslationsEnum = Enum<typeof LegalTermTypesTranslationsEnum>;
189
191
 
192
+ declare const LeadStatusEnum: {
193
+ readonly PENDING: "PENDING";
194
+ readonly IN_PROSPECTION: "IN_PROSPECTION";
195
+ readonly CONVERTED: "CONVERTED";
196
+ readonly FAILED: "FAILED";
197
+ };
198
+ type LeadStatusEnum = Enum<typeof LeadStatusEnum>;
199
+
190
200
  declare const AudioBitratesEnum: {
191
201
  readonly "32k": "32k";
192
202
  readonly "48k": "48k";
@@ -526,6 +536,10 @@ type UserLegalAgreementEntity = Pick<BaseEntity, "id"> & {
526
536
  user?: RadioUserEntity;
527
537
  };
528
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,26 @@ type UpdateSystemUserPaswordPayload = {
765
779
  passwordConfirmation: string;
766
780
  };
767
781
 
782
+ type VerifyEmailAvailabilityResponse = {
783
+ isAvailable: boolean;
784
+ };
785
+
786
+ type CreateLeadPayload = Omit<LeadEntity, "status" | keyof BaseEntity>;
787
+
788
+ type ListLeadsParams = PaginationParams & {
789
+ cnpj?: string;
790
+ fantasyName?: string;
791
+ comercialEmail?: string;
792
+ financialEmail?: string;
793
+ wppNumber?: string;
794
+ status: LeadStatusEnum;
795
+ };
796
+ type ListLeadsResponse = PaginatedResponseDTO<LeadEntity>;
797
+
798
+ type UpdateLeadPayload = {
799
+ status: LeadStatusEnum;
800
+ };
801
+
768
802
  type EpisodeCreatedEvt = {};
769
803
 
770
804
  type EpisodeErrorEvt = {};
@@ -779,4 +813,4 @@ declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
779
813
 
780
814
  declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
781
815
 
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 };
816
+ 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 CreateLeadPayload, 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, LeadStatusEnum, type LegalTermEntity, LegalTermTypesEnum, LegalTermTypesTranslationsEnum, type ListChargesParams, type ListCouponsParams, type ListCouponsResponse, type ListLeadsParams, type ListLeadsResponse, 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 UpdateLeadPayload, 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
@@ -32,6 +32,7 @@ __export(index_exports, {
32
32
  EpGenerationTypesEnum: () => EpGenerationTypesEnum,
33
33
  FFmpegAudioCurveEnum: () => FFmpegAudioCurveEnum,
34
34
  JobsEnum: () => JobsEnum,
35
+ LeadStatusEnum: () => LeadStatusEnum,
35
36
  LegalTermTypesEnum: () => LegalTermTypesEnum,
36
37
  LegalTermTypesTranslationsEnum: () => LegalTermTypesTranslationsEnum,
37
38
  NewsCategoriesEnum: () => NewsCategoriesEnum,
@@ -136,64 +137,89 @@ var JobsEnum = {
136
137
  };
137
138
 
138
139
  // 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 || {});
140
+ var TkplayErrorCodesEnum = {
141
+ // Commom
142
+ EFI_ERROR: "EFI_ERROR",
143
+ VALIDATION_ERROR: "VALIDATION_ERROR",
144
+ // Module
145
+ MODULE_NAME_IS_TAKEN: "MODULE_NAME_IS_TAKEN",
146
+ MODULE_NOT_FOUND: "MODULE_NOT_FOUND",
147
+ // Plan
148
+ PLAN_NAME_IS_TAKEN: "PLAN_NAME_IS_TAKEN",
149
+ PLAN_AMOUNT_INVALID: "PLAN_AMOUNT_INVALID",
150
+ // Radio
151
+ RADIO_EMAIL_IS_TAKEN: "RADIO_EMAIL_IS_TAKEN",
152
+ RADIO_CNPJ_IS_TAKEN: "RADIO_CNPJ_IS_TAKEN",
153
+ RADIO_NOT_FOUND: "RADIO_NOT_FOUND",
154
+ RADIO_CONTRACT_NOT_FOUND: "RADIO_CONTRACT_NOT_FOUND",
155
+ RADIO_DIRECTOR_NOT_FOUND: "RADIO_DIRECTOR_NOT_FOUND",
156
+ RADIO_DIFF: "RADIO_DIFF",
157
+ // Auth
158
+ INVALID_AUTH_TOKEN: "INVALID_AUTH_TOKEN",
159
+ MISSING_AUTH_TOKEN: "MISSING_AUTH_TOKEN",
160
+ WRONG_PASSWORD: "WRONG_PASSWORD",
161
+ RADIO_INACTIVE: "RADIO_INACTIVE",
162
+ RADIO_PAYMENT_DELINQUENT: "RADIO_PAYMENT_DELINQUENT",
163
+ SESSION_NOT_FOUND: "SESSION_NOT_FOUND",
164
+ FORBIDDEN_SESSION_TYPE: "FORBIDDEN_SESSION_TYPE",
165
+ FORBIDDEN_ROLE: "FORBIDDEN_ROLE",
166
+ // Billing
167
+ PAYMENT_UNAUTHORIZED: "PAYMENT_UNAUTHORIZED",
168
+ PAYMENT_FAIL: "PAYMENT_FAIL",
169
+ SUBSCRIPTION_NOT_FOUND: "SUBSCRIPTION_NOT_FOUND",
170
+ // Legal
171
+ LEGAL_TERMS_NOT_FOUND: "LEGAL_TERMS_NOT_FOUND",
172
+ LEGAL_TERM_INACTIVE: "LEGAL_TERM_INACTIVE",
173
+ LEGAL_TERM_TYPE_INVALID: "LEGAL_TERM_TYPE_INVALID",
174
+ // Coupon
175
+ COUPON_NOT_FOUND: "COUPON_NOT_FOUND",
176
+ INVALID_COUPON_DISCOUNT: "INVALID_COUPON_DISCOUNT",
177
+ COUPON_CODE_IS_TAKEN: "COUPON_CODE_IS_TAKEN",
178
+ PAST_COUPON_VALIDATION: "PAST_COUPON_VALIDATION",
179
+ // User
180
+ USER_NOT_FOUND: "USER_NOT_FOUND",
181
+ USER_EMAIL_IS_TAKEN: "USER_EMAIL_IS_TAKEN",
182
+ USER_PASSWORDS_DONT_MATCH: "USER_PASSWORDS_DONT_MATCH",
183
+ UNABLE_TO_DELETE_USER: "UNABLE_TO_DELETE_USER"
184
+ };
176
185
 
177
186
  // 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 || {});
187
+ var TkplayErrorNamesEnum = {
188
+ // Custom
189
+ EFI_ERROR: "EfiError",
190
+ // 400
191
+ VALIDATION_ERROR: "ValidationError",
192
+ // 400
193
+ BILLING_ERROR: "BillingError",
194
+ // 402
195
+ // HTTP
196
+ BAD_REQUEST: "BadRequestError",
197
+ // 400
198
+ UNAUTHORIZED: "UnauthorizedError",
199
+ // 401
200
+ FORBIDDEN: "ForbiddenError",
201
+ // 403
202
+ NOT_FOUND: "NotFoundError",
203
+ // 404
204
+ METHOD_NOT_ALLOWED: "MethodNotAllowedError",
205
+ // 405
206
+ CONFLICT: "ConflictError",
207
+ // 409
208
+ UNPROCESSABLE_ENTITY: "UnprocessableEntityError",
209
+ // 422
210
+ TOO_MANY_REQUESTS: "TooManyRequestsError",
211
+ // 429
212
+ INTERNAL_SERVER_ERROR: "InternalServerErrorError",
213
+ // 500
214
+ NOT_IMPLEMENTED: "NotImplementedError",
215
+ // 501
216
+ BAD_GATEWAY: "BadGatewayError",
217
+ // 502
218
+ SERVICE_UNAVAILABLE: "ServiceUnavailableError",
219
+ // 503
220
+ GATEWAY_TIMEOUT: "GatewayTimeoutError"
221
+ // 504
222
+ };
197
223
 
198
224
  // src/enums/content-creation/episode-generation-quality.enum.ts
199
225
  var EpGenerationQualityEnum = {
@@ -239,6 +265,14 @@ var LegalTermTypesTranslationsEnum = {
239
265
  CANCELLATION_POLICY: "Pol\xEDtica de Cancelamento e Reembolso"
240
266
  };
241
267
 
268
+ // src/enums/leads/lead-status.enum.ts
269
+ var LeadStatusEnum = {
270
+ PENDING: "PENDING",
271
+ IN_PROSPECTION: "IN_PROSPECTION",
272
+ CONVERTED: "CONVERTED",
273
+ FAILED: "FAILED"
274
+ };
275
+
242
276
  // src/enums/media/audio-bitrates.enum.ts
243
277
  var AudioBitratesEnum = {
244
278
  "32k": "32k",
@@ -413,6 +447,7 @@ var TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
413
447
  EpGenerationTypesEnum,
414
448
  FFmpegAudioCurveEnum,
415
449
  JobsEnum,
450
+ LeadStatusEnum,
416
451
  LegalTermTypesEnum,
417
452
  LegalTermTypesTranslationsEnum,
418
453
  NewsCategoriesEnum,
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 = {
@@ -187,6 +212,14 @@ var LegalTermTypesTranslationsEnum = {
187
212
  CANCELLATION_POLICY: "Pol\xEDtica de Cancelamento e Reembolso"
188
213
  };
189
214
 
215
+ // src/enums/leads/lead-status.enum.ts
216
+ var LeadStatusEnum = {
217
+ PENDING: "PENDING",
218
+ IN_PROSPECTION: "IN_PROSPECTION",
219
+ CONVERTED: "CONVERTED",
220
+ FAILED: "FAILED"
221
+ };
222
+
190
223
  // src/enums/media/audio-bitrates.enum.ts
191
224
  var AudioBitratesEnum = {
192
225
  "32k": "32k",
@@ -360,6 +393,7 @@ export {
360
393
  EpGenerationTypesEnum,
361
394
  FFmpegAudioCurveEnum,
362
395
  JobsEnum,
396
+ LeadStatusEnum,
363
397
  LegalTermTypesEnum,
364
398
  LegalTermTypesTranslationsEnum,
365
399
  NewsCategoriesEnum,
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.22",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",