@bondsports/types 2.2.284 → 2.2.286-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 (150) hide show
  1. package/LICENSE.md +0 -0
  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 +1 -2
  7. package/dist/types/dto/events.dto.js.map +1 -1
  8. package/dist/types/dto/general.dto.d.ts +11 -0
  9. package/dist/types/dto/general.dto.js +10 -1
  10. package/dist/types/dto/general.dto.js.map +1 -1
  11. package/dist/types/dto/package.dto.d.ts +56 -2
  12. package/dist/types/dto/package.dto.js +7 -1
  13. package/dist/types/dto/package.dto.js.map +1 -1
  14. package/dist/types/entity/Events.js.map +1 -1
  15. package/dist/types/folders/dto/folder.dto.d.ts +104 -0
  16. package/dist/types/folders/dto/folder.dto.js +95 -0
  17. package/dist/types/folders/dto/folder.dto.js.map +1 -0
  18. package/dist/types/folders/dto/index.d.ts +1 -0
  19. package/dist/types/folders/dto/index.js +18 -0
  20. package/dist/types/folders/dto/index.js.map +1 -0
  21. package/dist/types/folders/entities/folder-content.entity.d.ts +12 -0
  22. package/dist/types/folders/entities/folder-content.entity.js +14 -0
  23. package/dist/types/folders/entities/folder-content.entity.js.map +1 -0
  24. package/dist/types/folders/entities/folder-invite.entity.d.ts +8 -0
  25. package/dist/types/folders/entities/folder-invite.entity.js +8 -0
  26. package/dist/types/folders/entities/folder-invite.entity.js.map +1 -0
  27. package/dist/types/folders/entities/folder.entity.d.ts +24 -0
  28. package/dist/types/folders/entities/folder.entity.js +12 -0
  29. package/dist/types/folders/entities/folder.entity.js.map +1 -0
  30. package/dist/types/folders/entities/index.d.ts +3 -0
  31. package/dist/types/folders/entities/index.js +20 -0
  32. package/dist/types/folders/entities/index.js.map +1 -0
  33. package/dist/types/folders/index.d.ts +2 -0
  34. package/dist/types/folders/index.js +19 -0
  35. package/dist/types/folders/index.js.map +1 -0
  36. package/dist/types/index.d.ts +2 -0
  37. package/dist/types/index.js +2 -0
  38. package/dist/types/index.js.map +1 -1
  39. package/dist/types/invoice/dto/invoice.dto.d.ts +4 -0
  40. package/dist/types/invoice/dto/invoice.dto.js +4 -1
  41. package/dist/types/invoice/dto/invoice.dto.js.map +1 -1
  42. package/dist/types/media/entities/Media.d.ts +2 -0
  43. package/dist/types/media/entities/Media.js.map +1 -1
  44. package/dist/types/organization/dto/index.d.ts +1 -0
  45. package/dist/types/organization/dto/index.js +1 -0
  46. package/dist/types/organization/dto/index.js.map +1 -1
  47. package/dist/types/organization/dto/organization-users.dto.d.ts +10 -0
  48. package/dist/types/organization/dto/organization-users.dto.js +7 -0
  49. package/dist/types/organization/dto/organization-users.dto.js.map +1 -0
  50. package/dist/types/pricing/dto/pricing.dto.d.ts +1 -1
  51. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +6 -3
  52. package/dist/types/product-pricing/dto/product-pricing.dto.js +3 -3
  53. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  54. package/dist/types/product-pricing/dto/product.dto.d.ts +3 -52
  55. package/dist/types/product-pricing/dto/product.dto.js +1 -7
  56. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  57. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +11 -0
  58. package/dist/types/programs/dto/program.dto.d.ts +1 -2
  59. package/dist/types/programs/dto/program.dto.js.map +1 -1
  60. package/dist/types/programs-seasons/dto/index.d.ts +1 -0
  61. package/dist/types/programs-seasons/dto/index.js +1 -0
  62. package/dist/types/programs-seasons/dto/index.js.map +1 -1
  63. package/dist/types/programs-seasons/dto/program-season-participant.dto.d.ts +8 -0
  64. package/dist/types/programs-seasons/dto/program-season-participant.dto.js +7 -0
  65. package/dist/types/programs-seasons/dto/program-season-participant.dto.js.map +1 -0
  66. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +45 -19
  67. package/dist/types/programs-seasons/dto/program-seasons.dto.js +20 -8
  68. package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
  69. package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +4 -3
  70. package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
  71. package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +8 -0
  72. package/dist/types/programs-seasons/types/enums/program-season.enums.js +11 -1
  73. package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -1
  74. package/dist/types/programs-seasons/types/interfaces/program-season.interfaces.d.ts +18 -1
  75. package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +3 -4
  76. package/dist/types/punch-pass/dto/punch-pass.dto.js +1 -1
  77. package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
  78. package/dist/types/reservations/dto/addon.dto.d.ts +6 -0
  79. package/dist/types/reservations/dto/addon.dto.js +4 -1
  80. package/dist/types/reservations/dto/addon.dto.js.map +1 -1
  81. package/dist/types/reservations/dto/calendar-slot.dto.d.ts +44 -0
  82. package/dist/types/reservations/dto/calendar-slot.dto.js +13 -0
  83. package/dist/types/reservations/dto/calendar-slot.dto.js.map +1 -0
  84. package/dist/types/reservations/dto/index.d.ts +1 -0
  85. package/dist/types/reservations/dto/index.js +1 -0
  86. package/dist/types/reservations/dto/index.js.map +1 -1
  87. package/dist/types/reservations/dto/reservation.dto.d.ts +64 -58
  88. package/dist/types/reservations/dto/reservation.dto.js +14 -41
  89. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  90. package/dist/types/reservations/dto/slot.dto.d.ts +31 -5
  91. package/dist/types/reservations/dto/slot.dto.js +5 -1
  92. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  93. package/dist/types/reservations/entities/reservation.entity.d.ts +3 -0
  94. package/dist/types/reservations/entities/reservation.entity.js.map +1 -1
  95. package/dist/types/reservations/entities/segment.entity.d.ts +2 -1
  96. package/dist/types/reservations/entities/segment.entity.js.map +1 -1
  97. package/dist/types/reservations/entities/slot.entity.d.ts +2 -0
  98. package/dist/types/reservations/entities/slot.entity.js.map +1 -1
  99. package/dist/types/reservations/types/consts/reservation.consts.d.ts +2 -1
  100. package/dist/types/reservations/types/consts/reservation.consts.js +5 -1
  101. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
  102. package/dist/types/reservations/types/enums/reservation.enums.d.ts +26 -0
  103. package/dist/types/reservations/types/enums/reservation.enums.js +36 -4
  104. package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
  105. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +36 -25
  106. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  107. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +1 -1
  108. package/dist/types/resources/dto/instructor.dto.d.ts +1 -0
  109. package/dist/types/resources/dto/instructor.dto.js.map +1 -1
  110. package/dist/types/resources/dto/resource.dto.d.ts +11 -2
  111. package/dist/types/resources/dto/resource.dto.js +6 -3
  112. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  113. package/dist/types/resources/entities/Resource.d.ts +2 -0
  114. package/dist/types/resources/entities/Resource.js.map +1 -1
  115. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +13 -5
  116. package/dist/types/roles/dto/role.dto.d.ts +15 -0
  117. package/dist/types/roles/dto/role.dto.js +7 -1
  118. package/dist/types/roles/dto/role.dto.js.map +1 -1
  119. package/dist/types/services/enums.service.d.ts +4 -0
  120. package/dist/types/services/enums.service.js +6 -1
  121. package/dist/types/services/enums.service.js.map +1 -1
  122. package/dist/types/services/interfaces.service.d.ts +6 -0
  123. package/dist/types/services/interfaces.service.js.map +1 -1
  124. package/dist/types/session-participants/dto/get.session.participant.dto.d.ts +22 -0
  125. package/dist/types/session-participants/dto/get.session.participant.dto.js +18 -0
  126. package/dist/types/session-participants/dto/get.session.participant.dto.js.map +1 -0
  127. package/dist/types/session-participants/dto/index.d.ts +2 -0
  128. package/dist/types/session-participants/dto/index.js +19 -0
  129. package/dist/types/session-participants/dto/index.js.map +1 -0
  130. package/dist/types/session-participants/dto/session.participant.dto.d.ts +45 -0
  131. package/dist/types/session-participants/dto/session.participant.dto.js +10 -0
  132. package/dist/types/session-participants/dto/session.participant.dto.js.map +1 -0
  133. package/dist/types/session-participants/index.d.ts +2 -0
  134. package/dist/types/session-participants/index.js +19 -0
  135. package/dist/types/session-participants/index.js.map +1 -0
  136. package/dist/types/session-participants/types/consts.d.ts +3 -0
  137. package/dist/types/session-participants/types/consts.js +7 -0
  138. package/dist/types/session-participants/types/consts.js.map +1 -0
  139. package/dist/types/session-participants/types/enums.d.ts +17 -0
  140. package/dist/types/session-participants/types/enums.js +24 -0
  141. package/dist/types/session-participants/types/enums.js.map +1 -0
  142. package/dist/types/session-participants/types/index.d.ts +3 -0
  143. package/dist/types/session-participants/types/index.js +20 -0
  144. package/dist/types/session-participants/types/index.js.map +1 -0
  145. package/dist/types/session-participants/types/interfaces.d.ts +46 -0
  146. package/dist/types/session-participants/types/interfaces.js +3 -0
  147. package/dist/types/session-participants/types/interfaces.js.map +1 -0
  148. package/dist/types/user/dto/userPass.dto.d.ts +6 -7
  149. package/dist/types/user/dto/userPass.dto.js.map +1 -1
  150. package/package.json +5 -5
@@ -1,7 +1,8 @@
1
1
  import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
2
2
  import { FacilityDto } from '../../dto/facilities.dto';
3
3
  import { SimpleProductUserDto } from '../../dto/product-user';
4
- import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
4
+ import { SimpleInvoiceDto, SimpleInvoiceSlotDto } from '../../invoice/dto/invoice.dto';
5
+ import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
5
6
  import { ProductDto } from '../../product-pricing/dto/product.dto';
6
7
  import { Product } from '../../product-pricing/entities/Product';
7
8
  import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
@@ -11,8 +12,9 @@ import { Slot } from '../entities/slot.entity';
11
12
  import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
12
13
  import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
13
14
  import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ISlotProductPricesMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
14
- import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
15
+ import { AddonDto, CreateDraftAddonDto, DraftAddonDto, SimpleAddonDto } from './addon.dto';
15
16
  import { MaintenanceDto } from './maintenance.dto';
17
+ import { SimpleResourceDto } from '../../dto/general.dto';
16
18
  export declare class SlotProductMetadataDto implements ISlotProductMetadata {
17
19
  productId: number;
18
20
  price: number;
@@ -32,7 +34,7 @@ export declare class BaseSlotFieldsDto {
32
34
  startTime?: string;
33
35
  endDate?: string;
34
36
  endTime?: string;
35
- spaceId: number;
37
+ spaceId?: number;
36
38
  instructorsIds?: number[];
37
39
  title?: string;
38
40
  publicNotes?: string;
@@ -67,10 +69,11 @@ export declare class SlotDto extends BaseSlotDto {
67
69
  reservationId?: number;
68
70
  segmentId?: number;
69
71
  seriesId?: number;
72
+ parentSlotId?: number;
70
73
  eventId?: number;
71
74
  maintenanceSlots?: SlotDto[];
72
75
  addons?: AddonDto[];
73
- invoicId?: number;
76
+ invoiceId?: number;
74
77
  paymentStatus: ReservationPaymentStatusEnum;
75
78
  approvalStatus: ReservationStatusEnum;
76
79
  product?: Product;
@@ -81,9 +84,31 @@ export declare class SlotDto extends BaseSlotDto {
81
84
  addonProducts?: Product[];
82
85
  isPrivate: boolean;
83
86
  addonsIds?: number[];
84
- parentSlotId?: number;
85
87
  facilityId?: number;
86
88
  }
89
+ export declare class SlotRowDto extends OrganizationBaseEntityDto {
90
+ id: number;
91
+ title: string;
92
+ startDate: string;
93
+ endDate: string;
94
+ startTime: string;
95
+ endTime: string;
96
+ slotPrice: number;
97
+ addonsPrice: number;
98
+ totalPrice: number;
99
+ paymentStatus: ReservationPaymentStatusEnum;
100
+ approvalStatus: ReservationStatusEnum;
101
+ slotType: SlotTypeEnum;
102
+ isPrivate: boolean;
103
+ sportIds: SportsEnum[];
104
+ publicNotes: string;
105
+ privateNotes: string;
106
+ space: SimpleResourceDto;
107
+ maintenance: MaintenanceDto[];
108
+ addons: SimpleAddonDto[];
109
+ instructors: SimpleResourceDto[];
110
+ invoice: SimpleInvoiceSlotDto;
111
+ }
87
112
  export declare class BaseDraftSlotDto extends BaseSlotDto {
88
113
  id: string;
89
114
  facilityId: number;
@@ -188,6 +213,7 @@ export declare class ProblematicSlotDto {
188
213
  }
189
214
  export declare class CardSlotDto extends SlotDto {
190
215
  resource: SpaceResourceDto;
216
+ resources?: InstructorResourceDto[];
191
217
  productUser?: SimpleProductUserDto;
192
218
  invoice?: SimpleInvoiceDto;
193
219
  customer?: SimpleCustomerDto;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CardSlotDto = exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.DraftSlotsDto = exports.UpdateDraftSlotDto = exports.BaseDraftSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.BaseSlotFieldsDto = exports.SlotProductPricesMetadataDto = exports.SlotProductMetadataDto = void 0;
3
+ exports.CardSlotDto = exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.DraftSlotsDto = exports.UpdateDraftSlotDto = exports.BaseDraftSlotDto = exports.SlotRowDto = exports.SlotDto = exports.BaseSlotDto = exports.BaseSlotFieldsDto = exports.SlotProductPricesMetadataDto = exports.SlotProductMetadataDto = void 0;
4
+ const organization_dto_1 = require("../../organization/dto/organization.dto");
4
5
  class SlotProductMetadataDto {
5
6
  }
6
7
  exports.SlotProductMetadataDto = SlotProductMetadataDto;
@@ -16,6 +17,9 @@ exports.BaseSlotDto = BaseSlotDto;
16
17
  class SlotDto extends BaseSlotDto {
17
18
  }
18
19
  exports.SlotDto = SlotDto;
20
+ class SlotRowDto extends organization_dto_1.OrganizationBaseEntityDto {
21
+ }
22
+ exports.SlotRowDto = SlotRowDto;
19
23
  class BaseDraftSlotDto extends BaseSlotDto {
20
24
  }
21
25
  exports.BaseDraftSlotDto = BaseDraftSlotDto;
@@ -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;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"}
1
+ {"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAIA,8EAAoF;AA8BpF,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;AAED,MAAa,UAAW,SAAQ,4CAAyB;CA0CxD;AA1CD,gCA0CC;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;CAgBvC;AAhBD,kCAgBC"}
@@ -6,6 +6,7 @@ import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnu
6
6
  import { Addon } from './addon.entity';
7
7
  import { Segment } from './segment.entity';
8
8
  import { Slot } from './slot.entity';
9
+ import { Resource } from '../../resources/entities/Resource';
9
10
  export declare class Reservation extends OrganizationConnectionBaseEntity {
10
11
  deletedAt?: Date;
11
12
  name?: string;
@@ -30,6 +31,8 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
30
31
  slots?: Slot[];
31
32
  overrideProductsPrice: OverrideProductsPricing;
32
33
  targetGlobalPrice?: number;
34
+ spaces?: Resource[];
35
+ instructors?: Resource[];
33
36
  invoiceId?: string;
34
37
  startTime?: string;
35
38
  startDate?: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/reservation.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAejG,MAAa,WAAY,SAAQ,mEAAgC;CAiEhE;AAjED,kCAiEC"}
1
+ {"version":3,"file":"reservation.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/reservation.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAiBjG,MAAa,WAAY,SAAQ,mEAAgC;CAqEhE;AArED,kCAqEC"}
@@ -8,9 +8,10 @@ export declare class Segment extends OrganizationConnectionBaseEntity {
8
8
  reservation?: Reservation;
9
9
  title: string;
10
10
  sportId: number;
11
+ resourceIds?: number[];
12
+ instructorsIds?: number[];
11
13
  series?: Series[];
12
14
  slots?: Slot[];
13
- resourceIds?: number[];
14
15
  addonIds?: number[];
15
16
  isPrivate: boolean;
16
17
  publicNotesForSlots?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"segment.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/segment.entity.ts"],"names":[],"mappings":";;;AACA,oGAAiG;AAKjG,MAAa,OAAQ,SAAQ,mEAAgC;CAqB5D;AArBD,0BAqBC"}
1
+ {"version":3,"file":"segment.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/segment.entity.ts"],"names":[],"mappings":";;;AACA,oGAAiG;AAKjG,MAAa,OAAQ,SAAQ,mEAAgC;CAwB5D;AAxBD,0BAwBC"}
@@ -28,7 +28,9 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
28
28
  event: Event;
29
29
  spaceId?: number;
30
30
  resource?: Resource;
31
+ space?: Resource;
31
32
  slotToResources?: SlotToResource[];
33
+ instructorsIds?: number[];
32
34
  resources?: Resource[];
33
35
  parentSlotId?: number;
34
36
  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;CAoIzD;AApID,oBAoIC"}
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;CAyIzD;AAzID,oBAyIC"}
@@ -1,5 +1,5 @@
1
1
  import { EventStatusEnum, InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
2
- import { SlotTypeEnum } from '../enums/reservation.enums';
2
+ import { ReservationStatusEnum, 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,3 +31,4 @@ 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.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.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;
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,4 +41,8 @@ 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
+ ];
44
48
  //# 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;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,+BAAe,CAAC,SAAS;IAC3D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;CAC3D,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;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"}
@@ -27,6 +27,7 @@ export declare enum ReservationExtendedEnum {
27
27
  PURCHASE_ORDER = "purchase_order"
28
28
  }
29
29
  export type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
30
+ export declare const PaymentStatusOptions: PaymentStatusEnum[];
30
31
  export declare const ReservationPaymentStatusOptions: (PaymentStatusEnum | ReservationExtendedEnum.PURCHASE_ORDER)[];
31
32
  export declare enum ReservationStatusEnum {
32
33
  PLANNED = "Planned",
@@ -65,3 +66,28 @@ export declare enum MaintenanceTimingEnum {
65
66
  AT_THE_BEGINING = 3,
66
67
  AT_THE_END = 4
67
68
  }
69
+ export declare enum SlotOrderBy {
70
+ START_DATE = "startDate",
71
+ EVENT_NAME = "eventName",
72
+ SPACE_NAME = "spaceName",
73
+ TOTAL_PRICE = "totalPrice"
74
+ }
75
+ export declare enum SortByReservationEnum {
76
+ ID = "id",
77
+ NAME = "name",
78
+ START_DATE = "startDate",
79
+ PRICE = "price",
80
+ CUSTOMER = "customer",
81
+ STATUS = "status"
82
+ }
83
+ export declare enum SlotFilterOptions {
84
+ SPACES = "spaces",
85
+ SEGMENTS = "segments",
86
+ INSTRUCTORS = "instructors",
87
+ FACILITIES = "facilities",
88
+ PRODUCTS = "products",
89
+ INVOICES = "invoices",
90
+ ACTIVITIES = "activities",
91
+ APPROVAL_STATUS = "approvalStatus",
92
+ PAYMENT_STATUS = "paymentStatus"
93
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MaintenanceTimingEnum = exports.FrequencyEnum = exports.DurationUnitTypesEnum = exports.SlotTypeEnum = exports.ReservationMigrationStatusEnum = exports.ReservationStatusEnum = exports.ReservationPaymentStatusOptions = exports.ReservationExtendedEnum = exports.DurationTypeEnum = exports.ReservationTypeEnum = exports.PrivacySettingsEnum = exports.ItemResourceEnum = void 0;
3
+ exports.SlotFilterOptions = exports.SortByReservationEnum = exports.SlotOrderBy = exports.MaintenanceTimingEnum = exports.FrequencyEnum = exports.DurationUnitTypesEnum = exports.SlotTypeEnum = exports.ReservationMigrationStatusEnum = exports.ReservationStatusEnum = exports.ReservationPaymentStatusOptions = exports.PaymentStatusOptions = exports.ReservationExtendedEnum = exports.DurationTypeEnum = exports.ReservationTypeEnum = exports.PrivacySettingsEnum = exports.ItemResourceEnum = void 0;
4
4
  const payment_enums_1 = require("../../../payment/types/enums/payment.enums");
5
5
  var ItemResourceEnum;
6
6
  (function (ItemResourceEnum) {
@@ -34,10 +34,14 @@ var ReservationExtendedEnum;
34
34
  (function (ReservationExtendedEnum) {
35
35
  ReservationExtendedEnum["PURCHASE_ORDER"] = "purchase_order";
36
36
  })(ReservationExtendedEnum = exports.ReservationExtendedEnum || (exports.ReservationExtendedEnum = {}));
37
- exports.ReservationPaymentStatusOptions = [
38
- ...Object.values(payment_enums_1.PaymentStatusEnum),
39
- ...Object.values(ReservationExtendedEnum),
37
+ exports.PaymentStatusOptions = [
38
+ payment_enums_1.PaymentStatusEnum.NOT_PAID,
39
+ payment_enums_1.PaymentStatusEnum.PARTIAL_PAYMENT,
40
+ payment_enums_1.PaymentStatusEnum.FULLY_PAID,
41
+ payment_enums_1.PaymentStatusEnum.REFUNDED,
42
+ payment_enums_1.PaymentStatusEnum.VOID,
40
43
  ];
44
+ exports.ReservationPaymentStatusOptions = [...exports.PaymentStatusOptions, ...Object.values(ReservationExtendedEnum)];
41
45
  var ReservationStatusEnum;
42
46
  (function (ReservationStatusEnum) {
43
47
  ReservationStatusEnum["PLANNED"] = "Planned";
@@ -81,4 +85,32 @@ var MaintenanceTimingEnum;
81
85
  MaintenanceTimingEnum[MaintenanceTimingEnum["AT_THE_BEGINING"] = 3] = "AT_THE_BEGINING";
82
86
  MaintenanceTimingEnum[MaintenanceTimingEnum["AT_THE_END"] = 4] = "AT_THE_END";
83
87
  })(MaintenanceTimingEnum = exports.MaintenanceTimingEnum || (exports.MaintenanceTimingEnum = {}));
88
+ var SlotOrderBy;
89
+ (function (SlotOrderBy) {
90
+ SlotOrderBy["START_DATE"] = "startDate";
91
+ SlotOrderBy["EVENT_NAME"] = "eventName";
92
+ SlotOrderBy["SPACE_NAME"] = "spaceName";
93
+ SlotOrderBy["TOTAL_PRICE"] = "totalPrice";
94
+ })(SlotOrderBy = exports.SlotOrderBy || (exports.SlotOrderBy = {}));
95
+ var SortByReservationEnum;
96
+ (function (SortByReservationEnum) {
97
+ SortByReservationEnum["ID"] = "id";
98
+ SortByReservationEnum["NAME"] = "name";
99
+ SortByReservationEnum["START_DATE"] = "startDate";
100
+ SortByReservationEnum["PRICE"] = "price";
101
+ SortByReservationEnum["CUSTOMER"] = "customer";
102
+ SortByReservationEnum["STATUS"] = "status";
103
+ })(SortByReservationEnum = exports.SortByReservationEnum || (exports.SortByReservationEnum = {}));
104
+ var SlotFilterOptions;
105
+ (function (SlotFilterOptions) {
106
+ SlotFilterOptions["SPACES"] = "spaces";
107
+ SlotFilterOptions["SEGMENTS"] = "segments";
108
+ SlotFilterOptions["INSTRUCTORS"] = "instructors";
109
+ SlotFilterOptions["FACILITIES"] = "facilities";
110
+ SlotFilterOptions["PRODUCTS"] = "products";
111
+ SlotFilterOptions["INVOICES"] = "invoices";
112
+ SlotFilterOptions["ACTIVITIES"] = "activities";
113
+ SlotFilterOptions["APPROVAL_STATUS"] = "approvalStatus";
114
+ SlotFilterOptions["PAYMENT_STATUS"] = "paymentStatus";
115
+ })(SlotFilterOptions = exports.SlotFilterOptions || (exports.SlotFilterOptions = {}));
84
116
  //# sourceMappingURL=reservation.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAAA,8EAA+E;AAE/E,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,+CAA2B,CAAA;AAC5B,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACtB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,uCAAmB,CAA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Aa,KAAb,qBAAa,QAMxB;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,qEAAU,CAAA;IACV,mEAAS,CAAA;IACT,uFAAmB,CAAA;IACnB,6EAAc,CAAA;AACf,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
1
+ {"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAAA,8EAA+E;AAE/E,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,+CAA2B,CAAA;AAC5B,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACtB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;AACtB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,4DAAiC,CAAA;AAClC,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC;AAIY,QAAA,oBAAoB,GAAG;IACnC,iCAAiB,CAAC,QAAQ;IAC1B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6EAAc,CAAA;AACf,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACtB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IACxB,yCAA0B,CAAA;AAC3B,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AAED,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAChC,kCAAS,CAAA;IACT,sCAAa,CAAA;IACb,iDAAwB,CAAA;IACxB,wCAAe,CAAA;IACf,8CAAqB,CAAA;IACrB,0CAAiB,CAAA;AAClB,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AAED,IAAY,iBAUX;AAVD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,8CAAyB,CAAA;IACzB,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,8CAAyB,CAAA;IACzB,uDAAkC,CAAA;IAClC,qDAAgC,CAAA;AACjC,CAAC,EAVW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAU5B"}
@@ -4,7 +4,6 @@ import { 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';
8
7
  import { LineItemDto } from '../../../invoice/dto/lineItem.dto';
9
8
  import { PaymentDto } from '../../../payment/dto/payment.dto';
10
9
  import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
@@ -15,7 +14,7 @@ import { AddonParentTypeEnum, FinancialStepEnum, InvoiceStatusEnum, OrderByEnum,
15
14
  import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
16
15
  import { IPagination } from '../../../util/models/interfaces/general.interfaces';
17
16
  import { AddonDto } from '../../dto/addon.dto';
18
- import { ReservationDto } from '../../dto/reservation.dto';
17
+ import { ReservationDto, SlotsFilterDto } from '../../dto/reservation.dto';
19
18
  import { SegmentDto } from '../../dto/segment.dto';
20
19
  import { SeriesDto } from '../../dto/series.dto';
21
20
  import { SlotDto, UpdateDraftSlotDto } from '../../dto/slot.dto';
@@ -29,7 +28,7 @@ import { DraftReservation } from '../classes/reservation.classes';
29
28
  import { DraftSegment } from '../classes/segment.classes';
30
29
  import { DraftSeries } from '../classes/series.classes';
31
30
  import { DraftSlot } from '../classes/slot.classes';
32
- import { PrivacySettingsEnum, ReservationMigrationStatusEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
31
+ import { SortByReservationEnum, PrivacySettingsEnum, ReservationMigrationStatusEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
33
32
  import { IDraftAddon, ISegmentsAddons } from './addon.interfaces';
34
33
  import { IDraftSegment } from './segment.interfaces';
35
34
  import { ITimeSlot } from './slot.interfaces';
@@ -124,6 +123,8 @@ export interface IFrequencyInReservation {
124
123
  repeatOn?: number[];
125
124
  repeatEndDate?: string;
126
125
  }
126
+ /**
127
+ */
127
128
  export interface IFindReservationsByOrganizationIdFilters extends PaginationQuery {
128
129
  resourcesIds?: string;
129
130
  datesRange?: {
@@ -134,6 +135,22 @@ export interface IFindReservationsByOrganizationIdFilters extends PaginationQuer
134
135
  paymentStatuses?: string[];
135
136
  customerName?: string;
136
137
  }
138
+ export interface IReservationTableOptions extends PaginationQuery {
139
+ spacesIds?: number[];
140
+ instructorsIds?: number[];
141
+ datesRange?: {
142
+ startDate: string;
143
+ endDate: string;
144
+ };
145
+ approvalStatus?: ReservationStatusEnum[];
146
+ paymentStatus?: ReservationPaymentStatusEnum[];
147
+ includeDeleted?: boolean;
148
+ reservationType?: ReservationTypeEnum[];
149
+ sports?: SportsEnum[];
150
+ search?: string;
151
+ sortBy?: SortByReservationEnum;
152
+ order?: OrderByEnum;
153
+ }
137
154
  export interface IFindReservationsByUserIdFilters extends PaginationQuery {
138
155
  organizationIds?: number[];
139
156
  datesRange?: {
@@ -206,17 +223,6 @@ export interface IUpdateReservationResult {
206
223
  invoice?: Invoice;
207
224
  debug?: any;
208
225
  }
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
- }
220
226
  export interface IValidateEditItemsResult {
221
227
  nextFinancialStep: FinancialStepEnum;
222
228
  paymentMethods?: IPaymentMethodToFundLeft[];
@@ -228,13 +234,6 @@ export interface IValidateEditItemsResult {
228
234
  refundMetadata?: IEditItemsRefundMetadata;
229
235
  editData?: IEditItemsData;
230
236
  }
231
- export interface IValidateEditSlotsResult extends IValidateEditItemsResult {
232
- slots: SlotDto[];
233
- refundMetadata?: IEditSlotsRefundMetadata;
234
- }
235
- export interface IValidateEditReservationAddonsResult extends IValidateEditItemsResult {
236
- refundMetadata?: IEditAddonsRefundMetadata;
237
- }
238
237
  export interface IEditSlotsRefundMetadata {
239
238
  lineItems: ISlotsLineItem[];
240
239
  refundAmount: number;
@@ -285,7 +284,7 @@ export interface ICartReservationOptions extends ICreateCartOptions {
285
284
  shiftId?: number;
286
285
  reservation?: DraftReservation;
287
286
  updatePrices?: IUpdateCartPrices;
288
- includeSpaces?: boolean;
287
+ includeResources?: boolean;
289
288
  }
290
289
  export interface IProductItems {
291
290
  [productInfo: string]: {
@@ -342,13 +341,13 @@ export interface IGetDraftReservationOptions {
342
341
  includeConflicts?: boolean;
343
342
  reservation?: DraftReservation;
344
343
  }
345
- export interface IDuplicateDraftReservation extends IGetDraftReservationOptions {
344
+ export interface IDuplicateDraftReservation extends IGetDraftReservationOptions, ISkipSaveOption {
346
345
  slotsIds?: number[];
347
346
  excludeIds?: number[];
348
347
  reservationAddonsIds?: number[];
349
348
  isEdit?: boolean;
350
349
  combineSlots?: boolean;
351
- skipSave?: boolean;
350
+ slotsFilter?: SlotsFilterDto;
352
351
  }
353
352
  export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
354
353
  segmentsIds?: string[];
@@ -430,7 +429,7 @@ export interface IEditItems {
430
429
  newCartItems?: CartItem[];
431
430
  editLineItems?: TReservationItemLineItem[];
432
431
  }
433
- export interface IEditSlotsFinancialDetails {
432
+ export interface IEditFinancialDetails {
434
433
  nextFinancialStep: FinancialStepEnum;
435
434
  paymentMethods?: IPaymentMethodToFundLeft[];
436
435
  originalInvoicePrice?: number;
@@ -458,4 +457,16 @@ export interface IUpdateDraftSlotsValidationResult {
458
457
  slots: DraftSlot[];
459
458
  updates: UpdateDraftSlotDto[];
460
459
  }
460
+ export interface ISkipSaveOption {
461
+ skipSave?: boolean;
462
+ }
463
+ export interface IValidateEditAddonsOptions {
464
+ draftReservation?: DraftReservation;
465
+ reservation?: Reservation;
466
+ includeEditInfo?: boolean;
467
+ skipSave?: boolean;
468
+ }
469
+ export interface IUpdateReservationAddonsOptions extends ISkipSaveOption {
470
+ reservation?: DraftReservation;
471
+ }
461
472
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAoGA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAqGA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
@@ -115,7 +115,7 @@ export declare class IBaseSlot {
115
115
  endDate?: string;
116
116
  endTime?: string;
117
117
  timezone?: string;
118
- spaceId: number;
118
+ spaceId?: number;
119
119
  instructorsIds?: number[];
120
120
  publicNotes?: string;
121
121
  privateNotes?: string;
@@ -6,6 +6,7 @@ export declare class InstructorResourceDto extends BaseResourceDto {
6
6
  userId: number;
7
7
  email?: string;
8
8
  phoneNumber?: string;
9
+ name: string;
9
10
  firstName: string;
10
11
  lastName: string;
11
12
  address?: AddressDto;
@@ -1 +1 @@
1
- {"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAEA,iDAA6F;AAG7F,MAAa,qBAAsB,SAAQ,8BAAe;CAgBzD;AAhBD,sDAgBC;AAED,MAAa,mBAAoB,SAAQ,sCAAuB;CAsB/D;AAtBD,kDAsBC;AAED,MAAa,mBAAoB,SAAQ,gCAAiB;CAIzD;AAJD,kDAIC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC"}
1
+ {"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAEA,iDAA6F;AAG7F,MAAa,qBAAsB,SAAQ,8BAAe;CAkBzD;AAlBD,sDAkBC;AAED,MAAa,mBAAoB,SAAQ,sCAAuB;CAsB/D;AAtBD,kDAsBC;AAED,MAAa,mBAAoB,SAAQ,gCAAiB;CAIzD;AAJD,kDAIC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC"}
@@ -5,14 +5,15 @@ 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';
8
9
  import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
9
10
  import { Addon } from '../../reservations/entities/addon.entity';
10
11
  import { Slot } from '../../reservations/entities/slot.entity';
11
12
  import { ActivityEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../services/enums.service';
12
13
  import { InvalidResourceReasonsEnum, OrderByResourceEnum } from '../types/enums/resources.enums';
13
14
  import { IGetResourceByIdsOptions, IGetResourcesOptions } from '../types/interfaces/resource.interfaces';
14
- import { SpaceResourceDto } from './space.dto';
15
15
  import { InstructorResourceDto } from './instructor.dto';
16
+ import { SpaceResourceDto } from './space.dto';
16
17
  export declare class ResourceDto implements IResource {
17
18
  id?: number;
18
19
  type: ResourceNameTypeEnum;
@@ -25,7 +26,15 @@ export declare class InvalidResourceDto extends ResourceDto {
25
26
  reasonType: InvalidResourceReasonsEnum;
26
27
  reasons?: IdAndNameDto[];
27
28
  }
28
- export declare class SimpleResourceDto extends IdAndNameDto {
29
+ export declare class ChildCalendarResourceDto extends IdAndNameDto {
30
+ resourceType: ResourceTypeEnum;
31
+ sports: SportsEnum[];
32
+ parentResourceId?: number;
33
+ ordinal?: number;
34
+ slots?: CalendarSlotDto[];
35
+ }
36
+ export declare class CalendarResourceDto extends ChildCalendarResourceDto {
37
+ children?: ChildCalendarResourceDto[];
29
38
  }
30
39
  export declare class BaseResourceDto extends IdDto {
31
40
  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.SimpleResourceDto = 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.CalendarResourceDto = exports.ChildCalendarResourceDto = 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,12 @@ exports.ResourceDto = ResourceDto;
10
10
  class InvalidResourceDto extends ResourceDto {
11
11
  }
12
12
  exports.InvalidResourceDto = InvalidResourceDto;
13
- class SimpleResourceDto extends general_dto_1.IdAndNameDto {
13
+ class ChildCalendarResourceDto extends general_dto_1.IdAndNameDto {
14
14
  }
15
- exports.SimpleResourceDto = SimpleResourceDto;
15
+ exports.ChildCalendarResourceDto = ChildCalendarResourceDto;
16
+ class CalendarResourceDto extends ChildCalendarResourceDto {
17
+ }
18
+ exports.CalendarResourceDto = CalendarResourceDto;
16
19
  class BaseResourceDto extends general_dto_1.IdDto {
17
20
  }
18
21
  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;AAoB9E,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,kBAAmB,SAAQ,WAAW;CAMlD;AAND,gDAMC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,eAAgB,SAAQ,mB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C;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,iBAAiB;CAwB7B;AAxBD,8CAwBC;AAED,MAAa,8BAA+B,SAAQ,kCAAiB;CAIpE;AAJD,wEAIC"}
@@ -26,6 +26,8 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
26
26
  length?: number;
27
27
  amenities?: AmenitiesEnum[];
28
28
  parentResourceId?: number;
29
+ parent?: Resource;
30
+ children?: Resource[];
29
31
  ordinal?: number;
30
32
  isAddOn: boolean;
31
33
  ages?: ResourceAgesEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAcA,oGAAiG;AAqBjG,MAAa,QAAS,SAAQ,mEAAgC;CA6E7D;AA7ED,4BA6EC"}
1
+ {"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAcA,oGAAiG;AAqBjG,MAAa,QAAS,SAAQ,mEAAgC;CAiF7D;AAjFD,4BAiFC"}
@@ -1,22 +1,25 @@
1
- import { ActivityEnum, OrderByEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../../services/enums.service';
2
- import { SimpleResourceDto } from '../../dto/resource.dto';
3
- import { OrderByResourceEnum } from '../enums/resources.enums';
1
+ import { SimpleResourceDto } from '../../../dto/general.dto';
4
2
  import { PackageV1 } from '../../../entity/PackageV1';
3
+ import { ActivityEnum, OrderByEnum, ResourceNameTypeEnum, ResourceSubTypeEnum, ResourceTypeEnum, SportsEnum } from '../../../services/enums.service';
4
+ import { OrderByResourceEnum } from '../enums/resources.enums';
5
5
  export interface ParentResources extends SimpleResourceDto {
6
6
  parentId: number;
7
7
  parentType?: ResourceNameTypeEnum;
8
8
  }
9
9
  export interface IGetResourcesOptions {
10
- nameSearch?: string;
11
- resourceTypes?: ResourceTypeEnum[];
12
10
  facilitiesIds?: number[];
13
11
  resourcesIds?: number[];
12
+ resourceTypes?: ResourceTypeEnum[];
13
+ spaceSubtypes?: ResourceSubTypeEnum[];
14
14
  sports?: SportsEnum[];
15
15
  statuses?: ActivityEnum[];
16
+ nameSearch?: string;
16
17
  order?: OrderByEnum;
17
18
  sortBy?: OrderByResourceEnum;
18
19
  includeActivityTimes?: boolean;
20
+ includeRelations?: boolean;
19
21
  includeResourceMetadata?: boolean;
22
+ includeMainMedia?: boolean;
20
23
  includeFacilities?: boolean;
21
24
  searchByFacility?: boolean;
22
25
  inclusion?: boolean;
@@ -36,3 +39,8 @@ export interface ResourceToPackageV1 {
36
39
  packageId: number;
37
40
  package?: PackageV1;
38
41
  }
42
+ export interface IResourceOfReservationCreator {
43
+ id: number;
44
+ name: string;
45
+ creatorId: number;
46
+ }
@@ -78,3 +78,18 @@ export declare class EditRoleDto {
78
78
  userIdsToAdd?: number[];
79
79
  userIdsToRemove?: number[];
80
80
  }
81
+ export declare class ReassignEmployeesFilters {
82
+ all?: boolean;
83
+ usersIds?: number[];
84
+ excludedIds?: number[];
85
+ currentRoleId?: number;
86
+ filters?: {
87
+ alsoHaveRolesIds?: number[];
88
+ status?: string[];
89
+ };
90
+ search?: string;
91
+ }
92
+ export declare class ReassignEmployeesDto {
93
+ newRolesIds: number[];
94
+ reassignEmployeesFilters: ReassignEmployeesFilters;
95
+ }