@talkplay/shared-types 1.0.53 → 1.0.54
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 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -67,6 +67,7 @@ declare const TkplayErrorCodesEnum: {
|
|
|
67
67
|
INVALID_COUPON_DISCOUNT: string;
|
|
68
68
|
COUPON_CODE_IS_TAKEN: string;
|
|
69
69
|
PAST_COUPON_VALIDATION: string;
|
|
70
|
+
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: string;
|
|
70
71
|
USER_NOT_FOUND: string;
|
|
71
72
|
USER_EMAIL_IS_TAKEN: string;
|
|
72
73
|
USER_PASSWORDS_DONT_MATCH: string;
|
|
@@ -1259,7 +1260,7 @@ type EpisodeProgressEvt = {};
|
|
|
1259
1260
|
type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
|
|
1260
1261
|
declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
|
|
1261
1262
|
|
|
1262
|
-
type TkplayMappedErrors__Ptbr = Record
|
|
1263
|
+
type TkplayMappedErrors__Ptbr = Record<TkplayErrorCodesEnum, string>;
|
|
1263
1264
|
declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
|
|
1264
1265
|
|
|
1265
1266
|
declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ declare const TkplayErrorCodesEnum: {
|
|
|
67
67
|
INVALID_COUPON_DISCOUNT: string;
|
|
68
68
|
COUPON_CODE_IS_TAKEN: string;
|
|
69
69
|
PAST_COUPON_VALIDATION: string;
|
|
70
|
+
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: string;
|
|
70
71
|
USER_NOT_FOUND: string;
|
|
71
72
|
USER_EMAIL_IS_TAKEN: string;
|
|
72
73
|
USER_PASSWORDS_DONT_MATCH: string;
|
|
@@ -1259,7 +1260,7 @@ type EpisodeProgressEvt = {};
|
|
|
1259
1260
|
type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
|
|
1260
1261
|
declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
|
|
1261
1262
|
|
|
1262
|
-
type TkplayMappedErrors__Ptbr = Record
|
|
1263
|
+
type TkplayMappedErrors__Ptbr = Record<TkplayErrorCodesEnum, string>;
|
|
1263
1264
|
declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
|
|
1264
1265
|
|
|
1265
1266
|
declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
|
package/dist/index.js
CHANGED
|
@@ -317,6 +317,8 @@ var TkplayErrorCodesEnum = {
|
|
|
317
317
|
INVALID_COUPON_DISCOUNT: "INVALID_COUPON_DISCOUNT",
|
|
318
318
|
COUPON_CODE_IS_TAKEN: "COUPON_CODE_IS_TAKEN",
|
|
319
319
|
PAST_COUPON_VALIDATION: "PAST_COUPON_VALIDATION",
|
|
320
|
+
// Programs
|
|
321
|
+
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: "PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL",
|
|
320
322
|
// User
|
|
321
323
|
USER_NOT_FOUND: "USER_NOT_FOUND",
|
|
322
324
|
USER_EMAIL_IS_TAKEN: "USER_EMAIL_IS_TAKEN",
|
|
@@ -739,6 +741,8 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
739
741
|
INVALID_COUPON_DISCOUNT: (d) => `Invalid discount for ${d.type} coupon (${d.discountDescription} required)`,
|
|
740
742
|
COUPON_CODE_IS_TAKEN: "Coupon code already in use",
|
|
741
743
|
PAST_COUPON_VALIDATION: "Coupon expired",
|
|
744
|
+
// Program Errors
|
|
745
|
+
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: "Program creation is not allowed while in trial period",
|
|
742
746
|
// User Errors
|
|
743
747
|
USER_NOT_FOUND: "User not found",
|
|
744
748
|
USER_EMAIL_IS_TAKEN: "User email is taken",
|
|
@@ -788,6 +792,8 @@ var TKPLAY_ERRORS__PTBR = {
|
|
|
788
792
|
INVALID_COUPON_DISCOUNT: "Desconto do cupom inv\xE1lido",
|
|
789
793
|
COUPON_CODE_IS_TAKEN: "C\xF3digo do cupom j\xE1 est\xE1 em uso",
|
|
790
794
|
PAST_COUPON_VALIDATION: "Cupom expirado",
|
|
795
|
+
// Program Errors
|
|
796
|
+
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: "Cria\xE7\xE3o de programas n\xE3o \xE9 permitida durante o per\xEDodo de testes",
|
|
791
797
|
// User Errors
|
|
792
798
|
USER_NOT_FOUND: "Usu\xE1rio n\xE3o encontrado",
|
|
793
799
|
USER_EMAIL_IS_TAKEN: "E-mail j\xE1 est\xE1 em uso",
|
package/dist/index.mjs
CHANGED
|
@@ -237,6 +237,8 @@ var TkplayErrorCodesEnum = {
|
|
|
237
237
|
INVALID_COUPON_DISCOUNT: "INVALID_COUPON_DISCOUNT",
|
|
238
238
|
COUPON_CODE_IS_TAKEN: "COUPON_CODE_IS_TAKEN",
|
|
239
239
|
PAST_COUPON_VALIDATION: "PAST_COUPON_VALIDATION",
|
|
240
|
+
// Programs
|
|
241
|
+
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: "PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL",
|
|
240
242
|
// User
|
|
241
243
|
USER_NOT_FOUND: "USER_NOT_FOUND",
|
|
242
244
|
USER_EMAIL_IS_TAKEN: "USER_EMAIL_IS_TAKEN",
|
|
@@ -659,6 +661,8 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
659
661
|
INVALID_COUPON_DISCOUNT: (d) => `Invalid discount for ${d.type} coupon (${d.discountDescription} required)`,
|
|
660
662
|
COUPON_CODE_IS_TAKEN: "Coupon code already in use",
|
|
661
663
|
PAST_COUPON_VALIDATION: "Coupon expired",
|
|
664
|
+
// Program Errors
|
|
665
|
+
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: "Program creation is not allowed while in trial period",
|
|
662
666
|
// User Errors
|
|
663
667
|
USER_NOT_FOUND: "User not found",
|
|
664
668
|
USER_EMAIL_IS_TAKEN: "User email is taken",
|
|
@@ -708,6 +712,8 @@ var TKPLAY_ERRORS__PTBR = {
|
|
|
708
712
|
INVALID_COUPON_DISCOUNT: "Desconto do cupom inv\xE1lido",
|
|
709
713
|
COUPON_CODE_IS_TAKEN: "C\xF3digo do cupom j\xE1 est\xE1 em uso",
|
|
710
714
|
PAST_COUPON_VALIDATION: "Cupom expirado",
|
|
715
|
+
// Program Errors
|
|
716
|
+
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: "Cria\xE7\xE3o de programas n\xE3o \xE9 permitida durante o per\xEDodo de testes",
|
|
711
717
|
// User Errors
|
|
712
718
|
USER_NOT_FOUND: "Usu\xE1rio n\xE3o encontrado",
|
|
713
719
|
USER_EMAIL_IS_TAKEN: "E-mail j\xE1 est\xE1 em uso",
|