@bondsports/types 2.2.283 → 2.2.284-a-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 (49) hide show
  1. package/README.md +71 -71
  2. package/dist/tsconfig.build.tsbuildinfo +1 -1
  3. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -2
  4. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  5. package/dist/types/product-pricing/dto/product.dto.d.ts +2 -0
  6. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  7. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +10 -0
  8. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +25 -18
  9. package/dist/types/programs-seasons/dto/program-seasons.dto.js +11 -8
  10. package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
  11. package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +4 -2
  12. package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
  13. package/dist/types/programs-seasons/types/classes/index.d.ts +1 -0
  14. package/dist/types/programs-seasons/types/classes/index.js +18 -0
  15. package/dist/types/programs-seasons/types/classes/index.js.map +1 -0
  16. package/dist/types/programs-seasons/types/classes/program-season.classes.d.ts +6 -0
  17. package/dist/types/programs-seasons/types/classes/program-season.classes.js +7 -0
  18. package/dist/types/programs-seasons/types/classes/program-season.classes.js.map +1 -0
  19. package/dist/types/programs-seasons/types/enums/index.d.ts +1 -0
  20. package/dist/types/programs-seasons/types/enums/index.js +18 -0
  21. package/dist/types/programs-seasons/types/enums/index.js.map +1 -0
  22. package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +9 -0
  23. package/dist/types/programs-seasons/types/enums/program-season.enums.js +15 -0
  24. package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -0
  25. package/dist/types/programs-seasons/types/index.d.ts +2 -0
  26. package/dist/types/programs-seasons/types/index.js +2 -0
  27. package/dist/types/programs-seasons/types/index.js.map +1 -1
  28. package/dist/types/reservations/dto/addon.dto.d.ts +4 -3
  29. package/dist/types/reservations/dto/addon.dto.js +6 -2
  30. package/dist/types/reservations/dto/addon.dto.js.map +1 -1
  31. package/dist/types/reservations/dto/reservation.dto.d.ts +11 -3
  32. package/dist/types/reservations/dto/reservation.dto.js +4 -1
  33. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  34. package/dist/types/reservations/dto/slot.dto.d.ts +48 -13
  35. package/dist/types/reservations/dto/slot.dto.js +8 -5
  36. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  37. package/dist/types/reservations/entities/slot.entity.d.ts +1 -0
  38. package/dist/types/reservations/entities/slot.entity.js.map +1 -1
  39. package/dist/types/reservations/types/classes/addon.classes.d.ts +1 -0
  40. package/dist/types/reservations/types/classes/addon.classes.js.map +1 -1
  41. package/dist/types/reservations/types/consts/reservation.consts.d.ts +1 -0
  42. package/dist/types/reservations/types/consts/reservation.consts.js +8 -1
  43. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
  44. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +20 -1
  45. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +4 -0
  46. package/dist/types/resources/dto/space.dto.d.ts +1 -0
  47. package/dist/types/resources/dto/space.dto.js.map +1 -1
  48. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +1 -0
  49. package/package.json +54 -54
@@ -1,5 +1,7 @@
1
1
  import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
2
2
  import { FacilityDto } from '../../dto/facilities.dto';
3
+ import { SimpleProductUserDto } from '../../dto/product-user';
4
+ import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
3
5
  import { ProductDto } from '../../product-pricing/dto/product.dto';
4
6
  import { Product } from '../../product-pricing/entities/Product';
5
7
  import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
@@ -9,10 +11,8 @@ import { Slot } from '../entities/slot.entity';
9
11
  import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
10
12
  import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
11
13
  import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ISlotProductPricesMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
12
- import { AddonDto, DraftAddonDto } from './addon.dto';
14
+ import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
13
15
  import { MaintenanceDto } from './maintenance.dto';
14
- import { SimpleProductUserDto } from '../../dto/product-user';
15
- import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
16
16
  export declare class SlotProductMetadataDto implements ISlotProductMetadata {
17
17
  productId: number;
18
18
  price: number;
@@ -26,23 +26,30 @@ export declare class SlotProductPricesMetadataDto implements ISlotProductPricesM
26
26
  quantity: number;
27
27
  totalPrice: number;
28
28
  }
29
- export declare class DateTimeAndResourcesDto {
29
+ export declare class BaseSlotFieldsDto {
30
+ organizationId?: number;
30
31
  startDate: string;
31
32
  startTime?: string;
32
33
  endDate?: string;
33
34
  endTime?: string;
34
35
  spaceId: number;
35
36
  instructorsIds?: number[];
37
+ title?: string;
38
+ publicNotes?: string;
39
+ privateNotes?: string;
40
+ sportIds?: SportsEnum[];
41
+ sportId?: SportsEnum;
42
+ privacySetting?: PrivacySettingsEnum;
43
+ colorCodeId?: number;
44
+ participantsNumber?: number;
45
+ maintenance?: MaintenanceDto[];
36
46
  }
37
- export declare class BaseSlotDto extends DateTimeAndResourcesDto implements IBaseSlot {
38
- organizationId?: number;
47
+ export declare class BaseSlotDto extends BaseSlotFieldsDto implements IBaseSlot {
39
48
  title: string;
40
49
  creatorId?: number;
41
50
  creatorType?: ResourceNameTypeEnum;
42
51
  userCreatorId?: number;
43
52
  timezone?: string;
44
- publicNotes?: string;
45
- privateNotes?: string;
46
53
  slotType: SlotTypeEnum;
47
54
  sportIds: SportsEnum[];
48
55
  maintenanceDurationdurationType?: DurationUnitTypesEnum;
@@ -51,13 +58,9 @@ export declare class BaseSlotDto extends DateTimeAndResourcesDto implements IBas
51
58
  displayName?: string;
52
59
  internalName?: string;
53
60
  totalPrice?: number;
54
- privacySetting?: PrivacySettingsEnum;
55
61
  slotDurationType: DurationTypeEnum;
56
- colorCodeId?: number;
57
- participantsNumber?: number;
58
62
  occurrence?: number;
59
63
  productMetadata?: SlotProductMetadataDto;
60
- maintenance?: MaintenanceDto[];
61
64
  }
62
65
  export declare class SlotDto extends BaseSlotDto {
63
66
  id?: number;
@@ -91,8 +94,37 @@ export declare class BaseDraftSlotDto extends BaseSlotDto {
91
94
  participantsIds?: number[];
92
95
  slotId?: number;
93
96
  }
94
- export declare class UpdateDraftSlotDto extends BaseDraftSlotDto {
97
+ export declare class UpdateDraftSlotDto {
98
+ id?: string;
99
+ title?: string;
100
+ privacySetting?: PrivacySettingsEnum;
101
+ colorCodeId?: number;
102
+ spaceId?: number;
103
+ sportIds?: SportsEnum[];
104
+ startDate?: string;
105
+ startTime?: string;
106
+ endDate?: string;
107
+ endTime?: string;
108
+ maintenance?: MaintenanceDto[];
109
+ privateNotes?: string;
110
+ publicNotes?: string;
111
+ productsIds?: number[];
112
+ instructorsIds?: number[];
113
+ participantsIds?: number[];
114
+ participantsNumber?: number;
115
+ addons?: CreateDraftAddonDto[];
116
+ }
117
+ export declare class DraftSlotsDto extends BaseSlotFieldsDto {
118
+ ids: string[];
119
+ facilitiesIds: number[];
120
+ segmentsIds: string[];
121
+ reservationId: string;
122
+ participantsIds?: number[];
95
123
  productsIds?: number[];
124
+ addons?: CreateDraftAddonDto[];
125
+ spacesIds?: number[];
126
+ combinedInstructorsIds?: number[];
127
+ sportsIds?: SportsEnum[];
96
128
  productId?: number;
97
129
  }
98
130
  export declare class DraftSlotDto extends BaseDraftSlotDto implements IDraftSlot {
@@ -143,13 +175,16 @@ export declare class DraftTimeSlotDto implements ITimeSlot {
143
175
  parentSlotId?: string;
144
176
  }
145
177
  export declare class ProblematicSlotDto {
178
+ id: string;
146
179
  startDate: string;
147
180
  endDate: string;
148
181
  startTime: string;
149
182
  endTime: string;
150
183
  spaceId: number;
184
+ title: string;
151
185
  spaceName?: string;
152
186
  instructorsIds?: number[];
187
+ slotId?: number;
153
188
  }
154
189
  export declare class CardSlotDto extends SlotDto {
155
190
  resource: SpaceResourceDto;
@@ -1,16 +1,16 @@
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.UpdateDraftSlotDto = exports.BaseDraftSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = 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.SlotDto = exports.BaseSlotDto = exports.BaseSlotFieldsDto = exports.SlotProductPricesMetadataDto = exports.SlotProductMetadataDto = void 0;
4
4
  class SlotProductMetadataDto {
5
5
  }
6
6
  exports.SlotProductMetadataDto = SlotProductMetadataDto;
7
7
  class SlotProductPricesMetadataDto {
8
8
  }
9
9
  exports.SlotProductPricesMetadataDto = SlotProductPricesMetadataDto;
10
- class DateTimeAndResourcesDto {
10
+ class BaseSlotFieldsDto {
11
11
  }
12
- exports.DateTimeAndResourcesDto = DateTimeAndResourcesDto;
13
- class BaseSlotDto extends DateTimeAndResourcesDto {
12
+ exports.BaseSlotFieldsDto = BaseSlotFieldsDto;
13
+ class BaseSlotDto extends BaseSlotFieldsDto {
14
14
  }
15
15
  exports.BaseSlotDto = BaseSlotDto;
16
16
  class SlotDto extends BaseSlotDto {
@@ -19,9 +19,12 @@ exports.SlotDto = SlotDto;
19
19
  class BaseDraftSlotDto extends BaseSlotDto {
20
20
  }
21
21
  exports.BaseDraftSlotDto = BaseDraftSlotDto;
22
- class UpdateDraftSlotDto extends BaseDraftSlotDto {
22
+ class UpdateDraftSlotDto {
23
23
  }
24
24
  exports.UpdateDraftSlotDto = UpdateDraftSlotDto;
25
+ class DraftSlotsDto extends BaseSlotFieldsDto {
26
+ }
27
+ exports.DraftSlotsDto = DraftSlotsDto;
25
28
  class DraftSlotDto extends BaseDraftSlotDto {
26
29
  }
27
30
  exports.DraftSlotDto = DraftSlotDto;
@@ -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,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,WAAY,SAAQ,uBAAuB;CA8CvD;AA9CD,kCA8CC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAkCvC;AAlCD,0BAkCC;AAED,MAAa,gBAAiB,SAAQ,WAAW;CAgBhD;AAhBD,4CAgBC;AAED,MAAa,kBAAmB,SAAQ,gBAAgB;CAKvD;AALD,gDAKC;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;CAc9B;AAdD,gDAcC;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,6 +29,7 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
29
29
  spaceId?: number;
30
30
  resource?: Resource;
31
31
  slotToResources?: SlotToResource[];
32
+ instructorsIds?: number[];
32
33
  resources?: Resource[];
33
34
  parentSlotId?: number;
34
35
  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;CAsIzD;AAtID,oBAsIC"}
@@ -7,6 +7,7 @@ export declare class DraftAddon implements IDraftAddon {
7
7
  productId: number;
8
8
  product?: Product;
9
9
  quantity: number;
10
+ baseQuantity?: number;
10
11
  unitPrice?: number;
11
12
  totalPrice?: number;
12
13
  parentId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,UAAU;CA8BtB;AA9BD,gCA8BC"}
1
+ {"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,UAAU;CAgCtB;AAhCD,gCAgCC"}
@@ -7,6 +7,7 @@ export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
7
7
  export declare const PUBLIC_NOTES_LIMIT = 500;
8
8
  export declare const PRIVATE_NOTES_LIMIT = 500;
9
9
  export declare const DEFAULT_PRICE_ID = 0;
10
+ export declare const MANDATORY_DRAFT_SLOTS_FIELDS: string[];
10
11
  export declare const reservationStatusMapper: {
11
12
  Planned: InvoiceStatusEnum;
12
13
  Approved: InvoiceStatusEnum;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = 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';
@@ -11,6 +11,13 @@ exports.RESOURCE_TOTAL_FIELD = enums_service_1.PriceFieldEnum.TOTAL_PRICE;
11
11
  exports.PUBLIC_NOTES_LIMIT = 500;
12
12
  exports.PRIVATE_NOTES_LIMIT = 500;
13
13
  exports.DEFAULT_PRICE_ID = 0;
14
+ exports.MANDATORY_DRAFT_SLOTS_FIELDS = [
15
+ 'organizationId',
16
+ 'reservationId',
17
+ 'facilitiesIds',
18
+ 'segmentsIds',
19
+ 'ids',
20
+ ];
14
21
  exports.reservationStatusMapper = {
15
22
  [reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.InvoiceStatusEnum.DRAFT,
16
23
  [reservation_enums_1.ReservationStatusEnum.APPROVED]: enums_service_1.InvoiceStatusEnum.DRAFT,
@@ -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,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"}
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"}
@@ -18,7 +18,7 @@ import { AddonDto } from '../../dto/addon.dto';
18
18
  import { ReservationDto } from '../../dto/reservation.dto';
19
19
  import { SegmentDto } from '../../dto/segment.dto';
20
20
  import { SeriesDto } from '../../dto/series.dto';
21
- import { SlotDto } from '../../dto/slot.dto';
21
+ import { SlotDto, UpdateDraftSlotDto } from '../../dto/slot.dto';
22
22
  import { Addon } from '../../entities/addon.entity';
23
23
  import { Reservation } from '../../entities/reservation.entity';
24
24
  import { Segment } from '../../entities/segment.entity';
@@ -342,6 +342,14 @@ export interface IGetDraftReservationOptions {
342
342
  includeConflicts?: boolean;
343
343
  reservation?: DraftReservation;
344
344
  }
345
+ export interface IDuplicateDraftReservation extends IGetDraftReservationOptions {
346
+ slotsIds?: number[];
347
+ excludeIds?: number[];
348
+ reservationAddonsIds?: number[];
349
+ isEdit?: boolean;
350
+ combineSlots?: boolean;
351
+ skipSave?: boolean;
352
+ }
345
353
  export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
346
354
  segmentsIds?: string[];
347
355
  slotsIds?: string[];
@@ -439,4 +447,15 @@ export interface IGetReservationOptions {
439
447
  extraRelations?: string[];
440
448
  includeProducts?: boolean;
441
449
  }
450
+ export interface IDuplicateReservationItems {
451
+ slotsIds?: number[];
452
+ reservationAddonsIds?: number[];
453
+ excludeIds?: number[];
454
+ isEdit?: boolean;
455
+ combineSlots?: boolean;
456
+ }
457
+ export interface IUpdateDraftSlotsValidationResult {
458
+ slots: DraftSlot[];
459
+ updates: UpdateDraftSlotDto[];
460
+ }
442
461
  export {};
@@ -151,3 +151,7 @@ export interface IDraftSlot extends IBaseSlot {
151
151
  approvalStatus?: ReservationStatusEnum;
152
152
  paymentStatus?: ReservationPaymentStatusEnum;
153
153
  }
154
+ export interface IUpdateSlot extends IDraftSlot {
155
+ productsIds?: number[];
156
+ productId?: number;
157
+ }
@@ -71,6 +71,7 @@ export declare class FindResourcesOptionsDto extends PaginationQuery implements
71
71
  includeActivityTimes?: boolean;
72
72
  includeFacilities?: boolean;
73
73
  searchByFacility?: boolean;
74
+ inclusion?: boolean;
74
75
  }
75
76
  export declare class UpdateSpaceDto extends UpdateResourceDto {
76
77
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AAcxD,iDAA6F;AAE7F,MAAa,gBAAiB,SAAQ,8BAAe;CAkBpD;AAlBD,4CAkBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,cAAe,SAAQ,sCAAuB;CA8B1D;AA9BD,wCA8BC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AACD,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,gCAAgC;CAI5C;AAJD,4EAIC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CAwB3D;AAxBD,0DAwBC;AAED,MAAa,cAAe,SAAQ,gCAAiB;CAkBpD;AAlBD,wCAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC"}
1
+ {"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AAcxD,iDAA6F;AAE7F,MAAa,gBAAiB,SAAQ,8BAAe;CAkBpD;AAlBD,4CAkBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,cAAe,SAAQ,sCAAuB;CA8B1D;AA9BD,wCA8BC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AACD,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,gCAAgC;CAI5C;AAJD,4EAIC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CA0B3D;AA1BD,0DA0BC;AAED,MAAa,cAAe,SAAQ,gCAAiB;CAkBpD;AAlBD,wCAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC"}
@@ -19,6 +19,7 @@ export interface IGetResourcesOptions {
19
19
  includeResourceMetadata?: boolean;
20
20
  includeFacilities?: boolean;
21
21
  searchByFacility?: boolean;
22
+ inclusion?: boolean;
22
23
  }
23
24
  export interface IGetResourceByIdsOptions {
24
25
  order?: OrderByEnum;
package/package.json CHANGED
@@ -1,54 +1,54 @@
1
- {
2
- "name": "@bondsports/types",
3
- "version": "2.2.283",
4
- "description": "backend types module for Bond-Sports",
5
- "main": "./dist/index.js",
6
- "scripts": {
7
- "format": "prettier --check .",
8
- "format:fix": "prettier --write .",
9
- "prelint:fix": "npm run format:fix",
10
- "prelint": "npm run format",
11
- "lint": "eslint .",
12
- "lint:fix": "eslint --fix .",
13
- "release": "standard-version",
14
- "import:types": "rimraf src/types && node ./import.js",
15
- "prebuild": "npm run clean",
16
- "build": "tsc --project tsconfig.build.json",
17
- "start": "npm run build && cd dist && node ./index.js",
18
- "clean": "rimraf dist",
19
- "prepublish": "npm run build",
20
- "version": "echo $npm_package_version"
21
- },
22
- "repository": {
23
- "type": "git",
24
- "url": "git+https://github.com/Bond-Sports/bondUtils/tree/main/packages/types.git"
25
- },
26
- "author": "Bond-Sports",
27
- "license": "ISC",
28
- "bugs": {
29
- "url": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types/issues"
30
- },
31
- "files": [
32
- "dist/**/*"
33
- ],
34
- "homepage": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types#readme",
35
- "dependencies": {
36
- "moment": "^2.29.1",
37
- "rimraf": "^3.0.2",
38
- "stripe": "9.1.0",
39
- "typeorm": "^0.2.32",
40
- "@bondsports/date-time": "latest",
41
- "@bondsports/notifications-sdk": "latest"
42
- },
43
- "devDependencies": {
44
- "@bondsports/eslint-config": "^1.0.2",
45
- "@bondsports/prettier-config": "0.0.1",
46
- "@types/node": "^13.9.1",
47
- "eslint": "^8.16.0",
48
- "prettier": "^2.6.2",
49
- "standard-version": "^9.5.0",
50
- "ts-node": "^10.8.0",
51
- "typescript": "^4.4.3"
52
- },
53
- "gitHead": "178ca9dc5ea5e94b44d765b6663e7a4ad0d19d98"
54
- }
1
+ {
2
+ "name": "@bondsports/types",
3
+ "version": "2.2.284-a-2",
4
+ "description": "backend types module for Bond-Sports",
5
+ "main": "./dist/index.js",
6
+ "scripts": {
7
+ "format": "prettier --check .",
8
+ "format:fix": "prettier --write .",
9
+ "prelint:fix": "npm run format:fix",
10
+ "prelint": "npm run format",
11
+ "lint": "eslint .",
12
+ "lint:fix": "eslint --fix .",
13
+ "release": "standard-version",
14
+ "import:types": "rimraf src/types && node ./import.js",
15
+ "prebuild": "npm run clean",
16
+ "build": "tsc --project tsconfig.build.json",
17
+ "start": "npm run build && cd dist && node ./index.js",
18
+ "clean": "rimraf dist",
19
+ "prepublish": "npm run build",
20
+ "version": "echo $npm_package_version"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/Bond-Sports/bondUtils/tree/main/packages/types.git"
25
+ },
26
+ "author": "Bond-Sports",
27
+ "license": "ISC",
28
+ "bugs": {
29
+ "url": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types/issues"
30
+ },
31
+ "files": [
32
+ "dist/**/*"
33
+ ],
34
+ "homepage": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types#readme",
35
+ "dependencies": {
36
+ "moment": "^2.29.1",
37
+ "rimraf": "^3.0.2",
38
+ "stripe": "9.1.0",
39
+ "typeorm": "^0.2.32",
40
+ "@bondsports/date-time": "latest",
41
+ "@bondsports/notifications-sdk": "latest"
42
+ },
43
+ "devDependencies": {
44
+ "@bondsports/eslint-config": "^1.0.2",
45
+ "@bondsports/prettier-config": "0.0.1",
46
+ "@types/node": "^13.9.1",
47
+ "eslint": "^8.16.0",
48
+ "prettier": "^2.6.2",
49
+ "standard-version": "^9.5.0",
50
+ "ts-node": "^10.8.0",
51
+ "typescript": "^4.4.3"
52
+ },
53
+ "gitHead": "178ca9dc5ea5e94b44d765b6663e7a4ad0d19d98"
54
+ }