@talkplay/shared-types 1.0.81 → 1.0.84
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 +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -74,6 +74,7 @@ declare const TkplayErrorCodesEnum: {
|
|
|
74
74
|
PROGRAM_NAME_IS_TAKEN: string;
|
|
75
75
|
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: string;
|
|
76
76
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: string;
|
|
77
|
+
PROGRAM_DUPLICATED_CASTER_VOICES: string;
|
|
77
78
|
USER_NOT_FOUND: string;
|
|
78
79
|
USER_EMAIL_IS_TAKEN: string;
|
|
79
80
|
USER_PASSWORDS_DONT_MATCH: string;
|
|
@@ -1256,7 +1257,7 @@ type CreateProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "rad
|
|
|
1256
1257
|
draftId?: string;
|
|
1257
1258
|
};
|
|
1258
1259
|
|
|
1259
|
-
type UpdateProgramProfilePayload = Required<Omit<CreateProgramPayload, "weekSchedule" | "draftId" | "voicesIds">>;
|
|
1260
|
+
type UpdateProgramProfilePayload = Required<Omit<CreateProgramPayload, "weekSchedule" | "draftId" | "voicesIds" | "radioId">>;
|
|
1260
1261
|
|
|
1261
1262
|
type UpdateProgramVoicesPayload = {
|
|
1262
1263
|
voicesIds: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ declare const TkplayErrorCodesEnum: {
|
|
|
74
74
|
PROGRAM_NAME_IS_TAKEN: string;
|
|
75
75
|
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: string;
|
|
76
76
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: string;
|
|
77
|
+
PROGRAM_DUPLICATED_CASTER_VOICES: string;
|
|
77
78
|
USER_NOT_FOUND: string;
|
|
78
79
|
USER_EMAIL_IS_TAKEN: string;
|
|
79
80
|
USER_PASSWORDS_DONT_MATCH: string;
|
|
@@ -1256,7 +1257,7 @@ type CreateProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "rad
|
|
|
1256
1257
|
draftId?: string;
|
|
1257
1258
|
};
|
|
1258
1259
|
|
|
1259
|
-
type UpdateProgramProfilePayload = Required<Omit<CreateProgramPayload, "weekSchedule" | "draftId" | "voicesIds">>;
|
|
1260
|
+
type UpdateProgramProfilePayload = Required<Omit<CreateProgramPayload, "weekSchedule" | "draftId" | "voicesIds" | "radioId">>;
|
|
1260
1261
|
|
|
1261
1262
|
type UpdateProgramVoicesPayload = {
|
|
1262
1263
|
voicesIds: string[];
|
package/dist/index.js
CHANGED
|
@@ -351,6 +351,7 @@ var TkplayErrorCodesEnum = {
|
|
|
351
351
|
PROGRAM_NAME_IS_TAKEN: "PROGRAM_NAME_IS_TAKEN",
|
|
352
352
|
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: "PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL",
|
|
353
353
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: "PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO",
|
|
354
|
+
PROGRAM_DUPLICATED_CASTER_VOICES: "PROGRAM_DUPLICATED_CASTER_VOICES",
|
|
354
355
|
// User
|
|
355
356
|
USER_NOT_FOUND: "USER_NOT_FOUND",
|
|
356
357
|
USER_EMAIL_IS_TAKEN: "USER_EMAIL_IS_TAKEN",
|
|
@@ -851,6 +852,7 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
851
852
|
PROGRAM_NOT_FOUND: "Program not found",
|
|
852
853
|
PROGRAM_NAME_IS_TAKEN: "This radio already has a program with this name",
|
|
853
854
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: (casterId) => `The caster with id "${casterId}" does not belongs to this radio`,
|
|
855
|
+
PROGRAM_DUPLICATED_CASTER_VOICES: "Two or more provided voices belong to the same caster",
|
|
854
856
|
// User Errors
|
|
855
857
|
USER_NOT_FOUND: "User not found",
|
|
856
858
|
USER_EMAIL_IS_TAKEN: "User email is taken",
|
|
@@ -915,6 +917,7 @@ var TKPLAY_ERRORS__PTBR = {
|
|
|
915
917
|
PROGRAM_NOT_FOUND: "Programa n\xE3o encontrado",
|
|
916
918
|
PROGRAM_NAME_IS_TAKEN: "Esta r\xE1dio j\xE1 possui um programa com este nome",
|
|
917
919
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: "Um dos locutores enviados n\xE3o pertence a esta r\xE1dio",
|
|
920
|
+
PROGRAM_DUPLICATED_CASTER_VOICES: "Duas ou mais vozes enviadas pertencem ao mesmo locutor",
|
|
918
921
|
// User Errors
|
|
919
922
|
USER_NOT_FOUND: "Usu\xE1rio n\xE3o encontrado",
|
|
920
923
|
USER_EMAIL_IS_TAKEN: "E-mail j\xE1 est\xE1 em uso",
|
package/dist/index.mjs
CHANGED
|
@@ -256,6 +256,7 @@ var TkplayErrorCodesEnum = {
|
|
|
256
256
|
PROGRAM_NAME_IS_TAKEN: "PROGRAM_NAME_IS_TAKEN",
|
|
257
257
|
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: "PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL",
|
|
258
258
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: "PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO",
|
|
259
|
+
PROGRAM_DUPLICATED_CASTER_VOICES: "PROGRAM_DUPLICATED_CASTER_VOICES",
|
|
259
260
|
// User
|
|
260
261
|
USER_NOT_FOUND: "USER_NOT_FOUND",
|
|
261
262
|
USER_EMAIL_IS_TAKEN: "USER_EMAIL_IS_TAKEN",
|
|
@@ -756,6 +757,7 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
756
757
|
PROGRAM_NOT_FOUND: "Program not found",
|
|
757
758
|
PROGRAM_NAME_IS_TAKEN: "This radio already has a program with this name",
|
|
758
759
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: (casterId) => `The caster with id "${casterId}" does not belongs to this radio`,
|
|
760
|
+
PROGRAM_DUPLICATED_CASTER_VOICES: "Two or more provided voices belong to the same caster",
|
|
759
761
|
// User Errors
|
|
760
762
|
USER_NOT_FOUND: "User not found",
|
|
761
763
|
USER_EMAIL_IS_TAKEN: "User email is taken",
|
|
@@ -820,6 +822,7 @@ var TKPLAY_ERRORS__PTBR = {
|
|
|
820
822
|
PROGRAM_NOT_FOUND: "Programa n\xE3o encontrado",
|
|
821
823
|
PROGRAM_NAME_IS_TAKEN: "Esta r\xE1dio j\xE1 possui um programa com este nome",
|
|
822
824
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: "Um dos locutores enviados n\xE3o pertence a esta r\xE1dio",
|
|
825
|
+
PROGRAM_DUPLICATED_CASTER_VOICES: "Duas ou mais vozes enviadas pertencem ao mesmo locutor",
|
|
823
826
|
// User Errors
|
|
824
827
|
USER_NOT_FOUND: "Usu\xE1rio n\xE3o encontrado",
|
|
825
828
|
USER_EMAIL_IS_TAKEN: "E-mail j\xE1 est\xE1 em uso",
|