@talkplay/shared-types 1.0.9 → 1.0.10

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,6 +36,59 @@ declare const JobsEnum: {
36
36
  };
37
37
  type JobsEnum = Enum<typeof JobsEnum>;
38
38
 
39
+ declare enum TkplayErrorCodesEnum {
40
+ MODULE_NAME_IS_TAKEN = "MODULE_NAME_IS_TAKEN",
41
+ MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
42
+ PLAN_NAME_IS_TAKEN = "PLAN_NAME_IS_TAKEN",
43
+ PLAN_AMOUNT_INVALID = "PLAN_AMOUNT_INVALID",
44
+ RADIO_EMAIL_IS_TAKEN = "RADIO_EMAIL_IS_TAKEN",
45
+ RADIO_CNPJ_IS_TAKEN = "RADIO_CNPJ_IS_TAKEN",
46
+ RADIO_NOT_FOUND = "RADIO_NOT_FOUND",
47
+ RADIO_CONTRACT_NOT_FOUND = "RADIO_CONTRACT_NOT_FOUND",
48
+ RADIO_DIRECTOR_NOT_FOUND = "RADIO_DIRECTOR_NOT_FOUND",
49
+ RADIO_DIFF = "RADIO_DIFF",
50
+ INVALID_AUTH_TOKEN = "INVALID_AUTH_TOKEN",
51
+ MISSING_AUTH_TOKEN = "MISSING_AUTH_TOKEN",
52
+ WRONG_PASSWORD = "WRONG_PASSWORD",
53
+ RADIO_INACTIVE = "RADIO_INACTIVE",
54
+ RADIO_PAYMENT_DELINQUENT = "RADIO_PAYMENT_DELINQUENT",
55
+ SESSION_NOT_FOUND = "SESSION_NOT_FOUND",
56
+ FORBIDDEN_SESSION_TYPE = "FORBIDDEN_SESSION_TYPE",
57
+ FORBIDDEN_ROLE = "FORBIDDEN_ROLE",
58
+ PAYMENT_UNAUTHORIZED = "PAYMENT_UNAUTHORIZED",
59
+ PAYMENT_FAIL = "PAYMENT_FAIL",
60
+ SUBSCRIPTION_NOT_FOUND = "SUBSCRIPTION_NOT_FOUND",
61
+ LEGAL_TERMS_NOT_FOUND = "LEGAL_TERMS_NOT_FOUND",
62
+ LEGAL_TERM_INACTIVE = "LEGAL_TERM_INACTIVE",
63
+ LEGAL_TERM_TYPE_INVALID = "LEGAL_TERM_TYPE_INVALID",
64
+ COUPON_NOT_FOUND = "COUPON_NOT_FOUND",
65
+ INVALID_COUPON_DISCOUNT = "INVALID_COUPON_DISCOUNT",
66
+ COUPON_CODE_IS_TAKEN = "COUPON_CODE_IS_TAKEN",
67
+ PAST_COUPON_VALIDATION = "PAST_COUPON_VALIDATION",
68
+ USER_NOT_FOUND = "USER_NOT_FOUND",
69
+ USER_EMAIL_IS_TAKEN = "USER_EMAIL_IS_TAKEN",
70
+ USER_PASSWORDS_DONT_MATCH = "USER_PASSWORDS_DONT_MATCH",
71
+ UNABLE_TO_DELETE_USER = "UNABLE_TO_DELETE_USER"
72
+ }
73
+
74
+ declare enum TkplayErrorNamesEnum {
75
+ EFI_ERROR = "EfiError",// 400
76
+ BILLING_ERROR = "BillingError",// 402
77
+ BAD_REQUEST = "BadRequest",// 400
78
+ UNAUTHORIZED = "Unauthorized",// 401
79
+ FORBIDDEN = "Forbidden",// 403
80
+ NOT_FOUND = "NotFound",// 404
81
+ METHOD_NOT_ALLOWED = "MethodNotAllowed",// 405
82
+ CONFLICT = "Conflict",// 409
83
+ UNPROCESSABLE_ENTITY = "UnprocessableEntity",// 422
84
+ TOO_MANY_REQUESTS = "TooManyRequests",// 429
85
+ INTERNAL_SERVER_ERROR = "InternalServerError",// 500
86
+ NOT_IMPLEMENTED = "NotImplemented",// 501
87
+ BAD_GATEWAY = "BadGateway",// 502
88
+ SERVICE_UNAVAILABLE = "ServiceUnavailable",// 503
89
+ GATEWAY_TIMEOUT = "GatewayTimeout"
90
+ }
91
+
39
92
  declare const SessionTypesEnum: {
40
93
  readonly RADIO_USER: "RADIO_USER";
41
94
  readonly SYSTEM_USER: "SYSTEM_USER";
@@ -247,59 +300,6 @@ type AddressEntity = {
247
300
  state: BrStatesEnum;
248
301
  };
249
302
 
250
- declare enum TkplayErrorCodesEnum {
251
- MODULE_NAME_IS_TAKEN = "MODULE_NAME_IS_TAKEN",
252
- MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
253
- PLAN_NAME_IS_TAKEN = "PLAN_NAME_IS_TAKEN",
254
- PLAN_AMOUNT_INVALID = "PLAN_AMOUNT_INVALID",
255
- RADIO_EMAIL_IS_TAKEN = "RADIO_EMAIL_IS_TAKEN",
256
- RADIO_CNPJ_IS_TAKEN = "RADIO_CNPJ_IS_TAKEN",
257
- RADIO_NOT_FOUND = "RADIO_NOT_FOUND",
258
- RADIO_CONTRACT_NOT_FOUND = "RADIO_CONTRACT_NOT_FOUND",
259
- RADIO_DIRECTOR_NOT_FOUND = "RADIO_DIRECTOR_NOT_FOUND",
260
- RADIO_DIFF = "RADIO_DIFF",
261
- INVALID_AUTH_TOKEN = "INVALID_AUTH_TOKEN",
262
- MISSING_AUTH_TOKEN = "MISSING_AUTH_TOKEN",
263
- WRONG_PASSWORD = "WRONG_PASSWORD",
264
- RADIO_INACTIVE = "RADIO_INACTIVE",
265
- RADIO_PAYMENT_DELINQUENT = "RADIO_PAYMENT_DELINQUENT",
266
- SESSION_NOT_FOUND = "SESSION_NOT_FOUND",
267
- FORBIDDEN_SESSION_TYPE = "FORBIDDEN_SESSION_TYPE",
268
- FORBIDDEN_ROLE = "FORBIDDEN_ROLE",
269
- PAYMENT_UNAUTHORIZED = "PAYMENT_UNAUTHORIZED",
270
- PAYMENT_FAIL = "PAYMENT_FAIL",
271
- SUBSCRIPTION_NOT_FOUND = "SUBSCRIPTION_NOT_FOUND",
272
- LEGAL_TERMS_NOT_FOUND = "LEGAL_TERMS_NOT_FOUND",
273
- LEGAL_TERM_INACTIVE = "LEGAL_TERM_INACTIVE",
274
- LEGAL_TERM_TYPE_INVALID = "LEGAL_TERM_TYPE_INVALID",
275
- COUPON_NOT_FOUND = "COUPON_NOT_FOUND",
276
- INVALID_COUPON_DISCOUNT = "INVALID_COUPON_DISCOUNT",
277
- COUPON_CODE_IS_TAKEN = "COUPON_CODE_IS_TAKEN",
278
- PAST_COUPON_VALIDATION = "PAST_COUPON_VALIDATION",
279
- USER_NOT_FOUND = "USER_NOT_FOUND",
280
- USER_EMAIL_IS_TAKEN = "USER_EMAIL_IS_TAKEN",
281
- USER_PASSWORDS_DONT_MATCH = "USER_PASSWORDS_DONT_MATCH",
282
- UNABLE_TO_DELETE_USER = "UNABLE_TO_DELETE_USER"
283
- }
284
-
285
- declare enum TkplayErrorNamesEnum {
286
- EFI_ERROR = "EfiError",// 400
287
- BILLING_ERROR = "BillingError",// 402
288
- BAD_REQUEST = "BadRequest",// 400
289
- UNAUTHORIZED = "Unauthorized",// 401
290
- FORBIDDEN = "Forbidden",// 403
291
- NOT_FOUND = "NotFound",// 404
292
- METHOD_NOT_ALLOWED = "MethodNotAllowed",// 405
293
- CONFLICT = "Conflict",// 409
294
- UNPROCESSABLE_ENTITY = "UnprocessableEntity",// 422
295
- TOO_MANY_REQUESTS = "TooManyRequests",// 429
296
- INTERNAL_SERVER_ERROR = "InternalServerError",// 500
297
- NOT_IMPLEMENTED = "NotImplemented",// 501
298
- BAD_GATEWAY = "BadGateway",// 502
299
- SERVICE_UNAVAILABLE = "ServiceUnavailable",// 503
300
- GATEWAY_TIMEOUT = "GatewayTimeout"
301
- }
302
-
303
303
  type TkplayErrorEntity = {
304
304
  message: string;
305
305
  name: `${TkplayErrorNamesEnum}`;
@@ -768,4 +768,4 @@ type EpisodeErrorEvt = {};
768
768
 
769
769
  type EpisodeProgressEvt = {};
770
770
 
771
- 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, type TkplayErrorEntity, 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 };
771
+ 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, TkplayErrorCodesEnum, type TkplayErrorEntity, TkplayErrorNamesEnum, 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 };
package/dist/index.d.ts CHANGED
@@ -36,6 +36,59 @@ declare const JobsEnum: {
36
36
  };
37
37
  type JobsEnum = Enum<typeof JobsEnum>;
38
38
 
39
+ declare enum TkplayErrorCodesEnum {
40
+ MODULE_NAME_IS_TAKEN = "MODULE_NAME_IS_TAKEN",
41
+ MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
42
+ PLAN_NAME_IS_TAKEN = "PLAN_NAME_IS_TAKEN",
43
+ PLAN_AMOUNT_INVALID = "PLAN_AMOUNT_INVALID",
44
+ RADIO_EMAIL_IS_TAKEN = "RADIO_EMAIL_IS_TAKEN",
45
+ RADIO_CNPJ_IS_TAKEN = "RADIO_CNPJ_IS_TAKEN",
46
+ RADIO_NOT_FOUND = "RADIO_NOT_FOUND",
47
+ RADIO_CONTRACT_NOT_FOUND = "RADIO_CONTRACT_NOT_FOUND",
48
+ RADIO_DIRECTOR_NOT_FOUND = "RADIO_DIRECTOR_NOT_FOUND",
49
+ RADIO_DIFF = "RADIO_DIFF",
50
+ INVALID_AUTH_TOKEN = "INVALID_AUTH_TOKEN",
51
+ MISSING_AUTH_TOKEN = "MISSING_AUTH_TOKEN",
52
+ WRONG_PASSWORD = "WRONG_PASSWORD",
53
+ RADIO_INACTIVE = "RADIO_INACTIVE",
54
+ RADIO_PAYMENT_DELINQUENT = "RADIO_PAYMENT_DELINQUENT",
55
+ SESSION_NOT_FOUND = "SESSION_NOT_FOUND",
56
+ FORBIDDEN_SESSION_TYPE = "FORBIDDEN_SESSION_TYPE",
57
+ FORBIDDEN_ROLE = "FORBIDDEN_ROLE",
58
+ PAYMENT_UNAUTHORIZED = "PAYMENT_UNAUTHORIZED",
59
+ PAYMENT_FAIL = "PAYMENT_FAIL",
60
+ SUBSCRIPTION_NOT_FOUND = "SUBSCRIPTION_NOT_FOUND",
61
+ LEGAL_TERMS_NOT_FOUND = "LEGAL_TERMS_NOT_FOUND",
62
+ LEGAL_TERM_INACTIVE = "LEGAL_TERM_INACTIVE",
63
+ LEGAL_TERM_TYPE_INVALID = "LEGAL_TERM_TYPE_INVALID",
64
+ COUPON_NOT_FOUND = "COUPON_NOT_FOUND",
65
+ INVALID_COUPON_DISCOUNT = "INVALID_COUPON_DISCOUNT",
66
+ COUPON_CODE_IS_TAKEN = "COUPON_CODE_IS_TAKEN",
67
+ PAST_COUPON_VALIDATION = "PAST_COUPON_VALIDATION",
68
+ USER_NOT_FOUND = "USER_NOT_FOUND",
69
+ USER_EMAIL_IS_TAKEN = "USER_EMAIL_IS_TAKEN",
70
+ USER_PASSWORDS_DONT_MATCH = "USER_PASSWORDS_DONT_MATCH",
71
+ UNABLE_TO_DELETE_USER = "UNABLE_TO_DELETE_USER"
72
+ }
73
+
74
+ declare enum TkplayErrorNamesEnum {
75
+ EFI_ERROR = "EfiError",// 400
76
+ BILLING_ERROR = "BillingError",// 402
77
+ BAD_REQUEST = "BadRequest",// 400
78
+ UNAUTHORIZED = "Unauthorized",// 401
79
+ FORBIDDEN = "Forbidden",// 403
80
+ NOT_FOUND = "NotFound",// 404
81
+ METHOD_NOT_ALLOWED = "MethodNotAllowed",// 405
82
+ CONFLICT = "Conflict",// 409
83
+ UNPROCESSABLE_ENTITY = "UnprocessableEntity",// 422
84
+ TOO_MANY_REQUESTS = "TooManyRequests",// 429
85
+ INTERNAL_SERVER_ERROR = "InternalServerError",// 500
86
+ NOT_IMPLEMENTED = "NotImplemented",// 501
87
+ BAD_GATEWAY = "BadGateway",// 502
88
+ SERVICE_UNAVAILABLE = "ServiceUnavailable",// 503
89
+ GATEWAY_TIMEOUT = "GatewayTimeout"
90
+ }
91
+
39
92
  declare const SessionTypesEnum: {
40
93
  readonly RADIO_USER: "RADIO_USER";
41
94
  readonly SYSTEM_USER: "SYSTEM_USER";
@@ -247,59 +300,6 @@ type AddressEntity = {
247
300
  state: BrStatesEnum;
248
301
  };
249
302
 
250
- declare enum TkplayErrorCodesEnum {
251
- MODULE_NAME_IS_TAKEN = "MODULE_NAME_IS_TAKEN",
252
- MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
253
- PLAN_NAME_IS_TAKEN = "PLAN_NAME_IS_TAKEN",
254
- PLAN_AMOUNT_INVALID = "PLAN_AMOUNT_INVALID",
255
- RADIO_EMAIL_IS_TAKEN = "RADIO_EMAIL_IS_TAKEN",
256
- RADIO_CNPJ_IS_TAKEN = "RADIO_CNPJ_IS_TAKEN",
257
- RADIO_NOT_FOUND = "RADIO_NOT_FOUND",
258
- RADIO_CONTRACT_NOT_FOUND = "RADIO_CONTRACT_NOT_FOUND",
259
- RADIO_DIRECTOR_NOT_FOUND = "RADIO_DIRECTOR_NOT_FOUND",
260
- RADIO_DIFF = "RADIO_DIFF",
261
- INVALID_AUTH_TOKEN = "INVALID_AUTH_TOKEN",
262
- MISSING_AUTH_TOKEN = "MISSING_AUTH_TOKEN",
263
- WRONG_PASSWORD = "WRONG_PASSWORD",
264
- RADIO_INACTIVE = "RADIO_INACTIVE",
265
- RADIO_PAYMENT_DELINQUENT = "RADIO_PAYMENT_DELINQUENT",
266
- SESSION_NOT_FOUND = "SESSION_NOT_FOUND",
267
- FORBIDDEN_SESSION_TYPE = "FORBIDDEN_SESSION_TYPE",
268
- FORBIDDEN_ROLE = "FORBIDDEN_ROLE",
269
- PAYMENT_UNAUTHORIZED = "PAYMENT_UNAUTHORIZED",
270
- PAYMENT_FAIL = "PAYMENT_FAIL",
271
- SUBSCRIPTION_NOT_FOUND = "SUBSCRIPTION_NOT_FOUND",
272
- LEGAL_TERMS_NOT_FOUND = "LEGAL_TERMS_NOT_FOUND",
273
- LEGAL_TERM_INACTIVE = "LEGAL_TERM_INACTIVE",
274
- LEGAL_TERM_TYPE_INVALID = "LEGAL_TERM_TYPE_INVALID",
275
- COUPON_NOT_FOUND = "COUPON_NOT_FOUND",
276
- INVALID_COUPON_DISCOUNT = "INVALID_COUPON_DISCOUNT",
277
- COUPON_CODE_IS_TAKEN = "COUPON_CODE_IS_TAKEN",
278
- PAST_COUPON_VALIDATION = "PAST_COUPON_VALIDATION",
279
- USER_NOT_FOUND = "USER_NOT_FOUND",
280
- USER_EMAIL_IS_TAKEN = "USER_EMAIL_IS_TAKEN",
281
- USER_PASSWORDS_DONT_MATCH = "USER_PASSWORDS_DONT_MATCH",
282
- UNABLE_TO_DELETE_USER = "UNABLE_TO_DELETE_USER"
283
- }
284
-
285
- declare enum TkplayErrorNamesEnum {
286
- EFI_ERROR = "EfiError",// 400
287
- BILLING_ERROR = "BillingError",// 402
288
- BAD_REQUEST = "BadRequest",// 400
289
- UNAUTHORIZED = "Unauthorized",// 401
290
- FORBIDDEN = "Forbidden",// 403
291
- NOT_FOUND = "NotFound",// 404
292
- METHOD_NOT_ALLOWED = "MethodNotAllowed",// 405
293
- CONFLICT = "Conflict",// 409
294
- UNPROCESSABLE_ENTITY = "UnprocessableEntity",// 422
295
- TOO_MANY_REQUESTS = "TooManyRequests",// 429
296
- INTERNAL_SERVER_ERROR = "InternalServerError",// 500
297
- NOT_IMPLEMENTED = "NotImplemented",// 501
298
- BAD_GATEWAY = "BadGateway",// 502
299
- SERVICE_UNAVAILABLE = "ServiceUnavailable",// 503
300
- GATEWAY_TIMEOUT = "GatewayTimeout"
301
- }
302
-
303
303
  type TkplayErrorEntity = {
304
304
  message: string;
305
305
  name: `${TkplayErrorNamesEnum}`;
@@ -768,4 +768,4 @@ type EpisodeErrorEvt = {};
768
768
 
769
769
  type EpisodeProgressEvt = {};
770
770
 
771
- 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, type TkplayErrorEntity, 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 };
771
+ 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, TkplayErrorCodesEnum, type TkplayErrorEntity, TkplayErrorNamesEnum, 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 };
package/dist/index.js CHANGED
@@ -40,6 +40,8 @@ __export(index_exports, {
40
40
  RadioSubscriptionStatusEnum: () => RadioSubscriptionStatusEnum,
41
41
  S3DirectoriesEnum: () => S3DirectoriesEnum,
42
42
  SessionTypesEnum: () => SessionTypesEnum,
43
+ TkplayErrorCodesEnum: () => TkplayErrorCodesEnum,
44
+ TkplayErrorNamesEnum: () => TkplayErrorNamesEnum,
43
45
  UserRolesEnum: () => UserRolesEnum,
44
46
  UserRolesTranslationsEnum: () => UserRolesTranslationsEnum
45
47
  });
@@ -130,6 +132,63 @@ var JobsEnum = {
130
132
  GENERATE_EP_BLOCK: "generate-episode-block"
131
133
  };
132
134
 
135
+ // src/enums/commom/error-codes.ts
136
+ var TkplayErrorCodesEnum = /* @__PURE__ */ ((TkplayErrorCodesEnum2) => {
137
+ TkplayErrorCodesEnum2["MODULE_NAME_IS_TAKEN"] = "MODULE_NAME_IS_TAKEN";
138
+ TkplayErrorCodesEnum2["MODULE_NOT_FOUND"] = "MODULE_NOT_FOUND";
139
+ TkplayErrorCodesEnum2["PLAN_NAME_IS_TAKEN"] = "PLAN_NAME_IS_TAKEN";
140
+ TkplayErrorCodesEnum2["PLAN_AMOUNT_INVALID"] = "PLAN_AMOUNT_INVALID";
141
+ TkplayErrorCodesEnum2["RADIO_EMAIL_IS_TAKEN"] = "RADIO_EMAIL_IS_TAKEN";
142
+ TkplayErrorCodesEnum2["RADIO_CNPJ_IS_TAKEN"] = "RADIO_CNPJ_IS_TAKEN";
143
+ TkplayErrorCodesEnum2["RADIO_NOT_FOUND"] = "RADIO_NOT_FOUND";
144
+ TkplayErrorCodesEnum2["RADIO_CONTRACT_NOT_FOUND"] = "RADIO_CONTRACT_NOT_FOUND";
145
+ TkplayErrorCodesEnum2["RADIO_DIRECTOR_NOT_FOUND"] = "RADIO_DIRECTOR_NOT_FOUND";
146
+ TkplayErrorCodesEnum2["RADIO_DIFF"] = "RADIO_DIFF";
147
+ TkplayErrorCodesEnum2["INVALID_AUTH_TOKEN"] = "INVALID_AUTH_TOKEN";
148
+ TkplayErrorCodesEnum2["MISSING_AUTH_TOKEN"] = "MISSING_AUTH_TOKEN";
149
+ TkplayErrorCodesEnum2["WRONG_PASSWORD"] = "WRONG_PASSWORD";
150
+ TkplayErrorCodesEnum2["RADIO_INACTIVE"] = "RADIO_INACTIVE";
151
+ TkplayErrorCodesEnum2["RADIO_PAYMENT_DELINQUENT"] = "RADIO_PAYMENT_DELINQUENT";
152
+ TkplayErrorCodesEnum2["SESSION_NOT_FOUND"] = "SESSION_NOT_FOUND";
153
+ TkplayErrorCodesEnum2["FORBIDDEN_SESSION_TYPE"] = "FORBIDDEN_SESSION_TYPE";
154
+ TkplayErrorCodesEnum2["FORBIDDEN_ROLE"] = "FORBIDDEN_ROLE";
155
+ TkplayErrorCodesEnum2["PAYMENT_UNAUTHORIZED"] = "PAYMENT_UNAUTHORIZED";
156
+ TkplayErrorCodesEnum2["PAYMENT_FAIL"] = "PAYMENT_FAIL";
157
+ TkplayErrorCodesEnum2["SUBSCRIPTION_NOT_FOUND"] = "SUBSCRIPTION_NOT_FOUND";
158
+ TkplayErrorCodesEnum2["LEGAL_TERMS_NOT_FOUND"] = "LEGAL_TERMS_NOT_FOUND";
159
+ TkplayErrorCodesEnum2["LEGAL_TERM_INACTIVE"] = "LEGAL_TERM_INACTIVE";
160
+ TkplayErrorCodesEnum2["LEGAL_TERM_TYPE_INVALID"] = "LEGAL_TERM_TYPE_INVALID";
161
+ TkplayErrorCodesEnum2["COUPON_NOT_FOUND"] = "COUPON_NOT_FOUND";
162
+ TkplayErrorCodesEnum2["INVALID_COUPON_DISCOUNT"] = "INVALID_COUPON_DISCOUNT";
163
+ TkplayErrorCodesEnum2["COUPON_CODE_IS_TAKEN"] = "COUPON_CODE_IS_TAKEN";
164
+ TkplayErrorCodesEnum2["PAST_COUPON_VALIDATION"] = "PAST_COUPON_VALIDATION";
165
+ TkplayErrorCodesEnum2["USER_NOT_FOUND"] = "USER_NOT_FOUND";
166
+ TkplayErrorCodesEnum2["USER_EMAIL_IS_TAKEN"] = "USER_EMAIL_IS_TAKEN";
167
+ TkplayErrorCodesEnum2["USER_PASSWORDS_DONT_MATCH"] = "USER_PASSWORDS_DONT_MATCH";
168
+ TkplayErrorCodesEnum2["UNABLE_TO_DELETE_USER"] = "UNABLE_TO_DELETE_USER";
169
+ return TkplayErrorCodesEnum2;
170
+ })(TkplayErrorCodesEnum || {});
171
+
172
+ // src/enums/commom/error-names.ts
173
+ var TkplayErrorNamesEnum = /* @__PURE__ */ ((TkplayErrorNamesEnum2) => {
174
+ TkplayErrorNamesEnum2["EFI_ERROR"] = "EfiError";
175
+ TkplayErrorNamesEnum2["BILLING_ERROR"] = "BillingError";
176
+ TkplayErrorNamesEnum2["BAD_REQUEST"] = "BadRequest";
177
+ TkplayErrorNamesEnum2["UNAUTHORIZED"] = "Unauthorized";
178
+ TkplayErrorNamesEnum2["FORBIDDEN"] = "Forbidden";
179
+ TkplayErrorNamesEnum2["NOT_FOUND"] = "NotFound";
180
+ TkplayErrorNamesEnum2["METHOD_NOT_ALLOWED"] = "MethodNotAllowed";
181
+ TkplayErrorNamesEnum2["CONFLICT"] = "Conflict";
182
+ TkplayErrorNamesEnum2["UNPROCESSABLE_ENTITY"] = "UnprocessableEntity";
183
+ TkplayErrorNamesEnum2["TOO_MANY_REQUESTS"] = "TooManyRequests";
184
+ TkplayErrorNamesEnum2["INTERNAL_SERVER_ERROR"] = "InternalServerError";
185
+ TkplayErrorNamesEnum2["NOT_IMPLEMENTED"] = "NotImplemented";
186
+ TkplayErrorNamesEnum2["BAD_GATEWAY"] = "BadGateway";
187
+ TkplayErrorNamesEnum2["SERVICE_UNAVAILABLE"] = "ServiceUnavailable";
188
+ TkplayErrorNamesEnum2["GATEWAY_TIMEOUT"] = "GatewayTimeout";
189
+ return TkplayErrorNamesEnum2;
190
+ })(TkplayErrorNamesEnum || {});
191
+
133
192
  // src/enums/content-creation/episode-generation-quality.enum.ts
134
193
  var EpGenerationQualityEnum = {
135
194
  DEFAULT: "DEFAULT",
@@ -261,6 +320,8 @@ var UserRolesTranslationsEnum = {
261
320
  RadioSubscriptionStatusEnum,
262
321
  S3DirectoriesEnum,
263
322
  SessionTypesEnum,
323
+ TkplayErrorCodesEnum,
324
+ TkplayErrorNamesEnum,
264
325
  UserRolesEnum,
265
326
  UserRolesTranslationsEnum
266
327
  });
package/dist/index.mjs CHANGED
@@ -83,6 +83,63 @@ var JobsEnum = {
83
83
  GENERATE_EP_BLOCK: "generate-episode-block"
84
84
  };
85
85
 
86
+ // src/enums/commom/error-codes.ts
87
+ var TkplayErrorCodesEnum = /* @__PURE__ */ ((TkplayErrorCodesEnum2) => {
88
+ TkplayErrorCodesEnum2["MODULE_NAME_IS_TAKEN"] = "MODULE_NAME_IS_TAKEN";
89
+ TkplayErrorCodesEnum2["MODULE_NOT_FOUND"] = "MODULE_NOT_FOUND";
90
+ TkplayErrorCodesEnum2["PLAN_NAME_IS_TAKEN"] = "PLAN_NAME_IS_TAKEN";
91
+ TkplayErrorCodesEnum2["PLAN_AMOUNT_INVALID"] = "PLAN_AMOUNT_INVALID";
92
+ TkplayErrorCodesEnum2["RADIO_EMAIL_IS_TAKEN"] = "RADIO_EMAIL_IS_TAKEN";
93
+ TkplayErrorCodesEnum2["RADIO_CNPJ_IS_TAKEN"] = "RADIO_CNPJ_IS_TAKEN";
94
+ TkplayErrorCodesEnum2["RADIO_NOT_FOUND"] = "RADIO_NOT_FOUND";
95
+ TkplayErrorCodesEnum2["RADIO_CONTRACT_NOT_FOUND"] = "RADIO_CONTRACT_NOT_FOUND";
96
+ TkplayErrorCodesEnum2["RADIO_DIRECTOR_NOT_FOUND"] = "RADIO_DIRECTOR_NOT_FOUND";
97
+ TkplayErrorCodesEnum2["RADIO_DIFF"] = "RADIO_DIFF";
98
+ TkplayErrorCodesEnum2["INVALID_AUTH_TOKEN"] = "INVALID_AUTH_TOKEN";
99
+ TkplayErrorCodesEnum2["MISSING_AUTH_TOKEN"] = "MISSING_AUTH_TOKEN";
100
+ TkplayErrorCodesEnum2["WRONG_PASSWORD"] = "WRONG_PASSWORD";
101
+ TkplayErrorCodesEnum2["RADIO_INACTIVE"] = "RADIO_INACTIVE";
102
+ TkplayErrorCodesEnum2["RADIO_PAYMENT_DELINQUENT"] = "RADIO_PAYMENT_DELINQUENT";
103
+ TkplayErrorCodesEnum2["SESSION_NOT_FOUND"] = "SESSION_NOT_FOUND";
104
+ TkplayErrorCodesEnum2["FORBIDDEN_SESSION_TYPE"] = "FORBIDDEN_SESSION_TYPE";
105
+ TkplayErrorCodesEnum2["FORBIDDEN_ROLE"] = "FORBIDDEN_ROLE";
106
+ TkplayErrorCodesEnum2["PAYMENT_UNAUTHORIZED"] = "PAYMENT_UNAUTHORIZED";
107
+ TkplayErrorCodesEnum2["PAYMENT_FAIL"] = "PAYMENT_FAIL";
108
+ TkplayErrorCodesEnum2["SUBSCRIPTION_NOT_FOUND"] = "SUBSCRIPTION_NOT_FOUND";
109
+ TkplayErrorCodesEnum2["LEGAL_TERMS_NOT_FOUND"] = "LEGAL_TERMS_NOT_FOUND";
110
+ TkplayErrorCodesEnum2["LEGAL_TERM_INACTIVE"] = "LEGAL_TERM_INACTIVE";
111
+ TkplayErrorCodesEnum2["LEGAL_TERM_TYPE_INVALID"] = "LEGAL_TERM_TYPE_INVALID";
112
+ TkplayErrorCodesEnum2["COUPON_NOT_FOUND"] = "COUPON_NOT_FOUND";
113
+ TkplayErrorCodesEnum2["INVALID_COUPON_DISCOUNT"] = "INVALID_COUPON_DISCOUNT";
114
+ TkplayErrorCodesEnum2["COUPON_CODE_IS_TAKEN"] = "COUPON_CODE_IS_TAKEN";
115
+ TkplayErrorCodesEnum2["PAST_COUPON_VALIDATION"] = "PAST_COUPON_VALIDATION";
116
+ TkplayErrorCodesEnum2["USER_NOT_FOUND"] = "USER_NOT_FOUND";
117
+ TkplayErrorCodesEnum2["USER_EMAIL_IS_TAKEN"] = "USER_EMAIL_IS_TAKEN";
118
+ TkplayErrorCodesEnum2["USER_PASSWORDS_DONT_MATCH"] = "USER_PASSWORDS_DONT_MATCH";
119
+ TkplayErrorCodesEnum2["UNABLE_TO_DELETE_USER"] = "UNABLE_TO_DELETE_USER";
120
+ return TkplayErrorCodesEnum2;
121
+ })(TkplayErrorCodesEnum || {});
122
+
123
+ // src/enums/commom/error-names.ts
124
+ var TkplayErrorNamesEnum = /* @__PURE__ */ ((TkplayErrorNamesEnum2) => {
125
+ TkplayErrorNamesEnum2["EFI_ERROR"] = "EfiError";
126
+ TkplayErrorNamesEnum2["BILLING_ERROR"] = "BillingError";
127
+ TkplayErrorNamesEnum2["BAD_REQUEST"] = "BadRequest";
128
+ TkplayErrorNamesEnum2["UNAUTHORIZED"] = "Unauthorized";
129
+ TkplayErrorNamesEnum2["FORBIDDEN"] = "Forbidden";
130
+ TkplayErrorNamesEnum2["NOT_FOUND"] = "NotFound";
131
+ TkplayErrorNamesEnum2["METHOD_NOT_ALLOWED"] = "MethodNotAllowed";
132
+ TkplayErrorNamesEnum2["CONFLICT"] = "Conflict";
133
+ TkplayErrorNamesEnum2["UNPROCESSABLE_ENTITY"] = "UnprocessableEntity";
134
+ TkplayErrorNamesEnum2["TOO_MANY_REQUESTS"] = "TooManyRequests";
135
+ TkplayErrorNamesEnum2["INTERNAL_SERVER_ERROR"] = "InternalServerError";
136
+ TkplayErrorNamesEnum2["NOT_IMPLEMENTED"] = "NotImplemented";
137
+ TkplayErrorNamesEnum2["BAD_GATEWAY"] = "BadGateway";
138
+ TkplayErrorNamesEnum2["SERVICE_UNAVAILABLE"] = "ServiceUnavailable";
139
+ TkplayErrorNamesEnum2["GATEWAY_TIMEOUT"] = "GatewayTimeout";
140
+ return TkplayErrorNamesEnum2;
141
+ })(TkplayErrorNamesEnum || {});
142
+
86
143
  // src/enums/content-creation/episode-generation-quality.enum.ts
87
144
  var EpGenerationQualityEnum = {
88
145
  DEFAULT: "DEFAULT",
@@ -213,6 +270,8 @@ export {
213
270
  RadioSubscriptionStatusEnum,
214
271
  S3DirectoriesEnum,
215
272
  SessionTypesEnum,
273
+ TkplayErrorCodesEnum,
274
+ TkplayErrorNamesEnum,
216
275
  UserRolesEnum,
217
276
  UserRolesTranslationsEnum
218
277
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkplay/shared-types",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",