@talkplay/shared-types 1.0.88 → 1.0.90

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
@@ -1314,14 +1314,17 @@ type CreateProgramScriptPayload = {
1314
1314
  weekDay: WeekDayEnum;
1315
1315
  blocks: UpsertProgramScriptBlockPayload[];
1316
1316
  };
1317
- type UpdateProgramScriptPayload = Omit<CreateProgramScriptPayload, "programId">;
1317
+ type UpdateProgramScriptPayload = Omit<CreateProgramScriptPayload, "programId" | "weekDay">;
1318
1318
 
1319
1319
  type ListProgramScriptsParams = {
1320
1320
  programId: string;
1321
1321
  name?: string;
1322
1322
  weekDay?: WeekDayEnum;
1323
1323
  };
1324
- type ListProgramScriptsResponse = Pick<ProgramScriptEntity, "name" | "id" | "day" | "createdAt" | "updatedAt">[];
1324
+ type ListItem = Pick<ProgramScriptEntity, "name" | "id" | "createdAt" | "updatedAt"> & {
1325
+ day: Pick<ProgramDayScheduleEntity, "weekDay" | "isActive">;
1326
+ };
1327
+ type ListProgramScriptsResponse = ListItem[];
1325
1328
 
1326
1329
  type ListProgramsParams = PaginationParams & {
1327
1330
  radioId?: string;
package/dist/index.d.ts CHANGED
@@ -1314,14 +1314,17 @@ type CreateProgramScriptPayload = {
1314
1314
  weekDay: WeekDayEnum;
1315
1315
  blocks: UpsertProgramScriptBlockPayload[];
1316
1316
  };
1317
- type UpdateProgramScriptPayload = Omit<CreateProgramScriptPayload, "programId">;
1317
+ type UpdateProgramScriptPayload = Omit<CreateProgramScriptPayload, "programId" | "weekDay">;
1318
1318
 
1319
1319
  type ListProgramScriptsParams = {
1320
1320
  programId: string;
1321
1321
  name?: string;
1322
1322
  weekDay?: WeekDayEnum;
1323
1323
  };
1324
- type ListProgramScriptsResponse = Pick<ProgramScriptEntity, "name" | "id" | "day" | "createdAt" | "updatedAt">[];
1324
+ type ListItem = Pick<ProgramScriptEntity, "name" | "id" | "createdAt" | "updatedAt"> & {
1325
+ day: Pick<ProgramDayScheduleEntity, "weekDay" | "isActive">;
1326
+ };
1327
+ type ListProgramScriptsResponse = ListItem[];
1325
1328
 
1326
1329
  type ListProgramsParams = PaginationParams & {
1327
1330
  radioId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkplay/shared-types",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",