@bondsports/types 2.4.9 → 2.4.10

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.
@@ -1,4 +1,4 @@
1
- import { IScheduleConfig, IGameSchedule, ITeamSchedule, IDivisionSchedule, IScheduleConflict, IGeneratedSchedule, ByeWeekPolicyEnum, ScheduleConflictTypeEnum, ValidationSeverityEnum } from '../types/interfaces';
1
+ import { IScheduleConfig, IGameSchedule, ITeamSchedule, IDivisionSchedule, IScheduleConflict, IConflictingEvent, IConflictingResource, IGeneratedSchedule, ByeWeekPolicyEnum, ScheduleConflictTypeEnum, ValidationSeverityEnum } from '../types/interfaces';
2
2
  import { MaintenanceEventDto } from './maintenance-event.dto';
3
3
  export { ByeWeekPolicyEnum, ScheduleConflictTypeEnum, ValidationSeverityEnum } from '../types/interfaces';
4
4
  export { MaintenanceEventDto } from './maintenance-event.dto';
@@ -97,15 +97,33 @@ export declare class DivisionScheduleDto implements IDivisionSchedule {
97
97
  teams: TeamScheduleDto[];
98
98
  games: GameScheduleDto[];
99
99
  }
100
+ /**
101
+ * Conflicting Event DTO
102
+ */
103
+ export declare class ConflictingEventDto implements IConflictingEvent {
104
+ id: number;
105
+ title: string;
106
+ }
107
+ /**
108
+ * Conflicting Resource DTO
109
+ */
110
+ export declare class ConflictingResourceDto implements IConflictingResource {
111
+ id: number;
112
+ name: string;
113
+ }
100
114
  /**
101
115
  * Schedule Conflict DTO (Controller use only)
102
116
  * For services/utilities, import and use IScheduleConflict from types/interfaces.ts
103
117
  */
104
118
  export declare class ScheduleConflictDto implements IScheduleConflict {
105
119
  type: ScheduleConflictTypeEnum;
106
- gameId: string;
107
- description: string;
108
120
  severity: ValidationSeverityEnum;
121
+ gameId: string;
122
+ conflictingEvent?: ConflictingEventDto;
123
+ resource?: ConflictingResourceDto;
124
+ startDate?: string;
125
+ startTime?: string;
126
+ endTime?: string;
109
127
  }
110
128
  /**
111
129
  * Generated Schedule DTO (Controller use only)
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateDraftScheduleResponseDto = exports.UpdateDraftScheduleRequestDto = exports.GetScheduleResponseDto = exports.ScheduleConfigResponseDto = exports.ScheduleConfigRequestDto = exports.PublishScheduleResponseDto = exports.PublishMetadataDto = exports.PublishedSlotDetailsDto = exports.PublishedEventDetailsDto = exports.PublishScheduleRequestDto = exports.GenerateScheduleResponseDto = exports.GenerateScheduleRequestDto = exports.GeneratedScheduleDto = exports.ScheduleConflictDto = exports.DivisionScheduleDto = exports.TeamScheduleDto = exports.GameScheduleDto = exports.ScheduleConfigDto = exports.TimeWindowDto = exports.DeleteDraftScheduleResponseDto = exports.DeleteDraftScheduleQueryDto = exports.MaintenanceEventDto = exports.ValidationSeverityEnum = exports.ScheduleConflictTypeEnum = exports.ByeWeekPolicyEnum = void 0;
3
+ exports.UpdateDraftScheduleResponseDto = exports.UpdateDraftScheduleRequestDto = exports.GetScheduleResponseDto = exports.ScheduleConfigResponseDto = exports.ScheduleConfigRequestDto = exports.PublishScheduleResponseDto = exports.PublishMetadataDto = exports.PublishedSlotDetailsDto = exports.PublishedEventDetailsDto = exports.PublishScheduleRequestDto = exports.GenerateScheduleResponseDto = exports.GenerateScheduleRequestDto = exports.GeneratedScheduleDto = exports.ScheduleConflictDto = exports.ConflictingResourceDto = exports.ConflictingEventDto = exports.DivisionScheduleDto = exports.TeamScheduleDto = exports.GameScheduleDto = exports.ScheduleConfigDto = exports.TimeWindowDto = exports.DeleteDraftScheduleResponseDto = exports.DeleteDraftScheduleQueryDto = exports.MaintenanceEventDto = exports.ValidationSeverityEnum = exports.ScheduleConflictTypeEnum = exports.ByeWeekPolicyEnum = void 0;
4
4
  // Re-export enums for backward compatibility
5
5
  var interfaces_1 = require("../types/interfaces");
6
6
  Object.defineProperty(exports, "ByeWeekPolicyEnum", { enumerable: true, get: function () { return interfaces_1.ByeWeekPolicyEnum; } });
@@ -65,6 +65,18 @@ exports.TeamScheduleDto = TeamScheduleDto;
65
65
  class DivisionScheduleDto {
66
66
  }
67
67
  exports.DivisionScheduleDto = DivisionScheduleDto;
68
+ /**
69
+ * Conflicting Event DTO
70
+ */
71
+ class ConflictingEventDto {
72
+ }
73
+ exports.ConflictingEventDto = ConflictingEventDto;
74
+ /**
75
+ * Conflicting Resource DTO
76
+ */
77
+ class ConflictingResourceDto {
78
+ }
79
+ exports.ConflictingResourceDto = ConflictingResourceDto;
68
80
  /**
69
81
  * Schedule Conflict DTO (Controller use only)
70
82
  * For services/utilities, import and use IScheduleConflict from types/interfaces.ts
@@ -1 +1 @@
1
- {"version":3,"file":"leagues-scheduler.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/leagues-scheduler.dto.ts"],"names":[],"mappings":";;;AAeA,6CAA6C;AAC7C,kDAA0G;AAAjG,+GAAA,iBAAiB,OAAA;AAAE,sHAAA,wBAAwB,OAAA;AAAE,oHAAA,sBAAsB,OAAA;AAE5E,2DAA2D;AAC3D,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAE5B,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAE/E;;GAEG;AACH,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED;;GAEG;AACH,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAED,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;GAGG;AACH,MAAa,aAAa;CAUzB;AAVD,sCAUC;AAED;;;GAGG;AACH,MAAa,iBAAiB;CAkC7B;AAlCD,8CAkCC;AAED,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;GAGG;AACH,MAAa,eAAe;CAsC3B;AAtCD,0CAsCC;AAED;;;GAGG;AACH,MAAa,eAAe;CAY3B;AAZD,0CAYC;AAED;;;GAGG;AACH,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED;;;GAGG;AACH,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED;;;GAGG;AACH,MAAa,oBAAoB;CAgBhC;AAhBD,oDAgBC;AAED,wBAAwB;AACxB,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAa,2BAA2B;CAwBvC;AAxBD,kEAwBC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED;;;GAGG;AACH,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED;;;GAGG;AACH,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED;;;GAGG;AACH,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,0BAA0B;CAoBtC;AApBD,gEAoBC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,sBAAsB;CAclC;AAdD,wDAcC;AAED;;;GAGG;AACH,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAED;;;GAGG;AACH,MAAa,8BAA8B;CAkB1C;AAlBD,wEAkBC"}
1
+ {"version":3,"file":"leagues-scheduler.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/leagues-scheduler.dto.ts"],"names":[],"mappings":";;;AAiBA,6CAA6C;AAC7C,kDAA0G;AAAjG,+GAAA,iBAAiB,OAAA;AAAE,sHAAA,wBAAwB,OAAA;AAAE,oHAAA,sBAAsB,OAAA;AAE5E,2DAA2D;AAC3D,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAE5B,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAE/E;;GAEG;AACH,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED;;GAEG;AACH,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAED,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;GAGG;AACH,MAAa,aAAa;CAUzB;AAVD,sCAUC;AAED;;;GAGG;AACH,MAAa,iBAAiB;CAkC7B;AAlCD,8CAkCC;AAED,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;GAGG;AACH,MAAa,eAAe;CAsC3B;AAtCD,0CAsCC;AAED;;;GAGG;AACH,MAAa,eAAe;CAY3B;AAZD,0CAYC;AAED;;;GAGG;AACH,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED;;GAEG;AACH,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED;;GAEG;AACH,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED;;;GAGG;AACH,MAAa,mBAAmB;CAgB/B;AAhBD,kDAgBC;AAED;;;GAGG;AACH,MAAa,oBAAoB;CAgBhC;AAhBD,oDAgBC;AAED,wBAAwB;AACxB,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAa,2BAA2B;CAwBvC;AAxBD,kEAwBC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED;;;GAGG;AACH,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED;;;GAGG;AACH,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED;;;GAGG;AACH,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,0BAA0B;CAoBtC;AApBD,gEAoBC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,sBAAsB;CAclC;AAdD,wDAcC;AAED;;;GAGG;AACH,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAED;;;GAGG;AACH,MAAa,8BAA8B;CAkB1C;AAlBD,wEAkBC"}
@@ -89,11 +89,23 @@ export interface IDivisionSchedule {
89
89
  games: IGameSchedule[];
90
90
  teams: ITeamSchedule[];
91
91
  }
92
+ export interface IConflictingEvent {
93
+ id: number;
94
+ title: string;
95
+ }
96
+ export interface IConflictingResource {
97
+ id: number;
98
+ name: string;
99
+ }
92
100
  export interface IScheduleConflict {
93
- gameId: string;
94
- description: string;
95
- severity: ValidationSeverityEnum;
96
101
  type: ScheduleConflictTypeEnum;
102
+ severity: ValidationSeverityEnum;
103
+ gameId: string;
104
+ conflictingEvent?: IConflictingEvent;
105
+ resource?: IConflictingResource;
106
+ startDate?: string;
107
+ startTime?: string;
108
+ endTime?: string;
97
109
  }
98
110
  export interface IGenerateScheduleOptions {
99
111
  isGenerateOptimized?: boolean;
@@ -269,3 +281,11 @@ export interface ICreateEventsParams {
269
281
  isCreateSlots: boolean;
270
282
  timezone: string;
271
283
  }
284
+ export interface IScheduleTeam {
285
+ id: number;
286
+ name: string;
287
+ ancestors: number[];
288
+ }
289
+ export interface IScheduleCacheInvalidator {
290
+ invalidateOne: (id: number) => Promise<void>;
291
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.9",
3
+ "version": "2.4.10",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {