@talkplay/shared-types 1.0.11 → 1.0.13
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 +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +14 -8
- package/dist/index.mjs +10 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -73,6 +73,7 @@ declare enum TkplayErrorCodesEnum {
|
|
|
73
73
|
|
|
74
74
|
declare enum TkplayErrorNamesEnum {
|
|
75
75
|
EFI_ERROR = "EfiError",// 400
|
|
76
|
+
VALIDATION_ERROR = "ValidationError",// 400
|
|
76
77
|
BILLING_ERROR = "BillingError",// 402
|
|
77
78
|
BAD_REQUEST = "BadRequest",// 400
|
|
78
79
|
UNAUTHORIZED = "Unauthorized",// 401
|
|
@@ -769,9 +770,11 @@ type EpisodeErrorEvt = {};
|
|
|
769
770
|
type EpisodeProgressEvt = {};
|
|
770
771
|
|
|
771
772
|
type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
|
|
772
|
-
declare const
|
|
773
|
+
declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
|
|
773
774
|
|
|
774
775
|
type TkplayMappedErrors__Ptbr = Record<`${TkplayErrorCodesEnum}`, string>;
|
|
775
|
-
declare const
|
|
776
|
+
declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
|
|
776
777
|
|
|
777
|
-
|
|
778
|
+
declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
779
|
+
|
|
780
|
+
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
|
@@ -73,6 +73,7 @@ declare enum TkplayErrorCodesEnum {
|
|
|
73
73
|
|
|
74
74
|
declare enum TkplayErrorNamesEnum {
|
|
75
75
|
EFI_ERROR = "EfiError",// 400
|
|
76
|
+
VALIDATION_ERROR = "ValidationError",// 400
|
|
76
77
|
BILLING_ERROR = "BillingError",// 402
|
|
77
78
|
BAD_REQUEST = "BadRequest",// 400
|
|
78
79
|
UNAUTHORIZED = "Unauthorized",// 401
|
|
@@ -769,9 +770,11 @@ type EpisodeErrorEvt = {};
|
|
|
769
770
|
type EpisodeProgressEvt = {};
|
|
770
771
|
|
|
771
772
|
type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
|
|
772
|
-
declare const
|
|
773
|
+
declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
|
|
773
774
|
|
|
774
775
|
type TkplayMappedErrors__Ptbr = Record<`${TkplayErrorCodesEnum}`, string>;
|
|
775
|
-
declare const
|
|
776
|
+
declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
|
|
776
777
|
|
|
777
|
-
|
|
778
|
+
declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
779
|
+
|
|
780
|
+
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,12 +40,13 @@ __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,
|
|
46
|
-
UserRolesTranslationsEnum: () => UserRolesTranslationsEnum
|
|
47
|
-
tkplayErrorsMap: () => tkplayErrorsMap,
|
|
48
|
-
tkplayErrrosPtbr: () => tkplayErrrosPtbr
|
|
49
|
+
UserRolesTranslationsEnum: () => UserRolesTranslationsEnum
|
|
49
50
|
});
|
|
50
51
|
module.exports = __toCommonJS(index_exports);
|
|
51
52
|
|
|
@@ -174,6 +175,7 @@ var TkplayErrorCodesEnum = /* @__PURE__ */ ((TkplayErrorCodesEnum2) => {
|
|
|
174
175
|
// src/enums/commom/error-names.ts
|
|
175
176
|
var TkplayErrorNamesEnum = /* @__PURE__ */ ((TkplayErrorNamesEnum2) => {
|
|
176
177
|
TkplayErrorNamesEnum2["EFI_ERROR"] = "EfiError";
|
|
178
|
+
TkplayErrorNamesEnum2["VALIDATION_ERROR"] = "ValidationError";
|
|
177
179
|
TkplayErrorNamesEnum2["BILLING_ERROR"] = "BillingError";
|
|
178
180
|
TkplayErrorNamesEnum2["BAD_REQUEST"] = "BadRequest";
|
|
179
181
|
TkplayErrorNamesEnum2["UNAUTHORIZED"] = "Unauthorized";
|
|
@@ -302,7 +304,7 @@ var UserRolesTranslationsEnum = {
|
|
|
302
304
|
};
|
|
303
305
|
|
|
304
306
|
// src/constants/tkplay-errors-map.ts
|
|
305
|
-
var
|
|
307
|
+
var TKPLAY_ERRORS_MAP = {
|
|
306
308
|
// System Errors
|
|
307
309
|
MODULE_NAME_IS_TAKEN: "Module name already in use",
|
|
308
310
|
MODULE_NOT_FOUND: (moduleId) => `Module not found (id: ${moduleId})`,
|
|
@@ -345,7 +347,7 @@ var tkplayErrorsMap = {
|
|
|
345
347
|
};
|
|
346
348
|
|
|
347
349
|
// src/constants/tkplay-errors-ptbr.ts
|
|
348
|
-
var
|
|
350
|
+
var TKPLAY_ERRORS__PTBR = {
|
|
349
351
|
// System Errors
|
|
350
352
|
MODULE_NAME_IS_TAKEN: "Nome do m\xF3dulo j\xE1 est\xE1 em uso",
|
|
351
353
|
MODULE_NOT_FOUND: "M\xF3dulo n\xE3o encontrado",
|
|
@@ -386,6 +388,9 @@ var tkplayErrrosPtbr = {
|
|
|
386
388
|
USER_PASSWORDS_DONT_MATCH: "As senhas informadas n\xE3o coincidem",
|
|
387
389
|
UNABLE_TO_DELETE_USER: "Usu\xE1rios administradores n\xE3o podem ser removidos"
|
|
388
390
|
};
|
|
391
|
+
|
|
392
|
+
// src/constants/tkplay-error-message-splitter.ts
|
|
393
|
+
var TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
389
394
|
// Annotate the CommonJS export names for ESM import in node:
|
|
390
395
|
0 && (module.exports = {
|
|
391
396
|
AudioBitratesEnum,
|
|
@@ -408,10 +413,11 @@ var tkplayErrrosPtbr = {
|
|
|
408
413
|
RadioSubscriptionStatusEnum,
|
|
409
414
|
S3DirectoriesEnum,
|
|
410
415
|
SessionTypesEnum,
|
|
416
|
+
TKPLAY_ERRORS_MAP,
|
|
417
|
+
TKPLAY_ERRORS__PTBR,
|
|
418
|
+
TKPLAY_ERROR_MESSAGE_SPLITTER,
|
|
411
419
|
TkplayErrorCodesEnum,
|
|
412
420
|
TkplayErrorNamesEnum,
|
|
413
421
|
UserRolesEnum,
|
|
414
|
-
UserRolesTranslationsEnum
|
|
415
|
-
tkplayErrorsMap,
|
|
416
|
-
tkplayErrrosPtbr
|
|
422
|
+
UserRolesTranslationsEnum
|
|
417
423
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -123,6 +123,7 @@ var TkplayErrorCodesEnum = /* @__PURE__ */ ((TkplayErrorCodesEnum2) => {
|
|
|
123
123
|
// src/enums/commom/error-names.ts
|
|
124
124
|
var TkplayErrorNamesEnum = /* @__PURE__ */ ((TkplayErrorNamesEnum2) => {
|
|
125
125
|
TkplayErrorNamesEnum2["EFI_ERROR"] = "EfiError";
|
|
126
|
+
TkplayErrorNamesEnum2["VALIDATION_ERROR"] = "ValidationError";
|
|
126
127
|
TkplayErrorNamesEnum2["BILLING_ERROR"] = "BillingError";
|
|
127
128
|
TkplayErrorNamesEnum2["BAD_REQUEST"] = "BadRequest";
|
|
128
129
|
TkplayErrorNamesEnum2["UNAUTHORIZED"] = "Unauthorized";
|
|
@@ -251,7 +252,7 @@ var UserRolesTranslationsEnum = {
|
|
|
251
252
|
};
|
|
252
253
|
|
|
253
254
|
// src/constants/tkplay-errors-map.ts
|
|
254
|
-
var
|
|
255
|
+
var TKPLAY_ERRORS_MAP = {
|
|
255
256
|
// System Errors
|
|
256
257
|
MODULE_NAME_IS_TAKEN: "Module name already in use",
|
|
257
258
|
MODULE_NOT_FOUND: (moduleId) => `Module not found (id: ${moduleId})`,
|
|
@@ -294,7 +295,7 @@ var tkplayErrorsMap = {
|
|
|
294
295
|
};
|
|
295
296
|
|
|
296
297
|
// src/constants/tkplay-errors-ptbr.ts
|
|
297
|
-
var
|
|
298
|
+
var TKPLAY_ERRORS__PTBR = {
|
|
298
299
|
// System Errors
|
|
299
300
|
MODULE_NAME_IS_TAKEN: "Nome do m\xF3dulo j\xE1 est\xE1 em uso",
|
|
300
301
|
MODULE_NOT_FOUND: "M\xF3dulo n\xE3o encontrado",
|
|
@@ -335,6 +336,9 @@ var tkplayErrrosPtbr = {
|
|
|
335
336
|
USER_PASSWORDS_DONT_MATCH: "As senhas informadas n\xE3o coincidem",
|
|
336
337
|
UNABLE_TO_DELETE_USER: "Usu\xE1rios administradores n\xE3o podem ser removidos"
|
|
337
338
|
};
|
|
339
|
+
|
|
340
|
+
// src/constants/tkplay-error-message-splitter.ts
|
|
341
|
+
var TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
|
338
342
|
export {
|
|
339
343
|
AudioBitratesEnum,
|
|
340
344
|
AudioFormatsEnum,
|
|
@@ -356,10 +360,11 @@ export {
|
|
|
356
360
|
RadioSubscriptionStatusEnum,
|
|
357
361
|
S3DirectoriesEnum,
|
|
358
362
|
SessionTypesEnum,
|
|
363
|
+
TKPLAY_ERRORS_MAP,
|
|
364
|
+
TKPLAY_ERRORS__PTBR,
|
|
365
|
+
TKPLAY_ERROR_MESSAGE_SPLITTER,
|
|
359
366
|
TkplayErrorCodesEnum,
|
|
360
367
|
TkplayErrorNamesEnum,
|
|
361
368
|
UserRolesEnum,
|
|
362
|
-
UserRolesTranslationsEnum
|
|
363
|
-
tkplayErrorsMap,
|
|
364
|
-
tkplayErrrosPtbr
|
|
369
|
+
UserRolesTranslationsEnum
|
|
365
370
|
};
|