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