@bondsports/types 2.2.166 → 2.2.168

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/dto/events.dto.d.ts +2 -1
  3. package/dist/types/dto/events.dto.js.map +1 -1
  4. package/dist/types/employees/dto/employee.dto.d.ts +1 -1
  5. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +2 -1
  6. package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
  7. package/dist/types/reservations/dto/addon.dto.d.ts +10 -5
  8. package/dist/types/reservations/dto/addon.dto.js +4 -1
  9. package/dist/types/reservations/dto/addon.dto.js.map +1 -1
  10. package/dist/types/reservations/dto/maintenance.dto.d.ts +2 -1
  11. package/dist/types/reservations/dto/maintenance.dto.js.map +1 -1
  12. package/dist/types/reservations/dto/reservation.dto.d.ts +28 -12
  13. package/dist/types/reservations/dto/reservation.dto.js +14 -3
  14. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  15. package/dist/types/reservations/dto/segment.dto.d.ts +5 -4
  16. package/dist/types/reservations/dto/segment.dto.js.map +1 -1
  17. package/dist/types/reservations/dto/series.dto.d.ts +5 -4
  18. package/dist/types/reservations/dto/series.dto.js.map +1 -1
  19. package/dist/types/reservations/dto/slot.dto.d.ts +25 -22
  20. package/dist/types/reservations/dto/slot.dto.js +9 -7
  21. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  22. package/dist/types/reservations/entities/reservation.entity.d.ts +2 -4
  23. package/dist/types/reservations/entities/reservation.entity.js.map +1 -1
  24. package/dist/types/reservations/entities/slot.entity.d.ts +2 -2
  25. package/dist/types/reservations/entities/slot.entity.js.map +1 -1
  26. package/dist/types/reservations/types/classes/addon.classes.d.ts +10 -0
  27. package/dist/types/reservations/types/classes/addon.classes.js +7 -0
  28. package/dist/types/reservations/types/classes/addon.classes.js.map +1 -0
  29. package/dist/types/reservations/types/classes/index.d.ts +7 -0
  30. package/dist/types/reservations/types/classes/index.js +24 -0
  31. package/dist/types/reservations/types/classes/index.js.map +1 -0
  32. package/dist/types/reservations/types/classes/maintenance.classes.d.ts +8 -0
  33. package/dist/types/reservations/types/classes/maintenance.classes.js +7 -0
  34. package/dist/types/reservations/types/classes/maintenance.classes.js.map +1 -0
  35. package/dist/types/reservations/types/classes/product.classes.d.ts +5 -0
  36. package/dist/types/reservations/types/classes/product.classes.js +7 -0
  37. package/dist/types/reservations/types/classes/product.classes.js.map +1 -0
  38. package/dist/types/reservations/types/classes/reservation.classes.d.ts +40 -0
  39. package/dist/types/reservations/types/classes/reservation.classes.js +10 -0
  40. package/dist/types/reservations/types/classes/reservation.classes.js.map +1 -0
  41. package/dist/types/reservations/types/classes/segment.classes.d.ts +31 -0
  42. package/dist/types/reservations/types/classes/segment.classes.js +10 -0
  43. package/dist/types/reservations/types/classes/segment.classes.js.map +1 -0
  44. package/dist/types/reservations/types/classes/series.classes.d.ts +23 -0
  45. package/dist/types/reservations/types/classes/series.classes.js +7 -0
  46. package/dist/types/reservations/types/classes/series.classes.js.map +1 -0
  47. package/dist/types/reservations/types/classes/slot.classes.d.ts +55 -0
  48. package/dist/types/reservations/types/classes/slot.classes.js +7 -0
  49. package/dist/types/reservations/types/classes/slot.classes.js.map +1 -0
  50. package/dist/types/reservations/types/index.d.ts +1 -0
  51. package/dist/types/reservations/types/index.js +1 -0
  52. package/dist/types/reservations/types/index.js.map +1 -1
  53. package/dist/types/reservations/types/interfaces/addon.interfaces.d.ts +12 -2
  54. package/dist/types/reservations/types/interfaces/index.d.ts +2 -0
  55. package/dist/types/reservations/types/interfaces/index.js +2 -0
  56. package/dist/types/reservations/types/interfaces/index.js.map +1 -1
  57. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +45 -2
  58. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  59. package/dist/types/reservations/types/interfaces/segment.interfaces.d.ts +29 -0
  60. package/dist/types/reservations/types/interfaces/segment.interfaces.js +3 -0
  61. package/dist/types/reservations/types/interfaces/segment.interfaces.js.map +1 -0
  62. package/dist/types/reservations/types/interfaces/series.interfaces.d.ts +31 -0
  63. package/dist/types/reservations/types/interfaces/series.interfaces.js +3 -0
  64. package/dist/types/reservations/types/interfaces/series.interfaces.js.map +1 -0
  65. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +24 -24
  66. package/dist/types/reservations/types/interfaces/slot.interfaces.js +4 -0
  67. package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
  68. package/dist/types/reservations/types/reservation.types.d.ts +19 -11
  69. package/dist/types/roles/types/index.d.ts +1 -0
  70. package/dist/types/roles/types/index.js +1 -0
  71. package/dist/types/roles/types/index.js.map +1 -1
  72. package/dist/types/roles/types/role.consts.d.ts +1 -0
  73. package/dist/types/roles/types/role.consts.js +6 -0
  74. package/dist/types/roles/types/role.consts.js.map +1 -0
  75. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ import { Customer } from '../../../entity/Customer';
2
+ import { Facility } from '../../../entity/Facility';
3
+ import { Product } from '../../../product-pricing/entities/Product';
4
+ import { Resource } from '../../../resources/entities/Resource';
5
+ import { ResourceNameTypeEnum } from '../../../services/enums.service';
6
+ import { PrivacySettingsEnum, ReservationTypeEnum } from '../enums/reservation.enums';
7
+ import { IDraftReservation, IOverrideProductsPricing, IProductPrice } from '../interfaces/reservation.interfaces';
8
+ import { DraftAddon } from './addon.classes';
9
+ import { DraftSegment, SegmentsAddons } from './segment.classes';
10
+ export declare class OverrideProductsPricing implements IOverrideProductsPricing {
11
+ [productInfo: string]: IProductPrice;
12
+ }
13
+ export declare class DraftReservation implements IDraftReservation {
14
+ id: string;
15
+ organizationId: number;
16
+ name: string;
17
+ reservationType: ReservationTypeEnum;
18
+ description?: string;
19
+ privacySetting: PrivacySettingsEnum;
20
+ price?: number;
21
+ creatorId: number;
22
+ creatorType: ResourceNameTypeEnum;
23
+ userCreatorId: number;
24
+ publicNotes?: string;
25
+ privateNotes?: string;
26
+ forms?: number[];
27
+ overrideProductsPrice?: OverrideProductsPricing;
28
+ colorCodeId: number;
29
+ customerId: number;
30
+ owner?: Customer;
31
+ conflictsCount?: number;
32
+ segments: DraftSegment[];
33
+ addons?: DraftAddon[];
34
+ segmentsAddons?: SegmentsAddons[];
35
+ participants?: Customer[];
36
+ products?: Product[];
37
+ spaces?: Resource[];
38
+ instructors?: Resource[];
39
+ facilities: Facility[];
40
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DraftReservation = exports.OverrideProductsPricing = void 0;
4
+ class OverrideProductsPricing {
5
+ }
6
+ exports.OverrideProductsPricing = OverrideProductsPricing;
7
+ class DraftReservation {
8
+ }
9
+ exports.DraftReservation = DraftReservation;
10
+ //# sourceMappingURL=reservation.classes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservation.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/reservation.classes.ts"],"names":[],"mappings":";;;AAWA,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,gBAAgB;CAoD5B;AApDD,4CAoDC"}
@@ -0,0 +1,31 @@
1
+ import { SportsEnum } from '../../../services/enums.service';
2
+ import { PrivacySettingsEnum } from '../enums/reservation.enums';
3
+ import { IDraftSegment } from '../interfaces/segment.interfaces';
4
+ import { DraftSeries } from './series.classes';
5
+ import { ISegmentsAddons } from '../interfaces/addon.interfaces';
6
+ import { Product } from '../../../product-pricing/entities/Product';
7
+ export declare class DraftSegment implements IDraftSegment {
8
+ id: string;
9
+ reservationId: string;
10
+ organizationId: number;
11
+ facilityId: number;
12
+ title: string;
13
+ privacySetting: PrivacySettingsEnum;
14
+ resourceIds: number[];
15
+ instructorsIds?: number[];
16
+ sportId: SportsEnum;
17
+ publicNotesForSlots?: string;
18
+ privateNotesForSlots?: string;
19
+ colorCodeId: number;
20
+ participantsNumber?: number;
21
+ participantsIds?: number[];
22
+ productsIds?: number[];
23
+ series: DraftSeries[];
24
+ }
25
+ export declare class SegmentsAddons implements ISegmentsAddons {
26
+ groupId: string;
27
+ ids: string[];
28
+ productsIds: number[];
29
+ quantity: number;
30
+ products?: Product[];
31
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SegmentsAddons = exports.DraftSegment = void 0;
4
+ class DraftSegment {
5
+ }
6
+ exports.DraftSegment = DraftSegment;
7
+ class SegmentsAddons {
8
+ }
9
+ exports.SegmentsAddons = SegmentsAddons;
10
+ //# sourceMappingURL=segment.classes.js.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,23 @@
1
+ import { DurationTypeEnum, DurationUnitTypesEnum, FrequencyEnum } from '../enums/reservation.enums';
2
+ import { IDraftSeries } from '../interfaces/series.interfaces';
3
+ import { Maintenance } from './maintenance.classes';
4
+ import { DraftSlot } from './slot.classes';
5
+ export declare class DraftSeries implements IDraftSeries {
6
+ id: string;
7
+ reservationId: string;
8
+ segmentId: string;
9
+ startDate: string;
10
+ startTime: string;
11
+ endDate: string;
12
+ endTime: string;
13
+ slotDurationType: DurationTypeEnum;
14
+ durationEndsAfter?: number;
15
+ durationUnit?: DurationUnitTypesEnum;
16
+ frequency: FrequencyEnum;
17
+ repeatEvery?: number;
18
+ repeatOn?: number[];
19
+ repeatEndDate?: string;
20
+ numberOccurrences?: number;
21
+ slots: DraftSlot[];
22
+ maintenance?: Maintenance[];
23
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DraftSeries = void 0;
4
+ class DraftSeries {
5
+ }
6
+ exports.DraftSeries = DraftSeries;
7
+ //# sourceMappingURL=series.classes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"series.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/series.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC"}
@@ -0,0 +1,55 @@
1
+ import { Customer } from '../../../entity/Customer';
2
+ import { Product } from '../../../product-pricing/entities/Product';
3
+ import { Resource } from '../../../resources/entities/Resource';
4
+ import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
5
+ import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
6
+ import { IDraftSlot } from '../interfaces/slot.interfaces';
7
+ import { DraftAddon } from './addon.classes';
8
+ import { Maintenance } from './maintenance.classes';
9
+ import { SlotProductMetadata } from './product.classes';
10
+ export declare class DraftSlot implements IDraftSlot {
11
+ id: string;
12
+ organizationId: number;
13
+ facilityId: number;
14
+ reservationId: string;
15
+ segmentId: string;
16
+ seriesId: string;
17
+ parentSlotId?: string;
18
+ startDate: string;
19
+ startTime: string;
20
+ endDate: string;
21
+ endTime: string;
22
+ timezone: string;
23
+ spaceId: number;
24
+ space?: Resource;
25
+ instructorsIds?: number[];
26
+ instructors?: Resource[];
27
+ title: string;
28
+ creatorId: number;
29
+ creatorType: ResourceNameTypeEnum;
30
+ userCreatorId: number;
31
+ publicNotes?: string;
32
+ privateNotes?: string;
33
+ slotType: SlotTypeEnum;
34
+ sportIds: SportsEnum[];
35
+ maintenanceDurationdurationType?: DurationUnitTypesEnum;
36
+ maintenanceTiming?: MaintenanceTimingEnum;
37
+ durationValue?: number;
38
+ displayName?: string;
39
+ internalName?: string;
40
+ totalPrice?: number;
41
+ privacySetting: PrivacySettingsEnum;
42
+ slotDurationType: DurationTypeEnum;
43
+ colorCodeId: number;
44
+ occurrence: number;
45
+ productMetadata?: SlotProductMetadata;
46
+ product?: Product;
47
+ participantsNumber?: number;
48
+ participantsIds?: number[];
49
+ participants?: Customer[];
50
+ conflictsIds?: number[];
51
+ totalSlotsInSeries?: number;
52
+ maintenanceSlots?: DraftSlot[];
53
+ maintenance?: Maintenance[];
54
+ addons?: DraftAddon[];
55
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DraftSlot = void 0;
4
+ class DraftSlot {
5
+ }
6
+ exports.DraftSlot = DraftSlot;
7
+ //# sourceMappingURL=slot.classes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAgBA,MAAa,SAAS;CAwFrB;AAxFD,8BAwFC"}
@@ -1,3 +1,4 @@
1
+ export * from './classes';
1
2
  export * from './consts';
2
3
  export * from './enums';
3
4
  export * from './interfaces';
@@ -14,6 +14,7 @@ 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("./classes"), exports);
17
18
  __exportStar(require("./consts"), exports);
18
19
  __exportStar(require("./enums"), exports);
19
20
  __exportStar(require("./interfaces"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,sDAAoC"}
@@ -4,12 +4,22 @@ export interface IBaseAddon {
4
4
  unitPrice?: number;
5
5
  quantity?: number;
6
6
  totalPrice?: number;
7
+ }
8
+ export interface IAddon extends IBaseAddon {
9
+ id?: number;
7
10
  product?: Product;
8
11
  parentProduct?: Product;
9
12
  displayTotalWithTax?: number;
10
13
  displayTotalPrice?: number;
11
14
  displayUnitTax?: number;
12
15
  }
13
- export interface IAddon extends IBaseAddon {
14
- id?: number;
16
+ export interface IDraftAddon extends IBaseAddon {
17
+ id: string;
18
+ }
19
+ export interface ISegmentsAddons {
20
+ groupId: string;
21
+ ids: string[];
22
+ productsIds: number[];
23
+ quantity: number;
24
+ products?: Product[];
15
25
  }
@@ -1,3 +1,5 @@
1
1
  export * from './addon.interfaces';
2
2
  export * from './reservation.interfaces';
3
+ export * from './segment.interfaces';
4
+ export * from './series.interfaces';
3
5
  export * from './slot.interfaces';
@@ -16,5 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./addon.interfaces"), exports);
18
18
  __exportStar(require("./reservation.interfaces"), exports);
19
+ __exportStar(require("./segment.interfaces"), exports);
20
+ __exportStar(require("./series.interfaces"), exports);
19
21
  __exportStar(require("./slot.interfaces"), exports);
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,2DAAyC;AACzC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,2DAAyC;AACzC,uDAAqC;AACrC,sDAAoC;AACpC,oDAAkC"}
@@ -10,7 +10,7 @@ import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
10
10
  import { RefundResult } from '../../../payment/types/interfaces/refund.interfaces';
11
11
  import { Product } from '../../../product-pricing/entities/Product';
12
12
  import { Answer } from '../../../questionnaires/entities/Answer';
13
- import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum } from '../../../services/enums.service';
13
+ import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
14
14
  import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
15
15
  import { IPagination } from '../../../util/models/interfaces/general.interfaces';
16
16
  import { AddonDto } from '../../dto/addon.dto';
@@ -23,7 +23,9 @@ import { Reservation } from '../../entities/reservation.entity';
23
23
  import { Segment } from '../../entities/segment.entity';
24
24
  import { Series } from '../../entities/series.entity';
25
25
  import { Slot } from '../../entities/slot.entity';
26
- import { ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
26
+ import { PrivacySettingsEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
27
+ import { IDraftAddon, ISegmentsAddons } from './addon.interfaces';
28
+ import { IDraftSegment } from './segment.interfaces';
27
29
  import { ITimeSlot } from './slot.interfaces';
28
30
  export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
29
31
  export type TResource = Reservation | Segment | Series | Slot | Addon;
@@ -308,10 +310,20 @@ export interface IGetDraftReservationOptions {
308
310
  includeSpaces?: boolean;
309
311
  includeProducts?: boolean;
310
312
  includeParticipants?: boolean;
313
+ /**
314
+ * Always include this flag when using the reservation and then updating it
315
+ */
311
316
  includeSegments?: boolean;
317
+ /**
318
+ * Always include this flag when using the reservation and then updating it
319
+ */
312
320
  includeSlots?: boolean;
313
321
  includeFacilities?: boolean;
322
+ /**
323
+ * Always include this flag when using the reservation and then updating it
324
+ */
314
325
  includeMaintenanceSlots?: boolean;
326
+ includeFullReservation?: boolean;
315
327
  }
316
328
  export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
317
329
  segmentsIds?: string[];
@@ -325,4 +337,35 @@ export interface IExtendDraftSlotsOptions {
325
337
  includeConflicts?: boolean;
326
338
  includeMaintenanceSlots?: boolean;
327
339
  }
340
+ export interface IOverrideProductsPricing {
341
+ [productInfo: string]: IProductPrice;
342
+ }
343
+ export interface IProductPrice {
344
+ productId: number;
345
+ price?: number;
346
+ }
347
+ export interface IBaseReservation {
348
+ organizationId?: number;
349
+ name: string;
350
+ reservationType: ReservationTypeEnum;
351
+ description?: string;
352
+ privacySetting?: PrivacySettingsEnum;
353
+ price?: number;
354
+ creatorId?: number;
355
+ creatorType?: ResourceNameTypeEnum;
356
+ userCreatorId?: number;
357
+ publicNotes?: string;
358
+ privateNotes?: string;
359
+ forms?: number[];
360
+ overrideProductsPrice?: IOverrideProductsPricing;
361
+ colorCodeId?: number;
362
+ customerId?: number;
363
+ }
364
+ export interface IDraftReservation extends IBaseReservation {
365
+ id: string;
366
+ conflictsCount?: number;
367
+ segments: IDraftSegment[];
368
+ addons?: IDraftAddon[];
369
+ segmentsAddons?: ISegmentsAddons[];
370
+ }
328
371
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAmEA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AA+EA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
@@ -0,0 +1,29 @@
1
+ import { SportsEnum } from '../../../services/enums.service';
2
+ import { PrivacySettingsEnum } from '../enums/reservation.enums';
3
+ import { ICreateDraftSeries, IDraftSeries } from './series.interfaces';
4
+ export interface IBaseSegment {
5
+ organizationId?: number;
6
+ title: string;
7
+ privacySetting?: PrivacySettingsEnum;
8
+ resourceIds: number[];
9
+ instructorsIds?: number[];
10
+ sportId?: SportsEnum;
11
+ participantsNumber?: number;
12
+ publicNotesForSlots?: string;
13
+ privateNotesForSlots?: string;
14
+ colorCodeId?: number;
15
+ }
16
+ export interface IBaseDraftSegment extends IBaseSegment {
17
+ id?: string;
18
+ reservationId?: string;
19
+ facilityId: number;
20
+ participantsIds?: number[];
21
+ productsIds?: number[];
22
+ }
23
+ export interface ICreateDraftSegment extends IBaseDraftSegment {
24
+ series: ICreateDraftSeries[];
25
+ }
26
+ export interface IDraftSegment extends IBaseDraftSegment {
27
+ id: string;
28
+ series: IDraftSeries[];
29
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=segment.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"segment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/segment.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import { DurationTypeEnum, DurationUnitTypesEnum, FrequencyEnum, MaintenanceTimingEnum } from '../enums/reservation.enums';
2
+ import { IDraftSlot } from './slot.interfaces';
3
+ export interface IMaintenance {
4
+ title: string;
5
+ durationValue: number;
6
+ maintenanceDurationdurationType: DurationUnitTypesEnum;
7
+ maintenanceTiming: MaintenanceTimingEnum;
8
+ }
9
+ export interface IBaseSeries {
10
+ startDate: string;
11
+ startTime?: string;
12
+ endDate?: string;
13
+ endTime?: string;
14
+ slotDurationType: DurationTypeEnum;
15
+ durationEndsAfter?: number;
16
+ durationUnit?: DurationUnitTypesEnum;
17
+ frequency: FrequencyEnum;
18
+ repeatEvery?: number;
19
+ repeatOn?: number[];
20
+ repeatEndDate?: string;
21
+ numberOccurrences?: number;
22
+ maintenance?: IMaintenance[];
23
+ }
24
+ export interface ICreateDraftSeries extends IBaseSeries {
25
+ reservationId?: string;
26
+ segmentId?: string;
27
+ slots?: IDraftSlot[];
28
+ }
29
+ export interface IDraftSeries extends ICreateDraftSeries {
30
+ id: string;
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=series.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"series.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/series.interfaces.ts"],"names":[],"mappings":""}
@@ -1,6 +1,5 @@
1
1
  import { Product } from '../../../product-pricing/entities/Product';
2
2
  import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
3
- import { DraftAddonDto } from '../../dto/addon.dto';
4
3
  import { MaintenanceDto } from '../../dto/maintenance.dto';
5
4
  import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
6
5
  export interface IReservationCreatorData {
@@ -72,19 +71,31 @@ export interface ICreateSlotsOptions {
72
71
  participantsIds?: number[];
73
72
  maintenance?: MaintenanceDto[];
74
73
  }
75
- export interface IBaseSlot {
74
+ export interface ITimeSlot {
75
+ id?: string | number;
76
+ /**
77
+ */
78
+ resourceId?: number;
79
+ resourcesIds?: number[];
80
+ startDate: string;
81
+ startTime: string;
82
+ endDate: string;
83
+ endTime: string;
84
+ parentSlotId?: string | number;
85
+ }
86
+ export declare class IBaseSlot {
76
87
  organizationId?: number;
88
+ title: string;
89
+ creatorId?: number;
90
+ creatorType?: ResourceNameTypeEnum;
91
+ userCreatorId?: number;
77
92
  startDate: string;
78
93
  startTime?: string;
79
94
  endDate?: string;
80
95
  endTime?: string;
96
+ timezone?: string;
81
97
  spaceId: number;
82
98
  instructorsIds?: number[];
83
- title: string;
84
- creatorId?: number;
85
- creatorType?: ResourceNameTypeEnum;
86
- userCreatorId?: number;
87
- timezone?: string;
88
99
  publicNotes?: string;
89
100
  privateNotes?: string;
90
101
  slotType: SlotTypeEnum;
@@ -97,12 +108,11 @@ export interface IBaseSlot {
97
108
  totalPrice?: number;
98
109
  privacySetting?: PrivacySettingsEnum;
99
110
  slotDurationType: DurationTypeEnum;
100
- participantsNumber?: number;
101
- participantsIds?: number[];
102
111
  colorCodeId?: number;
103
- conflictsIds?: number[];
104
- product?: Product;
112
+ participantsNumber?: number;
113
+ occurrence?: number;
105
114
  productMetadata?: ISlotProductMetadata;
115
+ maintenance?: MaintenanceDto[];
106
116
  }
107
117
  export interface IDraftSlot extends IBaseSlot {
108
118
  id: string;
@@ -111,18 +121,8 @@ export interface IDraftSlot extends IBaseSlot {
111
121
  segmentId?: string;
112
122
  seriesId?: string;
113
123
  parentSlotId?: string;
124
+ participantsIds?: number[];
114
125
  maintenanceSlots?: IDraftSlot[];
115
- addons?: DraftAddonDto[];
116
- }
117
- export interface ITimeSlot {
118
- id?: string | number;
119
- /**
120
- */
121
- resourceId?: number;
122
- resourcesIds?: number[];
123
- startDate: string;
124
- startTime: string;
125
- endDate: string;
126
- endTime: string;
127
- parentSlotId?: string | number;
126
+ conflictsIds?: number[];
127
+ totalSlotsInSeries?: number;
128
128
  }
@@ -1,3 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IBaseSlot = void 0;
4
+ class IBaseSlot {
5
+ }
6
+ exports.IBaseSlot = IBaseSlot;
3
7
  //# sourceMappingURL=slot.interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":";;;AAqGA,MAAa,SAAS;CA8BrB;AA9BD,8BA8BC"}
@@ -1,12 +1,20 @@
1
- import { Slot } from '../entities/slot.entity';
2
- import { DraftSlotDto, SlotDto } from '../dto/slot.dto';
3
- import { DraftSeriesDto, SeriesDto } from '../dto/series.dto';
4
- import { Series } from '../entities/series.entity';
5
- import { Segment } from '../entities/segment.entity';
6
- import { DraftSegmentDto, SegmentDto } from '../dto/segment.dto';
1
+ import { AddonDto } from '../dto/addon.dto';
2
+ import { ReservationDto } from '../dto/reservation.dto';
3
+ import { SegmentDto } from '../dto/segment.dto';
4
+ import { SeriesDto } from '../dto/series.dto';
5
+ import { SlotDto } from '../dto/slot.dto';
6
+ import { Addon } from '../entities/addon.entity';
7
7
  import { Reservation } from '../entities/reservation.entity';
8
- import { DraftReservationDto, ReservationDto } from '../dto/reservation.dto';
9
- export type ReservationEntity = Reservation | ReservationDto | DraftReservationDto;
10
- export type SegmentEntity = Segment | SegmentDto | DraftSegmentDto;
11
- export type SeriesEntity = Series | SeriesDto | DraftSeriesDto;
12
- export type SlotEntity = Slot | SlotDto | DraftSlotDto;
8
+ import { Segment } from '../entities/segment.entity';
9
+ import { Series } from '../entities/series.entity';
10
+ import { Slot } from '../entities/slot.entity';
11
+ import { DraftAddon } from './classes/addon.classes';
12
+ import { DraftReservation } from './classes/reservation.classes';
13
+ import { DraftSegment } from './classes/segment.classes';
14
+ import { DraftSeries } from './classes/series.classes';
15
+ import { DraftSlot } from './classes/slot.classes';
16
+ export type ReservationEntity = Reservation | ReservationDto | DraftReservation;
17
+ export type SegmentEntity = Segment | SegmentDto | DraftSegment;
18
+ export type SeriesEntity = Series | SeriesDto | DraftSeries;
19
+ export type SlotEntity = Slot | SlotDto | DraftSlot;
20
+ export type AddonEntity = Addon | AddonDto | DraftAddon;
@@ -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.166",
3
+ "version": "2.2.168",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {