@bondsports/types 2.4.43 → 2.4.44
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/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/folders/dto/folder-restrictions.dto.d.ts +130 -0
- package/dist/types/folders/dto/folder-restrictions.dto.js +83 -0
- package/dist/types/folders/dto/folder-restrictions.dto.js.map +1 -0
- package/dist/types/folders/dto/folder.dto.d.ts +6 -0
- package/dist/types/folders/dto/folder.dto.js.map +1 -1
- package/dist/types/folders/dto/index.d.ts +1 -0
- package/dist/types/folders/dto/index.js +1 -0
- package/dist/types/folders/dto/index.js.map +1 -1
- package/dist/types/folders/entities/folder.entity.d.ts +2 -0
- package/dist/types/folders/entities/folder.entity.js.map +1 -1
- package/dist/types/folders/types/folder-restrictions.consts.d.ts +14 -0
- package/dist/types/folders/types/folder-restrictions.consts.js +31 -0
- package/dist/types/folders/types/folder-restrictions.consts.js.map +1 -0
- package/dist/types/folders/types/folder-restrictions.enums.d.ts +11 -0
- package/dist/types/folders/types/folder-restrictions.enums.js +16 -0
- package/dist/types/folders/types/folder-restrictions.enums.js.map +1 -0
- package/dist/types/folders/types/folder-restrictions.types.d.ts +5 -0
- package/dist/types/folders/types/folder-restrictions.types.js +3 -0
- package/dist/types/folders/types/folder-restrictions.types.js.map +1 -0
- package/dist/types/folders/types/folders.enums.d.ts +4 -0
- package/dist/types/folders/types/folders.enums.js +6 -1
- package/dist/types/folders/types/folders.enums.js.map +1 -1
- package/dist/types/folders/types/index.d.ts +35 -1
- package/dist/types/folders/types/index.js +3 -0
- package/dist/types/folders/types/index.js.map +1 -1
- package/dist/types/folders/types/interfaces/folder-restrictions.interfaces.d.ts +181 -0
- package/dist/types/folders/types/interfaces/folder-restrictions.interfaces.js +3 -0
- package/dist/types/folders/types/interfaces/folder-restrictions.interfaces.js.map +1 -0
- package/dist/types/folders/types/interfaces/index.d.ts +1 -0
- package/dist/types/folders/types/interfaces/index.js +1 -0
- package/dist/types/folders/types/interfaces/index.js.map +1 -1
- package/dist/types/league-standings/dto/competition.dto.d.ts +5 -1
- package/dist/types/league-standings/dto/competition.dto.js +4 -1
- package/dist/types/league-standings/dto/competition.dto.js.map +1 -1
- package/dist/types/league-standings/entities/stage.entity.d.ts +2 -0
- package/dist/types/league-standings/entities/stage.entity.js +3 -1
- package/dist/types/league-standings/entities/stage.entity.js.map +1 -1
- package/dist/types/league-standings/types/index.d.ts +2 -0
- package/dist/types/league-standings/types/index.js +2 -0
- package/dist/types/league-standings/types/index.js.map +1 -1
- package/dist/types/league-standings/types/stage-context.interface.d.ts +12 -0
- package/dist/types/league-standings/types/stage-context.interface.js +3 -0
- package/dist/types/league-standings/types/stage-context.interface.js.map +1 -0
- package/dist/types/leagues-scheduler/dto/leagues-scheduler-metadata.dto.d.ts +1 -1
- package/dist/types/leagues-scheduler/dto/leagues-scheduler-metadata.dto.js +2 -1
- package/dist/types/leagues-scheduler/dto/leagues-scheduler-metadata.dto.js.map +1 -1
- package/dist/types/leagues-scheduler/types/enums.d.ts +19 -0
- package/dist/types/leagues-scheduler/types/enums.js +33 -1
- package/dist/types/leagues-scheduler/types/enums.js.map +1 -1
- package/dist/types/leagues-scheduler/types/interfaces.d.ts +2 -3
- package/dist/types/leagues-scheduler/types/interfaces.js +5 -3
- package/dist/types/leagues-scheduler/types/interfaces.js.map +1 -1
- package/dist/types/programs-seasons/dto/program-session.dto.d.ts +4 -0
- package/dist/types/programs-seasons/dto/program-session.dto.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +2 -0
- package/dist/types/session-participants/dto/get.session.participant.dto.d.ts +2 -1
- package/dist/types/session-participants/dto/get.session.participant.dto.js.map +1 -1
- package/dist/types/standings-integration/dto/onboarding.dto.d.ts +6 -0
- package/dist/types/standings-integration/dto/onboarding.dto.js +7 -1
- package/dist/types/standings-integration/dto/onboarding.dto.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { GenderEnum, ProductSubTypesEnum } from '../../../services/enums.service';
|
|
2
|
+
import { User } from '../../../user/entities/User';
|
|
3
|
+
import { SKIP_ALL_RESTRICTIONS } from '../folder-restrictions.consts';
|
|
4
|
+
import { FolderRestrictionViolationCodeEnum } from '../folder-restrictions.enums';
|
|
5
|
+
import { FolderRestrictionActionEnum, MetaTypeEnum } from '../folders.enums';
|
|
6
|
+
/**
|
|
7
|
+
* Interface for folder content restrictions.
|
|
8
|
+
*/
|
|
9
|
+
export interface IFolderContentRestrictions {
|
|
10
|
+
maxSubfolderCount?: number;
|
|
11
|
+
maxSubfolderCountExemptionMetatypes?: MetaTypeEnum[];
|
|
12
|
+
maxUserCount?: number;
|
|
13
|
+
maxUserCountExemptionParticipantTypes?: ProductSubTypesEnum[];
|
|
14
|
+
maxMaleUserCount?: number;
|
|
15
|
+
maxFemaleUserCount?: number;
|
|
16
|
+
userAgeRestrictionExemptionParticipantTypes?: ProductSubTypesEnum[];
|
|
17
|
+
userAllowedGenders?: GenderEnum[];
|
|
18
|
+
userAllowedGendersExemptionParticipantTypes?: ProductSubTypesEnum[];
|
|
19
|
+
userBornOnOrAfter?: Date;
|
|
20
|
+
userBornOnOrBefore?: Date;
|
|
21
|
+
userMaxAgeAtRegistration?: number;
|
|
22
|
+
userMinAgeAtRegistration?: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Interface for folder restrictions policy.
|
|
26
|
+
*/
|
|
27
|
+
export interface IFolderRestrictions {
|
|
28
|
+
folderContentRestrictions?: IFolderContentRestrictions;
|
|
29
|
+
policyVersion: number;
|
|
30
|
+
subfolderDefaultFolderContentRestrictions?: IFolderContentRestrictions;
|
|
31
|
+
}
|
|
32
|
+
export interface IRestrictionCounter {
|
|
33
|
+
max?: number;
|
|
34
|
+
nonExemptCount: number;
|
|
35
|
+
remaining?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Interface for folder restrictions status counters.
|
|
39
|
+
*/
|
|
40
|
+
export interface IFolderRestrictionsStatusCounters {
|
|
41
|
+
subfolders: IRestrictionCounter;
|
|
42
|
+
users: IRestrictionCounter;
|
|
43
|
+
maleUsers?: IRestrictionCounter;
|
|
44
|
+
femaleUsers?: IRestrictionCounter;
|
|
45
|
+
}
|
|
46
|
+
export interface IMaxUserCountViolationContext {
|
|
47
|
+
max?: number;
|
|
48
|
+
current?: number;
|
|
49
|
+
remaining?: number;
|
|
50
|
+
requested?: number;
|
|
51
|
+
violationCount?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface IMaxSubfolderCountViolationContext {
|
|
54
|
+
maxSubfolders: number;
|
|
55
|
+
currentCount: number;
|
|
56
|
+
remaining?: number;
|
|
57
|
+
violationCount?: number;
|
|
58
|
+
}
|
|
59
|
+
export interface IGenderNotAllowedViolationContext {
|
|
60
|
+
userGender: GenderEnum;
|
|
61
|
+
allowedGenders: GenderEnum[];
|
|
62
|
+
violationCount?: number;
|
|
63
|
+
}
|
|
64
|
+
export interface IDobViolationContext {
|
|
65
|
+
userBirthDate: Date;
|
|
66
|
+
requiredDate: string;
|
|
67
|
+
violationCount?: number;
|
|
68
|
+
}
|
|
69
|
+
export interface IAgeViolationContext {
|
|
70
|
+
userAge: number;
|
|
71
|
+
requiredMinAge?: number;
|
|
72
|
+
requiredMaxAge?: number;
|
|
73
|
+
violationCount?: number;
|
|
74
|
+
}
|
|
75
|
+
export type IFolderRestrictionViolationContext = IMaxUserCountViolationContext | IMaxSubfolderCountViolationContext | IGenderNotAllowedViolationContext | IDobViolationContext | IAgeViolationContext;
|
|
76
|
+
/**
|
|
77
|
+
* Interface for effective exemption values.
|
|
78
|
+
*/
|
|
79
|
+
export interface IEffectiveExemptions {
|
|
80
|
+
maxSubfolderCountExemptionMetatypes: MetaTypeEnum[];
|
|
81
|
+
maxUserCountExemptionParticipantTypes: ProductSubTypesEnum[];
|
|
82
|
+
userAgeRestrictionExemptionParticipantTypes: ProductSubTypesEnum[];
|
|
83
|
+
userAllowedGendersExemptionParticipantTypes: ProductSubTypesEnum[];
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Interface for folder restriction violation details.
|
|
87
|
+
*/
|
|
88
|
+
export interface IFolderRestrictionViolation {
|
|
89
|
+
code: FolderRestrictionViolationCodeEnum;
|
|
90
|
+
context?: IFolderRestrictionViolationContext;
|
|
91
|
+
message: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Interface for user validation results against folder restrictions.
|
|
95
|
+
*/
|
|
96
|
+
export interface IFolderRestrictionsUserValidation {
|
|
97
|
+
isAllowed: boolean;
|
|
98
|
+
overridden: string[];
|
|
99
|
+
violations: IFolderRestrictionViolation[];
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Interface for individual user validation result.
|
|
103
|
+
*/
|
|
104
|
+
export interface IFolderRestrictionsUserValidationResult {
|
|
105
|
+
userId: number;
|
|
106
|
+
isAllowed: boolean;
|
|
107
|
+
overridden: string[];
|
|
108
|
+
violations: IFolderRestrictionViolation[];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Interface for folder restrictions status result.
|
|
112
|
+
*/
|
|
113
|
+
export interface IFolderRestrictionsStatusResult {
|
|
114
|
+
counters: IFolderRestrictionsStatusCounters;
|
|
115
|
+
effectiveRestrictions: IFolderRestrictions;
|
|
116
|
+
userValidation?: IFolderRestrictionsUserValidation;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Interface for folder restrictions validation response.
|
|
120
|
+
*/
|
|
121
|
+
export interface IFolderRestrictionsValidationResponse {
|
|
122
|
+
isAllowed: boolean;
|
|
123
|
+
counters?: IFolderRestrictionsStatusCounters;
|
|
124
|
+
effectiveRestrictions?: IFolderRestrictions;
|
|
125
|
+
overridden: string[];
|
|
126
|
+
userValidations?: IFolderRestrictionsUserValidationResult[];
|
|
127
|
+
violations: IFolderRestrictionViolation[];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Aggregated result from bulk folder restriction validation across multiple folders.
|
|
131
|
+
*/
|
|
132
|
+
export interface IBulkFolderValidationResult {
|
|
133
|
+
allViolations: IFolderRestrictionViolation[];
|
|
134
|
+
allOverridden: string[];
|
|
135
|
+
allUserValidations: IFolderRestrictionsUserValidationResult[];
|
|
136
|
+
overallAllowed: boolean;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Interface for folder restrictions validation request.
|
|
140
|
+
*/
|
|
141
|
+
export interface IFolderRestrictionsValidationRequest {
|
|
142
|
+
action: FolderRestrictionActionEnum;
|
|
143
|
+
parentFolderIds: number[];
|
|
144
|
+
participantSubtype?: ProductSubTypesEnum;
|
|
145
|
+
skipFolderContentRestrictions?: string[];
|
|
146
|
+
userIds?: number[];
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Options for skipping folder content restriction validation during admin/system operations.
|
|
150
|
+
* Pass SKIP_ALL_RESTRICTIONS to skip all restrictions, or an array of specific rule names to skip.
|
|
151
|
+
*/
|
|
152
|
+
export interface IFolderContentOperationOptions {
|
|
153
|
+
skipRestrictions?: typeof SKIP_ALL_RESTRICTIONS | string[];
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Base options for folder restriction validation operations.
|
|
157
|
+
*/
|
|
158
|
+
export interface IFolderRestrictionOptions {
|
|
159
|
+
participantSubtype?: ProductSubTypesEnum;
|
|
160
|
+
skipFolderContentRestrictions?: typeof SKIP_ALL_RESTRICTIONS | string[];
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Options for bulk folder restriction validation with optional user IDs.
|
|
164
|
+
*/
|
|
165
|
+
export interface IBulkFolderRestrictionOptions extends IFolderRestrictionOptions {
|
|
166
|
+
userIds?: number[];
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Options for single-folder restriction status checks with optional user context.
|
|
170
|
+
*/
|
|
171
|
+
export interface IFolderRestrictionStatusOptions extends IFolderRestrictionOptions {
|
|
172
|
+
userId?: number;
|
|
173
|
+
user?: User;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Interface for folder restrictions status query parameters.
|
|
177
|
+
*/
|
|
178
|
+
export interface IGetFolderRestrictionsStatusQuery {
|
|
179
|
+
userId?: number;
|
|
180
|
+
participantSubtype?: ProductSubTypesEnum;
|
|
181
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder-restrictions.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/folders/types/interfaces/folder-restrictions.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./folder-content.interfaces"), exports);
|
|
18
|
+
__exportStar(require("./folder-restrictions.interfaces"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/folders/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/folders/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,mEAAiD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SportsEnum } from '../../activities/types/activities.enums';
|
|
2
2
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
3
3
|
import { CompetitionStatusEnum } from '../entities/competition.entity';
|
|
4
|
-
import { CompetitionPublicSettingsShowDto } from './competition-public-settings.dto';
|
|
4
|
+
import { CompetitionPublicSettingsShowDto, UpdateCompetitionPublicSettingItemDto } from './competition-public-settings.dto';
|
|
5
5
|
import { CreateCompetitionDivisionDto } from './division.dto';
|
|
6
6
|
import { StageShowDto } from './stage.dto';
|
|
7
7
|
export declare class CompetitionByIdDto extends ByOrganizationIdDto {
|
|
@@ -32,3 +32,7 @@ export declare class CreateCompetitionDto {
|
|
|
32
32
|
status?: CompetitionStatusEnum;
|
|
33
33
|
divisions?: CreateCompetitionDivisionDto[];
|
|
34
34
|
}
|
|
35
|
+
export declare class UpdateCompetitionDto {
|
|
36
|
+
description?: string;
|
|
37
|
+
settings?: UpdateCompetitionPublicSettingItemDto[];
|
|
38
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateCompetitionDto = exports.CompetitionShowDto = exports.CompetitionByUuidDto = exports.CompetitionByIdDto = void 0;
|
|
3
|
+
exports.UpdateCompetitionDto = exports.CreateCompetitionDto = exports.CompetitionShowDto = exports.CompetitionByUuidDto = exports.CompetitionByIdDto = void 0;
|
|
4
4
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
5
5
|
class CompetitionByIdDto extends organization_dto_1.ByOrganizationIdDto {
|
|
6
6
|
}
|
|
@@ -14,4 +14,7 @@ exports.CompetitionShowDto = CompetitionShowDto;
|
|
|
14
14
|
class CreateCompetitionDto {
|
|
15
15
|
}
|
|
16
16
|
exports.CreateCompetitionDto = CreateCompetitionDto;
|
|
17
|
+
class UpdateCompetitionDto {
|
|
18
|
+
}
|
|
19
|
+
exports.UpdateCompetitionDto = UpdateCompetitionDto;
|
|
17
20
|
//# sourceMappingURL=competition.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"competition.dto.js","sourceRoot":"","sources":["../../../../src/types/league-standings/dto/competition.dto.ts"],"names":[],"mappings":";;;AAEA,8EAA8E;AAO9E,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,kBAAkB;CAsB9B;AAtBD,gDAsBC;AAED,MAAa,oBAAoB;CAchC;AAdD,oDAcC"}
|
|
1
|
+
{"version":3,"file":"competition.dto.js","sourceRoot":"","sources":["../../../../src/types/league-standings/dto/competition.dto.ts"],"names":[],"mappings":";;;AAEA,8EAA8E;AAO9E,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,kBAAkB;CAsB9B;AAtBD,gDAsBC;AAED,MAAa,oBAAoB;CAchC;AAdD,oDAcC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC"}
|
|
@@ -4,6 +4,8 @@ export declare enum StageTypeEnum {
|
|
|
4
4
|
REGULAR_SEASON = "regular_season",
|
|
5
5
|
PLAYOFFS = "playoffs"
|
|
6
6
|
}
|
|
7
|
+
export declare const STAGE_NAME_REGULAR_SEASON = "Regular Season";
|
|
8
|
+
export declare const STAGE_NAME_PLAYOFFS = "Playoffs";
|
|
7
9
|
export declare class Stage extends BondBaseEntity {
|
|
8
10
|
competitionId: number;
|
|
9
11
|
competition: Competition;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Stage = exports.StageTypeEnum = void 0;
|
|
3
|
+
exports.Stage = exports.STAGE_NAME_PLAYOFFS = exports.STAGE_NAME_REGULAR_SEASON = exports.StageTypeEnum = void 0;
|
|
4
4
|
const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
|
|
5
5
|
var StageTypeEnum;
|
|
6
6
|
(function (StageTypeEnum) {
|
|
7
7
|
StageTypeEnum["REGULAR_SEASON"] = "regular_season";
|
|
8
8
|
StageTypeEnum["PLAYOFFS"] = "playoffs";
|
|
9
9
|
})(StageTypeEnum = exports.StageTypeEnum || (exports.StageTypeEnum = {}));
|
|
10
|
+
exports.STAGE_NAME_REGULAR_SEASON = 'Regular Season';
|
|
11
|
+
exports.STAGE_NAME_PLAYOFFS = 'Playoffs';
|
|
10
12
|
class Stage extends BondBaseEntity_1.BondBaseEntity {
|
|
11
13
|
}
|
|
12
14
|
exports.Stage = Stage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.entity.js","sourceRoot":"","sources":["../../../../src/types/league-standings/entities/stage.entity.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAI7D,IAAY,aAGX;AAHD,WAAY,aAAa;IACxB,kDAAiC,CAAA;IACjC,sCAAqB,CAAA;AACtB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;
|
|
1
|
+
{"version":3,"file":"stage.entity.js","sourceRoot":"","sources":["../../../../src/types/league-standings/entities/stage.entity.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAI7D,IAAY,aAGX;AAHD,WAAY,aAAa;IACxB,kDAAiC,CAAA;IACjC,sCAAqB,CAAA;AACtB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAEY,QAAA,yBAAyB,GAAG,gBAAgB,CAAC;AAC7C,QAAA,mBAAmB,GAAG,UAAU,CAAC;AAE9C,MAAa,KAAM,SAAQ,+BAAc;CAgBxC;AAhBD,sBAgBC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './consts';
|
|
2
2
|
export * from './game.enums';
|
|
3
3
|
export * from './standings.enums';
|
|
4
|
+
export * from './stage-context.interface';
|
|
4
5
|
export * from './standings-contribution.interface';
|
|
5
6
|
export * from './consts';
|
|
6
7
|
export * from './game.enums';
|
|
7
8
|
export * from './index';
|
|
9
|
+
export * from './stage-context.interface';
|
|
8
10
|
export * from './standings-contribution.interface';
|
|
9
11
|
export * from './standings.enums';
|
|
@@ -17,10 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./consts"), exports);
|
|
18
18
|
__exportStar(require("./game.enums"), exports);
|
|
19
19
|
__exportStar(require("./standings.enums"), exports);
|
|
20
|
+
__exportStar(require("./stage-context.interface"), exports);
|
|
20
21
|
__exportStar(require("./standings-contribution.interface"), exports);
|
|
21
22
|
__exportStar(require("./consts"), exports);
|
|
22
23
|
__exportStar(require("./game.enums"), exports);
|
|
23
24
|
__exportStar(require("./index"), exports);
|
|
25
|
+
__exportStar(require("./stage-context.interface"), exports);
|
|
24
26
|
__exportStar(require("./standings-contribution.interface"), exports);
|
|
25
27
|
__exportStar(require("./standings.enums"), exports);
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/league-standings/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AAEzB,+CAA6B;AAE7B,oDAAkC;AAElC,qEAAmD;AACnD,2CAAyB;AACzB,+CAA6B;AAC7B,0CAAwB;AACxB,qEAAmD;AACnD,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/league-standings/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AAEzB,+CAA6B;AAE7B,oDAAkC;AAElC,4DAA0C;AAE1C,qEAAmD;AACnD,2CAAyB;AACzB,+CAA6B;AAC7B,0CAAwB;AACxB,4DAA0C;AAC1C,qEAAmD;AACnD,oDAAkC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StageTypeEnum } from '../entities/stage.entity';
|
|
2
|
+
/**
|
|
3
|
+
* Identifies the program season and stage type for a given stage.
|
|
4
|
+
* Used when resolving which event sub-types (regular season vs playoff)
|
|
5
|
+
* apply to a stage's games so the correct scores are queried.
|
|
6
|
+
*/
|
|
7
|
+
export interface IStageContext {
|
|
8
|
+
/** The program season this stage belongs to (Stage -> Competition -> ProgramSeason) */
|
|
9
|
+
programSeasonId: number;
|
|
10
|
+
/** Whether the stage represents regular-season or playoff play */
|
|
11
|
+
stageType: StageTypeEnum;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-context.interface.js","sourceRoot":"","sources":["../../../../src/types/league-standings/types/stage-context.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ILeagueEventMetadata } from '../../league/types';
|
|
2
2
|
import { IDraftSchedule, ILeagueScheduleData, GameTypeEnum, ScheduleStatusEnum } from '../types/interfaces';
|
|
3
3
|
import { ScheduleConfigDto, GeneratedScheduleDto } from './leagues-scheduler.dto';
|
|
4
|
-
export { GameTypeEnum, ScheduleStatusEnum } from '../types/interfaces';
|
|
4
|
+
export { GameTypeEnum, ScheduleStatusEnum, EventSubTypeEnum } from '../types/interfaces';
|
|
5
5
|
/**
|
|
6
6
|
* League Game Metadata DTO - Simplified schema
|
|
7
7
|
* For services/utilities, import and use ILeagueEventMetadata from league/types
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LeagueScheduleDataDto = exports.DraftScheduleDto = exports.LeagueGameMetadataDto = exports.ScheduleStatusEnum = exports.GameTypeEnum = void 0;
|
|
3
|
+
exports.LeagueScheduleDataDto = exports.DraftScheduleDto = exports.LeagueGameMetadataDto = exports.EventSubTypeEnum = exports.ScheduleStatusEnum = exports.GameTypeEnum = void 0;
|
|
4
4
|
// Re-export enums for backward compatibility
|
|
5
5
|
var interfaces_1 = require("../types/interfaces");
|
|
6
6
|
Object.defineProperty(exports, "GameTypeEnum", { enumerable: true, get: function () { return interfaces_1.GameTypeEnum; } });
|
|
7
7
|
Object.defineProperty(exports, "ScheduleStatusEnum", { enumerable: true, get: function () { return interfaces_1.ScheduleStatusEnum; } });
|
|
8
|
+
Object.defineProperty(exports, "EventSubTypeEnum", { enumerable: true, get: function () { return interfaces_1.EventSubTypeEnum; } });
|
|
8
9
|
/**
|
|
9
10
|
* League Game Metadata DTO - Simplified schema
|
|
10
11
|
* For services/utilities, import and use ILeagueEventMetadata from league/types
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leagues-scheduler-metadata.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/leagues-scheduler-metadata.dto.ts"],"names":[],"mappings":";;;AAMA,6CAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"leagues-scheduler-metadata.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/leagues-scheduler-metadata.dto.ts"],"names":[],"mappings":";;;AAMA,6CAA6C;AAC7C,kDAAyF;AAAhF,0GAAA,YAAY,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAAE,8GAAA,gBAAgB,OAAA;AAE3D;;;;;;;;;;;;GAYG;AACH,MAAa,qBAAqB;CAgBjC;AAhBD,sDAgBC;AAED,gDAAgD;AAEhD;;;;GAIG;AACH,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AAED;;;;;GAKG;AACH,MAAa,qBAAqB;CAUjC;AAVD,sDAUC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StageTypeEnum } from '../../league-standings/entities/stage.entity';
|
|
1
2
|
export declare enum ScheduleStatusEnum {
|
|
2
3
|
DRAFT = "draft",
|
|
3
4
|
PUBLISHED = "published"
|
|
@@ -25,3 +26,21 @@ export declare enum GameTypeEnum {
|
|
|
25
26
|
PRACTICE = "practice",
|
|
26
27
|
TRYOUT = "tryout"
|
|
27
28
|
}
|
|
29
|
+
export declare enum EventSubTypeEnum {
|
|
30
|
+
GAME = "game",
|
|
31
|
+
MATCH = "match",
|
|
32
|
+
PRACTICE = "practice",
|
|
33
|
+
TRYOUT = "tryout",
|
|
34
|
+
EXHIBITION = "exhibition",
|
|
35
|
+
FRIENDLY = "friendly",
|
|
36
|
+
PLAYOFF = "playoff",
|
|
37
|
+
SCRIMMAGE = "scrimmage",
|
|
38
|
+
FINAL = "final",
|
|
39
|
+
OTHER = "other"
|
|
40
|
+
}
|
|
41
|
+
export declare const PLAYOFF_EVENT_SUB_TYPES: readonly [EventSubTypeEnum.PLAYOFF, EventSubTypeEnum.FINAL];
|
|
42
|
+
export declare const REGULAR_SEASON_EVENT_SUB_TYPES: readonly [EventSubTypeEnum.GAME, EventSubTypeEnum.EXHIBITION, EventSubTypeEnum.FRIENDLY, EventSubTypeEnum.SCRIMMAGE];
|
|
43
|
+
/**
|
|
44
|
+
* Returns the event sub-types for a given stage type.
|
|
45
|
+
*/
|
|
46
|
+
export declare function getEventSubTypesForStage(stageType: StageTypeEnum): EventSubTypeEnum[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GameTypeEnum = exports.ValidationSeverityEnum = exports.ScheduleConflictTypeEnum = exports.ByeWeekPolicyEnum = exports.ScheduleStatusEnum = void 0;
|
|
3
|
+
exports.getEventSubTypesForStage = exports.REGULAR_SEASON_EVENT_SUB_TYPES = exports.PLAYOFF_EVENT_SUB_TYPES = exports.EventSubTypeEnum = exports.GameTypeEnum = exports.ValidationSeverityEnum = exports.ScheduleConflictTypeEnum = exports.ByeWeekPolicyEnum = exports.ScheduleStatusEnum = void 0;
|
|
4
|
+
const stage_entity_1 = require("../../league-standings/entities/stage.entity");
|
|
4
5
|
var ScheduleStatusEnum;
|
|
5
6
|
(function (ScheduleStatusEnum) {
|
|
6
7
|
ScheduleStatusEnum["DRAFT"] = "draft";
|
|
@@ -33,4 +34,35 @@ var GameTypeEnum;
|
|
|
33
34
|
GameTypeEnum["PRACTICE"] = "practice";
|
|
34
35
|
GameTypeEnum["TRYOUT"] = "tryout";
|
|
35
36
|
})(GameTypeEnum = exports.GameTypeEnum || (exports.GameTypeEnum = {}));
|
|
37
|
+
var EventSubTypeEnum;
|
|
38
|
+
(function (EventSubTypeEnum) {
|
|
39
|
+
EventSubTypeEnum["GAME"] = "game";
|
|
40
|
+
EventSubTypeEnum["MATCH"] = "match";
|
|
41
|
+
EventSubTypeEnum["PRACTICE"] = "practice";
|
|
42
|
+
EventSubTypeEnum["TRYOUT"] = "tryout";
|
|
43
|
+
EventSubTypeEnum["EXHIBITION"] = "exhibition";
|
|
44
|
+
EventSubTypeEnum["FRIENDLY"] = "friendly";
|
|
45
|
+
EventSubTypeEnum["PLAYOFF"] = "playoff";
|
|
46
|
+
EventSubTypeEnum["SCRIMMAGE"] = "scrimmage";
|
|
47
|
+
EventSubTypeEnum["FINAL"] = "final";
|
|
48
|
+
EventSubTypeEnum["OTHER"] = "other";
|
|
49
|
+
})(EventSubTypeEnum = exports.EventSubTypeEnum || (exports.EventSubTypeEnum = {}));
|
|
50
|
+
exports.PLAYOFF_EVENT_SUB_TYPES = [EventSubTypeEnum.PLAYOFF, EventSubTypeEnum.FINAL];
|
|
51
|
+
exports.REGULAR_SEASON_EVENT_SUB_TYPES = [
|
|
52
|
+
EventSubTypeEnum.GAME,
|
|
53
|
+
EventSubTypeEnum.EXHIBITION,
|
|
54
|
+
EventSubTypeEnum.FRIENDLY,
|
|
55
|
+
EventSubTypeEnum.SCRIMMAGE,
|
|
56
|
+
];
|
|
57
|
+
const EVENT_SUB_TYPES_BY_STAGE = {
|
|
58
|
+
[stage_entity_1.StageTypeEnum.PLAYOFFS]: exports.PLAYOFF_EVENT_SUB_TYPES,
|
|
59
|
+
[stage_entity_1.StageTypeEnum.REGULAR_SEASON]: exports.REGULAR_SEASON_EVENT_SUB_TYPES,
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Returns the event sub-types for a given stage type.
|
|
63
|
+
*/
|
|
64
|
+
function getEventSubTypesForStage(stageType) {
|
|
65
|
+
return [...(EVENT_SUB_TYPES_BY_STAGE[stageType] ?? exports.REGULAR_SEASON_EVENT_SUB_TYPES)];
|
|
66
|
+
}
|
|
67
|
+
exports.getEventSubTypesForStage = getEventSubTypesForStage;
|
|
36
68
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,qCAAe,CAAA;IACf,6CAAuB,CAAA;AACxB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;AAClB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAED,IAAY,wBAMX;AAND,WAAY,wBAAwB;IACnC,yEAA6C,CAAA;IAC7C,uEAA2C,CAAA;IAC3C,2DAA+B,CAAA;IAC/B,2DAA+B,CAAA;IAC/B,2DAA+B,CAAA;AAChC,CAAC,EANW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAMnC;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IACjC,6CAAmB,CAAA;IACnB,yCAAe,CAAA;AAChB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,YAMX;AAND,WAAY,YAAY;IACvB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,yCAAyB,CAAA;IACzB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;AAClB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB"}
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/types/enums.ts"],"names":[],"mappings":";;;AAAA,+EAA6E;AAE7E,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,qCAAe,CAAA;IACf,6CAAuB,CAAA;AACxB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;AAClB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAED,IAAY,wBAMX;AAND,WAAY,wBAAwB;IACnC,yEAA6C,CAAA;IAC7C,uEAA2C,CAAA;IAC3C,2DAA+B,CAAA;IAC/B,2DAA+B,CAAA;IAC/B,2DAA+B,CAAA;AAChC,CAAC,EANW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAMnC;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IACjC,6CAAmB,CAAA;IACnB,yCAAe,CAAA;AAChB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,YAMX;AAND,WAAY,YAAY;IACvB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,yCAAyB,CAAA;IACzB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;AAClB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAED,IAAY,gBAWX;AAXD,WAAY,gBAAgB;IAC3B,iCAAa,CAAA;IACb,mCAAe,CAAA;IACf,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,6CAAyB,CAAA;IACzB,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,mCAAe,CAAA;IACf,mCAAe,CAAA;AAChB,CAAC,EAXW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAW3B;AAEY,QAAA,uBAAuB,GAAG,CAAC,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAU,CAAC;AAEtF,QAAA,8BAA8B,GAAG;IAC7C,gBAAgB,CAAC,IAAI;IACrB,gBAAgB,CAAC,UAAU;IAC3B,gBAAgB,CAAC,QAAQ;IACzB,gBAAgB,CAAC,SAAS;CACjB,CAAC;AAEX,MAAM,wBAAwB,GAAuD;IACpF,CAAC,4BAAa,CAAC,QAAQ,CAAC,EAAE,+BAAuB;IACjD,CAAC,4BAAa,CAAC,cAAc,CAAC,EAAE,sCAA8B;CAC9D,CAAC;AAEF;;GAEG;AACH,SAAgB,wBAAwB,CAAC,SAAwB;IAChE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,SAAS,CAAC,IAAI,sCAA8B,CAAC,CAAC,CAAC;AACrF,CAAC;AAFD,4DAEC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { EntityManager } from 'typeorm';
|
|
2
2
|
import { FolderContent } from '../../folders/entities/folder-content.entity';
|
|
3
|
-
import { ScheduleStatusEnum, ByeWeekPolicyEnum, ScheduleConflictTypeEnum, ValidationSeverityEnum, GameTypeEnum } from './enums';
|
|
4
|
-
export { ScheduleStatusEnum, ByeWeekPolicyEnum, ScheduleConflictTypeEnum, ValidationSeverityEnum, GameTypeEnum };
|
|
5
|
-
export declare const EVENT_SUBTYPE_GAME = "game";
|
|
3
|
+
import { ScheduleStatusEnum, ByeWeekPolicyEnum, ScheduleConflictTypeEnum, ValidationSeverityEnum, GameTypeEnum, EventSubTypeEnum, PLAYOFF_EVENT_SUB_TYPES, REGULAR_SEASON_EVENT_SUB_TYPES, getEventSubTypesForStage } from './enums';
|
|
4
|
+
export { ScheduleStatusEnum, ByeWeekPolicyEnum, ScheduleConflictTypeEnum, ValidationSeverityEnum, GameTypeEnum, EventSubTypeEnum, PLAYOFF_EVENT_SUB_TYPES, REGULAR_SEASON_EVENT_SUB_TYPES, getEventSubTypesForStage, };
|
|
6
5
|
export interface ILeagueScheduleTimeSlot {
|
|
7
6
|
id: string;
|
|
8
7
|
resourceId: number;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InternalConflictTypeEnum = exports.
|
|
3
|
+
exports.InternalConflictTypeEnum = exports.getEventSubTypesForStage = exports.REGULAR_SEASON_EVENT_SUB_TYPES = exports.PLAYOFF_EVENT_SUB_TYPES = exports.EventSubTypeEnum = exports.GameTypeEnum = exports.ValidationSeverityEnum = exports.ScheduleConflictTypeEnum = exports.ByeWeekPolicyEnum = exports.ScheduleStatusEnum = void 0;
|
|
4
4
|
const enums_1 = require("./enums");
|
|
5
5
|
Object.defineProperty(exports, "ScheduleStatusEnum", { enumerable: true, get: function () { return enums_1.ScheduleStatusEnum; } });
|
|
6
6
|
Object.defineProperty(exports, "ByeWeekPolicyEnum", { enumerable: true, get: function () { return enums_1.ByeWeekPolicyEnum; } });
|
|
7
7
|
Object.defineProperty(exports, "ScheduleConflictTypeEnum", { enumerable: true, get: function () { return enums_1.ScheduleConflictTypeEnum; } });
|
|
8
8
|
Object.defineProperty(exports, "ValidationSeverityEnum", { enumerable: true, get: function () { return enums_1.ValidationSeverityEnum; } });
|
|
9
9
|
Object.defineProperty(exports, "GameTypeEnum", { enumerable: true, get: function () { return enums_1.GameTypeEnum; } });
|
|
10
|
-
|
|
11
|
-
exports.
|
|
10
|
+
Object.defineProperty(exports, "EventSubTypeEnum", { enumerable: true, get: function () { return enums_1.EventSubTypeEnum; } });
|
|
11
|
+
Object.defineProperty(exports, "PLAYOFF_EVENT_SUB_TYPES", { enumerable: true, get: function () { return enums_1.PLAYOFF_EVENT_SUB_TYPES; } });
|
|
12
|
+
Object.defineProperty(exports, "REGULAR_SEASON_EVENT_SUB_TYPES", { enumerable: true, get: function () { return enums_1.REGULAR_SEASON_EVENT_SUB_TYPES; } });
|
|
13
|
+
Object.defineProperty(exports, "getEventSubTypesForStage", { enumerable: true, get: function () { return enums_1.getEventSubTypesForStage; } });
|
|
12
14
|
var InternalConflictTypeEnum;
|
|
13
15
|
(function (InternalConflictTypeEnum) {
|
|
14
16
|
InternalConflictTypeEnum["RESOURCE_OVERLAP"] = "resource_overlap";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/types/interfaces.ts"],"names":[],"mappings":";;;AAIA,
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/types/interfaces.ts"],"names":[],"mappings":";;;AAIA,mCAUiB;AAGhB,mGAZA,0BAAkB,OAYA;AAClB,kGAZA,yBAAiB,OAYA;AACjB,yGAZA,gCAAwB,OAYA;AACxB,uGAZA,8BAAsB,OAYA;AACtB,6FAZA,oBAAY,OAYA;AACZ,iGAZA,wBAAgB,OAYA;AAChB,wGAZA,+BAAuB,OAYA;AACvB,+GAZA,sCAA8B,OAYA;AAC9B,yGAZA,gCAAwB,OAYA;AA6UzB,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IACnC,iEAAqC,CAAA;IACrC,uEAA2C,CAAA;AAC5C,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC"}
|
|
@@ -16,6 +16,7 @@ import { ITimeSlotConflicts } from '../../reservations/types/interfaces/reservat
|
|
|
16
16
|
import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
|
|
17
17
|
import { DayOfWeekNameEnum, GenderEnum, OrderByEnum, RegistrationConstraintPeriodTypeEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
18
18
|
import { ProgramSeason } from '../entities/ProgramSeason';
|
|
19
|
+
import { EventSubTypeEnum } from '../../leagues-scheduler/types/enums';
|
|
19
20
|
import { EventSortByFieldsEnum, SessionEventSortByEnum } from '../types/enums/program-season.enums';
|
|
20
21
|
import { IGetProgramSeasonChildrenFilters, IGetProgramSeasonsChildrenOptions } from '../types/interfaces/program-session.interfaces';
|
|
21
22
|
export declare class FindSessionsFiltersDto {
|
|
@@ -54,6 +55,7 @@ export declare class FindSeasonEventsQueryDto extends PaginationQuery {
|
|
|
54
55
|
folderIds?: number[];
|
|
55
56
|
segmentIds?: number[];
|
|
56
57
|
daysOfWeek?: DayOfWeekNameEnum[];
|
|
58
|
+
eventSubTypes?: EventSubTypeEnum[];
|
|
57
59
|
filterByRegistrationConstraints?: boolean;
|
|
58
60
|
}
|
|
59
61
|
export declare class ByOrganizationIdAndProgramSeasonIdDto extends ByOrganizationIdDto {
|
|
@@ -156,6 +158,8 @@ export declare class CreateProgramSeasonDto extends BaseProgramSeasonDto {
|
|
|
156
158
|
subSeasons?: SubSeasonBasicInfo[];
|
|
157
159
|
duplicateFromSeasonId?: number;
|
|
158
160
|
createInvitedPlayerProduct?: boolean;
|
|
161
|
+
isDuplicateFoldersFromSeason?: boolean;
|
|
162
|
+
isDuplicateProductsFromSeason?: boolean;
|
|
159
163
|
}
|
|
160
164
|
export declare class UpdateProgramSeasonDto extends BaseProgramSeasonDto {
|
|
161
165
|
seasonId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program-session.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-session.dto.ts"],"names":[],"mappings":";;;AAGA,uDAA4G;AAG5G,yFAAoF;AACpF,8EAAyG;AAEzG,gEAAuF;
|
|
1
|
+
{"version":3,"file":"program-session.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-session.dto.ts"],"names":[],"mappings":"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"}
|
|
@@ -3,6 +3,7 @@ import { Customer } from '../../../entity/Customer';
|
|
|
3
3
|
import { Event } from '../../../entity/Events';
|
|
4
4
|
import { SeasonAttendee } from '../../../entity/SeasonAttendees';
|
|
5
5
|
import { GlCode } from '../../../gl-codes/entities/gl-code';
|
|
6
|
+
import { EventSubTypeEnum } from '../../../leagues-scheduler/types/enums';
|
|
6
7
|
import { Organization } from '../../../organization/entities/Organization';
|
|
7
8
|
import { Product } from '../../../product-pricing/entities/product.entity';
|
|
8
9
|
import { IValidateResourcesOptions } from '../../../product-pricing/types/interfaces/validate-resources.interfaces';
|
|
@@ -119,6 +120,7 @@ export interface IGetEventsOfSeasonParams extends IPagination {
|
|
|
119
120
|
attendeeId?: number;
|
|
120
121
|
daysOfWeek?: DayOfWeekNameEnum[];
|
|
121
122
|
endDate?: string;
|
|
123
|
+
eventSubTypes?: EventSubTypeEnum[];
|
|
122
124
|
expendEventsData?: boolean;
|
|
123
125
|
filterByRegistrationConstraints?: boolean;
|
|
124
126
|
folderIds?: number[];
|
|
@@ -2,7 +2,7 @@ import { PaginatedSearchDto } from '../../dto/general.dto';
|
|
|
2
2
|
import { MetaTypeEnum } from '../../folders/types/folders.enums';
|
|
3
3
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
4
4
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
5
|
-
import { GenderEnum, OrderByEnum, SignWaiverEnum } from '../../services/enums.service';
|
|
5
|
+
import { GenderEnum, OrderByEnum, ProductSubTypesEnum, SignWaiverEnum } from '../../services/enums.service';
|
|
6
6
|
import { SessionParticipantsSortByEnum } from '../types/enums';
|
|
7
7
|
export declare class SessionParticipantsOptionsDto {
|
|
8
8
|
paymentStatuses?: PaymentStatusEnum[];
|
|
@@ -31,6 +31,7 @@ export declare class GetGroupsOptionsDto extends PaginatedSearchDto {
|
|
|
31
31
|
groupCategories?: string[];
|
|
32
32
|
registrationAccess?: number[];
|
|
33
33
|
metaTypes?: MetaTypeEnum[];
|
|
34
|
+
participantType?: ProductSubTypesEnum;
|
|
34
35
|
}
|
|
35
36
|
export declare class ByFolderIdsDto extends GetGroupsOptionsDto {
|
|
36
37
|
folderIds: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.session.participant.dto.js","sourceRoot":"","sources":["../../../../src/types/session-participants/dto/get.session.participant.dto.ts"],"names":[],"mappings":";;;AACA,uDAAyG;AAEzG,8EAA8E;AAM9E,MAAa,6BAA6B;CAgBzC;AAhBD,sEAgBC;AAED,MAAa,iCAAkC,SAAQ,6BAA6B;CAOnF;AAPD,8EAOC;AAED,MAAa,cAAe,SAAQ,sCAAmB;CAEtD;AAFD,wCAEC;AAED,MAAa,uBAAwB,SAAQ,cAAc;CAE1D;AAFD,0DAEC;AAED,MAAa,mBAAoB,SAAQ,gCAAkB;
|
|
1
|
+
{"version":3,"file":"get.session.participant.dto.js","sourceRoot":"","sources":["../../../../src/types/session-participants/dto/get.session.participant.dto.ts"],"names":[],"mappings":";;;AACA,uDAAyG;AAEzG,8EAA8E;AAM9E,MAAa,6BAA6B;CAgBzC;AAhBD,sEAgBC;AAED,MAAa,iCAAkC,SAAQ,6BAA6B;CAOnF;AAPD,8EAOC;AAED,MAAa,cAAe,SAAQ,sCAAmB;CAEtD;AAFD,wCAEC;AAED,MAAa,uBAAwB,SAAQ,cAAc;CAE1D;AAFD,0DAEC;AAED,MAAa,mBAAoB,SAAQ,gCAAkB;CAY1D;AAZD,kDAYC;AAED,MAAa,cAAe,SAAQ,mBAAmB;CAEtD;AAFD,wCAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC"}
|
|
@@ -33,3 +33,9 @@ export declare class OnboardingResponseDto {
|
|
|
33
33
|
export declare class OnboardingParamsDto {
|
|
34
34
|
programSeasonId: number;
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Request body for adding a playoffs stage to an existing competition
|
|
38
|
+
*/
|
|
39
|
+
export declare class AddPlayoffsDto {
|
|
40
|
+
programSeasonId: number;
|
|
41
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OnboardingParamsDto = exports.OnboardingResponseDto = exports.OnboardingDivisionDto = exports.OnboardingTeamDto = void 0;
|
|
3
|
+
exports.AddPlayoffsDto = exports.OnboardingParamsDto = exports.OnboardingResponseDto = exports.OnboardingDivisionDto = exports.OnboardingTeamDto = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Team folder information
|
|
6
6
|
*/
|
|
@@ -25,4 +25,10 @@ exports.OnboardingResponseDto = OnboardingResponseDto;
|
|
|
25
25
|
class OnboardingParamsDto {
|
|
26
26
|
}
|
|
27
27
|
exports.OnboardingParamsDto = OnboardingParamsDto;
|
|
28
|
+
/**
|
|
29
|
+
* Request body for adding a playoffs stage to an existing competition
|
|
30
|
+
*/
|
|
31
|
+
class AddPlayoffsDto {
|
|
32
|
+
}
|
|
33
|
+
exports.AddPlayoffsDto = AddPlayoffsDto;
|
|
28
34
|
//# sourceMappingURL=onboarding.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding.dto.js","sourceRoot":"","sources":["../../../../src/types/standings-integration/dto/onboarding.dto.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED;;GAEG;AACH,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED;;GAEG;AACH,MAAa,qBAAqB;CAYjC;AAZD,sDAYC;AAED;;GAEG;AACH,MAAa,mBAAmB;CAE/B;AAFD,kDAEC"}
|
|
1
|
+
{"version":3,"file":"onboarding.dto.js","sourceRoot":"","sources":["../../../../src/types/standings-integration/dto/onboarding.dto.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED;;GAEG;AACH,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED;;GAEG;AACH,MAAa,qBAAqB;CAYjC;AAZD,sDAYC;AAED;;GAEG;AACH,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED;;GAEG;AACH,MAAa,cAAc;CAE1B;AAFD,wCAEC"}
|