@talkplay/shared-types 1.0.51 → 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 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;
@@ -112,6 +113,7 @@ declare const S3DirectoriesEnum: {
112
113
  type S3DirectoriesEnum = Enum<typeof S3DirectoriesEnum>;
113
114
 
114
115
  declare const ChargeTypesEnum: {
116
+ readonly PROGRAM_CREATION: "PROGRAM_CREATION";
115
117
  readonly MONTHLY_ACCESS: "MONTHLY_ACCESS";
116
118
  readonly PENALTY: "PENALTY";
117
119
  };
@@ -1155,7 +1157,7 @@ type UpsertSystemModulePayload = {
1155
1157
  };
1156
1158
  type UpsertSystemModuleResponse = SystemModuleEntity;
1157
1159
 
1158
- type ListProgramsParams = {
1160
+ type ListProgramsParams = PaginationParams & {
1159
1161
  radioId?: string;
1160
1162
  name?: string;
1161
1163
  castersIds?: string[];
@@ -1258,7 +1260,7 @@ type EpisodeProgressEvt = {};
1258
1260
  type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
1259
1261
  declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
1260
1262
 
1261
- type TkplayMappedErrors__Ptbr = Record<`${TkplayErrorCodesEnum}`, string>;
1263
+ type TkplayMappedErrors__Ptbr = Record<TkplayErrorCodesEnum, string>;
1262
1264
  declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
1263
1265
 
1264
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;
@@ -112,6 +113,7 @@ declare const S3DirectoriesEnum: {
112
113
  type S3DirectoriesEnum = Enum<typeof S3DirectoriesEnum>;
113
114
 
114
115
  declare const ChargeTypesEnum: {
116
+ readonly PROGRAM_CREATION: "PROGRAM_CREATION";
115
117
  readonly MONTHLY_ACCESS: "MONTHLY_ACCESS";
116
118
  readonly PENALTY: "PENALTY";
117
119
  };
@@ -1155,7 +1157,7 @@ type UpsertSystemModulePayload = {
1155
1157
  };
1156
1158
  type UpsertSystemModuleResponse = SystemModuleEntity;
1157
1159
 
1158
- type ListProgramsParams = {
1160
+ type ListProgramsParams = PaginationParams & {
1159
1161
  radioId?: string;
1160
1162
  name?: string;
1161
1163
  castersIds?: string[];
@@ -1258,7 +1260,7 @@ type EpisodeProgressEvt = {};
1258
1260
  type TkplayMappedErrors = Record<`${TkplayErrorCodesEnum}`, string | ((args: any) => string)>;
1259
1261
  declare const TKPLAY_ERRORS_MAP: TkplayMappedErrors;
1260
1262
 
1261
- type TkplayMappedErrors__Ptbr = Record<`${TkplayErrorCodesEnum}`, string>;
1263
+ type TkplayMappedErrors__Ptbr = Record<TkplayErrorCodesEnum, string>;
1262
1264
  declare const TKPLAY_ERRORS__PTBR: TkplayMappedErrors__Ptbr;
1263
1265
 
1264
1266
  declare const TKPLAY_ERROR_MESSAGE_SPLITTER = "::";
package/dist/index.js CHANGED
@@ -95,6 +95,7 @@ var S3DirectoriesEnum = {
95
95
 
96
96
  // src/enums/billing/charge-types.enum.ts
97
97
  var ChargeTypesEnum = {
98
+ PROGRAM_CREATION: "PROGRAM_CREATION",
98
99
  MONTHLY_ACCESS: "MONTHLY_ACCESS",
99
100
  PENALTY: "PENALTY"
100
101
  };
@@ -316,6 +317,8 @@ var TkplayErrorCodesEnum = {
316
317
  INVALID_COUPON_DISCOUNT: "INVALID_COUPON_DISCOUNT",
317
318
  COUPON_CODE_IS_TAKEN: "COUPON_CODE_IS_TAKEN",
318
319
  PAST_COUPON_VALIDATION: "PAST_COUPON_VALIDATION",
320
+ // Programs
321
+ PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: "PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL",
319
322
  // User
320
323
  USER_NOT_FOUND: "USER_NOT_FOUND",
321
324
  USER_EMAIL_IS_TAKEN: "USER_EMAIL_IS_TAKEN",
@@ -738,6 +741,8 @@ var TKPLAY_ERRORS_MAP = {
738
741
  INVALID_COUPON_DISCOUNT: (d) => `Invalid discount for ${d.type} coupon (${d.discountDescription} required)`,
739
742
  COUPON_CODE_IS_TAKEN: "Coupon code already in use",
740
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",
741
746
  // User Errors
742
747
  USER_NOT_FOUND: "User not found",
743
748
  USER_EMAIL_IS_TAKEN: "User email is taken",
@@ -787,6 +792,8 @@ var TKPLAY_ERRORS__PTBR = {
787
792
  INVALID_COUPON_DISCOUNT: "Desconto do cupom inv\xE1lido",
788
793
  COUPON_CODE_IS_TAKEN: "C\xF3digo do cupom j\xE1 est\xE1 em uso",
789
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",
790
797
  // User Errors
791
798
  USER_NOT_FOUND: "Usu\xE1rio n\xE3o encontrado",
792
799
  USER_EMAIL_IS_TAKEN: "E-mail j\xE1 est\xE1 em uso",
package/dist/index.mjs CHANGED
@@ -15,6 +15,7 @@ var S3DirectoriesEnum = {
15
15
 
16
16
  // src/enums/billing/charge-types.enum.ts
17
17
  var ChargeTypesEnum = {
18
+ PROGRAM_CREATION: "PROGRAM_CREATION",
18
19
  MONTHLY_ACCESS: "MONTHLY_ACCESS",
19
20
  PENALTY: "PENALTY"
20
21
  };
@@ -236,6 +237,8 @@ var TkplayErrorCodesEnum = {
236
237
  INVALID_COUPON_DISCOUNT: "INVALID_COUPON_DISCOUNT",
237
238
  COUPON_CODE_IS_TAKEN: "COUPON_CODE_IS_TAKEN",
238
239
  PAST_COUPON_VALIDATION: "PAST_COUPON_VALIDATION",
240
+ // Programs
241
+ PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: "PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL",
239
242
  // User
240
243
  USER_NOT_FOUND: "USER_NOT_FOUND",
241
244
  USER_EMAIL_IS_TAKEN: "USER_EMAIL_IS_TAKEN",
@@ -658,6 +661,8 @@ var TKPLAY_ERRORS_MAP = {
658
661
  INVALID_COUPON_DISCOUNT: (d) => `Invalid discount for ${d.type} coupon (${d.discountDescription} required)`,
659
662
  COUPON_CODE_IS_TAKEN: "Coupon code already in use",
660
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",
661
666
  // User Errors
662
667
  USER_NOT_FOUND: "User not found",
663
668
  USER_EMAIL_IS_TAKEN: "User email is taken",
@@ -707,6 +712,8 @@ var TKPLAY_ERRORS__PTBR = {
707
712
  INVALID_COUPON_DISCOUNT: "Desconto do cupom inv\xE1lido",
708
713
  COUPON_CODE_IS_TAKEN: "C\xF3digo do cupom j\xE1 est\xE1 em uso",
709
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",
710
717
  // User Errors
711
718
  USER_NOT_FOUND: "Usu\xE1rio n\xE3o encontrado",
712
719
  USER_EMAIL_IS_TAKEN: "E-mail j\xE1 est\xE1 em uso",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkplay/shared-types",
3
- "version": "1.0.51",
3
+ "version": "1.0.54",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",