@talkplay/shared-types 1.0.17 → 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 +74 -56
- package/dist/index.d.ts +74 -56
- package/dist/index.js +81 -56
- package/dist/index.mjs +81 -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";
|
|
@@ -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
|
|
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";
|
|
@@ -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 =
|
|
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
|
-
|
|
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 =
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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 =
|
|
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 = {
|