@bondsports/types 2.2.282 → 2.2.284-a-1

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.
Files changed (49) hide show
  1. package/README.md +71 -71
  2. package/dist/tsconfig.build.tsbuildinfo +1 -1
  3. package/dist/types/employees/dto/employee.dto.d.ts +1 -0
  4. package/dist/types/employees/dto/employee.dto.js.map +1 -1
  5. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +1 -0
  6. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  7. package/dist/types/product-pricing/dto/product.dto.d.ts +2 -0
  8. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  9. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +1 -0
  10. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +25 -18
  11. package/dist/types/programs-seasons/dto/program-seasons.dto.js +11 -8
  12. package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
  13. package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +4 -2
  14. package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
  15. package/dist/types/programs-seasons/types/classes/index.d.ts +1 -0
  16. package/dist/types/programs-seasons/types/classes/index.js +18 -0
  17. package/dist/types/programs-seasons/types/classes/index.js.map +1 -0
  18. package/dist/types/programs-seasons/types/classes/program-season.classes.d.ts +6 -0
  19. package/dist/types/programs-seasons/types/classes/program-season.classes.js +7 -0
  20. package/dist/types/programs-seasons/types/classes/program-season.classes.js.map +1 -0
  21. package/dist/types/programs-seasons/types/enums/index.d.ts +1 -0
  22. package/dist/types/programs-seasons/types/enums/index.js +18 -0
  23. package/dist/types/programs-seasons/types/enums/index.js.map +1 -0
  24. package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +9 -0
  25. package/dist/types/programs-seasons/types/enums/program-season.enums.js +15 -0
  26. package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -0
  27. package/dist/types/programs-seasons/types/index.d.ts +2 -0
  28. package/dist/types/programs-seasons/types/index.js +2 -0
  29. package/dist/types/programs-seasons/types/index.js.map +1 -1
  30. package/dist/types/reservations/dto/addon.dto.d.ts +4 -3
  31. package/dist/types/reservations/dto/addon.dto.js +6 -2
  32. package/dist/types/reservations/dto/addon.dto.js.map +1 -1
  33. package/dist/types/reservations/dto/reservation.dto.d.ts +11 -3
  34. package/dist/types/reservations/dto/reservation.dto.js +4 -1
  35. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  36. package/dist/types/reservations/dto/slot.dto.d.ts +48 -13
  37. package/dist/types/reservations/dto/slot.dto.js +8 -5
  38. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  39. package/dist/types/reservations/types/classes/addon.classes.d.ts +1 -0
  40. package/dist/types/reservations/types/classes/addon.classes.js.map +1 -1
  41. package/dist/types/reservations/types/consts/reservation.consts.d.ts +1 -0
  42. package/dist/types/reservations/types/consts/reservation.consts.js +8 -1
  43. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
  44. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +20 -1
  45. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +4 -0
  46. package/dist/types/resources/dto/space.dto.d.ts +1 -0
  47. package/dist/types/resources/dto/space.dto.js.map +1 -1
  48. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +1 -0
  49. package/package.json +54 -54
@@ -108,6 +108,7 @@ export declare class GetEmployeesByFilterOptions extends PaginationQuery {
108
108
  statuses?: EmployeeStatus[];
109
109
  rolesIds?: number[];
110
110
  excludedRolesIds?: number[];
111
+ mustHaveRolesIds?: number[];
111
112
  includeRoles?: boolean;
112
113
  search?: string;
113
114
  orderBy?: UserOrderBy | OrganizationUserOrderBy;
@@ -1 +1 @@
1
- {"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AAMxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC;AAED,MAAa,iBAAkB,SAAQ,WAAW;CAEjD;AAFD,8CAEC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAEzD;AAFD,kDAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,uCAAuC;AACvC,MAAa,iBAAiB;CAwD7B;AAxDD,8CAwDC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;IAAhE;;QAOC,iBAAY,GAAa,IAAI,CAAC;IAS/B,CAAC;CAAA;AAhBD,kEAgBC"}
1
+ {"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AAMxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC;AAED,MAAa,iBAAkB,SAAQ,WAAW;CAEjD;AAFD,8CAEC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAEzD;AAFD,kDAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,uCAAuC;AACvC,MAAa,iBAAiB;CAwD7B;AAxDD,8CAwDC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;IAAhE;;QASC,iBAAY,GAAa,IAAI,CAAC;IAS/B,CAAC;CAAA;AAlBD,kEAkBC"}
@@ -93,4 +93,5 @@ export declare class GetProductsByTypeQueryDto extends PaginationQuery implement
93
93
  search?: string;
94
94
  sortBy?: OrderByProductEnum;
95
95
  order?: OrderByEnum;
96
+ inclusion?: boolean;
96
97
  }
@@ -1 +1 @@
1
- {"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAY9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAAG;AAAvE,kEAAuE;AAEvE,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CA4C7D;AA5CD,8DA4CC"}
1
+ {"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAY9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAAG;AAAvE,kEAAuE;AAEvE,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CA8C7D;AA9CD,8DA8CC"}
@@ -18,6 +18,7 @@ import { ActivityEnum, AddonTimePeriodEnum, PackageProductsRelationTypeEnum, Pla
18
18
  import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
19
19
  import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
20
20
  import { ProductResourceDto } from './product-resource.dto';
21
+ import { ExistingProductToPackageDto } from '../../dto/package.dto';
21
22
  export declare class FindByProductIdDto {
22
23
  productId: number;
23
24
  }
@@ -79,6 +80,7 @@ export declare class CreateProductDto {
79
80
  addons?: CreateRentalProductAddonDto[];
80
81
  availabilityTimes?: CreateProductAvailabilityTimesDto[];
81
82
  resourceSettings?: CreateOrUpdateResourceSettingDto[];
83
+ addonsToPackages?: ExistingProductToPackageDto[];
82
84
  }
83
85
  export declare class ProductInPackage extends CreateProductDto {
84
86
  relationType: PackageProductsRelationTypeEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AAMtE,8EAA8E;AAsB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;A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DAIC;AAED,MAAa,yBAAyB;CAKrC;AALD,8DAKC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,gBAAgB;CAsD5B;AAtDD,4CAsDC;AAED,MAAa,sBAAsB;CAYlC;AAZD,wDAYC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA0G1B;AA1GD,wCA0GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
@@ -33,6 +33,7 @@ export interface IGetProductsByTypeOptions extends IPagination {
33
33
  sortBy?: OrderByProductEnum;
34
34
  order?: OrderByEnum;
35
35
  onlyValid?: boolean;
36
+ inclusion?: boolean;
36
37
  }
37
38
  export interface IPricingSchedule {
38
39
  groupId: string;
@@ -3,12 +3,14 @@ import { IdAndNameDto, PaginationMetaDto, PaginationQuery } from '../../dto/gene
3
3
  import { Event } from '../../entity/Events';
4
4
  import { BaseNotificationDto } from '../../notifications/dto/backoffice.notify.dto';
5
5
  import { ByOrganizationIdDto, OptionalOrganizationIdDto } from '../../organization/dto/organization.dto';
6
+ import { Product } from '../../product-pricing/entities/Product';
6
7
  import { ByProgramDto, UpdateProgramOptionsDto } from '../../programs/dto/program.dto';
7
8
  import { MaintenanceDto } from '../../reservations/dto/maintenance.dto';
8
9
  import { SlotTypeEnum } from '../../reservations/types/enums/reservation.enums';
9
10
  import { ITimeSlotConflicts } from '../../reservations/types/interfaces/reservation.interfaces';
10
11
  import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
11
12
  import { GenderEnum, LevelOfPlayEnum, OrderByEnum, ProgramSeasonTypesEnum, ProgramTypesEnum, PublishingStatusEnum, RegistrationConstraintPeriodTypeEnum, ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
13
+ import { ProgramSeason } from '../entities/ProgramSeason';
12
14
  export declare class FindSessionsFiltersDto {
13
15
  status?: PublishingStatusEnum;
14
16
  isFullFetch?: boolean;
@@ -62,7 +64,24 @@ export declare class BlockedDatesDto {
62
64
  startDate: Date;
63
65
  endDate: Date;
64
66
  }
65
- export declare class BaseProgramSeasonDto {
67
+ export declare class RegistrationDatesDto {
68
+ registrationStartDate: Date;
69
+ registrationEndDate: Date;
70
+ earlyRegistrationStartDate?: Date;
71
+ earlyRegistrationEndDate?: Date;
72
+ lateRegistrationStartDate?: Date;
73
+ lateRegistrationEndDate?: Date;
74
+ }
75
+ export declare class RegistrationSettingsDto extends RegistrationDatesDto {
76
+ closeRegistrationPeriodValue?: number;
77
+ closeRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
78
+ closeRegistrationSpecTime?: string;
79
+ openRegistrationPeriodValue?: number;
80
+ openRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
81
+ openRegistrationSpecTime?: string;
82
+ productsIdsToUpdate?: number[];
83
+ }
84
+ export declare class BaseProgramSeasonDto extends RegistrationSettingsDto {
66
85
  programId?: number;
67
86
  name: string;
68
87
  status: PublishingStatusEnum;
@@ -113,6 +132,7 @@ export declare class SubSeasonBasicInfo {
113
132
  }
114
133
  export declare class CreateProgramSeasonDto extends BaseProgramSeasonDto {
115
134
  subSeasons?: SubSeasonBasicInfo[];
135
+ duplicateFromSeasonId?: number;
116
136
  }
117
137
  export declare class UpdateProgramSeasonDto extends BaseProgramSeasonDto {
118
138
  seasonId: number;
@@ -192,23 +212,6 @@ export declare class MoveAttendeeDto {
192
212
  export declare class UpdateSeasonRegistrationDatesDto {
193
213
  registrationPeriods: UpdateSeasonDatesDto[];
194
214
  }
195
- export declare class RegistrationDatesDto {
196
- registrationStartDate: Date;
197
- registrationEndDate: Date;
198
- earlyRegistrationStartDate?: Date;
199
- earlyRegistrationEndDate?: Date;
200
- lateRegistrationStartDate?: Date;
201
- lateRegistrationEndDate?: Date;
202
- }
203
- export declare class RegistrationSettingsDto extends RegistrationDatesDto {
204
- closeRegistrationPeriodValue?: number;
205
- closeRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
206
- closeRegistrationSpecTime?: string;
207
- openRegistrationPeriodValue?: number;
208
- openRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
209
- openRegistrationSpecTime?: string;
210
- productsIdsToUpdate?: number[];
211
- }
212
215
  export declare class MoveParticipantDto {
213
216
  userId: number;
214
217
  oldProductId: number;
@@ -253,3 +256,7 @@ export declare class GetRelatedProgramSessionsDto {
253
256
  statuses?: PublishingStatusEnum[];
254
257
  includeProductsCount?: boolean;
255
258
  }
259
+ export declare class SeasonWithProduct {
260
+ season: ProgramSeason;
261
+ product: Product;
262
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetRelatedProgramSessionsDto = exports.RelatedSessionsDto = exports.GetOrganizationProgramSessionsDto = exports.NotifySessionAttendeesDto = exports.NotifyEventAttendeesDto = exports.EventsAndConflictsDto = exports.UpdateProgramSeasonOptionsDto = exports.UpdateProgramSeasonColorsDto = exports.MoveParticipantDto = exports.RegistrationSettingsDto = exports.RegistrationDatesDto = exports.UpdateSeasonRegistrationDatesDto = exports.MoveAttendeeDto = exports.UpdateSeasonDatesDto = exports.SpaceAllocationsByTimesDto = exports.SingleSpaceAllocationByTimesDto = exports.BulkSpaceResourceAllocationDto = exports.SpaceResourcePairDto = exports.SimpleSessionDto = exports.ShallowUpdateSubSeasonDto = exports.ShallowUpdateProgramSeasonDto = exports.UpdateProgramSeasonStatusDto = exports.UpdateProgramSeasonDto = exports.CreateProgramSeasonDto = exports.SubSeasonBasicInfo = exports.CreateSessionScheduleDto = exports.BaseProgramSeasonDto = exports.BlockedDatesDto = exports.FindRegisteredUsersOptionsDto = exports.FindRegisteredUserDto = exports.DeleteProductDto = exports.FindSessionEventByIdDto = exports.ByOrganizationIdAndProgramSeasonIdDto = exports.FindSeasonEventsQueryDto = exports.SegmentsBySessionQueryDto = exports.FindProgramSeasonByIdDto = exports.FindProgramSeasonByIdQueryDto = exports.DeleteEventAttendeesDto = exports.BySeasonDto = exports.FindSessionsFiltersDto = void 0;
3
+ exports.SeasonWithProduct = exports.GetRelatedProgramSessionsDto = exports.RelatedSessionsDto = exports.GetOrganizationProgramSessionsDto = exports.NotifySessionAttendeesDto = exports.NotifyEventAttendeesDto = exports.EventsAndConflictsDto = exports.UpdateProgramSeasonOptionsDto = exports.UpdateProgramSeasonColorsDto = exports.MoveParticipantDto = exports.UpdateSeasonRegistrationDatesDto = exports.MoveAttendeeDto = exports.UpdateSeasonDatesDto = exports.SpaceAllocationsByTimesDto = exports.SingleSpaceAllocationByTimesDto = exports.BulkSpaceResourceAllocationDto = exports.SpaceResourcePairDto = exports.SimpleSessionDto = exports.ShallowUpdateSubSeasonDto = exports.ShallowUpdateProgramSeasonDto = exports.UpdateProgramSeasonStatusDto = exports.UpdateProgramSeasonDto = exports.CreateProgramSeasonDto = exports.SubSeasonBasicInfo = exports.CreateSessionScheduleDto = exports.BaseProgramSeasonDto = exports.RegistrationSettingsDto = exports.RegistrationDatesDto = exports.BlockedDatesDto = exports.FindRegisteredUsersOptionsDto = exports.FindRegisteredUserDto = exports.DeleteProductDto = exports.FindSessionEventByIdDto = exports.ByOrganizationIdAndProgramSeasonIdDto = exports.FindSeasonEventsQueryDto = exports.SegmentsBySessionQueryDto = exports.FindProgramSeasonByIdDto = exports.FindProgramSeasonByIdQueryDto = exports.DeleteEventAttendeesDto = exports.BySeasonDto = exports.FindSessionsFiltersDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
5
  const backoffice_notify_dto_1 = require("../../notifications/dto/backoffice.notify.dto");
6
6
  const organization_dto_1 = require("../../organization/dto/organization.dto");
@@ -44,7 +44,13 @@ exports.FindRegisteredUsersOptionsDto = FindRegisteredUsersOptionsDto;
44
44
  class BlockedDatesDto {
45
45
  }
46
46
  exports.BlockedDatesDto = BlockedDatesDto;
47
- class BaseProgramSeasonDto {
47
+ class RegistrationDatesDto {
48
+ }
49
+ exports.RegistrationDatesDto = RegistrationDatesDto;
50
+ class RegistrationSettingsDto extends RegistrationDatesDto {
51
+ }
52
+ exports.RegistrationSettingsDto = RegistrationSettingsDto;
53
+ class BaseProgramSeasonDto extends RegistrationSettingsDto {
48
54
  }
49
55
  exports.BaseProgramSeasonDto = BaseProgramSeasonDto;
50
56
  class CreateSessionScheduleDto {
@@ -92,12 +98,6 @@ exports.MoveAttendeeDto = MoveAttendeeDto;
92
98
  class UpdateSeasonRegistrationDatesDto {
93
99
  }
94
100
  exports.UpdateSeasonRegistrationDatesDto = UpdateSeasonRegistrationDatesDto;
95
- class RegistrationDatesDto {
96
- }
97
- exports.RegistrationDatesDto = RegistrationDatesDto;
98
- class RegistrationSettingsDto extends RegistrationDatesDto {
99
- }
100
- exports.RegistrationSettingsDto = RegistrationSettingsDto;
101
101
  class MoveParticipantDto {
102
102
  }
103
103
  exports.MoveParticipantDto = MoveParticipantDto;
@@ -131,4 +131,7 @@ exports.RelatedSessionsDto = RelatedSessionsDto;
131
131
  class GetRelatedProgramSessionsDto {
132
132
  }
133
133
  exports.GetRelatedProgramSessionsDto = GetRelatedProgramSessionsDto;
134
+ class SeasonWithProduct {
135
+ }
136
+ exports.SeasonWithProduct = SeasonWithProduct;
134
137
  //# sourceMappingURL=program-seasons.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAyF;AAEzF,yFAAoF;AACpF,8EAAyG;AACzG,gEAAuF;AAiBvF,MAAa,sBAA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AALD,0CAKC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,oBAAoB;CAShC;AATD,oDASC;AAED,MAAa,uBAAwB,SAAQ,oBAAoB;CAUhE;AAVD,0DAUC;AAED,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,6BAA8B,SAAQ,qCAAuB;CAAG;AAA7E,sEAA6E;AAE7E,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED;;GAEG;AACH,MAAa,uBAAwB,SAAQ,2CAAmB;CAY/D;AAZD,0DAYC;AAED;;GAEG;AACH,MAAa,yBAA0B,SAAQ,2CAAmB;CAajE;AAbD,8DAaC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAMrE;AAND,8EAMC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAMxC;AAND,oEAMC"}
1
+ {"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAyF;AAEzF,yFAAoF;AACpF,8EAAyG;AAEzG,gEAAuF;AAkBvF,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,WAAY,SAAQ,0BAAY;CAE5C;AAFD,kCAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,wBAAyB,SAAQ,4CAAyB;CAEtE;AAFD,4DAEC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AACD,MAAa,wBAAyB,SAAQ,6BAAe;CAU5D;AAVD,4DAUC;AAED,MAAa,qCAAsC,SAAQ,sCAAmB;CAE7E;AAFD,sFAEC;AAED,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,qBAAsB,SAAQ,wB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AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAMrE;AAND,8EAMC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAMxC;AAND,oEAMC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC"}
@@ -1,5 +1,5 @@
1
- import { ActivityTimes } from '../../entity/ActivityTimes';
2
1
  import { Address } from '../../address/entities/Address';
2
+ import { ActivityTimes } from '../../entity/ActivityTimes';
3
3
  import { BlockedDate } from '../../entity/BlockedDate';
4
4
  import { ColorCode } from '../../entity/ColorCode';
5
5
  import { Event } from '../../entity/Events';
@@ -13,9 +13,10 @@ import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
13
13
  import { Product } from '../../product-pricing/entities/Product';
14
14
  import { Program } from '../../programs/entities/Program';
15
15
  import { ResourceSetting } from '../../resource-settings/entities/resource-setting.entity';
16
+ import { Resource } from '../../resources/entities/Resource';
16
17
  import { GenderEnum, LevelOfPlayEnum, ProgramSeasonTypesEnum, PublishingStatusEnum, SportsEnum } from '../../services/enums.service';
17
18
  import { EventAsSeasonSegment, SeasonAsSeasonSegment } from '../../services/interfaces.service';
18
- import { Resource } from '../../resources/entities/Resource';
19
+ import { SegmentsMetadata } from '../types/classes/program-season.classes';
19
20
  export declare class ProgramSeason extends OrganizationConnectionBaseEntity {
20
21
  programId: number;
21
22
  name: string;
@@ -69,6 +70,7 @@ export declare class ProgramSeason extends OrganizationConnectionBaseEntity {
69
70
  ordinal: number;
70
71
  colorCodeId?: number;
71
72
  colorCode?: ColorCode;
73
+ segmentsMetadata?: SegmentsMetadata;
72
74
  isSegmented?: boolean;
73
75
  /**
74
76
  * After create + update, update the ageCalcDate column with the value
@@ -1 +1 @@
1
- {"version":3,"file":"ProgramSeason.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/entities/ProgramSeason.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AAmBjG,MAAa,aAAc,SAAQ,mEAAgC;CAiIlE;AAjID,sCAiIC"}
1
+ {"version":3,"file":"ProgramSeason.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/entities/ProgramSeason.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AAoBjG,MAAa,aAAc,SAAQ,mEAAgC;CAmIlE;AAnID,sCAmIC"}
@@ -0,0 +1 @@
1
+ export * from './program-season.classes';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./program-season.classes"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/programs-seasons/types/classes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
@@ -0,0 +1,6 @@
1
+ import { SegmentOccurrenceTypeEnum, SegmentTypeEnum } from '../enums/program-season.enums';
2
+ export declare class SegmentsMetadata {
3
+ segmentType: SegmentTypeEnum;
4
+ occurrenceEvery?: number;
5
+ occurrenceType?: SegmentOccurrenceTypeEnum;
6
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SegmentsMetadata = void 0;
4
+ class SegmentsMetadata {
5
+ }
6
+ exports.SegmentsMetadata = SegmentsMetadata;
7
+ //# sourceMappingURL=program-season.classes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"program-season.classes.js","sourceRoot":"","sources":["../../../../../src/types/programs-seasons/types/classes/program-season.classes.ts"],"names":[],"mappings":";;;AAEA,MAAa,gBAAgB;CAM5B;AAND,4CAMC"}
@@ -0,0 +1 @@
1
+ export * from './program-season.enums';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./program-season.enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/programs-seasons/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC"}
@@ -0,0 +1,9 @@
1
+ export declare enum SegmentTypeEnum {
2
+ SLOT = "slot",
3
+ DATE = "date",
4
+ CUSTOM = "custom"
5
+ }
6
+ export declare enum SegmentOccurrenceTypeEnum {
7
+ WEEK = "week",
8
+ MONTH = "month"
9
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SegmentOccurrenceTypeEnum = exports.SegmentTypeEnum = void 0;
4
+ var SegmentTypeEnum;
5
+ (function (SegmentTypeEnum) {
6
+ SegmentTypeEnum["SLOT"] = "slot";
7
+ SegmentTypeEnum["DATE"] = "date";
8
+ SegmentTypeEnum["CUSTOM"] = "custom";
9
+ })(SegmentTypeEnum = exports.SegmentTypeEnum || (exports.SegmentTypeEnum = {}));
10
+ var SegmentOccurrenceTypeEnum;
11
+ (function (SegmentOccurrenceTypeEnum) {
12
+ SegmentOccurrenceTypeEnum["WEEK"] = "week";
13
+ SegmentOccurrenceTypeEnum["MONTH"] = "month";
14
+ })(SegmentOccurrenceTypeEnum = exports.SegmentOccurrenceTypeEnum || (exports.SegmentOccurrenceTypeEnum = {}));
15
+ //# sourceMappingURL=program-season.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"program-season.enums.js","sourceRoot":"","sources":["../../../../../src/types/programs-seasons/types/enums/program-season.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,oCAAiB,CAAA;AAClB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAED,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACpC,0CAAa,CAAA;IACb,4CAAe,CAAA;AAChB,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC"}
@@ -1 +1,3 @@
1
+ export * from './classes';
2
+ export * from './enums';
1
3
  export * from './interfaces';
@@ -14,5 +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);
18
+ __exportStar(require("./enums"), exports);
17
19
  __exportStar(require("./interfaces"), exports);
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,0CAAwB;AACxB,+CAA6B"}
@@ -4,10 +4,12 @@ import { ProductPackageLevelEnum } from '../../services/enums.service';
4
4
  import { IAddon, IBaseAddon, IDraftAddon } from '../types/interfaces/addon.interfaces';
5
5
  import { EditItemsRefundMetaDto } from './reservation.dto';
6
6
  import { SimpleProductUserDto } from '../../dto/product-user';
7
- declare class BaseAddonDto implements IBaseAddon {
7
+ export declare class SelectAddonDto {
8
8
  productId: number;
9
- unitPrice?: number;
10
9
  quantity?: number;
10
+ }
11
+ export declare class BaseAddonDto extends SelectAddonDto implements IBaseAddon {
12
+ unitPrice?: number;
11
13
  totalPrice?: number;
12
14
  }
13
15
  export declare class AddonDto extends BaseAddonDto implements IAddon {
@@ -42,4 +44,3 @@ export declare class DraftAddonDto extends BaseAddonDto implements IDraftAddon {
42
44
  product?: SimpleProductDto;
43
45
  level?: ProductPackageLevelEnum;
44
46
  }
45
- export {};
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DraftAddonDto = exports.CreateDraftAddonDto = exports.EditAddonDto = exports.EditReservationAddonsDto = exports.EditAddonsDto = exports.AddAddonsDto = exports.AddonDto = void 0;
4
- class BaseAddonDto {
3
+ exports.DraftAddonDto = exports.CreateDraftAddonDto = exports.EditAddonDto = exports.EditReservationAddonsDto = exports.EditAddonsDto = exports.AddAddonsDto = exports.AddonDto = exports.BaseAddonDto = exports.SelectAddonDto = void 0;
4
+ class SelectAddonDto {
5
5
  }
6
+ exports.SelectAddonDto = SelectAddonDto;
7
+ class BaseAddonDto extends SelectAddonDto {
8
+ }
9
+ exports.BaseAddonDto = BaseAddonDto;
6
10
  class AddonDto extends BaseAddonDto {
7
11
  }
8
12
  exports.AddonDto = AddonDto;
@@ -1 +1 @@
1
- {"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;AAOA,MAAM,YAAY;CAQjB;AAED,MAAa,QAAS,SAAQ,YAAY;CAczC;AAdD,4BAcC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,wBAAyB,SAAQ,aAAa;CAE1D;AAFD,4DAEC;AAED,MAAa,YAAY;CAQxB;AARD,oCAQC;AAED,MAAa,mBAAoB,SAAQ,YAAY;CAEpD;AAFD,kDAEC;AAED,MAAa,aAAc,SAAQ,YAAY;CAM9C;AAND,sCAMC"}
1
+ {"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;AAOA,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,YAAa,SAAQ,cAAc;CAI/C;AAJD,oCAIC;AAED,MAAa,QAAS,SAAQ,YAAY;CAczC;AAdD,4BAcC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,wBAAyB,SAAQ,aAAa;CAE1D;AAFD,4DAEC;AAED,MAAa,YAAY;CAQxB;AARD,oCAQC;AAED,MAAa,mBAAoB,SAAQ,YAAY;CAEpD;AAFD,kDAEC;AAED,MAAa,aAAc,SAAQ,YAAY;CAM9C;AAND,sCAMC"}
@@ -20,11 +20,11 @@ import { AddonParentTypeEnum, FinancialStepEnum, NotifyMethodEnum, OrderByEnum,
20
20
  import { Reservation } from '../entities/reservation.entity';
21
21
  import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
22
22
  import { ISegmentsAddons } from '../types/interfaces/addon.interfaces';
23
- import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails, IEditItemsRefundMetadata, IEditSlotsFinancialDetails, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, IRemoveSlotsFinancialData, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
23
+ import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails, IDuplicateReservationItems, IEditItemsRefundMetadata, IEditSlotsFinancialDetails, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, IRemoveSlotsFinancialData, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
24
24
  import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
25
25
  import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
26
26
  import { SeriesDto } from './series.dto';
27
- import { SlotDto, TimeSlotConflictsDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
27
+ import { DraftSlotsDto, SlotDto, TimeSlotConflictsDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
28
28
  export declare class ProductPricesDto implements IProductPrice {
29
29
  productId: number;
30
30
  product?: Product;
@@ -112,6 +112,7 @@ export declare class DraftReservationDto extends SimpleDraftReservationDto imple
112
112
  facilities: FacilityDto[];
113
113
  segmentsAddons?: SegmentsAddonsDto[];
114
114
  duplicateDetails?: DuplicatedDetailsDto;
115
+ combinedSlots?: DraftSlotsDto[];
115
116
  }
116
117
  export declare class ReservationInvoiceDto {
117
118
  reservation: ReservationDto;
@@ -308,6 +309,9 @@ export declare class GetDraftReservationSlotsFiltersDto extends PaginationQuery
308
309
  export declare class ByDraftReservationIdDto extends ByOrganizationIdDto {
309
310
  reservationId: string;
310
311
  }
312
+ export declare class ByRentalProductId extends ByOrganizationIdDto {
313
+ productId: number;
314
+ }
311
315
  export declare class SimpleDraftSegmentDto {
312
316
  id: string;
313
317
  name: string;
@@ -356,6 +360,7 @@ export declare class GenerateReservationDto {
356
360
  }
357
361
  export declare class UpdateDraftSlotsDto {
358
362
  slots: UpdateDraftSlotDto[];
363
+ slotsIds?: string[];
359
364
  overrideProducts?: boolean;
360
365
  }
361
366
  export declare class SegmentsAddonsGroupDto extends BaseSegmentsAddonsGroupDto {
@@ -383,9 +388,12 @@ export declare class PaginatedSlotsSharedDto {
383
388
  export declare class DuplicateReservationDto {
384
389
  isEdit?: boolean;
385
390
  }
386
- export declare class DuplicateReservationItemsDto extends DuplicateReservationDto {
391
+ export declare class DuplicateReservationItemsDto extends DuplicateReservationDto implements IDuplicateReservationItems {
387
392
  slotsIds?: number[];
393
+ excludeIds?: number[];
388
394
  reservationAddonsIds?: number[];
395
+ combineSlots?: boolean;
396
+ includedFields?: string[];
389
397
  }
390
398
  export declare class ReservationItemLineDto {
391
399
  id: number;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ByDraftReservationIdDto = 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.RemoveSlotsFinancialDataDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySlotIdsDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.DuplicateSlotDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.IncludeConflictsOptionsDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.CreateReservationCartDto = exports.ReservationInvoiceDto = exports.DraftReservationDto = exports.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.SegmentsAddonsDto = exports.CreateSegmentsAddonsDto = exports.BaseReservationItemLineItemDataDto = exports.ReservationDto = exports.DuplicatedDetailsDto = exports.SimpleReservationDto = exports.ProductPricesDto = void 0;
4
- exports.EditReservationItemsResultDto = exports.EditSlotsRefundMetadataDto = exports.EditSlotsFinancialDetailsDto = exports.EditItemsRefundMetadataDto = exports.ReservationItemLineDto = exports.DuplicateReservationItemsDto = exports.DuplicateReservationDto = exports.PaginatedSlotsSharedDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = exports.GetDraftSlotsOptions = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = void 0;
4
+ exports.EditReservationItemsResultDto = exports.EditSlotsRefundMetadataDto = exports.EditSlotsFinancialDetailsDto = exports.EditItemsRefundMetadataDto = exports.ReservationItemLineDto = exports.DuplicateReservationItemsDto = exports.DuplicateReservationDto = exports.PaginatedSlotsSharedDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = exports.GetDraftSlotsOptions = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByRentalProductId = void 0;
5
5
  const general_dto_1 = require("../../dto/general.dto");
6
6
  const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
7
7
  const organization_dto_1 = require("../../organization/dto/organization.dto");
@@ -170,6 +170,9 @@ exports.GetDraftReservationSlotsFiltersDto = GetDraftReservationSlotsFiltersDto;
170
170
  class ByDraftReservationIdDto extends organization_dto_1.ByOrganizationIdDto {
171
171
  }
172
172
  exports.ByDraftReservationIdDto = ByDraftReservationIdDto;
173
+ class ByRentalProductId extends organization_dto_1.ByOrganizationIdDto {
174
+ }
175
+ exports.ByRentalProductId = ByRentalProductId;
173
176
  class SimpleDraftSegmentDto {
174
177
  }
175
178
  exports.SimpleDraftSegmentDto = SimpleDraftSegmentDto;
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,uDAAwD;AAExD,+DAA+G;AAE/G,8EAA8E;AAO9E,kEAAwF;AAkDxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CAgCvB;AAED,MAAa,oBAAqB,SAAQ,kBAAkB;CAM3D;AAND,oDAMC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CAWvD;AAXD,wCAWC;AAED,MAAa,kCAAkC;CAc9C;AAdD,gFAcC;AAED,MAAM,oBAAqB,SAAQ,kCAAkC;CAEpE;AAED,MAAM,0BAA0B;CAM/B;AAED,MAAa,uBAAwB,SAAQ,0BAA0B;CAEtE;AAFD,0DAEC;AAED,MAAa,iBAAkB,SAAQ,uBAAuB;CAE7D;AAFD,8CAEC;AAED,MAAa,yBAA0B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MC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,sBAAuB,SAAQ,0BAA0B;CAErE;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,4BAA6B,SAAQ,uBAAuB;CAIxE;AAJD,oEAIC;AAED,MAAa,sBAAsB;CAkBlC;AAlBD,wDAkBC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,4BAA4B;CAkBxC;AAlBD,oEAkBC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC"}
1
+ {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,uDAAwD;AAExD,+DAA+G;AAE/G,8EAA8E;AAO9E,kEAAwF;AAmDxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CAgCvB;AAED,MAAa,oBAAqB,SAAQ,kBAAkB;CAM3D;AAND,oDAMC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CAWvD;AAXD,wCAWC;AAED,MAAa,kCAAkC;CAc9C;AAdD,gFAcC;AAED,MAAM,oBAAqB,SAAQ,kCAAkC;CAEpE;AAED,MAAM,0BAA0B;CAM/B;AAED,MAAa,uBAAwB,SAAQ,0BAA0B;CAEtE;AAFD,0DAEC;AAED,MAAa,iBAAkB,SAAQ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;AAFD,kCAEC;AAED,MAAa,gBAAiB,SAAQ,uBAAuB;CAE5D;AAFD,4CAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,sBAAuB,SAAQ,0BAA0B;CAErE;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,4BAA6B,SAAQ,uBAAuB;CAUxE;AAVD,oEAUC;AAED,MAAa,sBAAsB;CAkBlC;AAlBD,wDAkBC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,4BAA4B;CAkBxC;AAlBD,oEAkBC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC"}
@@ -1,5 +1,7 @@
1
1
  import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
2
2
  import { FacilityDto } from '../../dto/facilities.dto';
3
+ import { SimpleProductUserDto } from '../../dto/product-user';
4
+ import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
3
5
  import { ProductDto } from '../../product-pricing/dto/product.dto';
4
6
  import { Product } from '../../product-pricing/entities/Product';
5
7
  import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
@@ -9,10 +11,8 @@ import { Slot } from '../entities/slot.entity';
9
11
  import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
10
12
  import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
11
13
  import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ISlotProductPricesMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
12
- import { AddonDto, DraftAddonDto } from './addon.dto';
14
+ import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
13
15
  import { MaintenanceDto } from './maintenance.dto';
14
- import { SimpleProductUserDto } from '../../dto/product-user';
15
- import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
16
16
  export declare class SlotProductMetadataDto implements ISlotProductMetadata {
17
17
  productId: number;
18
18
  price: number;
@@ -26,23 +26,30 @@ export declare class SlotProductPricesMetadataDto implements ISlotProductPricesM
26
26
  quantity: number;
27
27
  totalPrice: number;
28
28
  }
29
- export declare class DateTimeAndResourcesDto {
29
+ export declare class BaseSlotFieldsDto {
30
+ organizationId?: number;
30
31
  startDate: string;
31
32
  startTime?: string;
32
33
  endDate?: string;
33
34
  endTime?: string;
34
35
  spaceId: number;
35
36
  instructorsIds?: number[];
37
+ title?: string;
38
+ publicNotes?: string;
39
+ privateNotes?: string;
40
+ sportIds?: SportsEnum[];
41
+ sportId?: SportsEnum;
42
+ privacySetting?: PrivacySettingsEnum;
43
+ colorCodeId?: number;
44
+ participantsNumber?: number;
45
+ maintenance?: MaintenanceDto[];
36
46
  }
37
- export declare class BaseSlotDto extends DateTimeAndResourcesDto implements IBaseSlot {
38
- organizationId?: number;
47
+ export declare class BaseSlotDto extends BaseSlotFieldsDto implements IBaseSlot {
39
48
  title: string;
40
49
  creatorId?: number;
41
50
  creatorType?: ResourceNameTypeEnum;
42
51
  userCreatorId?: number;
43
52
  timezone?: string;
44
- publicNotes?: string;
45
- privateNotes?: string;
46
53
  slotType: SlotTypeEnum;
47
54
  sportIds: SportsEnum[];
48
55
  maintenanceDurationdurationType?: DurationUnitTypesEnum;
@@ -51,13 +58,9 @@ export declare class BaseSlotDto extends DateTimeAndResourcesDto implements IBas
51
58
  displayName?: string;
52
59
  internalName?: string;
53
60
  totalPrice?: number;
54
- privacySetting?: PrivacySettingsEnum;
55
61
  slotDurationType: DurationTypeEnum;
56
- colorCodeId?: number;
57
- participantsNumber?: number;
58
62
  occurrence?: number;
59
63
  productMetadata?: SlotProductMetadataDto;
60
- maintenance?: MaintenanceDto[];
61
64
  }
62
65
  export declare class SlotDto extends BaseSlotDto {
63
66
  id?: number;
@@ -91,8 +94,37 @@ export declare class BaseDraftSlotDto extends BaseSlotDto {
91
94
  participantsIds?: number[];
92
95
  slotId?: number;
93
96
  }
94
- export declare class UpdateDraftSlotDto extends BaseDraftSlotDto {
97
+ export declare class UpdateDraftSlotDto {
98
+ id?: string;
99
+ title?: string;
100
+ privacySetting?: PrivacySettingsEnum;
101
+ colorCodeId?: number;
102
+ spaceId?: number;
103
+ sportIds?: SportsEnum[];
104
+ startDate?: string;
105
+ startTime?: string;
106
+ endDate?: string;
107
+ endTime?: string;
108
+ maintenance?: MaintenanceDto[];
109
+ privateNotes?: string;
110
+ publicNotes?: string;
111
+ productsIds?: number[];
112
+ instructorsIds?: number[];
113
+ participantsIds?: number[];
114
+ participantsNumber?: number;
115
+ addons?: CreateDraftAddonDto[];
116
+ }
117
+ export declare class DraftSlotsDto extends BaseSlotFieldsDto {
118
+ ids: string[];
119
+ facilitiesIds: number[];
120
+ segmentsIds: string[];
121
+ reservationId: string;
122
+ participantsIds?: number[];
95
123
  productsIds?: number[];
124
+ addons?: CreateDraftAddonDto[];
125
+ spacesIds?: number[];
126
+ combinedInstructorsIds?: number[];
127
+ sportsIds?: SportsEnum[];
96
128
  productId?: number;
97
129
  }
98
130
  export declare class DraftSlotDto extends BaseDraftSlotDto implements IDraftSlot {
@@ -143,13 +175,16 @@ export declare class DraftTimeSlotDto implements ITimeSlot {
143
175
  parentSlotId?: string;
144
176
  }
145
177
  export declare class ProblematicSlotDto {
178
+ id: string;
146
179
  startDate: string;
147
180
  endDate: string;
148
181
  startTime: string;
149
182
  endTime: string;
150
183
  spaceId: number;
184
+ title: string;
151
185
  spaceName?: string;
152
186
  instructorsIds?: number[];
187
+ slotId?: number;
153
188
  }
154
189
  export declare class CardSlotDto extends SlotDto {
155
190
  resource: SpaceResourceDto;