@talkplay/shared-types 1.0.14 → 1.0.17
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -0
- package/dist/index.mjs +8 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -37,6 +37,8 @@ declare const JobsEnum: {
|
|
|
37
37
|
type JobsEnum = Enum<typeof JobsEnum>;
|
|
38
38
|
|
|
39
39
|
declare enum TkplayErrorCodesEnum {
|
|
40
|
+
EFI_ERROR = "EFI_ERROR",
|
|
41
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
40
42
|
MODULE_NAME_IS_TAKEN = "MODULE_NAME_IS_TAKEN",
|
|
41
43
|
MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
|
|
42
44
|
PLAN_NAME_IS_TAKEN = "PLAN_NAME_IS_TAKEN",
|
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,8 @@ declare const JobsEnum: {
|
|
|
37
37
|
type JobsEnum = Enum<typeof JobsEnum>;
|
|
38
38
|
|
|
39
39
|
declare enum TkplayErrorCodesEnum {
|
|
40
|
+
EFI_ERROR = "EFI_ERROR",
|
|
41
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
40
42
|
MODULE_NAME_IS_TAKEN = "MODULE_NAME_IS_TAKEN",
|
|
41
43
|
MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
|
|
42
44
|
PLAN_NAME_IS_TAKEN = "PLAN_NAME_IS_TAKEN",
|
package/dist/index.js
CHANGED
|
@@ -137,6 +137,8 @@ var JobsEnum = {
|
|
|
137
137
|
|
|
138
138
|
// src/enums/commom/error-codes.ts
|
|
139
139
|
var TkplayErrorCodesEnum = /* @__PURE__ */ ((TkplayErrorCodesEnum2) => {
|
|
140
|
+
TkplayErrorCodesEnum2["EFI_ERROR"] = "EFI_ERROR";
|
|
141
|
+
TkplayErrorCodesEnum2["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
140
142
|
TkplayErrorCodesEnum2["MODULE_NAME_IS_TAKEN"] = "MODULE_NAME_IS_TAKEN";
|
|
141
143
|
TkplayErrorCodesEnum2["MODULE_NOT_FOUND"] = "MODULE_NOT_FOUND";
|
|
142
144
|
TkplayErrorCodesEnum2["PLAN_NAME_IS_TAKEN"] = "PLAN_NAME_IS_TAKEN";
|
|
@@ -305,6 +307,9 @@ var UserRolesTranslationsEnum = {
|
|
|
305
307
|
|
|
306
308
|
// src/constants/tkplay-errors-map.ts
|
|
307
309
|
var TKPLAY_ERRORS_MAP = {
|
|
310
|
+
// Commoon
|
|
311
|
+
EFI_ERROR: "Error sending data to Ef\xED Payments",
|
|
312
|
+
VALIDATION_ERROR: "Provided data has validation errors, check error.data for more details",
|
|
308
313
|
// System Errors
|
|
309
314
|
MODULE_NAME_IS_TAKEN: "Module name already in use",
|
|
310
315
|
MODULE_NOT_FOUND: (moduleId) => `Module not found (id: ${moduleId})`,
|
|
@@ -348,6 +353,9 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
348
353
|
|
|
349
354
|
// src/constants/tkplay-errors-ptbr.ts
|
|
350
355
|
var TKPLAY_ERRORS__PTBR = {
|
|
356
|
+
// Commom
|
|
357
|
+
EFI_ERROR: "O provedor de pagamentos est\xE1 passando por instabilidades. Tente novamente",
|
|
358
|
+
VALIDATION_ERROR: "Os dados enviados na requisi\xE7\xE3o s\xE3o inv\xE1lidos",
|
|
351
359
|
// System Errors
|
|
352
360
|
MODULE_NAME_IS_TAKEN: "Nome do m\xF3dulo j\xE1 est\xE1 em uso",
|
|
353
361
|
MODULE_NOT_FOUND: "M\xF3dulo n\xE3o encontrado",
|
package/dist/index.mjs
CHANGED
|
@@ -85,6 +85,8 @@ var JobsEnum = {
|
|
|
85
85
|
|
|
86
86
|
// src/enums/commom/error-codes.ts
|
|
87
87
|
var TkplayErrorCodesEnum = /* @__PURE__ */ ((TkplayErrorCodesEnum2) => {
|
|
88
|
+
TkplayErrorCodesEnum2["EFI_ERROR"] = "EFI_ERROR";
|
|
89
|
+
TkplayErrorCodesEnum2["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
88
90
|
TkplayErrorCodesEnum2["MODULE_NAME_IS_TAKEN"] = "MODULE_NAME_IS_TAKEN";
|
|
89
91
|
TkplayErrorCodesEnum2["MODULE_NOT_FOUND"] = "MODULE_NOT_FOUND";
|
|
90
92
|
TkplayErrorCodesEnum2["PLAN_NAME_IS_TAKEN"] = "PLAN_NAME_IS_TAKEN";
|
|
@@ -253,6 +255,9 @@ var UserRolesTranslationsEnum = {
|
|
|
253
255
|
|
|
254
256
|
// src/constants/tkplay-errors-map.ts
|
|
255
257
|
var TKPLAY_ERRORS_MAP = {
|
|
258
|
+
// Commoon
|
|
259
|
+
EFI_ERROR: "Error sending data to Ef\xED Payments",
|
|
260
|
+
VALIDATION_ERROR: "Provided data has validation errors, check error.data for more details",
|
|
256
261
|
// System Errors
|
|
257
262
|
MODULE_NAME_IS_TAKEN: "Module name already in use",
|
|
258
263
|
MODULE_NOT_FOUND: (moduleId) => `Module not found (id: ${moduleId})`,
|
|
@@ -296,6 +301,9 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
296
301
|
|
|
297
302
|
// src/constants/tkplay-errors-ptbr.ts
|
|
298
303
|
var TKPLAY_ERRORS__PTBR = {
|
|
304
|
+
// Commom
|
|
305
|
+
EFI_ERROR: "O provedor de pagamentos est\xE1 passando por instabilidades. Tente novamente",
|
|
306
|
+
VALIDATION_ERROR: "Os dados enviados na requisi\xE7\xE3o s\xE3o inv\xE1lidos",
|
|
299
307
|
// System Errors
|
|
300
308
|
MODULE_NAME_IS_TAKEN: "Nome do m\xF3dulo j\xE1 est\xE1 em uso",
|
|
301
309
|
MODULE_NOT_FOUND: "M\xF3dulo n\xE3o encontrado",
|