@talkplay/shared-types 1.0.93 → 1.0.95
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 +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -75,6 +75,7 @@ declare const TkplayErrorCodesEnum: {
|
|
|
75
75
|
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: string;
|
|
76
76
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: string;
|
|
77
77
|
PROGRAM_DUPLICATED_CASTER_VOICES: string;
|
|
78
|
+
SCRIPT_NOT_FOUND: string;
|
|
78
79
|
SCRITP_IS_EMPTY: string;
|
|
79
80
|
SCRITP_BLOCK_IS_EMPTY: string;
|
|
80
81
|
SCRITP_EXCEEDS_MAX_SIZE: string;
|
|
@@ -1332,14 +1333,14 @@ type ListProgramsParams = PaginationParams & {
|
|
|
1332
1333
|
voicesIds?: string[];
|
|
1333
1334
|
};
|
|
1334
1335
|
|
|
1335
|
-
type CreateProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "voices" | "weekSchedule"> & {
|
|
1336
|
+
type CreateProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "voices" | "weekSchedule" | "scripts"> & {
|
|
1336
1337
|
voicesIds: string[];
|
|
1337
1338
|
weekSchedule: CreateProgramSchedulePayload;
|
|
1338
1339
|
}> & {
|
|
1339
1340
|
draftId?: string;
|
|
1340
1341
|
};
|
|
1341
1342
|
|
|
1342
|
-
type UpdateProgramProfilePayload = Required<Omit<CreateProgramPayload, "weekSchedule" | "draftId" | "voicesIds" | "radioId">>;
|
|
1343
|
+
type UpdateProgramProfilePayload = Required<Omit<CreateProgramPayload, "weekSchedule" | "draftId" | "voicesIds" | "radioId" | "scripts">>;
|
|
1343
1344
|
|
|
1344
1345
|
type UpdateProgramVoicesPayload = {
|
|
1345
1346
|
voicesIds: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ declare const TkplayErrorCodesEnum: {
|
|
|
75
75
|
PROGRAM_CREATION_NOT_ALLOWED_DURING_TRIAL: string;
|
|
76
76
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: string;
|
|
77
77
|
PROGRAM_DUPLICATED_CASTER_VOICES: string;
|
|
78
|
+
SCRIPT_NOT_FOUND: string;
|
|
78
79
|
SCRITP_IS_EMPTY: string;
|
|
79
80
|
SCRITP_BLOCK_IS_EMPTY: string;
|
|
80
81
|
SCRITP_EXCEEDS_MAX_SIZE: string;
|
|
@@ -1332,14 +1333,14 @@ type ListProgramsParams = PaginationParams & {
|
|
|
1332
1333
|
voicesIds?: string[];
|
|
1333
1334
|
};
|
|
1334
1335
|
|
|
1335
|
-
type CreateProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "voices" | "weekSchedule"> & {
|
|
1336
|
+
type CreateProgramPayload = Required<Omit<ProgramEntity, keyof BaseEntity | "radio" | "voices" | "weekSchedule" | "scripts"> & {
|
|
1336
1337
|
voicesIds: string[];
|
|
1337
1338
|
weekSchedule: CreateProgramSchedulePayload;
|
|
1338
1339
|
}> & {
|
|
1339
1340
|
draftId?: string;
|
|
1340
1341
|
};
|
|
1341
1342
|
|
|
1342
|
-
type UpdateProgramProfilePayload = Required<Omit<CreateProgramPayload, "weekSchedule" | "draftId" | "voicesIds" | "radioId">>;
|
|
1343
|
+
type UpdateProgramProfilePayload = Required<Omit<CreateProgramPayload, "weekSchedule" | "draftId" | "voicesIds" | "radioId" | "scripts">>;
|
|
1343
1344
|
|
|
1344
1345
|
type UpdateProgramVoicesPayload = {
|
|
1345
1346
|
voicesIds: string[];
|
package/dist/index.js
CHANGED
|
@@ -252,6 +252,7 @@ var TkplayErrorCodesEnum = {
|
|
|
252
252
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: "PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO",
|
|
253
253
|
PROGRAM_DUPLICATED_CASTER_VOICES: "PROGRAM_DUPLICATED_CASTER_VOICES",
|
|
254
254
|
// Program Scripts
|
|
255
|
+
SCRIPT_NOT_FOUND: "SCRIPT_NOT_FOUND",
|
|
255
256
|
SCRITP_IS_EMPTY: "SCRITP_IS_EMPTY",
|
|
256
257
|
SCRITP_BLOCK_IS_EMPTY: "SCRITP_BLOCK_IS_EMPTY",
|
|
257
258
|
SCRITP_EXCEEDS_MAX_SIZE: "SCRITP_EXCEEDS_MAX_SIZE",
|
|
@@ -926,6 +927,7 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
926
927
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: (casterId) => `The caster with id "${casterId}" does not belongs to this radio`,
|
|
927
928
|
PROGRAM_DUPLICATED_CASTER_VOICES: "Two or more provided voices belong to the same caster",
|
|
928
929
|
// Program Scripts Errors
|
|
930
|
+
SCRIPT_NOT_FOUND: "Script was not found",
|
|
929
931
|
SCRITP_IS_EMPTY: "Script is empty",
|
|
930
932
|
SCRITP_BLOCK_IS_EMPTY: (blockIndex) => `Block at position ${blockIndex} is empty`,
|
|
931
933
|
SCRITP_EXCEEDS_MAX_SIZE: `Script has more than ${MAX_SCRIPT_BLOCKS} blocks`,
|
|
@@ -996,6 +998,7 @@ var TKPLAY_ERRORS__PTBR = {
|
|
|
996
998
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: "Um dos locutores enviados n\xE3o pertence a esta r\xE1dio",
|
|
997
999
|
PROGRAM_DUPLICATED_CASTER_VOICES: "Duas ou mais vozes enviadas pertencem ao mesmo locutor",
|
|
998
1000
|
// Program Scripts Errors
|
|
1001
|
+
SCRIPT_NOT_FOUND: "Roteiro do programa n\xE3o encontrado",
|
|
999
1002
|
SCRITP_IS_EMPTY: "O corpo do roteiro est\xE1 vazio",
|
|
1000
1003
|
SCRITP_BLOCK_IS_EMPTY: "Um dos blocos do corpo do roteiro est\xE1 vazio",
|
|
1001
1004
|
SCRITP_EXCEEDS_MAX_SIZE: `O corpo do roteiro n\xE3o pode ultrapassar ${MAX_SCRIPT_BLOCKS} blocos`,
|
package/dist/index.mjs
CHANGED
|
@@ -148,6 +148,7 @@ var TkplayErrorCodesEnum = {
|
|
|
148
148
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: "PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO",
|
|
149
149
|
PROGRAM_DUPLICATED_CASTER_VOICES: "PROGRAM_DUPLICATED_CASTER_VOICES",
|
|
150
150
|
// Program Scripts
|
|
151
|
+
SCRIPT_NOT_FOUND: "SCRIPT_NOT_FOUND",
|
|
151
152
|
SCRITP_IS_EMPTY: "SCRITP_IS_EMPTY",
|
|
152
153
|
SCRITP_BLOCK_IS_EMPTY: "SCRITP_BLOCK_IS_EMPTY",
|
|
153
154
|
SCRITP_EXCEEDS_MAX_SIZE: "SCRITP_EXCEEDS_MAX_SIZE",
|
|
@@ -822,6 +823,7 @@ var TKPLAY_ERRORS_MAP = {
|
|
|
822
823
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: (casterId) => `The caster with id "${casterId}" does not belongs to this radio`,
|
|
823
824
|
PROGRAM_DUPLICATED_CASTER_VOICES: "Two or more provided voices belong to the same caster",
|
|
824
825
|
// Program Scripts Errors
|
|
826
|
+
SCRIPT_NOT_FOUND: "Script was not found",
|
|
825
827
|
SCRITP_IS_EMPTY: "Script is empty",
|
|
826
828
|
SCRITP_BLOCK_IS_EMPTY: (blockIndex) => `Block at position ${blockIndex} is empty`,
|
|
827
829
|
SCRITP_EXCEEDS_MAX_SIZE: `Script has more than ${MAX_SCRIPT_BLOCKS} blocks`,
|
|
@@ -892,6 +894,7 @@ var TKPLAY_ERRORS__PTBR = {
|
|
|
892
894
|
PROGRAM_CASTER_DOES_NOT_BELONG_TO_RADIO: "Um dos locutores enviados n\xE3o pertence a esta r\xE1dio",
|
|
893
895
|
PROGRAM_DUPLICATED_CASTER_VOICES: "Duas ou mais vozes enviadas pertencem ao mesmo locutor",
|
|
894
896
|
// Program Scripts Errors
|
|
897
|
+
SCRIPT_NOT_FOUND: "Roteiro do programa n\xE3o encontrado",
|
|
895
898
|
SCRITP_IS_EMPTY: "O corpo do roteiro est\xE1 vazio",
|
|
896
899
|
SCRITP_BLOCK_IS_EMPTY: "Um dos blocos do corpo do roteiro est\xE1 vazio",
|
|
897
900
|
SCRITP_EXCEEDS_MAX_SIZE: `O corpo do roteiro n\xE3o pode ultrapassar ${MAX_SCRIPT_BLOCKS} blocos`,
|