@bondsports/types 2.2.93 → 2.2.95

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,4 +81,6 @@ export declare class Product extends OrganizationConnectionBaseEntity {
81
81
  facilities: Facility[];
82
82
  pricingSchedules?: IPricingSchedule[];
83
83
  timezone?: string;
84
+ spacesIds?: number[];
85
+ instructorsIds?: number[];
84
86
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAmBA,oGAAiG;AAmBjG,MAAa,OAAQ,SAAQ,mEAAgC;CA6H5D;AA7HD,0BA6HC"}
1
+ {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAmBA,oGAAiG;AAmBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAgI5D;AAhID,0BAgIC"}
@@ -51,13 +51,12 @@ export declare class ReservationDto extends BaseReservationDto {
51
51
  purchasingUserId?: number;
52
52
  }
53
53
  export declare class CreateDraftReservationDto extends BaseReservationDto {
54
- id?: string;
55
- segments: CreateDraftSegmentDto[];
56
- addons?: DraftAddonDto[];
57
- conflictsCount?: number;
58
54
  }
59
55
  export declare class DraftReservationDto extends CreateDraftReservationDto {
60
- segments: DraftSegmentDto[];
56
+ id: string;
57
+ conflictsCount?: number;
58
+ segments?: DraftSegmentDto[];
59
+ addons?: DraftAddonDto[];
61
60
  owner?: SimpleCustomerDto;
62
61
  participants?: SimpleCustomerDto[];
63
62
  products?: SimpleProductDto[];
@@ -225,7 +224,7 @@ export declare class AddSlotsDto extends UpdateInvoiceDto {
225
224
  export declare class AddSegmentsDto extends UpdateInvoiceDto {
226
225
  segments: SegmentDto[];
227
226
  }
228
- export declare class GetDraftReservationSlotsFilters extends PaginationQuery implements IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions {
227
+ export declare class GetDraftReservationSlotsFiltersDto extends PaginationQuery implements IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions {
229
228
  segmentsIds?: string[];
230
229
  days?: number[];
231
230
  months?: number[];
@@ -270,4 +269,9 @@ export declare class DraftSlotsIdsDto {
270
269
  export declare class ByDraftSlotId extends ByDraftReservationId {
271
270
  id: string;
272
271
  }
272
+ export declare class GenerateReservationDto {
273
+ reservation?: CreateDraftReservationDto;
274
+ addSegments?: CreateDraftSegmentDto[];
275
+ removeSegmentsIds?: string[];
276
+ }
273
277
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ByDraftSlotId = exports.DraftSlotsIdsDto = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByDraftReservationId = exports.GetDraftReservationSlotsFilters = exports.AddSegmentsDto = exports.AddSlotsDto = exports.InvoiceReservationItemsDto = exports.SaveSlotToSegmenResultDto = exports.AddSlotToSegmenResultDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationInvoiceDto = exports.DraftReservationDto = exports.CreateDraftReservationDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
3
+ exports.GenerateReservationDto = exports.ByDraftSlotId = exports.DraftSlotsIdsDto = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByDraftReservationId = exports.GetDraftReservationSlotsFiltersDto = exports.AddSegmentsDto = exports.AddSlotsDto = exports.InvoiceReservationItemsDto = exports.SaveSlotToSegmenResultDto = exports.AddSlotToSegmenResultDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationInvoiceDto = exports.DraftReservationDto = exports.CreateDraftReservationDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
5
  const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
6
6
  const organization_dto_1 = require("../../organization/dto/organization.dto");
@@ -127,9 +127,9 @@ exports.AddSlotsDto = AddSlotsDto;
127
127
  class AddSegmentsDto extends invoice_dto_1.UpdateInvoiceDto {
128
128
  }
129
129
  exports.AddSegmentsDto = AddSegmentsDto;
130
- class GetDraftReservationSlotsFilters extends general_dto_1.PaginationQuery {
130
+ class GetDraftReservationSlotsFiltersDto extends general_dto_1.PaginationQuery {
131
131
  }
132
- exports.GetDraftReservationSlotsFilters = GetDraftReservationSlotsFilters;
132
+ exports.GetDraftReservationSlotsFiltersDto = GetDraftReservationSlotsFiltersDto;
133
133
  class ByDraftReservationId extends organization_dto_1.ByOrganizationIdDto {
134
134
  }
135
135
  exports.ByDraftReservationId = ByDraftReservationId;
@@ -151,4 +151,7 @@ exports.DraftSlotsIdsDto = DraftSlotsIdsDto;
151
151
  class ByDraftSlotId extends ByDraftReservationId {
152
152
  }
153
153
  exports.ByDraftSlotId = ByDraftSlotId;
154
+ class GenerateReservationDto {
155
+ }
156
+ exports.GenerateReservationDto = GenerateReservationDto;
154
157
  //# sourceMappingURL=reservation.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,+DAAsG;AACtG,8EAA8E;AAI9E,kEAAwF;AAuCxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAM,kBAAkB;CAiCvB;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAcrD;AAdD,wCAcC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;CAQhE;AARD,8DAQC;AAED,MAAa,mBAAoB,SAAQ,yBAAyB;CAYjE;AAZD,kDAYC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0C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AAQ,8BAAgB;CAEnD;AAFD,wCAEC;AAED,MAAa,+BACZ,SAAQ,6BAAe;CAqBvB;AAtBD,0EAsBC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,yBAAyB;CAYrC;AAZD,8DAYC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAIrE;AAJD,8EAIC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC"}
1
+ {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,+DAAsG;AACtG,8EAA8E;AAI9E,kEAAwF;AAuCxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAM,kBAAkB;CAiCvB;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAcrD;AAdD,wCAcC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;CAChE;AADD,8DACC;AAED,MAAa,mBAAoB,SAAQ,yBAAyB;CAkBjE;AAlBD,kDAkBC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,S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BAAgB;CAEnD;AAFD,wCAEC;AAED,MAAa,kCACZ,SAAQ,6BAAe;CAqBvB;AAtBD,gFAsBC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,yBAAyB;CAYrC;AAZD,8DAYC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAIrE;AAJD,8EAIC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC"}
@@ -11,6 +11,7 @@ declare class BaseSegmentDto {
11
11
  participantsNumber?: number;
12
12
  publicNotesForSlots?: string;
13
13
  privateNotesForSlots?: string;
14
+ colorCodeId?: number;
14
15
  }
15
16
  export declare class SegmentDto extends BaseSegmentDto {
16
17
  id?: number;
@@ -22,11 +23,13 @@ export declare class SegmentDto extends BaseSegmentDto {
22
23
  export declare class CreateDraftSegmentDto extends BaseSegmentDto {
23
24
  id?: string;
24
25
  reservationId?: string;
26
+ facilityId: number;
25
27
  series: CreateDraftSeriesDto[];
26
28
  participantsIds?: number[];
27
29
  productsIds?: number[];
28
30
  }
29
31
  export declare class DraftSegmentDto extends CreateDraftSegmentDto {
32
+ id: string;
30
33
  series: DraftSeriesDto[];
31
34
  }
32
35
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"segment.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/segment.dto.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;AAK1D,MAAM,cAAc;IAApB;QAWC,YAAO,GAAgB,0BAAU,CAAC,KAAK,CAAC;IAOzC,CAAC;CAAA;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAa,qBAAsB,SAAQ,cAAc;CAUxD;AAVD,sDAUC;AAED,MAAa,eAAgB,SAAQ,qBAAqB;CAEzD;AAFD,0CAEC"}
1
+ {"version":3,"file":"segment.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/segment.dto.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;AAK1D,MAAM,cAAc;IAApB;QAWC,YAAO,GAAgB,0BAAU,CAAC,KAAK,CAAC;IASzC,CAAC;CAAA;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAa,qBAAsB,SAAQ,cAAc;CAYxD;AAZD,sDAYC;AAED,MAAa,eAAgB,SAAQ,qBAAqB;CAIzD;AAJD,0CAIC"}
@@ -24,11 +24,11 @@ export declare class SeriesDto extends BaseSeriesDto {
24
24
  slots?: SlotDto[];
25
25
  }
26
26
  export declare class CreateDraftSeriesDto extends BaseSeriesDto {
27
- id?: string;
28
27
  reservationId?: string;
29
28
  segmentId?: string;
29
+ slots?: DraftSlotDto[];
30
30
  }
31
31
  export declare class DraftSeriesDto extends CreateDraftSeriesDto {
32
- slots?: DraftSlotDto[];
32
+ id: string;
33
33
  }
34
34
  export {};
@@ -2,7 +2,7 @@ import { Product } from '../../product-pricing/entities/Product';
2
2
  import { ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
3
3
  import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
4
4
  import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
5
- import { ISlotProductMetadata } from '../types/interfaces/slot.interfaces';
5
+ import { IDraftSlot, ISlotProductMetadata } from '../types/interfaces/slot.interfaces';
6
6
  import { AddonDto, DraftAddonDto } from './addon.dto';
7
7
  import { MaintenanceDto } from './maintenance.dto';
8
8
  import { SimpleResourceDto } from '../../resources/dto/resource.dto';
@@ -14,9 +14,8 @@ export declare class DateTimeAndResourcesDto {
14
14
  spaceId: number;
15
15
  instructorsIds?: number[];
16
16
  }
17
- declare class BaseSlotDto extends DateTimeAndResourcesDto {
17
+ export declare class BaseSlotDto extends DateTimeAndResourcesDto {
18
18
  organizationId?: number;
19
- eventId?: number;
20
19
  title: string;
21
20
  creatorId?: number;
22
21
  creatorType?: ResourceNameTypeEnum;
@@ -26,7 +25,6 @@ declare class BaseSlotDto extends DateTimeAndResourcesDto {
26
25
  privateNotes?: string;
27
26
  slotType: SlotTypeEnum;
28
27
  sportIds: SportsEnum[];
29
- parentSlotId?: number;
30
28
  maintenanceDurationdurationType?: DurationUnitTypesEnum;
31
29
  maintenanceTiming?: MaintenanceTimingEnum;
32
30
  durationValue?: number;
@@ -45,6 +43,8 @@ export declare class SlotDto extends BaseSlotDto {
45
43
  reservationId?: number;
46
44
  segmentId?: number;
47
45
  seriesId?: number;
46
+ eventId?: number;
47
+ parentSlotId?: number;
48
48
  maintenanceSlots?: SlotDto[];
49
49
  addons?: AddonDto[];
50
50
  invoicId?: number;
@@ -86,11 +86,12 @@ export declare class UpdateSlotsColorsDto {
86
86
  slotId: number;
87
87
  colorCodeId: number;
88
88
  }
89
- export declare class DraftSlotDto extends BaseSlotDto {
90
- id?: string;
89
+ export declare class DraftSlotDto extends BaseSlotDto implements IDraftSlot {
90
+ id: string;
91
91
  reservationId?: string;
92
92
  segmentId?: string;
93
93
  seriesId?: string;
94
+ parentSlotId?: string;
94
95
  maintenanceSlots?: DraftSlotDto[];
95
96
  addons?: DraftAddonDto[];
96
97
  participantsIds?: number[];
@@ -98,4 +99,3 @@ export declare class DraftSlotDto extends BaseSlotDto {
98
99
  instructors?: SimpleResourceDto[];
99
100
  totalSlotsInSeries?: number;
100
101
  }
101
- export {};
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DraftSlotDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotProductMetadataDto = exports.SlotDto = exports.DateTimeAndResourcesDto = void 0;
3
+ exports.DraftSlotDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotProductMetadataDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = void 0;
4
4
  class DateTimeAndResourcesDto {
5
5
  }
6
6
  exports.DateTimeAndResourcesDto = DateTimeAndResourcesDto;
7
7
  class BaseSlotDto extends DateTimeAndResourcesDto {
8
8
  }
9
+ exports.BaseSlotDto = BaseSlotDto;
9
10
  class SlotDto extends BaseSlotDto {
10
11
  }
11
12
  exports.SlotDto = SlotDto;
@@ -1 +1 @@
1
- {"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAmBA,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAM,WAAY,SAAQ,uBAAuB;CAgDhD;AAED,MAAa,OAAQ,SAAQ,WAAW;CA+BvC;AA/BD,0BA+BC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,WAAW;CAiBvB;AAjBD,kCAiBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,YAAa,SAAQ,WAAW;CAoB5C;AApBD,oCAoBC"}
1
+ {"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAmBA,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,WAAY,SAAQ,uBAAuB;CA4CvD;AA5CD,kCA4CC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAmCvC;AAnCD,0BAmCC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,WAAW;CAiBvB;AAjBD,kCAiBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,YAAa,SAAQ,WAAW;CAsB5C;AAtBD,oCAsBC"}
@@ -1,4 +1,5 @@
1
1
  import { InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
2
+ import { SlotTypeEnum } from '../enums/reservation.enums';
2
3
  export declare const DRAFT_RESERVATION_REDIS_TOKEN = "DRAFT_RESERVATION_REDIS_CLIENT";
3
4
  export declare const KEY_TTL = 172800;
4
5
  export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
@@ -12,3 +13,10 @@ export declare const reservationStatusMapper: {
12
13
  Rejected: InvoiceStatusEnum;
13
14
  Canceled: InvoiceStatusEnum;
14
15
  };
16
+ export declare const reservationTypeMapper: {
17
+ custom: SlotTypeEnum;
18
+ maintenance: SlotTypeEnum;
19
+ program: SlotTypeEnum;
20
+ internal: SlotTypeEnum;
21
+ rental: SlotTypeEnum;
22
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reservationStatusMapper = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
3
+ exports.reservationTypeMapper = exports.reservationStatusMapper = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
4
4
  const enums_service_1 = require("../../../services/enums.service");
5
5
  const reservation_enums_1 = require("../enums/reservation.enums");
6
6
  exports.DRAFT_RESERVATION_REDIS_TOKEN = 'DRAFT_RESERVATION_REDIS_CLIENT';
@@ -17,4 +17,11 @@ exports.reservationStatusMapper = {
17
17
  [reservation_enums_1.ReservationStatusEnum.REJECTED]: enums_service_1.InvoiceStatusEnum.CANCELED,
18
18
  [reservation_enums_1.ReservationStatusEnum.CANCELED]: enums_service_1.InvoiceStatusEnum.CANCELED,
19
19
  };
20
+ exports.reservationTypeMapper = {
21
+ [reservation_enums_1.ReservationTypeEnum.CUSTOM]: reservation_enums_1.SlotTypeEnum.CUSTOM,
22
+ [reservation_enums_1.ReservationTypeEnum.MAINTENANCE]: reservation_enums_1.SlotTypeEnum.MAINTENANCE,
23
+ [reservation_enums_1.ReservationTypeEnum.PROGRAM]: reservation_enums_1.SlotTypeEnum.INTERNAL,
24
+ [reservation_enums_1.ReservationTypeEnum.INTERNAL]: reservation_enums_1.SlotTypeEnum.INTERNAL,
25
+ [reservation_enums_1.ReservationTypeEnum.RENTAL]: reservation_enums_1.SlotTypeEnum.EXTERNAL,
26
+ };
20
27
  //# sourceMappingURL=reservation.consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAoF;AACpF,kEAAmE;AAEtD,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAE9E,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EA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Y,CAAC,QAAQ;CACnD,CAAC"}
@@ -12,6 +12,7 @@ import { Product } from '../../../product-pricing/entities/Product';
12
12
  import { Answer } from '../../../questionnaires/entities/Answer';
13
13
  import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum } from '../../../services/enums.service';
14
14
  import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
15
+ import { IPagination } from '../../../util/models/interfaces/general.interfaces';
15
16
  import { AddonDto } from '../../dto/addon.dto';
16
17
  import { ReservationDto } from '../../dto/reservation.dto';
17
18
  import { SegmentDto } from '../../dto/segment.dto';
@@ -23,7 +24,6 @@ import { Segment } from '../../entities/segment.entity';
23
24
  import { Series } from '../../entities/series.entity';
24
25
  import { Slot } from '../../entities/slot.entity';
25
26
  import { ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
26
- import { IPagination } from '../../../util/models/interfaces/general.interfaces';
27
27
  export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
28
28
  export type TResource = Reservation | Segment | Series | Slot | Addon;
29
29
  export type TSlotAndType = {
@@ -48,7 +48,7 @@ export interface IReservationV1 {
48
48
  sentForAdminDate?: string;
49
49
  name?: string;
50
50
  }
51
- export declare class ISlotDateDto {
51
+ export declare class ISlotDate {
52
52
  startDate: moment.Moment;
53
53
  endDate: moment.Moment;
54
54
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ISlotDateDto = void 0;
4
- class ISlotDateDto {
3
+ exports.ISlotDate = void 0;
4
+ class ISlotDate {
5
5
  }
6
- exports.ISlotDateDto = ISlotDateDto;
6
+ exports.ISlotDate = ISlotDate;
7
7
  //# sourceMappingURL=reservation.interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAkEA,MAAa,YAAY;CAGxB;AAHD,oCAGC"}
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAkEA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
@@ -1,5 +1,7 @@
1
- import { ResourceNameTypeEnum } from '../../../services/enums.service';
2
- import { SlotTypeEnum } from '../enums/reservation.enums';
1
+ import { Product } from '../../../product-pricing/entities/Product';
2
+ import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
3
+ import { DraftAddonDto } from '../../dto/addon.dto';
4
+ import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
3
5
  export interface IReservationCreatorData {
4
6
  type: ResourceNameTypeEnum;
5
7
  id: number;
@@ -54,3 +56,53 @@ export interface ISlotProductMetadata {
54
56
  priceId?: number;
55
57
  price: number;
56
58
  }
59
+ export interface ICreateSlotsOptions {
60
+ userCreatorId?: number;
61
+ publicNotes?: string;
62
+ privateNotes?: string;
63
+ sportIds?: number[];
64
+ privacySetting?: PrivacySettingsEnum;
65
+ colorCodeId?: number;
66
+ overrideProduct?: Product;
67
+ spaceProducts?: Product[];
68
+ }
69
+ export interface IDraftSlot {
70
+ id: string;
71
+ organizationId?: number;
72
+ reservationId?: string;
73
+ segmentId?: string;
74
+ seriesId?: string;
75
+ startDate: string;
76
+ startTime?: string;
77
+ endDate?: string;
78
+ endTime?: string;
79
+ spaceId: number;
80
+ instructorsIds?: number[];
81
+ eventId?: number;
82
+ title: string;
83
+ creatorId?: number;
84
+ creatorType?: ResourceNameTypeEnum;
85
+ userCreatorId?: number;
86
+ timezone?: string;
87
+ publicNotes?: string;
88
+ privateNotes?: string;
89
+ slotType: SlotTypeEnum;
90
+ sportIds: SportsEnum[];
91
+ parentSlotId?: string;
92
+ maintenanceDurationdurationType?: DurationUnitTypesEnum;
93
+ maintenanceTiming?: MaintenanceTimingEnum;
94
+ durationValue?: number;
95
+ displayName?: string;
96
+ internalName?: string;
97
+ totalPrice?: number;
98
+ privacySetting?: PrivacySettingsEnum;
99
+ slotDurationType: DurationTypeEnum;
100
+ participantsNumber?: number;
101
+ participantsIds?: number[];
102
+ colorCodeId?: number;
103
+ conflictsIds?: number[];
104
+ maintenanceSlots?: IDraftSlot[];
105
+ addons?: DraftAddonDto[];
106
+ product?: Product;
107
+ relevantProducts?: Product[];
108
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.93",
3
+ "version": "2.2.95",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {