@talkplay/shared-types 1.0.10 → 1.0.12
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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +95 -0
- package/dist/index.mjs +92 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -768,4 +768,12 @@ type EpisodeErrorEvt = {};
|
|
|
768
768
|
|
|
769
769
|
type EpisodeProgressEvt = {};
|
|
770
770
|
|
|
771
|
-
|
|
771
|
+
type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
|
|
772
|
+
declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
|
|
773
|
+
|
|
774
|
+
type TkplayMappedErrors__Ptbr = Record<`${TkplayErrorCodesEnum}`, string>;
|
|
775
|
+
declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
|
|
776
|
+
|
|
777
|
+
declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
778
|
+
|
|
779
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -768,4 +768,12 @@ type EpisodeErrorEvt = {};
|
|
|
768
768
|
|
|
769
769
|
type EpisodeProgressEvt = {};
|
|
770
770
|
|
|
771
|
-
|
|
771
|
+
type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
|
|
772
|
+
declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
|
|
773
|
+
|
|
774
|
+
type TkplayMappedErrors__Ptbr = Record<`${TkplayErrorCodesEnum}`, string>;
|
|
775
|
+
declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
|
|
776
|
+
|
|
777
|
+
declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
778
|
+
|
|
779
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -40,6 +40,9 @@ __export(index_exports, {
|
|
|
40
40
|
RadioSubscriptionStatusEnum: () => RadioSubscriptionStatusEnum,
|
|
41
41
|
S3DirectoriesEnum: () => S3DirectoriesEnum,
|
|
42
42
|
SessionTypesEnum: () => SessionTypesEnum,
|
|
43
|
+
TKPLAY_ERRORS_MAP: () => TKPLAY_ERRORS_MAP,
|
|
44
|
+
TKPLAY_ERRORS__PTBR: () => TKPLAY_ERRORS__PTBR,
|
|
45
|
+
TKPLAY_ERROR_MESSAGE_SPLITTER: () => TKPLAY_ERROR_MESSAGE_SPLITTER,
|
|
43
46
|
TkplayErrorCodesEnum: () => TkplayErrorCodesEnum,
|
|
44
47
|
TkplayErrorNamesEnum: () => TkplayErrorNamesEnum,
|
|
45
48
|
UserRolesEnum: () => UserRolesEnum,
|
|
@@ -298,6 +301,95 @@ var UserRolesTranslationsEnum = {
|
|
|
298
301
|
ADMIN: "Administrador",
|
|
299
302
|
STAFF: "Colaborador"
|
|
300
303
|
};
|
|
304
|
+
|
|
305
|
+
// src/constants/tkplay-errors-map.ts
|
|
306
|
+
var TKPLAY_ERRORS_MAP = {
|
|
307
|
+
// System Errors
|
|
308
|
+
MODULE_NAME_IS_TAKEN: "Module name already in use",
|
|
309
|
+
MODULE_NOT_FOUND: (moduleId) => `Module not found (id: ${moduleId})`,
|
|
310
|
+
PLAN_NAME_IS_TAKEN: `Plan name already in use`,
|
|
311
|
+
PLAN_AMOUNT_INVALID: `System must have 2 or 3 plans`,
|
|
312
|
+
// Radio Errors
|
|
313
|
+
RADIO_EMAIL_IS_TAKEN: "Email already in use",
|
|
314
|
+
RADIO_CNPJ_IS_TAKEN: "CNPJ already in use",
|
|
315
|
+
RADIO_NOT_FOUND: "Radio not found",
|
|
316
|
+
RADIO_CONTRACT_NOT_FOUND: "Radio contract not found",
|
|
317
|
+
RADIO_DIRECTOR_NOT_FOUND: "Radio director not found",
|
|
318
|
+
RADIO_DIFF: "Resource belongs to a different radio",
|
|
319
|
+
// Auth Errors
|
|
320
|
+
INVALID_AUTH_TOKEN: "Invalid authentication token",
|
|
321
|
+
MISSING_AUTH_TOKEN: "Authentication token required",
|
|
322
|
+
WRONG_PASSWORD: "Invalid credentials",
|
|
323
|
+
RADIO_INACTIVE: "Radio inactive",
|
|
324
|
+
RADIO_PAYMENT_DELINQUENT: "Payment required",
|
|
325
|
+
SESSION_NOT_FOUND: "Session not found or expired",
|
|
326
|
+
FORBIDDEN_SESSION_TYPE: "Access denied for this session type",
|
|
327
|
+
FORBIDDEN_ROLE: (roles) => `Access denied. Required role(s): ${roles.join(" | ")}`,
|
|
328
|
+
// Billing Errors
|
|
329
|
+
PAYMENT_UNAUTHORIZED: "Payment provider authentication failed",
|
|
330
|
+
PAYMENT_FAIL: (s) => `Payment failed (status: ${s})`,
|
|
331
|
+
SUBSCRIPTION_NOT_FOUND: "Subscription not found",
|
|
332
|
+
// Legal Terms Errors
|
|
333
|
+
LEGAL_TERMS_NOT_FOUND: "Legal terms not found",
|
|
334
|
+
LEGAL_TERM_INACTIVE: "Legal term inactive",
|
|
335
|
+
LEGAL_TERM_TYPE_INVALID: "Invalid legal term type",
|
|
336
|
+
// Coupon Errors
|
|
337
|
+
COUPON_NOT_FOUND: "Coupon not found",
|
|
338
|
+
INVALID_COUPON_DISCOUNT: (d) => `Invalid discount for ${d.type} coupon (${d.discountDescription} required)`,
|
|
339
|
+
COUPON_CODE_IS_TAKEN: "Coupon code already in use",
|
|
340
|
+
PAST_COUPON_VALIDATION: "Coupon expired",
|
|
341
|
+
// User Errors
|
|
342
|
+
USER_NOT_FOUND: "User not found",
|
|
343
|
+
USER_EMAIL_IS_TAKEN: "User email is taken",
|
|
344
|
+
USER_PASSWORDS_DONT_MATCH: "Provided passwords dont match",
|
|
345
|
+
UNABLE_TO_DELETE_USER: "Admin users cannot be deleted"
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
// src/constants/tkplay-errors-ptbr.ts
|
|
349
|
+
var TKPLAY_ERRORS__PTBR = {
|
|
350
|
+
// System Errors
|
|
351
|
+
MODULE_NAME_IS_TAKEN: "Nome do m\xF3dulo j\xE1 est\xE1 em uso",
|
|
352
|
+
MODULE_NOT_FOUND: "M\xF3dulo n\xE3o encontrado",
|
|
353
|
+
PLAN_NAME_IS_TAKEN: "Nome do plano j\xE1 est\xE1 em uso",
|
|
354
|
+
PLAN_AMOUNT_INVALID: "O sistema deve possuir 2 ou 3 planos",
|
|
355
|
+
// Radio Errors
|
|
356
|
+
RADIO_EMAIL_IS_TAKEN: "E-mail j\xE1 est\xE1 em uso",
|
|
357
|
+
RADIO_CNPJ_IS_TAKEN: "CNPJ j\xE1 est\xE1 em uso",
|
|
358
|
+
RADIO_NOT_FOUND: "R\xE1dio n\xE3o encontrada",
|
|
359
|
+
RADIO_CONTRACT_NOT_FOUND: "Contrato da r\xE1dio n\xE3o encontrado",
|
|
360
|
+
RADIO_DIRECTOR_NOT_FOUND: "Diretor da r\xE1dio n\xE3o encontrado",
|
|
361
|
+
RADIO_DIFF: "O recurso pertence a outra r\xE1dio",
|
|
362
|
+
// Auth Errors
|
|
363
|
+
INVALID_AUTH_TOKEN: "Token de autentica\xE7\xE3o inv\xE1lido",
|
|
364
|
+
MISSING_AUTH_TOKEN: "Token de autentica\xE7\xE3o obrigat\xF3rio",
|
|
365
|
+
WRONG_PASSWORD: "Credenciais inv\xE1lidas",
|
|
366
|
+
RADIO_INACTIVE: "R\xE1dio inativa",
|
|
367
|
+
RADIO_PAYMENT_DELINQUENT: "Pagamento pendente",
|
|
368
|
+
SESSION_NOT_FOUND: "Sess\xE3o n\xE3o encontrada ou expirada",
|
|
369
|
+
FORBIDDEN_SESSION_TYPE: "Acesso negado para este tipo de sess\xE3o",
|
|
370
|
+
FORBIDDEN_ROLE: "Acesso negado para o perfil informado",
|
|
371
|
+
// Billing Errors
|
|
372
|
+
PAYMENT_UNAUTHORIZED: "Falha na autentica\xE7\xE3o com o provedor de pagamento",
|
|
373
|
+
PAYMENT_FAIL: "Falha no pagamento",
|
|
374
|
+
SUBSCRIPTION_NOT_FOUND: "Assinatura da r\xE1dio n\xE3o encontrada",
|
|
375
|
+
// Legal Terms Errors
|
|
376
|
+
LEGAL_TERMS_NOT_FOUND: "Termos legais n\xE3o encontrados",
|
|
377
|
+
LEGAL_TERM_INACTIVE: "Termo legal inativo",
|
|
378
|
+
LEGAL_TERM_TYPE_INVALID: "Tipo de termo legal inv\xE1lido",
|
|
379
|
+
// Coupon Errors
|
|
380
|
+
COUPON_NOT_FOUND: "Cupom n\xE3o encontrado",
|
|
381
|
+
INVALID_COUPON_DISCOUNT: "Desconto do cupom inv\xE1lido",
|
|
382
|
+
COUPON_CODE_IS_TAKEN: "C\xF3digo do cupom j\xE1 est\xE1 em uso",
|
|
383
|
+
PAST_COUPON_VALIDATION: "Cupom expirado",
|
|
384
|
+
// User Errors
|
|
385
|
+
USER_NOT_FOUND: "Usu\xE1rio n\xE3o encontrado",
|
|
386
|
+
USER_EMAIL_IS_TAKEN: "E-mail j\xE1 est\xE1 em uso",
|
|
387
|
+
USER_PASSWORDS_DONT_MATCH: "As senhas informadas n\xE3o coincidem",
|
|
388
|
+
UNABLE_TO_DELETE_USER: "Usu\xE1rios administradores n\xE3o podem ser removidos"
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
// src/constants/tkplay-error-message-splitter.ts
|
|
392
|
+
var TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
301
393
|
// Annotate the CommonJS export names for ESM import in node:
|
|
302
394
|
0 && (module.exports = {
|
|
303
395
|
AudioBitratesEnum,
|
|
@@ -320,6 +412,9 @@ var UserRolesTranslationsEnum = {
|
|
|
320
412
|
RadioSubscriptionStatusEnum,
|
|
321
413
|
S3DirectoriesEnum,
|
|
322
414
|
SessionTypesEnum,
|
|
415
|
+
TKPLAY_ERRORS_MAP,
|
|
416
|
+
TKPLAY_ERRORS__PTBR,
|
|
417
|
+
TKPLAY_ERROR_MESSAGE_SPLITTER,
|
|
323
418
|
TkplayErrorCodesEnum,
|
|
324
419
|
TkplayErrorNamesEnum,
|
|
325
420
|
UserRolesEnum,
|
package/dist/index.mjs
CHANGED
|
@@ -249,6 +249,95 @@ var UserRolesTranslationsEnum = {
|
|
|
249
249
|
ADMIN: "Administrador",
|
|
250
250
|
STAFF: "Colaborador"
|
|
251
251
|
};
|
|
252
|
+
|
|
253
|
+
// src/constants/tkplay-errors-map.ts
|
|
254
|
+
var TKPLAY_ERRORS_MAP = {
|
|
255
|
+
// System Errors
|
|
256
|
+
MODULE_NAME_IS_TAKEN: "Module name already in use",
|
|
257
|
+
MODULE_NOT_FOUND: (moduleId) => `Module not found (id: ${moduleId})`,
|
|
258
|
+
PLAN_NAME_IS_TAKEN: `Plan name already in use`,
|
|
259
|
+
PLAN_AMOUNT_INVALID: `System must have 2 or 3 plans`,
|
|
260
|
+
// Radio Errors
|
|
261
|
+
RADIO_EMAIL_IS_TAKEN: "Email already in use",
|
|
262
|
+
RADIO_CNPJ_IS_TAKEN: "CNPJ already in use",
|
|
263
|
+
RADIO_NOT_FOUND: "Radio not found",
|
|
264
|
+
RADIO_CONTRACT_NOT_FOUND: "Radio contract not found",
|
|
265
|
+
RADIO_DIRECTOR_NOT_FOUND: "Radio director not found",
|
|
266
|
+
RADIO_DIFF: "Resource belongs to a different radio",
|
|
267
|
+
// Auth Errors
|
|
268
|
+
INVALID_AUTH_TOKEN: "Invalid authentication token",
|
|
269
|
+
MISSING_AUTH_TOKEN: "Authentication token required",
|
|
270
|
+
WRONG_PASSWORD: "Invalid credentials",
|
|
271
|
+
RADIO_INACTIVE: "Radio inactive",
|
|
272
|
+
RADIO_PAYMENT_DELINQUENT: "Payment required",
|
|
273
|
+
SESSION_NOT_FOUND: "Session not found or expired",
|
|
274
|
+
FORBIDDEN_SESSION_TYPE: "Access denied for this session type",
|
|
275
|
+
FORBIDDEN_ROLE: (roles) => `Access denied. Required role(s): ${roles.join(" | ")}`,
|
|
276
|
+
// Billing Errors
|
|
277
|
+
PAYMENT_UNAUTHORIZED: "Payment provider authentication failed",
|
|
278
|
+
PAYMENT_FAIL: (s) => `Payment failed (status: ${s})`,
|
|
279
|
+
SUBSCRIPTION_NOT_FOUND: "Subscription not found",
|
|
280
|
+
// Legal Terms Errors
|
|
281
|
+
LEGAL_TERMS_NOT_FOUND: "Legal terms not found",
|
|
282
|
+
LEGAL_TERM_INACTIVE: "Legal term inactive",
|
|
283
|
+
LEGAL_TERM_TYPE_INVALID: "Invalid legal term type",
|
|
284
|
+
// Coupon Errors
|
|
285
|
+
COUPON_NOT_FOUND: "Coupon not found",
|
|
286
|
+
INVALID_COUPON_DISCOUNT: (d) => `Invalid discount for ${d.type} coupon (${d.discountDescription} required)`,
|
|
287
|
+
COUPON_CODE_IS_TAKEN: "Coupon code already in use",
|
|
288
|
+
PAST_COUPON_VALIDATION: "Coupon expired",
|
|
289
|
+
// User Errors
|
|
290
|
+
USER_NOT_FOUND: "User not found",
|
|
291
|
+
USER_EMAIL_IS_TAKEN: "User email is taken",
|
|
292
|
+
USER_PASSWORDS_DONT_MATCH: "Provided passwords dont match",
|
|
293
|
+
UNABLE_TO_DELETE_USER: "Admin users cannot be deleted"
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
// src/constants/tkplay-errors-ptbr.ts
|
|
297
|
+
var TKPLAY_ERRORS__PTBR = {
|
|
298
|
+
// System Errors
|
|
299
|
+
MODULE_NAME_IS_TAKEN: "Nome do m\xF3dulo j\xE1 est\xE1 em uso",
|
|
300
|
+
MODULE_NOT_FOUND: "M\xF3dulo n\xE3o encontrado",
|
|
301
|
+
PLAN_NAME_IS_TAKEN: "Nome do plano j\xE1 est\xE1 em uso",
|
|
302
|
+
PLAN_AMOUNT_INVALID: "O sistema deve possuir 2 ou 3 planos",
|
|
303
|
+
// Radio Errors
|
|
304
|
+
RADIO_EMAIL_IS_TAKEN: "E-mail j\xE1 est\xE1 em uso",
|
|
305
|
+
RADIO_CNPJ_IS_TAKEN: "CNPJ j\xE1 est\xE1 em uso",
|
|
306
|
+
RADIO_NOT_FOUND: "R\xE1dio n\xE3o encontrada",
|
|
307
|
+
RADIO_CONTRACT_NOT_FOUND: "Contrato da r\xE1dio n\xE3o encontrado",
|
|
308
|
+
RADIO_DIRECTOR_NOT_FOUND: "Diretor da r\xE1dio n\xE3o encontrado",
|
|
309
|
+
RADIO_DIFF: "O recurso pertence a outra r\xE1dio",
|
|
310
|
+
// Auth Errors
|
|
311
|
+
INVALID_AUTH_TOKEN: "Token de autentica\xE7\xE3o inv\xE1lido",
|
|
312
|
+
MISSING_AUTH_TOKEN: "Token de autentica\xE7\xE3o obrigat\xF3rio",
|
|
313
|
+
WRONG_PASSWORD: "Credenciais inv\xE1lidas",
|
|
314
|
+
RADIO_INACTIVE: "R\xE1dio inativa",
|
|
315
|
+
RADIO_PAYMENT_DELINQUENT: "Pagamento pendente",
|
|
316
|
+
SESSION_NOT_FOUND: "Sess\xE3o n\xE3o encontrada ou expirada",
|
|
317
|
+
FORBIDDEN_SESSION_TYPE: "Acesso negado para este tipo de sess\xE3o",
|
|
318
|
+
FORBIDDEN_ROLE: "Acesso negado para o perfil informado",
|
|
319
|
+
// Billing Errors
|
|
320
|
+
PAYMENT_UNAUTHORIZED: "Falha na autentica\xE7\xE3o com o provedor de pagamento",
|
|
321
|
+
PAYMENT_FAIL: "Falha no pagamento",
|
|
322
|
+
SUBSCRIPTION_NOT_FOUND: "Assinatura da r\xE1dio n\xE3o encontrada",
|
|
323
|
+
// Legal Terms Errors
|
|
324
|
+
LEGAL_TERMS_NOT_FOUND: "Termos legais n\xE3o encontrados",
|
|
325
|
+
LEGAL_TERM_INACTIVE: "Termo legal inativo",
|
|
326
|
+
LEGAL_TERM_TYPE_INVALID: "Tipo de termo legal inv\xE1lido",
|
|
327
|
+
// Coupon Errors
|
|
328
|
+
COUPON_NOT_FOUND: "Cupom n\xE3o encontrado",
|
|
329
|
+
INVALID_COUPON_DISCOUNT: "Desconto do cupom inv\xE1lido",
|
|
330
|
+
COUPON_CODE_IS_TAKEN: "C\xF3digo do cupom j\xE1 est\xE1 em uso",
|
|
331
|
+
PAST_COUPON_VALIDATION: "Cupom expirado",
|
|
332
|
+
// User Errors
|
|
333
|
+
USER_NOT_FOUND: "Usu\xE1rio n\xE3o encontrado",
|
|
334
|
+
USER_EMAIL_IS_TAKEN: "E-mail j\xE1 est\xE1 em uso",
|
|
335
|
+
USER_PASSWORDS_DONT_MATCH: "As senhas informadas n\xE3o coincidem",
|
|
336
|
+
UNABLE_TO_DELETE_USER: "Usu\xE1rios administradores n\xE3o podem ser removidos"
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
// src/constants/tkplay-error-message-splitter.ts
|
|
340
|
+
var TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
252
341
|
export {
|
|
253
342
|
AudioBitratesEnum,
|
|
254
343
|
AudioFormatsEnum,
|
|
@@ -270,6 +359,9 @@ export {
|
|
|
270
359
|
RadioSubscriptionStatusEnum,
|
|
271
360
|
S3DirectoriesEnum,
|
|
272
361
|
SessionTypesEnum,
|
|
362
|
+
TKPLAY_ERRORS_MAP,
|
|
363
|
+
TKPLAY_ERRORS__PTBR,
|
|
364
|
+
TKPLAY_ERROR_MESSAGE_SPLITTER,
|
|
273
365
|
TkplayErrorCodesEnum,
|
|
274
366
|
TkplayErrorNamesEnum,
|
|
275
367
|
UserRolesEnum,
|