@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 +90 -56
- package/dist/index.d.ts +90 -56
- package/dist/index.js +91 -56
- package/dist/index.mjs +90 -56
- package/package.json +1 -1
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
|
|
40
|
-
EFI_ERROR
|
|
41
|
-
VALIDATION_ERROR
|
|
42
|
-
MODULE_NAME_IS_TAKEN
|
|
43
|
-
MODULE_NOT_FOUND
|
|
44
|
-
PLAN_NAME_IS_TAKEN
|
|
45
|
-
PLAN_AMOUNT_INVALID
|
|
46
|
-
RADIO_EMAIL_IS_TAKEN
|
|
47
|
-
RADIO_CNPJ_IS_TAKEN
|
|
48
|
-
RADIO_NOT_FOUND
|
|
49
|
-
RADIO_CONTRACT_NOT_FOUND
|
|
50
|
-
RADIO_DIRECTOR_NOT_FOUND
|
|
51
|
-
RADIO_DIFF
|
|
52
|
-
INVALID_AUTH_TOKEN
|
|
53
|
-
MISSING_AUTH_TOKEN
|
|
54
|
-
WRONG_PASSWORD
|
|
55
|
-
RADIO_INACTIVE
|
|
56
|
-
RADIO_PAYMENT_DELINQUENT
|
|
57
|
-
SESSION_NOT_FOUND
|
|
58
|
-
FORBIDDEN_SESSION_TYPE
|
|
59
|
-
FORBIDDEN_ROLE
|
|
60
|
-
PAYMENT_UNAUTHORIZED
|
|
61
|
-
PAYMENT_FAIL
|
|
62
|
-
SUBSCRIPTION_NOT_FOUND
|
|
63
|
-
LEGAL_TERMS_NOT_FOUND
|
|
64
|
-
LEGAL_TERM_INACTIVE
|
|
65
|
-
LEGAL_TERM_TYPE_INVALID
|
|
66
|
-
COUPON_NOT_FOUND
|
|
67
|
-
INVALID_COUPON_DISCOUNT
|
|
68
|
-
COUPON_CODE_IS_TAKEN
|
|
69
|
-
PAST_COUPON_VALIDATION
|
|
70
|
-
USER_NOT_FOUND
|
|
71
|
-
USER_EMAIL_IS_TAKEN
|
|
72
|
-
USER_PASSWORDS_DONT_MATCH
|
|
73
|
-
UNABLE_TO_DELETE_USER
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
|
40
|
-
EFI_ERROR
|
|
41
|
-
VALIDATION_ERROR
|
|
42
|
-
MODULE_NAME_IS_TAKEN
|
|
43
|
-
MODULE_NOT_FOUND
|
|
44
|
-
PLAN_NAME_IS_TAKEN
|
|
45
|
-
PLAN_AMOUNT_INVALID
|
|
46
|
-
RADIO_EMAIL_IS_TAKEN
|
|
47
|
-
RADIO_CNPJ_IS_TAKEN
|
|
48
|
-
RADIO_NOT_FOUND
|
|
49
|
-
RADIO_CONTRACT_NOT_FOUND
|
|
50
|
-
RADIO_DIRECTOR_NOT_FOUND
|
|
51
|
-
RADIO_DIFF
|
|
52
|
-
INVALID_AUTH_TOKEN
|
|
53
|
-
MISSING_AUTH_TOKEN
|
|
54
|
-
WRONG_PASSWORD
|
|
55
|
-
RADIO_INACTIVE
|
|
56
|
-
RADIO_PAYMENT_DELINQUENT
|
|
57
|
-
SESSION_NOT_FOUND
|
|
58
|
-
FORBIDDEN_SESSION_TYPE
|
|
59
|
-
FORBIDDEN_ROLE
|
|
60
|
-
PAYMENT_UNAUTHORIZED
|
|
61
|
-
PAYMENT_FAIL
|
|
62
|
-
SUBSCRIPTION_NOT_FOUND
|
|
63
|
-
LEGAL_TERMS_NOT_FOUND
|
|
64
|
-
LEGAL_TERM_INACTIVE
|
|
65
|
-
LEGAL_TERM_TYPE_INVALID
|
|
66
|
-
COUPON_NOT_FOUND
|
|
67
|
-
INVALID_COUPON_DISCOUNT
|
|
68
|
-
COUPON_CODE_IS_TAKEN
|
|
69
|
-
PAST_COUPON_VALIDATION
|
|
70
|
-
USER_NOT_FOUND
|
|
71
|
-
USER_EMAIL_IS_TAKEN
|
|
72
|
-
USER_PASSWORDS_DONT_MATCH
|
|
73
|
-
UNABLE_TO_DELETE_USER
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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 =
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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 =
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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 =
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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 =
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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,
|