@bondsports/types 2.4.38-a-4 → 2.4.38-a-6
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/dto/package.dto.d.ts +2 -0
- package/dist/types/dto/package.dto.js.map +1 -1
- package/dist/types/folders/types/interfaces/folder-content.interfaces.d.ts +8 -0
- package/dist/types/league-standings/dto/game.dto.d.ts +2 -2
- package/dist/types/league-standings/entities/game.entity.d.ts +4 -4
- package/dist/types/leagues-scheduler/dto/leagues-scheduler.dto.d.ts +43 -3
- package/dist/types/leagues-scheduler/dto/leagues-scheduler.dto.js +28 -1
- package/dist/types/leagues-scheduler/dto/leagues-scheduler.dto.js.map +1 -1
- package/dist/types/leagues-scheduler/types/interfaces.d.ts +54 -1
- package/dist/types/leagues-scheduler/types/interfaces.js +6 -1
- package/dist/types/leagues-scheduler/types/interfaces.js.map +1 -1
- package/dist/types/media/entities/Media.d.ts +2 -0
- package/dist/types/media/entities/Media.js.map +1 -1
- package/dist/types/product-pricing/dto/product-categories.dto.d.ts +3 -2
- package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +6 -0
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/public-product.dto.d.ts +3 -0
- package/dist/types/product-pricing/dto/public-product.dto.js.map +1 -1
- package/dist/types/product-pricing/entities/product.entity.d.ts +3 -0
- package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +8 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.js +4 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.d.ts +1 -1
- package/dist/types/services/interfaces.service.d.ts +15 -0
- package/dist/types/session-participants/types/interfaces.d.ts +2 -2
- package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.d.ts +5 -0
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MediaDto } from '../media/dto/media.dto';
|
|
1
2
|
import { CreatePaymentPlanDto } from '../payment/dto/payment-plan.dto';
|
|
2
3
|
import { CreateGroupPricingWithProduct, CreatePriceDto } from '../pricing/dto/pricing.dto';
|
|
3
4
|
import { CreateProductAvailabilityTimesDto, CreateRentalProductAddonDto } from '../product-pricing/dto/product.dto';
|
|
@@ -14,6 +15,7 @@ export declare class CreateProductDto {
|
|
|
14
15
|
startDate?: Date;
|
|
15
16
|
endDate?: Date;
|
|
16
17
|
description?: string;
|
|
18
|
+
mainMedia?: MediaDto;
|
|
17
19
|
resourcesType?: ResourceNameTypeEnum;
|
|
18
20
|
resourcesIdsToApplyOn?: number[];
|
|
19
21
|
requiredProductIds?: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;AAiBA,MAAa,gBAAgB;CAyF5B;AAzFD,4CAyFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AAED,MAAa,2BAA2B;CAQvC;AARD,kEAQC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uCAAwC,SAAQ,wBAAwB;CAEpF;AAFD,0FAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
|
|
@@ -34,3 +34,11 @@ export interface IGetFolderContentsParams {
|
|
|
34
34
|
export interface IGetPaginatedFolderContentsParams extends IGetFolderContentsParams {
|
|
35
35
|
pagination?: PaginationQuery;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Metadata structure for team folder content (ContentType.USER in team folders).
|
|
39
|
+
* Used to track the specific purchase associated with a user's team membership.
|
|
40
|
+
*/
|
|
41
|
+
export interface ITeamFolderMetadata {
|
|
42
|
+
teamRole?: string;
|
|
43
|
+
productUserId?: number;
|
|
44
|
+
}
|
|
@@ -31,8 +31,8 @@ export declare class UpdateGameDto {
|
|
|
31
31
|
export declare class GameShowDto {
|
|
32
32
|
id: number;
|
|
33
33
|
stageId: number;
|
|
34
|
-
homeTeamId
|
|
35
|
-
awayTeamId
|
|
34
|
+
homeTeamId?: number;
|
|
35
|
+
awayTeamId?: number;
|
|
36
36
|
eventId?: number;
|
|
37
37
|
homeScore?: number;
|
|
38
38
|
awayScore?: number;
|
|
@@ -6,10 +6,10 @@ export declare class Game extends BondBaseEntity {
|
|
|
6
6
|
stageId: number;
|
|
7
7
|
stage: Stage;
|
|
8
8
|
eventId?: number;
|
|
9
|
-
homeTeamId
|
|
10
|
-
homeTeam
|
|
11
|
-
awayTeamId
|
|
12
|
-
awayTeam
|
|
9
|
+
homeTeamId?: number;
|
|
10
|
+
homeTeam?: CompetitionTeam;
|
|
11
|
+
awayTeamId?: number;
|
|
12
|
+
awayTeam?: CompetitionTeam;
|
|
13
13
|
homeScore?: number;
|
|
14
14
|
awayScore?: number;
|
|
15
15
|
status: GameStatusEnum;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IScheduleConfig, IGameSchedule, ITeamSchedule, IDivisionSchedule, IScheduleConflict, IConflictingEvent, IConflictingResource, IGeneratedSchedule, ByeWeekPolicyEnum, ScheduleConflictTypeEnum, ValidationSeverityEnum } from '../types/interfaces';
|
|
1
|
+
import { IScheduleConfig, IGameSchedule, ITeamSchedule, IDivisionSchedule, IScheduleConflict, IConflictingEvent, IConflictingResource, IGeneratedSchedule, ByeWeekPolicyEnum, ScheduleConflictTypeEnum, ValidationSeverityEnum, InternalConflictTypeEnum } from '../types/interfaces';
|
|
2
2
|
import { MaintenanceEventDto } from './maintenance-event.dto';
|
|
3
|
-
|
|
3
|
+
import { ScheduleQualityScoreDto } from './quality-metrics.dto';
|
|
4
|
+
export { ByeWeekPolicyEnum, ScheduleConflictTypeEnum, ValidationSeverityEnum, InternalConflictTypeEnum, } from '../types/interfaces';
|
|
4
5
|
export { MaintenanceEventDto } from './maintenance-event.dto';
|
|
5
6
|
/**
|
|
6
7
|
* Query parameters for deleting a draft schedule
|
|
@@ -257,10 +258,49 @@ export declare class UpdateDraftScheduleResponseDto {
|
|
|
257
258
|
schedule: GeneratedScheduleDto;
|
|
258
259
|
status?: string;
|
|
259
260
|
publishedAt?: string;
|
|
260
|
-
qualityMetrics?:
|
|
261
|
+
qualityMetrics?: ScheduleQualityScoreDto;
|
|
261
262
|
metadata: {
|
|
262
263
|
updatedAt: string;
|
|
263
264
|
totalGames: number;
|
|
264
265
|
previousVersion?: number;
|
|
265
266
|
};
|
|
266
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* Request DTO for checking schedule conflicts
|
|
270
|
+
* Accepts a schedule and checks for both internal conflicts (within the schedule)
|
|
271
|
+
* and external conflicts (against other existing events)
|
|
272
|
+
*/
|
|
273
|
+
export declare class CheckConflictsRequestDto {
|
|
274
|
+
seasonFolderId: number;
|
|
275
|
+
schedule: GeneratedScheduleDto;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Internal conflict DTO for conflicts within the schedule itself
|
|
279
|
+
*/
|
|
280
|
+
export declare class InternalConflictDto {
|
|
281
|
+
type: InternalConflictTypeEnum;
|
|
282
|
+
gameId1: string;
|
|
283
|
+
gameId2: string;
|
|
284
|
+
resourceId?: number;
|
|
285
|
+
teamId?: number;
|
|
286
|
+
date: string;
|
|
287
|
+
description: string;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Metadata DTO for conflict check results
|
|
291
|
+
*/
|
|
292
|
+
export declare class ConflictCheckMetadataDto {
|
|
293
|
+
checkedAt: string;
|
|
294
|
+
totalGamesChecked: number;
|
|
295
|
+
internalConflictCount: number;
|
|
296
|
+
externalConflictCount: number;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Response DTO for check conflicts endpoint
|
|
300
|
+
*/
|
|
301
|
+
export declare class CheckConflictsResponseDto {
|
|
302
|
+
internalConflicts: InternalConflictDto[];
|
|
303
|
+
externalConflicts: ScheduleConflictDto[];
|
|
304
|
+
totalConflicts: number;
|
|
305
|
+
metadata: ConflictCheckMetadataDto;
|
|
306
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
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.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;
|
|
3
|
+
exports.CheckConflictsResponseDto = exports.ConflictCheckMetadataDto = exports.InternalConflictDto = exports.CheckConflictsRequestDto = 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.InternalConflictTypeEnum = 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; } });
|
|
7
7
|
Object.defineProperty(exports, "ScheduleConflictTypeEnum", { enumerable: true, get: function () { return interfaces_1.ScheduleConflictTypeEnum; } });
|
|
8
8
|
Object.defineProperty(exports, "ValidationSeverityEnum", { enumerable: true, get: function () { return interfaces_1.ValidationSeverityEnum; } });
|
|
9
|
+
Object.defineProperty(exports, "InternalConflictTypeEnum", { enumerable: true, get: function () { return interfaces_1.InternalConflictTypeEnum; } });
|
|
9
10
|
// Re-export MaintenanceEventDto for backward compatibility
|
|
10
11
|
var maintenance_event_dto_1 = require("./maintenance-event.dto");
|
|
11
12
|
Object.defineProperty(exports, "MaintenanceEventDto", { enumerable: true, get: function () { return maintenance_event_dto_1.MaintenanceEventDto; } });
|
|
@@ -148,4 +149,30 @@ exports.UpdateDraftScheduleRequestDto = UpdateDraftScheduleRequestDto;
|
|
|
148
149
|
class UpdateDraftScheduleResponseDto {
|
|
149
150
|
}
|
|
150
151
|
exports.UpdateDraftScheduleResponseDto = UpdateDraftScheduleResponseDto;
|
|
152
|
+
/**
|
|
153
|
+
* Request DTO for checking schedule conflicts
|
|
154
|
+
* Accepts a schedule and checks for both internal conflicts (within the schedule)
|
|
155
|
+
* and external conflicts (against other existing events)
|
|
156
|
+
*/
|
|
157
|
+
class CheckConflictsRequestDto {
|
|
158
|
+
}
|
|
159
|
+
exports.CheckConflictsRequestDto = CheckConflictsRequestDto;
|
|
160
|
+
/**
|
|
161
|
+
* Internal conflict DTO for conflicts within the schedule itself
|
|
162
|
+
*/
|
|
163
|
+
class InternalConflictDto {
|
|
164
|
+
}
|
|
165
|
+
exports.InternalConflictDto = InternalConflictDto;
|
|
166
|
+
/**
|
|
167
|
+
* Metadata DTO for conflict check results
|
|
168
|
+
*/
|
|
169
|
+
class ConflictCheckMetadataDto {
|
|
170
|
+
}
|
|
171
|
+
exports.ConflictCheckMetadataDto = ConflictCheckMetadataDto;
|
|
172
|
+
/**
|
|
173
|
+
* Response DTO for check conflicts endpoint
|
|
174
|
+
*/
|
|
175
|
+
class CheckConflictsResponseDto {
|
|
176
|
+
}
|
|
177
|
+
exports.CheckConflictsResponseDto = CheckConflictsResponseDto;
|
|
151
178
|
//# sourceMappingURL=leagues-scheduler.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leagues-scheduler.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/leagues-scheduler.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"leagues-scheduler.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/leagues-scheduler.dto.ts"],"names":[],"mappings":";;;AAmBA,6CAA6C;AAC7C,kDAK6B;AAJ5B,+GAAA,iBAAiB,OAAA;AACjB,sHAAA,wBAAwB,OAAA;AACxB,oHAAA,sBAAsB,OAAA;AACtB,sHAAA,wBAAwB,OAAA;AAGzB,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,+EA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;AAED;;GAEG;AACH,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AAED;;GAEG;AACH,MAAa,yBAAyB;CAQrC;AARD,8DAQC"}
|
|
@@ -98,9 +98,9 @@ export interface IConflictingResource {
|
|
|
98
98
|
name: string;
|
|
99
99
|
}
|
|
100
100
|
export interface IScheduleConflict {
|
|
101
|
+
gameId: string;
|
|
101
102
|
type: ScheduleConflictTypeEnum;
|
|
102
103
|
severity: ValidationSeverityEnum;
|
|
103
|
-
gameId: string;
|
|
104
104
|
conflictingEvent?: IConflictingEvent;
|
|
105
105
|
resource?: IConflictingResource;
|
|
106
106
|
startDate?: string;
|
|
@@ -294,3 +294,56 @@ export interface IRoundRobinStats {
|
|
|
294
294
|
export interface IScheduleCacheInvalidator {
|
|
295
295
|
invalidateOne: (id: number) => Promise<void>;
|
|
296
296
|
}
|
|
297
|
+
export declare enum InternalConflictTypeEnum {
|
|
298
|
+
RESOURCE_OVERLAP = "resource_overlap",
|
|
299
|
+
TEAM_DOUBLE_BOOKING = "team_double_booking"
|
|
300
|
+
}
|
|
301
|
+
export interface IInternalConflict {
|
|
302
|
+
gameId1: string;
|
|
303
|
+
gameId2: string;
|
|
304
|
+
resourceId?: number;
|
|
305
|
+
teamId?: number;
|
|
306
|
+
type: InternalConflictTypeEnum;
|
|
307
|
+
date: string;
|
|
308
|
+
description: string;
|
|
309
|
+
}
|
|
310
|
+
export interface IResourceConflictSlot {
|
|
311
|
+
event?: {
|
|
312
|
+
id: number;
|
|
313
|
+
title?: string;
|
|
314
|
+
};
|
|
315
|
+
space?: {
|
|
316
|
+
id: number;
|
|
317
|
+
name?: string;
|
|
318
|
+
};
|
|
319
|
+
startTime?: string;
|
|
320
|
+
endTime?: string;
|
|
321
|
+
}
|
|
322
|
+
export interface IMapResourceConflictsParams {
|
|
323
|
+
gameId: string;
|
|
324
|
+
slots: IResourceConflictSlot[];
|
|
325
|
+
date: string;
|
|
326
|
+
startTime: string;
|
|
327
|
+
endTime: string;
|
|
328
|
+
}
|
|
329
|
+
export interface IFindTeamOverlapsParams {
|
|
330
|
+
teamId: number;
|
|
331
|
+
teamGames: IGameSchedule[];
|
|
332
|
+
date: string;
|
|
333
|
+
reportedConflicts: Set<string>;
|
|
334
|
+
}
|
|
335
|
+
export interface IValidateWindowTimesParams {
|
|
336
|
+
window: ITimeWindow;
|
|
337
|
+
windowIndex: number;
|
|
338
|
+
timeRegex: RegExp;
|
|
339
|
+
}
|
|
340
|
+
export interface IWeeklyCapacityInfo {
|
|
341
|
+
maxCapacityPerWeek: number;
|
|
342
|
+
slotsPerDay: number;
|
|
343
|
+
preferredDays: number[];
|
|
344
|
+
numResources: number;
|
|
345
|
+
}
|
|
346
|
+
export interface ICheckConflictsResult {
|
|
347
|
+
internalConflicts: IInternalConflict[];
|
|
348
|
+
externalConflicts: IScheduleConflict[];
|
|
349
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EVENT_SUBTYPE_GAME = exports.GameTypeEnum = exports.ValidationSeverityEnum = exports.ScheduleConflictTypeEnum = exports.ByeWeekPolicyEnum = exports.ScheduleStatusEnum = void 0;
|
|
3
|
+
exports.InternalConflictTypeEnum = exports.EVENT_SUBTYPE_GAME = 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; } });
|
|
@@ -9,4 +9,9 @@ Object.defineProperty(exports, "ValidationSeverityEnum", { enumerable: true, get
|
|
|
9
9
|
Object.defineProperty(exports, "GameTypeEnum", { enumerable: true, get: function () { return enums_1.GameTypeEnum; } });
|
|
10
10
|
// Event subtype constants for leagues scheduler
|
|
11
11
|
exports.EVENT_SUBTYPE_GAME = 'game';
|
|
12
|
+
var InternalConflictTypeEnum;
|
|
13
|
+
(function (InternalConflictTypeEnum) {
|
|
14
|
+
InternalConflictTypeEnum["RESOURCE_OVERLAP"] = "resource_overlap";
|
|
15
|
+
InternalConflictTypeEnum["TEAM_DOUBLE_BOOKING"] = "team_double_booking";
|
|
16
|
+
})(InternalConflictTypeEnum = exports.InternalConflictTypeEnum || (exports.InternalConflictTypeEnum = {}));
|
|
12
17
|
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/types/interfaces.ts"],"names":[],"mappings":";;;AAIA,mCAMiB;AAER,mGAPR,0BAAkB,OAOQ;AAAE,kGAN5B,yBAAiB,OAM4B;AAAE,yGAL/C,gCAAwB,OAK+C;AAAE,uGAJzE,8BAAsB,OAIyE;AAAE,6FAHjG,oBAAY,OAGiG;AAE9G,gDAAgD;AACnC,QAAA,kBAAkB,GAAG,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/types/interfaces.ts"],"names":[],"mappings":";;;AAIA,mCAMiB;AAER,mGAPR,0BAAkB,OAOQ;AAAE,kGAN5B,yBAAiB,OAM4B;AAAE,yGAL/C,gCAAwB,OAK+C;AAAE,uGAJzE,8BAAsB,OAIyE;AAAE,6FAHjG,oBAAY,OAGiG;AAE9G,gDAAgD;AACnC,QAAA,kBAAkB,GAAG,MAAM,CAAC;AA2UzC,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IACnC,iEAAqC,CAAA;IACrC,uEAA2C,CAAA;AAC5C,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC"}
|
|
@@ -3,6 +3,7 @@ import { Customer } from '../../entity/Customer';
|
|
|
3
3
|
import { Folder } from '../../folders/entities/folder.entity';
|
|
4
4
|
import { Membership } from '../../membership/entities/membership.entity';
|
|
5
5
|
import { Program } from '../../programs/entities/Program';
|
|
6
|
+
import { Product } from '../../product-pricing/entities/product.entity';
|
|
6
7
|
import { User } from '../../user/entities/User';
|
|
7
8
|
import { MediaTypesEnum } from '../types/media.enums';
|
|
8
9
|
export declare class Media extends BondBaseEntity {
|
|
@@ -25,4 +26,5 @@ export declare class Media extends BondBaseEntity {
|
|
|
25
26
|
programs: Program[];
|
|
26
27
|
memberships: Membership[];
|
|
27
28
|
folders: Folder[];
|
|
29
|
+
products: Product[];
|
|
28
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Media.js","sourceRoot":"","sources":["../../../../src/types/media/entities/Media.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;
|
|
1
|
+
{"version":3,"file":"Media.js","sourceRoot":"","sources":["../../../../src/types/media/entities/Media.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAS7D,MAAa,KAAM,SAAQ,+BAAc;CAyCxC;AAzCD,sBAyCC"}
|
|
@@ -45,14 +45,15 @@ export declare class GetProductCategoriesDto extends PaginationQuery implements
|
|
|
45
45
|
vipEnabled?: boolean;
|
|
46
46
|
approvalRequired?: boolean;
|
|
47
47
|
resourceTypes?: ResourceTypeEnum[];
|
|
48
|
-
|
|
48
|
+
stationIds?: number[];
|
|
49
49
|
isTipEligible?: boolean;
|
|
50
50
|
}
|
|
51
51
|
export declare class ByOrganizationAndCategoryIdDto extends ByOrganizationIdDto {
|
|
52
52
|
categoryId: number;
|
|
53
53
|
}
|
|
54
54
|
export declare class GetStationProductCategoriesDto {
|
|
55
|
-
stationId
|
|
55
|
+
stationId?: number;
|
|
56
|
+
productType?: ProductTypesEnum;
|
|
56
57
|
}
|
|
57
58
|
export declare class IncludeProductsCountDto {
|
|
58
59
|
includeProductsCount?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-categories.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-categories.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AAExD,8EAAyG;AAMzG,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAED,MAAa,wBAEX,SAAQ,4BAA4B;CAYrC;AAdD,4DAcC;AAED,MAAa,wBAEX,SAAQ,4BAA4B;CAUrC;AAZD,4DAYC;AAED,MAAa,kBAAkE,SAAQ,4CAAyB;CAgB/G;AAhBD,gDAgBC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CAkB3D;AAlBD,0DAkBC;AAED,MAAa,8BAA+B,SAAQ,sCAAmB;CAEtE;AAFD,wEAEC;AAED,MAAa,8BAA8B;
|
|
1
|
+
{"version":3,"file":"product-categories.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-categories.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AAExD,8EAAyG;AAMzG,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAED,MAAa,wBAEX,SAAQ,4BAA4B;CAYrC;AAdD,4DAcC;AAED,MAAa,wBAEX,SAAQ,4BAA4B;CAUrC;AAZD,4DAYC;AAED,MAAa,kBAAkE,SAAQ,4CAAyB;CAgB/G;AAhBD,gDAgBC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CAkB3D;AAlBD,0DAkBC;AAED,MAAa,8BAA+B,SAAQ,sCAAmB;CAEtE;AAFD,wEAEC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
|
|
@@ -6,6 +6,7 @@ import { VariantDto, VariantTitleDto } from '../../dto/product-variants.dto';
|
|
|
6
6
|
import { GroupItemsPricing } from '../../entity/GroupItemsPricing';
|
|
7
7
|
import { ProductPackage } from '../../entity/ProductPackage';
|
|
8
8
|
import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
|
9
|
+
import { MediaDto } from '../../media/dto/media.dto';
|
|
9
10
|
import { SimpleMembershipDto } from '../../membership/dto/membership.dto';
|
|
10
11
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
11
12
|
import { EntitlementDiscountDto } from '../../payment/dto/discount.dto';
|
|
@@ -82,6 +83,7 @@ export declare class GetProductsDto extends PaginationQuery {
|
|
|
82
83
|
resourceIds?: number[];
|
|
83
84
|
sports?: number[];
|
|
84
85
|
facilitiesIds?: number[];
|
|
86
|
+
categoriesIds?: number[];
|
|
85
87
|
statuses?: ActivityEnum[];
|
|
86
88
|
}
|
|
87
89
|
export declare class ProductFieldsDto {
|
|
@@ -96,6 +98,7 @@ export declare class ProductFieldsDto {
|
|
|
96
98
|
productType?: ProductTypesEnum;
|
|
97
99
|
downpayment?: number;
|
|
98
100
|
description?: string;
|
|
101
|
+
mainMedia?: MediaDto;
|
|
99
102
|
currPrice: PriceDto;
|
|
100
103
|
productSubType?: ProductSubTypesEnum;
|
|
101
104
|
punchCard: boolean;
|
|
@@ -131,6 +134,7 @@ export declare class GetOrganizationProductsDto extends PaginationQuery {
|
|
|
131
134
|
export declare class SimpleProductDto extends IdAndNameDto {
|
|
132
135
|
productType?: ProductTypesEnum;
|
|
133
136
|
productSubType?: ProductSubTypesEnum;
|
|
137
|
+
productCategoryName?: string;
|
|
134
138
|
resource?: ProductResourceDto;
|
|
135
139
|
productPaymentPlans?: PaymentPlanDto[];
|
|
136
140
|
}
|
|
@@ -151,6 +155,8 @@ export declare class BaseProductDto {
|
|
|
151
155
|
glCodes?: ResourceGlDto[];
|
|
152
156
|
downpayment?: number;
|
|
153
157
|
description?: string;
|
|
158
|
+
mainMediaId?: number;
|
|
159
|
+
mainMedia?: MediaDto;
|
|
154
160
|
prices: PriceDto[];
|
|
155
161
|
currPrice: PriceDto;
|
|
156
162
|
productSubType?: ProductSubTypesEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAKA,uDAAsE;
|
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAKA,uDAAsE;AAOtE,8EAA8E;AAsB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,oCAAoC;CAMhD;AAND,oFAMC;AAED,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CA0BlD;AA1BD,wCA0BC;AAED,MAAa,gBAAgB;CAwD5B;AAxDD,4CAwDC;AAED,MAAa,sBAAsB;CAgBlC;AAhBD,wDAgBC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAUjD;AAVD,4CAUC;AAED,MAAa,cAAc;CAgH1B;AAhHD,wCAgHC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAkB7C;AAlBD,gCAkBC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAMjD;AAND,gDAMC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PaginationResultDto } from '../../dto/general.dto';
|
|
2
|
+
import { MediaDto } from '../../media/dto/media.dto';
|
|
2
3
|
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
3
4
|
import { EntitlementDiscountDto } from '../../payment/dto/discount.dto';
|
|
4
5
|
import { SimplePriceDto } from '../../pricing/dto/price.dto';
|
|
@@ -8,6 +9,8 @@ export declare class BasicProductDto extends OrganizationBaseEntityDto {
|
|
|
8
9
|
name: string;
|
|
9
10
|
quantity: number;
|
|
10
11
|
description?: string;
|
|
12
|
+
mainMediaId?: number;
|
|
13
|
+
mainMedia?: MediaDto;
|
|
11
14
|
downpayment?: number;
|
|
12
15
|
startDate?: string;
|
|
13
16
|
endDate?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/public-product.dto.ts"],"names":[],"mappings":";;;AACA,uDAA4D;
|
|
1
|
+
{"version":3,"file":"public-product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/public-product.dto.ts"],"names":[],"mappings":";;;AACA,uDAA4D;AAE5D,8EAAoF;AAOpF,MAAa,eAAgB,SAAQ,4CAAyB;CAgC7D;AAhCD,0CAgCC;AAED,MAAa,oBAAqB,SAAQ,iCAAoC;CAE7E;AAFD,oDAEC"}
|
|
@@ -11,6 +11,7 @@ import { PurchasedResource } from '../../entity/PurchasedResources';
|
|
|
11
11
|
import { Variant } from '../../entity/Variants';
|
|
12
12
|
import { VariantTitle } from '../../entity/VariantTitles';
|
|
13
13
|
import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
|
14
|
+
import { Media } from '../../media/entities/Media';
|
|
14
15
|
import { Membership } from '../../membership/entities/membership.entity';
|
|
15
16
|
import { Discount } from '../../payment/entities/Discount';
|
|
16
17
|
import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
|
|
@@ -38,6 +39,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
|
|
|
38
39
|
glCodes?: ResourceGlDto[];
|
|
39
40
|
downpayment?: number;
|
|
40
41
|
description?: string;
|
|
42
|
+
mainMediaId?: number;
|
|
43
|
+
mainMedia?: Media;
|
|
41
44
|
prices: Price[];
|
|
42
45
|
currPrice: Price;
|
|
43
46
|
productSubType?: ProductSubTypesEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AA0BjG,MAAa,OAAQ,SAAQ,mEAAgC;CA2J5D;AA3JD,0BA2JC"}
|
|
@@ -531,4 +531,12 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
531
531
|
}[]];
|
|
532
532
|
}>;
|
|
533
533
|
export type TProductCategoryOnlineBookingSettings = z.infer<typeof RESERVATION_SETTINGS_SCHEMA>;
|
|
534
|
+
export declare const GOODS_SETTINGS_SCHEMA: z.ZodObject<{
|
|
535
|
+
colorCodeId: z.ZodNullable<z.ZodNumber>;
|
|
536
|
+
}, "strip", z.ZodTypeAny, {
|
|
537
|
+
colorCodeId?: number;
|
|
538
|
+
}, {
|
|
539
|
+
colorCodeId?: number;
|
|
540
|
+
}>;
|
|
541
|
+
export type TProductCategoryGoodsSettings = z.infer<typeof GOODS_SETTINGS_SCHEMA>;
|
|
534
542
|
export declare const RESERVATION_DEFAULT_SETTINGS: TProductCategoryOnlineBookingSettings;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RESERVATION_DEFAULT_SETTINGS = exports.RESERVATION_SETTINGS_SCHEMA = void 0;
|
|
3
|
+
exports.RESERVATION_DEFAULT_SETTINGS = exports.GOODS_SETTINGS_SCHEMA = exports.RESERVATION_SETTINGS_SCHEMA = void 0;
|
|
4
4
|
const date_time_1 = require("@bondsports/date-time");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const enums_service_1 = require("../../../services/enums.service");
|
|
@@ -68,6 +68,9 @@ exports.RESERVATION_SETTINGS_SCHEMA = zod_1.z
|
|
|
68
68
|
const membershipIds = settings.memberships?.flatMap(setting => setting.membershipsIds) ?? [];
|
|
69
69
|
const uniqueMembershipIds = [...new Set(membershipIds)];
|
|
70
70
|
});
|
|
71
|
+
exports.GOODS_SETTINGS_SCHEMA = zod_1.z.object({
|
|
72
|
+
colorCodeId: zod_1.z.number().int().nullable(),
|
|
73
|
+
});
|
|
71
74
|
exports.RESERVATION_DEFAULT_SETTINGS = {
|
|
72
75
|
default: {
|
|
73
76
|
advanceBookingWindow: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-category.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-category.consts.ts"],"names":[],"mappings":";;;AAAA,qDAA8D;AAC9D,6BAAmC;AAEnC,mEAAwF;AAExF,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,MAAM,2BAA2B,GAAW,IAAA,uBAAW,EAAC,eAAe,EAAE,oBAAQ,CAAC,MAAM,EAAE,oBAAQ,CAAC,MAAM,CAAC,CAAC;AAE3G,MAAM,cAAc,GAAc,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE1D,MAAM,eAAe,GAAiF,OAAC,CAAC,MAAM,CAAC;IAC9G,MAAM,EAAE,cAAc;IACtB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,oBAAQ,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,0BAA0B,GAAG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EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,GAAG;SAClB;QACD,eAAe,EAAE,IAAI;QACrB,qBAAqB,EAAE,IAAI;KAC3B;IACD,gBAAgB,EAAE;QACjB,WAAW,EAAE;YACZ,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,oBAAQ,CAAC,MAAM;SACrB;QACD,WAAW,EAAE;YACZ,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;QACD,YAAY,EAAE;YACb,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,oBAAQ,CAAC,MAAM;SACrB;QACD,eAAe,EAAE;YAChB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;KACD;IACD,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,IAAI;IACtB,sBAAsB,EAAE,IAAI;IAC5B,6BAA6B,EAAE,IAAI;CACnC,CAAC"}
|
|
@@ -11,7 +11,7 @@ export interface IGetProductCategories extends IPagination {
|
|
|
11
11
|
orderBy?: CategoryOrderColumnEnum;
|
|
12
12
|
resourceTypes?: ResourceTypeEnum[];
|
|
13
13
|
search?: string;
|
|
14
|
-
|
|
14
|
+
stationIds?: number[];
|
|
15
15
|
vipEnabled?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export interface ISettingValidationIssue {
|
|
@@ -266,6 +266,21 @@ export interface IRawEventInSchedule extends IEventInSchedule {
|
|
|
266
266
|
maxParticipants: number;
|
|
267
267
|
parentSessionName: string;
|
|
268
268
|
}
|
|
269
|
+
export interface ISegmentEventCount {
|
|
270
|
+
parentId: number;
|
|
271
|
+
eventsCount: number;
|
|
272
|
+
}
|
|
273
|
+
export interface IEventAttendeeNotificationData {
|
|
274
|
+
firstName: string;
|
|
275
|
+
lastName: string;
|
|
276
|
+
email: string;
|
|
277
|
+
userId: number;
|
|
278
|
+
sessionName: string;
|
|
279
|
+
parentSessionName: string | null;
|
|
280
|
+
organizationName: string;
|
|
281
|
+
programName: string;
|
|
282
|
+
eventId: number;
|
|
283
|
+
}
|
|
269
284
|
export interface IBasicSpaceAndSlotCreator {
|
|
270
285
|
id: number;
|
|
271
286
|
bookingCreatorId: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Event } from '../../entity/Events';
|
|
2
2
|
import { ProductsUsers } from '../../entity/ProductsUsers';
|
|
3
3
|
import { Folder } from '../../folders/entities/folder.entity';
|
|
4
|
+
import { ITeamFolderMetadata } from '../../folders/types/interfaces/folder-content.interfaces';
|
|
4
5
|
import { MetaTypeEnum } from '../../folders/types/folders.enums';
|
|
5
6
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
6
7
|
import { ProgramTypesEnum } from '../../programs/types/enums/program.enums';
|
|
@@ -115,7 +116,6 @@ export interface IHandleTeamChangeParams {
|
|
|
115
116
|
* Represents a team member with their role (product subtype).
|
|
116
117
|
* Used when fetching team rosters to match users to their correct ProductsUsers.
|
|
117
118
|
*/
|
|
118
|
-
export interface ITeamMemberWithRole {
|
|
119
|
+
export interface ITeamMemberWithRole extends ITeamFolderMetadata {
|
|
119
120
|
userId: number;
|
|
120
|
-
teamRole?: string;
|
|
121
121
|
}
|
|
@@ -6,6 +6,11 @@ export interface ITipConfigOptions {
|
|
|
6
6
|
percentages?: number[];
|
|
7
7
|
smartTipThreshold?: number;
|
|
8
8
|
}
|
|
9
|
+
export interface IStripeTippingConfig {
|
|
10
|
+
fixed_amounts?: number[];
|
|
11
|
+
percentages?: number[];
|
|
12
|
+
smart_tip_threshold?: number;
|
|
13
|
+
}
|
|
9
14
|
export interface ITipConfigFacility {
|
|
10
15
|
id: number;
|
|
11
16
|
locationId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bondsports/types",
|
|
3
|
-
"version": "2.4.38-a-
|
|
3
|
+
"version": "2.4.38-a-6",
|
|
4
4
|
"description": "backend types module for Bond-Sports",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"ts-node": "^10.8.0",
|
|
52
52
|
"typescript": "^4.4.3"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "e2af1ffd7ad646529c8a11799f9da3bbd26a9e46"
|
|
55
55
|
}
|