@bondsports/types 2.2.284-a-4 → 2.2.284-b-2

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 (108) hide show
  1. package/README.md +71 -71
  2. package/dist/tsconfig.build.tsbuildinfo +1 -1
  3. package/dist/types/dto/application.dto.d.ts +8 -0
  4. package/dist/types/dto/application.dto.js +4 -1
  5. package/dist/types/dto/application.dto.js.map +1 -1
  6. package/dist/types/dto/events.dto.d.ts +2 -1
  7. package/dist/types/dto/events.dto.js.map +1 -1
  8. package/dist/types/dto/general.dto.d.ts +0 -2
  9. package/dist/types/dto/general.dto.js +1 -4
  10. package/dist/types/dto/general.dto.js.map +1 -1
  11. package/dist/types/entity/Events.js.map +1 -1
  12. package/dist/types/folders/dto/folder.dto.d.ts +58 -0
  13. package/dist/types/folders/dto/folder.dto.js +34 -0
  14. package/dist/types/folders/dto/folder.dto.js.map +1 -0
  15. package/dist/types/folders/dto/index.d.ts +1 -0
  16. package/dist/types/folders/dto/index.js +18 -0
  17. package/dist/types/folders/dto/index.js.map +1 -0
  18. package/dist/types/folders/entities/folder-content.entity.d.ts +12 -0
  19. package/dist/types/folders/entities/folder-content.entity.js +14 -0
  20. package/dist/types/folders/entities/folder-content.entity.js.map +1 -0
  21. package/dist/types/folders/entities/folder-invite.entity.d.ts +8 -0
  22. package/dist/types/folders/entities/folder-invite.entity.js +8 -0
  23. package/dist/types/folders/entities/folder-invite.entity.js.map +1 -0
  24. package/dist/types/folders/entities/folder.entity.d.ts +21 -0
  25. package/dist/types/folders/entities/folder.entity.js +12 -0
  26. package/dist/types/folders/entities/folder.entity.js.map +1 -0
  27. package/dist/types/folders/entities/index.d.ts +3 -0
  28. package/dist/types/folders/entities/index.js +20 -0
  29. package/dist/types/folders/entities/index.js.map +1 -0
  30. package/dist/types/folders/index.d.ts +2 -0
  31. package/dist/types/folders/index.js +19 -0
  32. package/dist/types/folders/index.js.map +1 -0
  33. package/dist/types/index.d.ts +2 -0
  34. package/dist/types/index.js +2 -0
  35. package/dist/types/index.js.map +1 -1
  36. package/dist/types/programs/dto/program.dto.d.ts +2 -1
  37. package/dist/types/programs/dto/program.dto.js.map +1 -1
  38. package/dist/types/programs-seasons/dto/index.d.ts +1 -0
  39. package/dist/types/programs-seasons/dto/index.js +1 -0
  40. package/dist/types/programs-seasons/dto/index.js.map +1 -1
  41. package/dist/types/programs-seasons/dto/program-season-participant.dto.d.ts +8 -0
  42. package/dist/types/programs-seasons/dto/program-season-participant.dto.js +7 -0
  43. package/dist/types/programs-seasons/dto/program-season-participant.dto.js.map +1 -0
  44. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +20 -0
  45. package/dist/types/programs-seasons/dto/program-seasons.dto.js +10 -1
  46. package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
  47. package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +3 -1
  48. package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
  49. package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +8 -0
  50. package/dist/types/programs-seasons/types/enums/program-season.enums.js +11 -1
  51. package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -1
  52. package/dist/types/programs-seasons/types/interfaces/program-season.interfaces.d.ts +18 -1
  53. package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +4 -3
  54. package/dist/types/punch-pass/dto/punch-pass.dto.js +1 -1
  55. package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
  56. package/dist/types/reservations/dto/index.d.ts +0 -1
  57. package/dist/types/reservations/dto/index.js +0 -1
  58. package/dist/types/reservations/dto/index.js.map +1 -1
  59. package/dist/types/reservations/dto/reservation.dto.d.ts +55 -4
  60. package/dist/types/reservations/dto/reservation.dto.js +41 -2
  61. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  62. package/dist/types/reservations/dto/slot.dto.d.ts +1 -1
  63. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  64. package/dist/types/reservations/entities/slot.entity.d.ts +0 -1
  65. package/dist/types/reservations/entities/slot.entity.js.map +1 -1
  66. package/dist/types/reservations/types/consts/reservation.consts.d.ts +1 -2
  67. package/dist/types/reservations/types/consts/reservation.consts.js +1 -5
  68. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
  69. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +22 -14
  70. package/dist/types/resources/dto/resource.dto.d.ts +2 -8
  71. package/dist/types/resources/dto/resource.dto.js +3 -3
  72. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  73. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +7 -3
  74. package/dist/types/services/enums.service.d.ts +4 -0
  75. package/dist/types/services/enums.service.js +6 -1
  76. package/dist/types/services/enums.service.js.map +1 -1
  77. package/dist/types/services/interfaces.service.d.ts +6 -0
  78. package/dist/types/services/interfaces.service.js.map +1 -1
  79. package/dist/types/session-participants/dto/get.session.participant.dto.d.ts +22 -0
  80. package/dist/types/session-participants/dto/get.session.participant.dto.js +18 -0
  81. package/dist/types/session-participants/dto/get.session.participant.dto.js.map +1 -0
  82. package/dist/types/session-participants/dto/index.d.ts +2 -0
  83. package/dist/types/session-participants/dto/index.js +19 -0
  84. package/dist/types/session-participants/dto/index.js.map +1 -0
  85. package/dist/types/session-participants/dto/session.participant.dto.d.ts +45 -0
  86. package/dist/types/session-participants/dto/session.participant.dto.js +10 -0
  87. package/dist/types/session-participants/dto/session.participant.dto.js.map +1 -0
  88. package/dist/types/session-participants/index.d.ts +2 -0
  89. package/dist/types/session-participants/index.js +19 -0
  90. package/dist/types/session-participants/index.js.map +1 -0
  91. package/dist/types/session-participants/types/consts.d.ts +3 -0
  92. package/dist/types/session-participants/types/consts.js +7 -0
  93. package/dist/types/session-participants/types/consts.js.map +1 -0
  94. package/dist/types/session-participants/types/enums.d.ts +17 -0
  95. package/dist/types/session-participants/types/enums.js +24 -0
  96. package/dist/types/session-participants/types/enums.js.map +1 -0
  97. package/dist/types/session-participants/types/index.d.ts +3 -0
  98. package/dist/types/session-participants/types/index.js +20 -0
  99. package/dist/types/session-participants/types/index.js.map +1 -0
  100. package/dist/types/session-participants/types/interfaces.d.ts +46 -0
  101. package/dist/types/session-participants/types/interfaces.js +3 -0
  102. package/dist/types/session-participants/types/interfaces.js.map +1 -0
  103. package/dist/types/user/dto/userPass.dto.d.ts +7 -6
  104. package/dist/types/user/dto/userPass.dto.js.map +1 -1
  105. package/package.json +54 -54
  106. package/dist/types/reservations/dto/calendar-slot.dto.d.ts +0 -33
  107. package/dist/types/reservations/dto/calendar-slot.dto.js +0 -10
  108. package/dist/types/reservations/dto/calendar-slot.dto.js.map +0 -1
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SegmentOccurrenceTypeEnum = exports.SegmentTypeEnum = void 0;
3
+ exports.SegmentOccurrenceTypeEnum = exports.SegmentTypeEnum = exports.EventSortByFieldsEnum = exports.SegmentSortByFieldsEnum = void 0;
4
+ var SegmentSortByFieldsEnum;
5
+ (function (SegmentSortByFieldsEnum) {
6
+ SegmentSortByFieldsEnum["NAME"] = "name";
7
+ SegmentSortByFieldsEnum["DATE"] = "startDate";
8
+ })(SegmentSortByFieldsEnum = exports.SegmentSortByFieldsEnum || (exports.SegmentSortByFieldsEnum = {}));
9
+ var EventSortByFieldsEnum;
10
+ (function (EventSortByFieldsEnum) {
11
+ EventSortByFieldsEnum["DATE"] = "startDate";
12
+ EventSortByFieldsEnum["TIME"] = "startTime";
13
+ })(EventSortByFieldsEnum = exports.EventSortByFieldsEnum || (exports.EventSortByFieldsEnum = {}));
4
14
  var SegmentTypeEnum;
5
15
  (function (SegmentTypeEnum) {
6
16
  SegmentTypeEnum["SLOT"] = "slot";
@@ -1 +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
+ {"version":3,"file":"program-season.enums.js","sourceRoot":"","sources":["../../../../../src/types/programs-seasons/types/enums/program-season.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAClC,wCAAa,CAAA;IACb,6CAAkB,CAAA;AACnB,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,2CAAkB,CAAA;IAClB,2CAAkB,CAAA;AACnB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,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,6 +1,8 @@
1
1
  import { Event } from '../../../entity/Events';
2
2
  import { SeasonAttendee } from '../../../entity/SeasonAttendees';
3
- import { PlatformsEnum } from '../../../services/enums.service';
3
+ import { OrderByEnum, PlatformsEnum } from '../../../services/enums.service';
4
+ import { IPagination } from '../../../util/models/interfaces/general.interfaces';
5
+ import { BondBaseEntity } from '../../../entity/BondBaseEntity';
4
6
  export interface IGetProgramSeasonsByIdProps {
5
7
  seasonsIds: number[];
6
8
  fullFetch?: boolean;
@@ -18,6 +20,10 @@ export type EventsFilter = {
18
20
  segmentsIds?: number[];
19
21
  unselectedIds?: number[];
20
22
  sessionId?: number;
23
+ resourcesIds?: number[];
24
+ attendeeId?: number;
25
+ orderBy?: keyof Event;
26
+ order?: OrderByEnum;
21
27
  };
22
28
  export type ProgramSeasonsSegmentsFilter = {
23
29
  futureResources?: boolean;
@@ -33,3 +39,14 @@ export type NotifyEventsAttendees = {
33
39
  oldStartDate: string;
34
40
  oldEndDate: string;
35
41
  };
42
+ export interface IGetProgramSeasonChildrenFilters<T extends BondBaseEntity> {
43
+ resourcesIds?: number[];
44
+ attendeeId?: number;
45
+ startDate?: string;
46
+ endDate?: string;
47
+ orderBy?: keyof T;
48
+ order?: OrderByEnum;
49
+ }
50
+ export interface IGetProgramSeasonsChildrenOptions extends IPagination {
51
+ includeResources?: boolean;
52
+ }
@@ -1,15 +1,16 @@
1
1
  import { SimpleEventDto } from '../../dto/events.dto';
2
2
  import { SimpleFacilityDto } from '../../dto/facilities.dto';
3
- import { PaginationQuery, SimpleResourceDto } from '../../dto/general.dto';
4
- import { SimpleProductUserDto } from '../../dto/product-user';
3
+ import { PaginationQuery } from '../../dto/general.dto';
4
+ import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
5
5
  import { PaymentIdDto } from '../../payment/dto/payment.dto';
6
6
  import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
7
- import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
8
7
  import { SimpleSessionDto } from '../../programs-seasons/dto/program-seasons.dto';
9
8
  import { SimpleProgramDto } from '../../programs/dto/program.dto';
10
9
  import { OrderByEnum } from '../../services/enums.service';
10
+ import { SimpleResourceDto } from '../../resources/dto/resource.dto';
11
11
  import { ByOrganizationAndUserDto, SimpleUserDto } from '../../user/dto/user.dto';
12
12
  import { PunchPassFilterByEnum, PunchPassOrderByEnum, PunchPassSearchByEnum } from '../types/enums';
13
+ import { SimpleProductUserDto } from '../../dto/product-user';
13
14
  export declare class PunchPassFinancialInfoDto {
14
15
  price: number;
15
16
  invoiceId: number;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PunchPassUserProductInfoDto = exports.ByPassIdOrganizationIdUserIdDto = exports.GetPassEventsDto = exports.GetPassesOptionsDto = exports.PunchPassEventDto = exports.PunchPassInfoDto = exports.PunchPassFinancialInfoDto = void 0;
4
4
  const events_dto_1 = require("../../dto/events.dto");
5
5
  const general_dto_1 = require("../../dto/general.dto");
6
- const product_user_1 = require("../../dto/product-user");
7
6
  const user_dto_1 = require("../../user/dto/user.dto");
7
+ const product_user_1 = require("../../dto/product-user");
8
8
  class PunchPassFinancialInfoDto {
9
9
  }
10
10
  exports.PunchPassFinancialInfoDto = PunchPassFinancialInfoDto;
@@ -1 +1 @@
1
- {"version":3,"file":"punch-pass.dto.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/dto/punch-pass.dto.ts"],"names":[],"mappings":";;;AAAA,qDAAsD;AAEtD,uDAA2E;AAC3E,yDAA8D;AAO9D,sDAAkF;AAGlF,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAED,MAAa,gBAAgB;CA0B5B;AA1BD,4CA0BC;AAED,MAAa,iBAAkB,SAAQ,2BAAc;CAQpD;AARD,8CAQC;AAED,MAAa,mBAAoB,SAAQ,6BAAe;CAcvD;AAdD,kDAcC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AAED,MAAa,+BAAgC,SAAQ,mCAAwB;CAE5E;AAFD,0EAEC;AAED,MAAa,2BAA4B,SAAQ,mCAAoB;CAcpE;AAdD,kEAcC"}
1
+ {"version":3,"file":"punch-pass.dto.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/dto/punch-pass.dto.ts"],"names":[],"mappings":";;;AAAA,qDAAsD;AAEtD,uDAAwD;AAQxD,sDAAkF;AAElF,yDAA8D;AAE9D,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAED,MAAa,gBAAgB;CA0B5B;AA1BD,4CA0BC;AAED,MAAa,iBAAkB,SAAQ,2BAAc;CAQpD;AARD,8CAQC;AAED,MAAa,mBAAoB,SAAQ,6BAAe;CAcvD;AAdD,kDAcC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AAED,MAAa,+BAAgC,SAAQ,mCAAwB;CAE5E;AAFD,0EAEC;AAED,MAAa,2BAA4B,SAAQ,mCAAoB;CAcpE;AAdD,kEAcC"}
@@ -1,5 +1,4 @@
1
1
  export * from './addon.dto';
2
- export * from './calendar-slot.dto';
3
2
  export * from './maintenance.dto';
4
3
  export * from './purcased-resource.dto';
5
4
  export * from './reservation.dto';
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./addon.dto"), exports);
18
- __exportStar(require("./calendar-slot.dto"), exports);
19
18
  __exportStar(require("./maintenance.dto"), exports);
20
19
  __exportStar(require("./purcased-resource.dto"), exports);
21
20
  __exportStar(require("./reservation.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,sDAAoC;AACpC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,uDAAqC"}
@@ -1,9 +1,9 @@
1
1
  import { UpdateCartPricesDto } from '../../cart/dto/cart.dto';
2
2
  import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
3
3
  import { FacilityDto } from '../../dto/facilities.dto';
4
- import { PaginationQuery, SimpleResourceDto } from '../../dto/general.dto';
4
+ import { PaginationQuery } from '../../dto/general.dto';
5
5
  import { Invoice } from '../../entity/Invoice';
6
- import { InvoiceCartDto, SimpleInvoiceDto, UpdateInvoiceDto } from '../../invoice/dto/invoice.dto';
6
+ import { InvoiceCartDto, InvoiceDto, SimpleInvoiceDto, UpdateInvoiceDto } from '../../invoice/dto/invoice.dto';
7
7
  import { OverrideProductsPricingDto } from '../../invoice/types/interfaces/invoice.interfaces';
8
8
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
9
9
  import { PaymentMethodToFundLeftDto } from '../../payment/dto/payment-method.dto';
@@ -14,14 +14,16 @@ import { ProductDto, SimpleProductDto } from '../../product-pricing/dto/product.
14
14
  import { Product } from '../../product-pricing/entities/Product';
15
15
  import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purchase.dto';
16
16
  import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
17
+ import { SimpleResourceDto } from '../../resources/dto/resource.dto';
17
18
  import { SpaceResourceDto } from '../../resources/dto/space.dto';
18
19
  import { AddonParentTypeEnum, FinancialStepEnum, NotifyMethodEnum, OrderByEnum, PlatformsEnum, ProductPackageLevelEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
19
20
  import { Reservation } from '../entities/reservation.entity';
20
21
  import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
21
22
  import { ISegmentsAddons } from '../types/interfaces/addon.interfaces';
22
- import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails, IDuplicateReservationItems, IEditFinancialDetails, IEditItemsRefundMetadata, 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';
23
24
  import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
24
25
  import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
26
+ import { SeriesDto } from './series.dto';
25
27
  import { DraftSlotsDto, SlotDto, TimeSlotConflictsDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
26
28
  export declare class ProductPricesDto implements IProductPrice {
27
29
  productId: number;
@@ -112,12 +114,21 @@ export declare class DraftReservationDto extends SimpleDraftReservationDto imple
112
114
  duplicateDetails?: DuplicatedDetailsDto;
113
115
  combinedSlots?: DraftSlotsDto[];
114
116
  }
117
+ export declare class ReservationInvoiceDto {
118
+ reservation: ReservationDto;
119
+ invoice: InvoiceDto;
120
+ debug: any;
121
+ }
115
122
  export declare class CreateReservationCartDto implements ISaveReservationOptions {
116
123
  platform?: PlatformsEnum;
117
124
  shiftId?: number;
118
125
  updatePrices?: UpdateCartPricesDto;
119
126
  addToReservationId?: number;
120
127
  }
128
+ export declare class SaveReservationDto extends CreateReservationCartDto implements ISaveReservationOptions {
129
+ reservation: ReservationDto;
130
+ slotType?: SlotTypeEnum;
131
+ }
121
132
  export declare class SingleReservationIncludesDto {
122
133
  includeCustomer?: boolean;
123
134
  includeAddons?: boolean;
@@ -140,6 +151,10 @@ declare class UpdatePriceDto {
140
151
  export declare class UpdateReservationPriceDto extends UpdatePriceDto {
141
152
  reservation: ReservationDto;
142
153
  }
154
+ export declare class UpdateSlotsPricesDto extends UpdatePriceDto {
155
+ slots: SlotDto[];
156
+ useCurrentProducts?: boolean;
157
+ }
143
158
  export declare class BookingData {
144
159
  platform: PlatformsEnum;
145
160
  shiftId?: number;
@@ -194,6 +209,12 @@ export declare class FindByReservationDto extends ByOrganizationIdDto {
194
209
  export declare class DuplicateSlotDto extends FindByReservationDto {
195
210
  slotId: number;
196
211
  }
212
+ export declare class FindByFacilityDto extends FindByReservationDto {
213
+ facilityId: number;
214
+ }
215
+ export declare class FindBySegmentDto extends FindByFacilityDto {
216
+ segmentId: number;
217
+ }
197
218
  export declare class FindBySlotIdsDto {
198
219
  slotsIds: number[];
199
220
  }
@@ -203,11 +224,21 @@ export declare class UpdateReservationStatusDto extends FindByReservationDto {
203
224
  export declare class FindBySlotDto extends FindByReservationDto {
204
225
  slotId: number;
205
226
  }
227
+ export declare class AddSlotToSegmentDto {
228
+ slot: SlotDto;
229
+ addonIds?: number[];
230
+ }
231
+ export declare class UpdateSlotsDto {
232
+ slots: SlotDto[];
233
+ }
206
234
  export declare class EditItemsRefundMetaDto {
207
235
  lineItems: RefundAmountDto[];
208
236
  paymentMethods: PaymentMethodDto[];
209
237
  reasonId: number;
210
238
  }
239
+ export declare class EditSlotsDto extends UpdateSlotsDto {
240
+ refundMeta?: EditItemsRefundMetaDto;
241
+ }
211
242
  export declare class EditReservationDetailsDto {
212
243
  name: string;
213
244
  publicNotes?: string;
@@ -219,9 +250,17 @@ export declare class RemoveSlotsFinancialDataDto implements IRemoveSlotsFinancia
219
250
  nextFinancialStep: FinancialStepEnum;
220
251
  invoice: Invoice;
221
252
  }
253
+ export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
254
+ updateAddons?: boolean;
255
+ updateMaintenance?: boolean;
256
+ }
222
257
  export declare class ReservationNotifyDto {
223
258
  notifyMethods?: NotifyMethodEnum[];
224
259
  }
260
+ export declare class UpdateReservationInvoiceDto {
261
+ updateAddons?: boolean;
262
+ updateMaintenance?: boolean;
263
+ }
225
264
  export declare class UpdateReservationSlotsColorsDto {
226
265
  slots?: UpdateSlotsColorsDto[];
227
266
  colorCodeId?: number;
@@ -233,10 +272,22 @@ export declare class ChargeReservationResultDto extends PurchaseResultDto {
233
272
  reservation: Reservation;
234
273
  debug?: any;
235
274
  }
275
+ export declare class AddSlotToSegmenResultDto {
276
+ series: SeriesDto;
277
+ slotTotalPrice: number;
278
+ addonsTotalPrice: number;
279
+ debug?: any;
280
+ }
281
+ export declare class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
282
+ reservationTotalPrice: number;
283
+ }
236
284
  export declare class InvoiceReservationItemsDto extends InvoiceCartDto {
237
285
  slotsIds?: number[];
238
286
  addonsIds?: number[];
239
287
  }
288
+ export declare class AddSlotsDto extends UpdateInvoiceDto {
289
+ slots: SlotDto[];
290
+ }
240
291
  export declare class AddSegmentsDto extends UpdateInvoiceDto {
241
292
  segments: SegmentDto[];
242
293
  }
@@ -359,7 +410,7 @@ export declare class EditItemsRefundMetadataDto implements IEditItemsRefundMetad
359
410
  lineItems: ReservationItemLineDto[];
360
411
  refundAmount: number;
361
412
  }
362
- export declare class EditSlotsFinancialDetailsDto implements IEditFinancialDetails {
413
+ export declare class EditSlotsFinancialDetailsDto implements IEditSlotsFinancialDetails {
363
414
  nextFinancialStep: FinancialStepEnum;
364
415
  paymentMethods?: PaymentMethodToFundLeftDto[];
365
416
  originalInvoicePrice?: number;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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 = exports.ByDraftReservationIdDto = exports.GetDraftReservationSlotsFiltersDto = exports.AddSegmentsDto = exports.InvoiceReservationItemsDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.ReservationNotifyDto = exports.RemoveSlotsFinancialDataDto = exports.EditReservationDetailsDto = exports.EditItemsRefundMetaDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySlotIdsDto = exports.DuplicateSlotDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.IncludeConflictsOptionsDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.CreateReservationCartDto = 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 = void 0;
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 = 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");
@@ -45,9 +45,15 @@ exports.SimpleDraftReservationDto = SimpleDraftReservationDto;
45
45
  class DraftReservationDto extends SimpleDraftReservationDto {
46
46
  }
47
47
  exports.DraftReservationDto = DraftReservationDto;
48
+ class ReservationInvoiceDto {
49
+ }
50
+ exports.ReservationInvoiceDto = ReservationInvoiceDto;
48
51
  class CreateReservationCartDto {
49
52
  }
50
53
  exports.CreateReservationCartDto = CreateReservationCartDto;
54
+ class SaveReservationDto extends CreateReservationCartDto {
55
+ }
56
+ exports.SaveReservationDto = SaveReservationDto;
51
57
  class SingleReservationIncludesDto {
52
58
  }
53
59
  exports.SingleReservationIncludesDto = SingleReservationIncludesDto;
@@ -59,6 +65,9 @@ class UpdatePriceDto {
59
65
  class UpdateReservationPriceDto extends UpdatePriceDto {
60
66
  }
61
67
  exports.UpdateReservationPriceDto = UpdateReservationPriceDto;
68
+ class UpdateSlotsPricesDto extends UpdatePriceDto {
69
+ }
70
+ exports.UpdateSlotsPricesDto = UpdateSlotsPricesDto;
62
71
  class BookingData {
63
72
  }
64
73
  exports.BookingData = BookingData;
@@ -89,6 +98,12 @@ exports.FindByReservationDto = FindByReservationDto;
89
98
  class DuplicateSlotDto extends FindByReservationDto {
90
99
  }
91
100
  exports.DuplicateSlotDto = DuplicateSlotDto;
101
+ class FindByFacilityDto extends FindByReservationDto {
102
+ }
103
+ exports.FindByFacilityDto = FindByFacilityDto;
104
+ class FindBySegmentDto extends FindByFacilityDto {
105
+ }
106
+ exports.FindBySegmentDto = FindBySegmentDto;
92
107
  class FindBySlotIdsDto {
93
108
  }
94
109
  exports.FindBySlotIdsDto = FindBySlotIdsDto;
@@ -98,18 +113,33 @@ exports.UpdateReservationStatusDto = UpdateReservationStatusDto;
98
113
  class FindBySlotDto extends FindByReservationDto {
99
114
  }
100
115
  exports.FindBySlotDto = FindBySlotDto;
116
+ class AddSlotToSegmentDto {
117
+ }
118
+ exports.AddSlotToSegmentDto = AddSlotToSegmentDto;
119
+ class UpdateSlotsDto {
120
+ }
121
+ exports.UpdateSlotsDto = UpdateSlotsDto;
101
122
  class EditItemsRefundMetaDto {
102
123
  }
103
124
  exports.EditItemsRefundMetaDto = EditItemsRefundMetaDto;
125
+ class EditSlotsDto extends UpdateSlotsDto {
126
+ }
127
+ exports.EditSlotsDto = EditSlotsDto;
104
128
  class EditReservationDetailsDto {
105
129
  }
106
130
  exports.EditReservationDetailsDto = EditReservationDetailsDto;
107
131
  class RemoveSlotsFinancialDataDto {
108
132
  }
109
133
  exports.RemoveSlotsFinancialDataDto = RemoveSlotsFinancialDataDto;
134
+ class ValidateEditSlotsDto extends UpdateSlotsDto {
135
+ }
136
+ exports.ValidateEditSlotsDto = ValidateEditSlotsDto;
110
137
  class ReservationNotifyDto {
111
138
  }
112
139
  exports.ReservationNotifyDto = ReservationNotifyDto;
140
+ class UpdateReservationInvoiceDto {
141
+ }
142
+ exports.UpdateReservationInvoiceDto = UpdateReservationInvoiceDto;
113
143
  class UpdateReservationSlotsColorsDto {
114
144
  }
115
145
  exports.UpdateReservationSlotsColorsDto = UpdateReservationSlotsColorsDto;
@@ -119,9 +149,18 @@ exports.UpdateCustomerSlotsColorsDto = UpdateCustomerSlotsColorsDto;
119
149
  class ChargeReservationResultDto extends purchase_dto_1.PurchaseResultDto {
120
150
  }
121
151
  exports.ChargeReservationResultDto = ChargeReservationResultDto;
152
+ class AddSlotToSegmenResultDto {
153
+ }
154
+ exports.AddSlotToSegmenResultDto = AddSlotToSegmenResultDto;
155
+ class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
156
+ }
157
+ exports.SaveSlotToSegmenResultDto = SaveSlotToSegmenResultDto;
122
158
  class InvoiceReservationItemsDto extends invoice_dto_1.InvoiceCartDto {
123
159
  }
124
160
  exports.InvoiceReservationItemsDto = InvoiceReservationItemsDto;
161
+ class AddSlotsDto extends invoice_dto_1.UpdateInvoiceDto {
162
+ }
163
+ exports.AddSlotsDto = AddSlotsDto;
125
164
  class AddSegmentsDto extends invoice_dto_1.UpdateInvoiceDto {
126
165
  }
127
166
  exports.AddSegmentsDto = AddSegmentsDto;
@@ -1 +1 @@
1
- {"version":3,"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AAED,MAAa,WAAY,SAAQ,oBAAoB;CAEpD;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
+ {"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,MA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;CAIrE;AAJD,8EAIC;AAED,MAAa,6BAA6B;CAoBzC;AApBD,sEAoBC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,WAAY,SAAQ,oBAAoB;CAEpD;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"}
@@ -67,7 +67,6 @@ export declare class SlotDto extends BaseSlotDto {
67
67
  reservationId?: number;
68
68
  segmentId?: number;
69
69
  seriesId?: number;
70
- parentSlotId?: number;
71
70
  eventId?: number;
72
71
  maintenanceSlots?: SlotDto[];
73
72
  addons?: AddonDto[];
@@ -82,6 +81,7 @@ export declare class SlotDto extends BaseSlotDto {
82
81
  addonProducts?: Product[];
83
82
  isPrivate: boolean;
84
83
  addonsIds?: number[];
84
+ parentSlotId?: number;
85
85
  facilityId?: number;
86
86
  }
87
87
  export declare class BaseDraftSlotDto extends BaseSlotDto {
@@ -1 +1 @@
1
- {"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAgCA,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,iBAAiB;CAgC7B;AAhCD,8CAgCC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAgCjD;AAhCD,kCAgCC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAoCvC;AApCD,0BAoCC;AAGD,MAAa,gBAAiB,SAAQ,WAAW;CAgBhD;AAhBD,4CAgBC;AAED,MAAa,kBAAkB;CAoC9B;AApCD,gDAoCC;AAED,MAAa,aAAc,SAAQ,iBAAiB;CAsBnD;AAtBD,sCAsBC;AAED,MAAa,YAAa,SAAQ,gBAAgB;CAkBjD;AAlBD,oCAkBC;AAED,MAAa,WAAW;CAsBvB;AAtBD,kCAsBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAa,kBAAkB;CAoB9B;AApBD,gDAoBC;AAED,MAAa,WAAY,SAAQ,OAAO;CAcvC;AAdD,kCAcC"}
1
+ {"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAgCA,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,iBAAiB;CAgC7B;AAhCD,8CAgCC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAgCjD;AAhCD,kCAgCC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAkCvC;AAlCD,0BAkCC;AAED,MAAa,gBAAiB,SAAQ,WAAW;CAgBhD;AAhBD,4CAgBC;AAED,MAAa,kBAAkB;CAoC9B;AApCD,gDAoCC;AAED,MAAa,aAAc,SAAQ,iBAAiB;CAsBnD;AAtBD,sCAsBC;AAED,MAAa,YAAa,SAAQ,gBAAgB;CAkBjD;AAlBD,oCAkBC;AAED,MAAa,WAAW;CAsBvB;AAtBD,kCAsBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAa,kBAAkB;CAoB9B;AApBD,gDAoBC;AAED,MAAa,WAAY,SAAQ,OAAO;CAcvC;AAdD,kCAcC"}
@@ -29,7 +29,6 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
29
29
  spaceId?: number;
30
30
  resource?: Resource;
31
31
  slotToResources?: SlotToResource[];
32
- instructorsIds?: number[];
33
32
  resources?: Resource[];
34
33
  parentSlotId?: number;
35
34
  parent?: Slot;
@@ -1 +1 @@
1
- {"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAeA,oGAAiG;AAuBjG,MAAa,IAAK,SAAQ,mEAAgC;CAuIzD;AAvID,oBAuIC"}
1
+ {"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAeA,oGAAiG;AAuBjG,MAAa,IAAK,SAAQ,mEAAgC;CAoIzD;AApID,oBAoIC"}
@@ -1,5 +1,5 @@
1
1
  import { EventStatusEnum, InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
2
- import { ReservationStatusEnum, SlotTypeEnum } from '../enums/reservation.enums';
2
+ import { SlotTypeEnum } from '../enums/reservation.enums';
3
3
  export declare const DRAFT_RESERVATION_REDIS_TOKEN = "DRAFT_RESERVATION_REDIS_CLIENT";
4
4
  export declare const RESERVATION_CHUNCK_SIZE = 500;
5
5
  export declare const KEY_TTL = 172800;
@@ -31,4 +31,3 @@ export declare const reservationStatusToEventStatus: {
31
31
  Rejected: EventStatusEnum;
32
32
  Canceled: EventStatusEnum;
33
33
  };
34
- export declare const REJECTED_OR_CANCELLED_STATUSES: ReservationStatusEnum[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REJECTED_OR_CANCELLED_STATUSES = exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.MANDATORY_DRAFT_SLOTS_FIELDS = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
3
+ exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.MANDATORY_DRAFT_SLOTS_FIELDS = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = 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';
@@ -41,8 +41,4 @@ exports.reservationStatusToEventStatus = {
41
41
  [reservation_enums_1.ReservationStatusEnum.REJECTED]: enums_service_1.EventStatusEnum.CANCELLED,
42
42
  [reservation_enums_1.ReservationStatusEnum.CANCELED]: enums_service_1.EventStatusEnum.CANCELLED,
43
43
  };
44
- exports.REJECTED_OR_CANCELLED_STATUSES = [
45
- reservation_enums_1.ReservationStatusEnum.REJECTED,
46
- reservation_enums_1.ReservationStatusEnum.CANCELED,
47
- ];
48
44
  //# 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,mEAAqG;AACrG,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAEjE,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAE3C,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,gBAAgB,GAAG,CAAC,CAAC;AAErB,QAAA,4BAA4B,GAAa;IACrD,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,aAAa;IACb,KAAK;CACL,CAAC;AAEW,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,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACpC,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,MAAM;IACjD,CAAC,uCAAmB,CAAC,WAAW,CAAC,EAAE,gCAAY,CAAC,WAAW;IAC3D,CAAC,uCAAmB,CAAC,OAAO,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACpD,CAAC,uCAAmB,CAAC,QAAQ,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACrD,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,QAAQ;CACnD,CAAC;AAEW,QAAA,8BAA8B,GAAG;IAC7C,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,+BAAe,CAAC,KAAK;IACtD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,IAAI;IACtD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,+BAAe,CAAC,KAAK;IAC7D,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,+BAAe,CAAC,KAAK;IAChE,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;IAC3D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;CAC3D,CAAC;AAEW,QAAA,8BAA8B,GAA4B;IACtE,yCAAqB,CAAC,QAAQ;IAC9B,yCAAqB,CAAC,QAAQ;CAC9B,CAAC"}
1
+ {"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAqG;AACrG,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAEjE,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAE3C,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,gBAAgB,GAAG,CAAC,CAAC;AAErB,QAAA,4BAA4B,GAAa;IACrD,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,aAAa;IACb,KAAK;CACL,CAAC;AAEW,QAAA,uBAAuB,GAAG;IAC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ICreateCartOptions, IUpdateCartPrices } from '../../../cart/types/inter
4
4
  import { PaginationQuery } from '../../../dto/general.dto';
5
5
  import { Customer } from '../../../entity/Customer';
6
6
  import { Invoice } from '../../../entity/Invoice';
7
+ import { InvoiceDto } from '../../../invoice/dto/invoice.dto';
7
8
  import { LineItemDto } from '../../../invoice/dto/lineItem.dto';
8
9
  import { PaymentDto } from '../../../payment/dto/payment.dto';
9
10
  import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
@@ -205,6 +206,17 @@ export interface IUpdateReservationResult {
205
206
  invoice?: Invoice;
206
207
  debug?: any;
207
208
  }
209
+ export interface IUpdateSlotPricesResult {
210
+ reservation: ReservationDto;
211
+ slots: SlotDto[];
212
+ invoice: InvoiceDto;
213
+ debug?: any;
214
+ }
215
+ export interface IUpdateSlotsAddonsResult {
216
+ slots: SlotDto[];
217
+ invoice: InvoiceDto;
218
+ debug?: any;
219
+ }
208
220
  export interface IValidateEditItemsResult {
209
221
  nextFinancialStep: FinancialStepEnum;
210
222
  paymentMethods?: IPaymentMethodToFundLeft[];
@@ -216,6 +228,13 @@ export interface IValidateEditItemsResult {
216
228
  refundMetadata?: IEditItemsRefundMetadata;
217
229
  editData?: IEditItemsData;
218
230
  }
231
+ export interface IValidateEditSlotsResult extends IValidateEditItemsResult {
232
+ slots: SlotDto[];
233
+ refundMetadata?: IEditSlotsRefundMetadata;
234
+ }
235
+ export interface IValidateEditReservationAddonsResult extends IValidateEditItemsResult {
236
+ refundMetadata?: IEditAddonsRefundMetadata;
237
+ }
219
238
  export interface IEditSlotsRefundMetadata {
220
239
  lineItems: ISlotsLineItem[];
221
240
  refundAmount: number;
@@ -323,12 +342,13 @@ export interface IGetDraftReservationOptions {
323
342
  includeConflicts?: boolean;
324
343
  reservation?: DraftReservation;
325
344
  }
326
- export interface IDuplicateDraftReservation extends IGetDraftReservationOptions, ISkipSaveOption {
345
+ export interface IDuplicateDraftReservation extends IGetDraftReservationOptions {
327
346
  slotsIds?: number[];
328
347
  excludeIds?: number[];
329
348
  reservationAddonsIds?: number[];
330
349
  isEdit?: boolean;
331
350
  combineSlots?: boolean;
351
+ skipSave?: boolean;
332
352
  }
333
353
  export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
334
354
  segmentsIds?: string[];
@@ -410,7 +430,7 @@ export interface IEditItems {
410
430
  newCartItems?: CartItem[];
411
431
  editLineItems?: TReservationItemLineItem[];
412
432
  }
413
- export interface IEditFinancialDetails {
433
+ export interface IEditSlotsFinancialDetails {
414
434
  nextFinancialStep: FinancialStepEnum;
415
435
  paymentMethods?: IPaymentMethodToFundLeft[];
416
436
  originalInvoicePrice?: number;
@@ -438,16 +458,4 @@ export interface IUpdateDraftSlotsValidationResult {
438
458
  slots: DraftSlot[];
439
459
  updates: UpdateDraftSlotDto[];
440
460
  }
441
- export interface ISkipSaveOption {
442
- skipSave?: boolean;
443
- }
444
- export interface IValidateEditAddonsOptions {
445
- draftReservation?: DraftReservation;
446
- reservation?: Reservation;
447
- includeEditInfo?: boolean;
448
- skipSave?: boolean;
449
- }
450
- export interface IUpdateReservationAddonsOptions extends ISkipSaveOption {
451
- reservation?: DraftReservation;
452
- }
453
461
  export {};
@@ -5,15 +5,14 @@ import { MediaDto } from '../../media/dto/media.dto';
5
5
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
6
6
  import { ResourceProductDto } from '../../product-pricing/dto/product.dto';
7
7
  import { IResource } from '../../product-pricing/types/interfaces/porduct-resource.interfaces';
8
- import { CalendarSlotDto } from '../../reservations/dto/calendar-slot.dto';
9
8
  import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
10
9
  import { Addon } from '../../reservations/entities/addon.entity';
11
10
  import { Slot } from '../../reservations/entities/slot.entity';
12
11
  import { ActivityEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../services/enums.service';
13
12
  import { InvalidResourceReasonsEnum, OrderByResourceEnum } from '../types/enums/resources.enums';
14
13
  import { IGetResourceByIdsOptions, IGetResourcesOptions } from '../types/interfaces/resource.interfaces';
15
- import { InstructorResourceDto } from './instructor.dto';
16
14
  import { SpaceResourceDto } from './space.dto';
15
+ import { InstructorResourceDto } from './instructor.dto';
17
16
  export declare class ResourceDto implements IResource {
18
17
  id?: number;
19
18
  type: ResourceNameTypeEnum;
@@ -26,12 +25,7 @@ export declare class InvalidResourceDto extends ResourceDto {
26
25
  reasonType: InvalidResourceReasonsEnum;
27
26
  reasons?: IdAndNameDto[];
28
27
  }
29
- export declare class CalendarResourceDto extends IdAndNameDto {
30
- resourceType: ResourceTypeEnum;
31
- sports: SportsEnum[];
32
- parentResourceId?: number;
33
- ordinal?: number;
34
- slots?: CalendarSlotDto[];
28
+ export declare class SimpleResourceDto extends IdAndNameDto {
35
29
  }
36
30
  export declare class BaseResourceDto extends IdDto {
37
31
  organizationId: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SimpleFacilityWithResourcesDto = exports.UpdateResourceDto = exports.ResourceScheduleDto = exports.ByResourceTypeDto = exports.UpdateResourceDetailsDto = exports.ByOrganizationIdAndResourceId = exports.ByOrganizationIdAndResourceTypeAndIdDto = exports.ByOrganizationFacilityIdDto = exports.ByOrganizationIdAndResourceTypeDto = exports.GetResourceByIdOptionsDto = exports.GetResourcesOfFacilityByTypeDto = exports.ResourceDependenciesDto = exports.BaseResourceDto = exports.CalendarResourceDto = exports.InvalidResourceDto = exports.ResourceDto = void 0;
3
+ exports.SimpleFacilityWithResourcesDto = exports.UpdateResourceDto = exports.ResourceScheduleDto = exports.ByResourceTypeDto = exports.UpdateResourceDetailsDto = exports.ByOrganizationIdAndResourceId = exports.ByOrganizationIdAndResourceTypeAndIdDto = exports.ByOrganizationFacilityIdDto = exports.ByOrganizationIdAndResourceTypeDto = exports.GetResourceByIdOptionsDto = exports.GetResourcesOfFacilityByTypeDto = exports.ResourceDependenciesDto = exports.BaseResourceDto = exports.SimpleResourceDto = exports.InvalidResourceDto = exports.ResourceDto = void 0;
4
4
  const facilities_dto_1 = require("../../dto/facilities.dto");
5
5
  const general_dto_1 = require("../../dto/general.dto");
6
6
  const organization_dto_1 = require("../../organization/dto/organization.dto");
@@ -10,9 +10,9 @@ exports.ResourceDto = ResourceDto;
10
10
  class InvalidResourceDto extends ResourceDto {
11
11
  }
12
12
  exports.InvalidResourceDto = InvalidResourceDto;
13
- class CalendarResourceDto extends general_dto_1.IdAndNameDto {
13
+ class SimpleResourceDto extends general_dto_1.IdAndNameDto {
14
14
  }
15
- exports.CalendarResourceDto = CalendarResourceDto;
15
+ exports.SimpleResourceDto = SimpleResourceDto;
16
16
  class BaseResourceDto extends general_dto_1.IdDto {
17
17
  }
18
18
  exports.BaseResourceDto = BaseResourceDto;
@@ -1 +1 @@
1
- {"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AACA,6DAA0E;AAC1E,uDAAsF;AAEtF,8EAA8E;AAqB9E,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,kBAAmB,SAAQ,WAAW;CAMlD;AAND,gDAMC;AAED,MAAa,mBAAoB,SAAQ,0BAAY;CAUpD;AAVD,kDAUC;AAED,MAAa,eAAgB,SAAQ,mBAAK;CAgDzC;AAhDD,0CAgDC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAQtE;AARD,8DAQC;AAED,MAAa,kCAAmC,SAAQ,sCAAmB;CAE1E;AAFD,gFAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAEnE;AAFD,kEAEC;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MA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