@bondsports/types 2.5.9-squad-b-2 → 2.5.9-squad-b-3
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/product-pricing/dto/public-product-categories.dto.d.ts +4 -1
- package/dist/types/product-pricing/dto/public-product-categories.dto.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +9 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.js +11 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -1
- package/dist/types/programs/dto/segment-public.dto.d.ts +8 -1
- package/dist/types/programs/dto/segment-public.dto.js +8 -1
- package/dist/types/programs/dto/segment-public.dto.js.map +1 -1
- package/dist/types/programs-seasons/dto/program-segment.dto.d.ts +5 -0
- package/dist/types/programs-seasons/dto/program-segment.dto.js +9 -1
- package/dist/types/programs-seasons/dto/program-segment.dto.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-segment.interfaces.d.ts +33 -0
- package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DurationDto } from '../../dto/general.dto';
|
|
2
|
-
import { ResourceTypeEnum } from '../../services/enums.service';
|
|
2
|
+
import { ResourceSubTypeEnum, ResourceTypeEnum } from '../../services/enums.service';
|
|
3
3
|
import { BasicProductCategoryDto } from './product-categories.dto';
|
|
4
4
|
declare class BookingDurationWindowDto {
|
|
5
5
|
advanceBookingWindow: DurationDto;
|
|
@@ -24,6 +24,9 @@ export declare class ProductCategoryOnlineBookingSettingsDto {
|
|
|
24
24
|
approvalRequired: boolean;
|
|
25
25
|
allowResourceSelection: boolean;
|
|
26
26
|
maxResourcesPerBooking: number;
|
|
27
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, number[]>> | null;
|
|
28
|
+
resourceDisplayNameSingular?: string;
|
|
29
|
+
resourceDisplayNamePlural?: string;
|
|
27
30
|
bookingDurations: BookingDurationsDto;
|
|
28
31
|
default: DefaultBookingSettingsDto;
|
|
29
32
|
slotStartTime?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-product-categories.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/public-product-categories.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"public-product-categories.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/public-product-categories.dto.ts"],"names":[],"mappings":";;;AAKA,qEAAmE;AAEnE,MAAM,wBAAwB;CAI7B;AAED,MAAa,2BAA4B,SAAQ,wBAAwB;CAIxE;AAJD,kEAIC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED,MAAa,yBAA0B,SAAQ,wBAAwB;CAItE;AAJD,8DAIC;AAED,MAAa,uCAAuC;CAsBnD;AAtBD,0FAsBC;AAED,MAAa,6BAA8B,SAAQ,gDAAgE;CAElH;AAFD,sEAEC"}
|
|
@@ -4,12 +4,17 @@ import { ResourceSubTypeEnum, ResourceTypeEnum } from '../../../services/enums.s
|
|
|
4
4
|
export declare const DEFAULT_MAX_RESOURCES_PER_BOOKING = 1;
|
|
5
5
|
/** Omitted create-booking `resourceCount`. Independent of the category cap default. */
|
|
6
6
|
export declare const DEFAULT_REQUESTED_RESOURCE_COUNT = 1;
|
|
7
|
+
export declare const MAX_RESOURCE_DISPLAY_NAME_LENGTH = 50;
|
|
8
|
+
/** Optional consumer count word (e.g. "bay" / "bays"). Blank or null is stored as unset so the consumer default applies. */
|
|
9
|
+
export declare const RESOURCE_DISPLAY_NAME_SCHEMA: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string>;
|
|
7
10
|
declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
8
11
|
resourceTypes: z.ZodArray<z.ZodNativeEnum<typeof ResourceTypeEnum>, "atleastone">;
|
|
9
12
|
approvalRequired: z.ZodDefault<z.ZodBoolean>;
|
|
10
13
|
allowResourceSelection: z.ZodDefault<z.ZodBoolean>;
|
|
11
14
|
prioritizedResourceAllocation: z.ZodNullable<z.ZodRecord<z.ZodNativeEnum<typeof ResourceSubTypeEnum>, z.ZodArray<z.ZodNumber, "atleastone">>>;
|
|
12
15
|
maxResourcesPerBooking: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
resourceDisplayNameSingular: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string>;
|
|
17
|
+
resourceDisplayNamePlural: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string>;
|
|
13
18
|
bookingDurations: z.ZodObject<{
|
|
14
19
|
minDuration: z.ZodObject<{
|
|
15
20
|
amount: z.ZodNumber;
|
|
@@ -262,6 +267,8 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
262
267
|
allowResourceSelection?: boolean;
|
|
263
268
|
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
264
269
|
maxResourcesPerBooking?: number;
|
|
270
|
+
resourceDisplayNameSingular?: string;
|
|
271
|
+
resourceDisplayNamePlural?: string;
|
|
265
272
|
bookingDurations?: {
|
|
266
273
|
minDuration?: {
|
|
267
274
|
amount?: number;
|
|
@@ -331,6 +338,8 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
331
338
|
allowResourceSelection?: boolean;
|
|
332
339
|
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
333
340
|
maxResourcesPerBooking?: number;
|
|
341
|
+
resourceDisplayNameSingular?: string;
|
|
342
|
+
resourceDisplayNamePlural?: string;
|
|
334
343
|
bookingDurations?: {
|
|
335
344
|
minDuration?: {
|
|
336
345
|
amount?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RESERVATION_DEFAULT_SETTINGS = exports.DEFAULT_REQUESTED_RESOURCE_COUNT = exports.DEFAULT_MAX_RESOURCES_PER_BOOKING = void 0;
|
|
3
|
+
exports.RESERVATION_DEFAULT_SETTINGS = exports.RESOURCE_DISPLAY_NAME_SCHEMA = exports.MAX_RESOURCE_DISPLAY_NAME_LENGTH = exports.DEFAULT_REQUESTED_RESOURCE_COUNT = exports.DEFAULT_MAX_RESOURCES_PER_BOOKING = 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");
|
|
@@ -11,6 +11,14 @@ const INTEGER_SCHEMA = zod_1.z.number().int().min(1);
|
|
|
11
11
|
exports.DEFAULT_MAX_RESOURCES_PER_BOOKING = 1;
|
|
12
12
|
/** Omitted create-booking `resourceCount`. Independent of the category cap default. */
|
|
13
13
|
exports.DEFAULT_REQUESTED_RESOURCE_COUNT = 1;
|
|
14
|
+
exports.MAX_RESOURCE_DISPLAY_NAME_LENGTH = 50;
|
|
15
|
+
/** Optional consumer count word (e.g. "bay" / "bays"). Blank or null is stored as unset so the consumer default applies. */
|
|
16
|
+
exports.RESOURCE_DISPLAY_NAME_SCHEMA = zod_1.z
|
|
17
|
+
.string()
|
|
18
|
+
.trim()
|
|
19
|
+
.max(exports.MAX_RESOURCE_DISPLAY_NAME_LENGTH)
|
|
20
|
+
.nullish()
|
|
21
|
+
.transform((value) => value || undefined);
|
|
14
22
|
const DURATION_SCHEMA = zod_1.z
|
|
15
23
|
.object({
|
|
16
24
|
amount: INTEGER_SCHEMA,
|
|
@@ -25,6 +33,8 @@ const _RESERVATION_SETTINGS_TYPE_SCHEMA = zod_1.z.object({
|
|
|
25
33
|
.record(zod_1.z.nativeEnum(enums_service_1.ResourceSubTypeEnum), zod_1.z.array(zod_1.z.number().int().min(0)).nonempty())
|
|
26
34
|
.nullable(),
|
|
27
35
|
maxResourcesPerBooking: INTEGER_SCHEMA.default(exports.DEFAULT_MAX_RESOURCES_PER_BOOKING),
|
|
36
|
+
resourceDisplayNameSingular: exports.RESOURCE_DISPLAY_NAME_SCHEMA,
|
|
37
|
+
resourceDisplayNamePlural: exports.RESOURCE_DISPLAY_NAME_SCHEMA,
|
|
28
38
|
bookingDurations: zod_1.z.object({
|
|
29
39
|
minDuration: DURATION_SCHEMA,
|
|
30
40
|
maxDuration: DURATION_SCHEMA,
|
|
@@ -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,qDAAiD;AACjD,6BAAmC;AAEnC,mEAAwF;AAExF,MAAM,mCAAmC,GAAG,EAAE,CAAC;AAC/C,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAErC,MAAM,cAAc,GAAc,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE7C,QAAA,iCAAiC,GAAG,CAAC,CAAC;AAEnD,uFAAuF;AAC1E,QAAA,gCAAgC,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"product-category.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-category.consts.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AACjD,6BAAmC;AAEnC,mEAAwF;AAExF,MAAM,mCAAmC,GAAG,EAAE,CAAC;AAC/C,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAErC,MAAM,cAAc,GAAc,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE7C,QAAA,iCAAiC,GAAG,CAAC,CAAC;AAEnD,uFAAuF;AAC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BAAqB,EAAE,IAAI;KAC3B;IACD,gBAAgB,EAAE;QACjB,WAAW,EAAE;YACZ,MAAM,EAAE,4BAA4B;YACpC,IAAI,EAAE,oBAAQ,CAAC,MAAM;SACrB;QACD,WAAW,EAAE;YACZ,MAAM,EAAE,0BAA0B;YAClC,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;QACD,YAAY,EAAE;YACb,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;QACD,eAAe,EAAE;YAChB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;KACD;IACD,aAAa,EAAE,IAAI;IACnB,0BAA0B,EAAE,KAAK;IACjC,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,KAAK;IACvB,sBAAsB,EAAE,IAAI;IAC5B,6BAA6B,EAAE,IAAI;IACnC,sBAAsB,EAAE,yCAAiC;CACzD,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { PaginationQuery, PaginationResultDto } from '../../dto/general.dto';
|
|
|
4
4
|
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
5
5
|
import { SegmentExpandEnum } from '../../programs-seasons/types/enums/program-season.enums';
|
|
6
6
|
import { SegmentTagDto } from '../../segment-tags/types/dto/segment-tags.dto';
|
|
7
|
-
import { AvailabilityStatusEnum, RegistrationWindowStatusEnum } from '../../services/enums.service';
|
|
7
|
+
import { AvailabilityStatusEnum, RegistrationWindowStatusEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
8
8
|
import { ISegmentsFilters } from '../types/interfaces/program.interfaces';
|
|
9
9
|
export declare class GetSegmentsFiltersBaseDto extends PaginationQuery {
|
|
10
10
|
search?: string;
|
|
@@ -14,6 +14,12 @@ export declare class GetSegmentsFiltersBaseDto extends PaginationQuery {
|
|
|
14
14
|
export declare class GetSegmentsFiltersPublicDto extends GetSegmentsFiltersBaseDto implements ISegmentsFilters {
|
|
15
15
|
expand?: SegmentExpandEnum[];
|
|
16
16
|
}
|
|
17
|
+
export declare class GetMixedSegmentsFiltersPublicDto extends GetSegmentsFiltersPublicDto {
|
|
18
|
+
itemsPerPage?: number;
|
|
19
|
+
expand?: SegmentExpandEnum[];
|
|
20
|
+
ignoreEvents?: boolean;
|
|
21
|
+
futureResources?: boolean;
|
|
22
|
+
}
|
|
17
23
|
export declare class SessionSegmentPublicDto extends OrganizationBaseEntityDto {
|
|
18
24
|
programId: number;
|
|
19
25
|
name: string;
|
|
@@ -29,6 +35,7 @@ export declare class SessionSegmentPublicDto extends OrganizationBaseEntityDto {
|
|
|
29
35
|
activityTimes?: ActivityTimeDto[];
|
|
30
36
|
segmentTagId?: number | null;
|
|
31
37
|
segmentTag?: SegmentTagDto | null;
|
|
38
|
+
segmentType?: ResourceNameTypeEnum;
|
|
32
39
|
}
|
|
33
40
|
export declare class PaginatedSegmentsDto extends PaginationResultDto<SessionSegmentPublicDto> {
|
|
34
41
|
data: SessionSegmentPublicDto[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaginatedSegmentsDto = exports.SessionSegmentPublicDto = exports.GetSegmentsFiltersPublicDto = exports.GetSegmentsFiltersBaseDto = void 0;
|
|
3
|
+
exports.PaginatedSegmentsDto = exports.SessionSegmentPublicDto = exports.GetMixedSegmentsFiltersPublicDto = exports.GetSegmentsFiltersPublicDto = exports.GetSegmentsFiltersBaseDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
6
|
const program_season_enums_1 = require("../../programs-seasons/types/enums/program-season.enums");
|
|
@@ -11,6 +11,13 @@ exports.GetSegmentsFiltersBaseDto = GetSegmentsFiltersBaseDto;
|
|
|
11
11
|
class GetSegmentsFiltersPublicDto extends GetSegmentsFiltersBaseDto {
|
|
12
12
|
}
|
|
13
13
|
exports.GetSegmentsFiltersPublicDto = GetSegmentsFiltersPublicDto;
|
|
14
|
+
class GetMixedSegmentsFiltersPublicDto extends GetSegmentsFiltersPublicDto {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.itemsPerPage = general_dto_1.DEFAULT_MINIMUM_ITEMS_PER_PAGE;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.GetMixedSegmentsFiltersPublicDto = GetMixedSegmentsFiltersPublicDto;
|
|
14
21
|
class SessionSegmentPublicDto extends organization_dto_1.OrganizationBaseEntityDto {
|
|
15
22
|
}
|
|
16
23
|
exports.SessionSegmentPublicDto = SessionSegmentPublicDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment-public.dto.js","sourceRoot":"","sources":["../../../../src/types/programs/dto/segment-public.dto.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"segment-public.dto.js","sourceRoot":"","sources":["../../../../src/types/programs/dto/segment-public.dto.ts"],"names":[],"mappings":";;;AAGA,uDAK+B;AAC/B,8EAAoF;AACpF,kGAA4F;AAS5F,MAAM,sBAAsB,GAAwB,CAAC,wCAAiB,CAAC,cAAc,EAAE,wCAAiB,CAAC,QAAQ,CAAC,CAAC;AAEnH,MAAa,yBAA0B,SAAQ,6BAAe;CAM7D;AAND,8DAMC;AAED,MAAa,2BAA4B,SAAQ,yBAAyB;CAEzE;AAFD,kEAEC;AAED,MAAa,gCAAiC,SAAQ,2BAA2B;IAAjF;;QACC,iBAAY,GAAI,4CAA8B,CAAC;IAOhD,CAAC;CAAA;AARD,4EAQC;AAED,MAAa,uBAAwB,SAAQ,4CAAyB;CA8BrE;AA9BD,0DA8BC;AAED,MAAa,oBAAqB,SAAQ,iCAA4C;CAErF;AAFD,oDAEC"}
|
|
@@ -22,6 +22,11 @@ export declare class GetPaginatedSegmentsQueryDto extends GetPaginatedSessionQue
|
|
|
22
22
|
export declare class GetSegmentsFiltersDto extends GetSegmentsFiltersBaseDto implements ISegmentsFilters {
|
|
23
23
|
expand?: SegmentExpandEnum[];
|
|
24
24
|
}
|
|
25
|
+
export declare class GetMixedSegmentsFiltersDto extends GetSegmentsFiltersDto {
|
|
26
|
+
itemsPerPage?: number;
|
|
27
|
+
ignoreEvents?: boolean;
|
|
28
|
+
futureResources?: boolean;
|
|
29
|
+
}
|
|
25
30
|
export declare class SegmentExpandDto {
|
|
26
31
|
expand?: SegmentExpandEnum[];
|
|
27
32
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SessionSegmentDto = exports.SeasonSettingsDto = exports.SeasonWaitlistSettingsDto = exports.SegmentExpandDto = exports.GetSegmentsFiltersDto = exports.GetPaginatedSegmentsQueryDto = exports.SegmentsBySessionQueryDto = exports.BySegmentDto = void 0;
|
|
3
|
+
exports.SessionSegmentDto = exports.SeasonSettingsDto = exports.SeasonWaitlistSettingsDto = exports.SegmentExpandDto = exports.GetMixedSegmentsFiltersDto = exports.GetSegmentsFiltersDto = exports.GetPaginatedSegmentsQueryDto = exports.SegmentsBySessionQueryDto = exports.BySegmentDto = void 0;
|
|
4
|
+
const general_dto_1 = require("../../dto/general.dto");
|
|
4
5
|
const segment_public_dto_1 = require("../../programs/dto/segment-public.dto");
|
|
5
6
|
const program_season_enums_1 = require("../types/enums/program-season.enums");
|
|
6
7
|
const program_session_dto_1 = require("./program-session.dto");
|
|
@@ -16,6 +17,13 @@ exports.GetPaginatedSegmentsQueryDto = GetPaginatedSegmentsQueryDto;
|
|
|
16
17
|
class GetSegmentsFiltersDto extends segment_public_dto_1.GetSegmentsFiltersBaseDto {
|
|
17
18
|
}
|
|
18
19
|
exports.GetSegmentsFiltersDto = GetSegmentsFiltersDto;
|
|
20
|
+
class GetMixedSegmentsFiltersDto extends GetSegmentsFiltersDto {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.itemsPerPage = general_dto_1.DEFAULT_MINIMUM_ITEMS_PER_PAGE;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.GetMixedSegmentsFiltersDto = GetMixedSegmentsFiltersDto;
|
|
19
27
|
class SegmentExpandDto {
|
|
20
28
|
}
|
|
21
29
|
exports.SegmentExpandDto = SegmentExpandDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program-segment.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-segment.dto.ts"],"names":[],"mappings":";;;AAEA,8EAA2G;AAI3G,8EAK6C;AAG7C,+DAAkF;AAElF,MAAa,YAAa,SAAQ,kCAAY;CAE7C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,4BAA6B,SAAQ,iDAA0C;CAI3F;AAJD,oEAIC;AAED,MAAa,qBAAsB,SAAQ,8CAAyB;CAEnE;AAFD,sDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AATC,yCAAkB,CAAC,uBAAuB,EAE1C,yCAAkB,CAAC,iBAAiB,EAEpC,yCAAkB,CAAC,oBAAoB,EAEvC,yCAAkB,CAAC,gBAAgB,EAEnC,yCAAkB,CAAC,oBAAoB;AAGzC,MAAa,iBAAkB,SAAQ,4CAAuB;CAM7D;AAND,8CAMC"}
|
|
1
|
+
{"version":3,"file":"program-segment.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-segment.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAuG;AACvG,8EAA2G;AAI3G,8EAK6C;AAG7C,+DAAkF;AAElF,MAAa,YAAa,SAAQ,kCAAY;CAE7C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,4BAA6B,SAAQ,iDAA0C;CAI3F;AAJD,oEAIC;AAED,MAAa,qBAAsB,SAAQ,8CAAyB;CAEnE;AAFD,sDAEC;AAED,MAAa,0BAA2B,SAAQ,qBAAqB;IAArE;;QACC,iBAAY,GAAI,4CAA8B,CAAC;IAKhD,CAAC;CAAA;AAND,gEAMC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AATC,yCAAkB,CAAC,uBAAuB,EAE1C,yCAAkB,CAAC,iBAAiB,EAEpC,yCAAkB,CAAC,oBAAoB,EAEvC,yCAAkB,CAAC,gBAAgB,EAEnC,yCAAkB,CAAC,oBAAoB;AAGzC,MAAa,iBAAkB,SAAQ,4CAAuB;CAM7D;AAND,8CAMC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { FindConditions } from 'typeorm';
|
|
2
|
+
import { Event } from '../../../entity/Events';
|
|
3
|
+
import { ISegmentsFilters } from '../../../programs/types/interfaces/program.interfaces';
|
|
1
4
|
import { IAttendeesNumber } from '../../../purchase/types/interfaces/purchase.interfaces';
|
|
2
5
|
import { IBasicSpaceAndSlotCreator } from '../../../services/interfaces.service';
|
|
6
|
+
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
|
3
7
|
import { ProgramSeason } from '../../entities/ProgramSeason';
|
|
8
|
+
import { SegmentExpandEnum } from '../enums/program-season.enums';
|
|
4
9
|
export type ProgramSeasonsSegmentsFilter = {
|
|
5
10
|
futureResources?: boolean;
|
|
6
11
|
ignoreEvents?: boolean;
|
|
@@ -16,3 +21,31 @@ export interface ISessionSegmentsRelatedInfo {
|
|
|
16
21
|
segmentsAttendeesMap: Map<number, IAttendeesNumber>;
|
|
17
22
|
waitlistCountsMap: Map<number, number>;
|
|
18
23
|
}
|
|
24
|
+
export interface IListSessionSegmentsParams {
|
|
25
|
+
organizationId: number;
|
|
26
|
+
programId: number;
|
|
27
|
+
sessionId: number;
|
|
28
|
+
filters: ISegmentsFilters & IPagination;
|
|
29
|
+
}
|
|
30
|
+
export interface IGetSessionSegmentParams {
|
|
31
|
+
organizationId: number;
|
|
32
|
+
programId: number;
|
|
33
|
+
sessionId: number;
|
|
34
|
+
segmentId: number;
|
|
35
|
+
expand?: SegmentExpandEnum[];
|
|
36
|
+
}
|
|
37
|
+
export interface IMixedSegmentsFilters extends ISegmentsFilters, IPagination {
|
|
38
|
+
futureResources?: boolean;
|
|
39
|
+
ignoreEvents?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface IListMixedSegmentsParams {
|
|
42
|
+
organizationId: number;
|
|
43
|
+
programId: number;
|
|
44
|
+
sessionId: number;
|
|
45
|
+
filters: IMixedSegmentsFilters;
|
|
46
|
+
}
|
|
47
|
+
export interface IBuildEventAsSegmentQueryParams {
|
|
48
|
+
sessionId: number;
|
|
49
|
+
whereQuery: FindConditions<Event>;
|
|
50
|
+
filters: IMixedSegmentsFilters;
|
|
51
|
+
}
|