@bondsports/types 2.2.167 → 2.2.168

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@ import { EntryStatusEnum, OrderByEnum, ProgramTypesEnum, RegistrationValidationS
5
5
  import { IBasicSpaceAndSlotCreator } from '../services/interfaces.service';
6
6
  import { SimpleResourceDto } from '../resources/dto/resource.dto';
7
7
  import { IdDto, PaginationQuery, PaginationRangeQuery } from './general.dto';
8
+ import { AttendanceDto } from '../attendance/dto/attendance.dto';
8
9
  export declare class FindEventByIdDto {
9
10
  eventId: number;
10
11
  organizationId: number;
@@ -142,7 +143,7 @@ export declare class ParentSessionDto extends IdDto {
142
143
  }
143
144
  export declare class EventWithAttendanceDto extends SimpleEventDto {
144
145
  parentSession: ParentSessionDto;
145
- eventAttendees: SimpleAttendeeDto[];
146
+ attendance: AttendanceDto[];
146
147
  }
147
148
  export declare class GetUsersEventsQueryDto extends PaginationQuery {
148
149
  startDateBefore?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAYA,+CAA6E;AAE7E,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,cAAc;CAsB1B;AAtBD,wCAsBC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,oCAAqC,SAAQ,mBAAmB;CAE5E;AAFD,oFAEC;AAED,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AACD,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAuCD,MAAa,2BAA4B,SAAQ,kCAAoB;CAYpE;AAZD,kEAYC;AAED,MAAa,cAAe,SAAQ,mBAAK;CAsBxC;AAtBD,wCAsBC;AAED,MAAa,iBAAkB,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GetEmployeesByFilterOptions extends PaginationQuery {
104
104
  search?: string;
105
105
  orderBy?: UserOrderBy | OrganizationUserOrderBy;
106
106
  order?: OrderByEnum;
107
- includeDeleted?: boolean;
107
+ onlyDeleted?: boolean;
108
108
  }
@@ -313,7 +313,7 @@ export declare class UpdateDraftSlotsDto {
313
313
  overrideProducts?: boolean;
314
314
  }
315
315
  export declare class SegmentsAddonsGroupDto extends BaseSegmentsAddonsGroupDto {
316
- addons: SimpleProductDto[];
316
+ products: SimpleProductDto[];
317
317
  }
318
318
  export declare class ReservationAddonsDto {
319
319
  reservation: DraftAddonDto[];
@@ -3,11 +3,10 @@ import { Facility } from '../../../entity/Facility';
3
3
  import { Product } from '../../../product-pricing/entities/Product';
4
4
  import { Resource } from '../../../resources/entities/Resource';
5
5
  import { ResourceNameTypeEnum } from '../../../services/enums.service';
6
- import { SegmentsAddonsDto } from '../../dto/reservation.dto';
7
6
  import { PrivacySettingsEnum, ReservationTypeEnum } from '../enums/reservation.enums';
8
7
  import { IDraftReservation, IOverrideProductsPricing, IProductPrice } from '../interfaces/reservation.interfaces';
9
8
  import { DraftAddon } from './addon.classes';
10
- import { DraftSegment } from './segment.classes';
9
+ import { DraftSegment, SegmentsAddons } from './segment.classes';
11
10
  export declare class OverrideProductsPricing implements IOverrideProductsPricing {
12
11
  [productInfo: string]: IProductPrice;
13
12
  }
@@ -32,7 +31,7 @@ export declare class DraftReservation implements IDraftReservation {
32
31
  conflictsCount?: number;
33
32
  segments: DraftSegment[];
34
33
  addons?: DraftAddon[];
35
- segmentsAddons?: SegmentsAddonsDto[];
34
+ segmentsAddons?: SegmentsAddons[];
36
35
  participants?: Customer[];
37
36
  products?: Product[];
38
37
  spaces?: Resource[];
@@ -2,6 +2,8 @@ import { SportsEnum } from '../../../services/enums.service';
2
2
  import { PrivacySettingsEnum } from '../enums/reservation.enums';
3
3
  import { IDraftSegment } from '../interfaces/segment.interfaces';
4
4
  import { DraftSeries } from './series.classes';
5
+ import { ISegmentsAddons } from '../interfaces/addon.interfaces';
6
+ import { Product } from '../../../product-pricing/entities/Product';
5
7
  export declare class DraftSegment implements IDraftSegment {
6
8
  id: string;
7
9
  reservationId: string;
@@ -20,3 +22,10 @@ export declare class DraftSegment implements IDraftSegment {
20
22
  productsIds?: number[];
21
23
  series: DraftSeries[];
22
24
  }
25
+ export declare class SegmentsAddons implements ISegmentsAddons {
26
+ groupId: string;
27
+ ids: string[];
28
+ productsIds: number[];
29
+ quantity: number;
30
+ products?: Product[];
31
+ }
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DraftSegment = void 0;
3
+ exports.SegmentsAddons = exports.DraftSegment = void 0;
4
4
  class DraftSegment {
5
5
  }
6
6
  exports.DraftSegment = DraftSegment;
7
+ class SegmentsAddons {
8
+ }
9
+ exports.SegmentsAddons = SegmentsAddons;
7
10
  //# sourceMappingURL=segment.classes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"segment.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/segment.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,YAAY;CAgCxB;AAhCD,oCAgCC"}
1
+ {"version":3,"file":"segment.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/segment.classes.ts"],"names":[],"mappings":";;;AAOA,MAAa,YAAY;CAgCxB;AAhCD,oCAgCC;AAED,MAAa,cAAc;CAU1B;AAVD,wCAUC"}
@@ -21,4 +21,5 @@ export interface ISegmentsAddons {
21
21
  ids: string[];
22
22
  productsIds: number[];
23
23
  quantity: number;
24
+ products?: Product[];
24
25
  }
@@ -310,10 +310,20 @@ export interface IGetDraftReservationOptions {
310
310
  includeSpaces?: boolean;
311
311
  includeProducts?: boolean;
312
312
  includeParticipants?: boolean;
313
+ /**
314
+ * Always include this flag when using the reservation and then updating it
315
+ */
313
316
  includeSegments?: boolean;
317
+ /**
318
+ * Always include this flag when using the reservation and then updating it
319
+ */
314
320
  includeSlots?: boolean;
315
321
  includeFacilities?: boolean;
322
+ /**
323
+ * Always include this flag when using the reservation and then updating it
324
+ */
316
325
  includeMaintenanceSlots?: boolean;
326
+ includeFullReservation?: boolean;
317
327
  }
318
328
  export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
319
329
  segmentsIds?: string[];
@@ -1 +1,2 @@
1
+ export * from './role.consts';
1
2
  export * from './role.enums';
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./role.consts"), exports);
17
18
  __exportStar(require("./role.enums"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/roles/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/roles/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAA6B"}
@@ -0,0 +1 @@
1
+ export declare const BOND_ROLE_FILTER: string;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BOND_ROLE_FILTER = void 0;
4
+ const BOND_ROLE_PREFIX = 'Bond';
5
+ exports.BOND_ROLE_FILTER = `${BOND_ROLE_PREFIX}%`;
6
+ //# sourceMappingURL=role.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role.consts.js","sourceRoot":"","sources":["../../../../src/types/roles/types/role.consts.ts"],"names":[],"mappings":";;;AAAA,MAAM,gBAAgB,GAAG,MAAM,CAAC;AACnB,QAAA,gBAAgB,GAAG,GAAG,gBAAgB,GAAG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.167",
3
+ "version": "2.2.168",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {