@bondsports/types 2.2.165 → 2.2.167

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/dto/product-variants.dto.d.ts +2 -14
  3. package/dist/types/dto/product-variants.dto.js +2 -5
  4. package/dist/types/dto/product-variants.dto.js.map +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 +41 -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 +22 -0
  42. package/dist/types/reservations/types/classes/segment.classes.js +7 -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 +11 -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 +35 -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/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import { ISlotProductMetadata } from '../interfaces/slot.interfaces';
2
+ export declare class SlotProductMetadata implements ISlotProductMetadata {
3
+ productId: number;
4
+ price: number;
5
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlotProductMetadata = void 0;
4
+ class SlotProductMetadata {
5
+ }
6
+ exports.SlotProductMetadata = SlotProductMetadata;
7
+ //# sourceMappingURL=product.classes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/product.classes.ts"],"names":[],"mappings":";;;AAEA,MAAa,mBAAmB;CAI/B;AAJD,kDAIC"}
@@ -0,0 +1,41 @@
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 { SegmentsAddonsDto } from '../../dto/reservation.dto';
7
+ import { PrivacySettingsEnum, ReservationTypeEnum } from '../enums/reservation.enums';
8
+ import { IDraftReservation, IOverrideProductsPricing, IProductPrice } from '../interfaces/reservation.interfaces';
9
+ import { DraftAddon } from './addon.classes';
10
+ import { DraftSegment } from './segment.classes';
11
+ export declare class OverrideProductsPricing implements IOverrideProductsPricing {
12
+ [productInfo: string]: IProductPrice;
13
+ }
14
+ export declare class DraftReservation implements IDraftReservation {
15
+ id: string;
16
+ organizationId: number;
17
+ name: string;
18
+ reservationType: ReservationTypeEnum;
19
+ description?: string;
20
+ privacySetting: PrivacySettingsEnum;
21
+ price?: number;
22
+ creatorId: number;
23
+ creatorType: ResourceNameTypeEnum;
24
+ userCreatorId: number;
25
+ publicNotes?: string;
26
+ privateNotes?: string;
27
+ forms?: number[];
28
+ overrideProductsPrice?: OverrideProductsPricing;
29
+ colorCodeId: number;
30
+ customerId: number;
31
+ owner?: Customer;
32
+ conflictsCount?: number;
33
+ segments: DraftSegment[];
34
+ addons?: DraftAddon[];
35
+ segmentsAddons?: SegmentsAddonsDto[];
36
+ participants?: Customer[];
37
+ products?: Product[];
38
+ spaces?: Resource[];
39
+ instructors?: Resource[];
40
+ facilities: Facility[];
41
+ }
@@ -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,22 @@
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
+ export declare class DraftSegment implements IDraftSegment {
6
+ id: string;
7
+ reservationId: string;
8
+ organizationId: number;
9
+ facilityId: number;
10
+ title: string;
11
+ privacySetting: PrivacySettingsEnum;
12
+ resourceIds: number[];
13
+ instructorsIds?: number[];
14
+ sportId: SportsEnum;
15
+ publicNotesForSlots?: string;
16
+ privateNotesForSlots?: string;
17
+ colorCodeId: number;
18
+ participantsNumber?: number;
19
+ participantsIds?: number[];
20
+ productsIds?: number[];
21
+ series: DraftSeries[];
22
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DraftSegment = void 0;
4
+ class DraftSegment {
5
+ }
6
+ exports.DraftSegment = DraftSegment;
7
+ //# 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":";;;AAKA,MAAa,YAAY;CAgCxB;AAhCD,oCAgCC"}
@@ -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,21 @@ 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;
15
24
  }
@@ -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;
@@ -325,4 +327,35 @@ export interface IExtendDraftSlotsOptions {
325
327
  includeConflicts?: boolean;
326
328
  includeMaintenanceSlots?: boolean;
327
329
  }
330
+ export interface IOverrideProductsPricing {
331
+ [productInfo: string]: IProductPrice;
332
+ }
333
+ export interface IProductPrice {
334
+ productId: number;
335
+ price?: number;
336
+ }
337
+ export interface IBaseReservation {
338
+ organizationId?: number;
339
+ name: string;
340
+ reservationType: ReservationTypeEnum;
341
+ description?: string;
342
+ privacySetting?: PrivacySettingsEnum;
343
+ price?: number;
344
+ creatorId?: number;
345
+ creatorType?: ResourceNameTypeEnum;
346
+ userCreatorId?: number;
347
+ publicNotes?: string;
348
+ privateNotes?: string;
349
+ forms?: number[];
350
+ overrideProductsPrice?: IOverrideProductsPricing;
351
+ colorCodeId?: number;
352
+ customerId?: number;
353
+ }
354
+ export interface IDraftReservation extends IBaseReservation {
355
+ id: string;
356
+ conflictsCount?: number;
357
+ segments: IDraftSegment[];
358
+ addons?: IDraftAddon[];
359
+ segmentsAddons?: ISegmentsAddons[];
360
+ }
328
361
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.165",
3
+ "version": "2.2.167",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {