@bondsports/types 2.2.70 → 2.2.72

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/dto/events.dto.d.ts +1 -1
  3. package/dist/types/entity/Customer.d.ts +1 -1
  4. package/dist/types/entity/Events.d.ts +1 -1
  5. package/dist/types/entity/Invoice.d.ts +3 -3
  6. package/dist/types/entity/ProductsUsers.d.ts +2 -2
  7. package/dist/types/entity/index.d.ts +0 -2
  8. package/dist/types/entity/index.js +0 -2
  9. package/dist/types/entity/index.js.map +1 -1
  10. package/dist/types/invoice/dto/index.d.ts +2 -1
  11. package/dist/types/invoice/dto/index.js +2 -1
  12. package/dist/types/invoice/dto/index.js.map +1 -1
  13. package/dist/types/invoice/dto/invoice.dto.d.ts +27 -0
  14. package/dist/types/invoice/dto/invoice.dto.js +13 -1
  15. package/dist/types/invoice/dto/invoice.dto.js.map +1 -1
  16. package/dist/types/{reservations → invoice}/dto/lineItem.dto.d.ts +1 -1
  17. package/dist/types/invoice/dto/lineItem.dto.js.map +1 -0
  18. package/dist/types/invoice/dto/{publishInvoice.dto.js → publish-invoice.dto.js} +1 -1
  19. package/dist/types/invoice/dto/publish-invoice.dto.js.map +1 -0
  20. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +27 -0
  21. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +2 -1
  22. package/dist/types/payment/types/interfaces/payment.interfaces.js.map +1 -1
  23. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +1 -0
  24. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  25. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +1 -0
  26. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +3 -2
  27. package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
  28. package/dist/types/reservations/dto/index.d.ts +0 -2
  29. package/dist/types/reservations/dto/index.js +0 -2
  30. package/dist/types/reservations/dto/index.js.map +1 -1
  31. package/dist/types/reservations/dto/maintenance.dto.d.ts +1 -1
  32. package/dist/types/reservations/dto/reservation.dto.d.ts +26 -4
  33. package/dist/types/reservations/dto/reservation.dto.js +17 -1
  34. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  35. package/dist/types/reservations/dto/series.dto.d.ts +1 -1
  36. package/dist/types/reservations/dto/slot.dto.d.ts +1 -1
  37. package/dist/types/reservations/entities/{Addon.d.ts → addon.entity.d.ts} +6 -1
  38. package/dist/types/reservations/entities/{Addon.js → addon.entity.js} +1 -1
  39. package/dist/types/reservations/entities/addon.entity.js.map +1 -0
  40. package/dist/types/reservations/entities/index.d.ts +6 -6
  41. package/dist/types/reservations/entities/index.js +6 -6
  42. package/dist/types/reservations/entities/index.js.map +1 -1
  43. package/dist/types/reservations/entities/{Reservations.d.ts → reservation.entity.d.ts} +14 -13
  44. package/dist/types/reservations/entities/{Reservations.js → reservation.entity.js} +1 -1
  45. package/dist/types/reservations/entities/reservation.entity.js.map +1 -0
  46. package/dist/types/reservations/entities/{Segments.d.ts → segment.entity.d.ts} +4 -4
  47. package/dist/types/reservations/entities/{Segments.js → segment.entity.js} +1 -1
  48. package/dist/types/reservations/entities/segment.entity.js.map +1 -0
  49. package/dist/types/reservations/entities/{Series.d.ts → series.entity.d.ts} +6 -5
  50. package/dist/types/reservations/entities/{Series.js → series.entity.js} +1 -1
  51. package/dist/types/reservations/entities/series.entity.js.map +1 -0
  52. package/dist/types/reservations/entities/slot-history.entity.d.ts +6 -0
  53. package/dist/types/reservations/entities/slot-history.entity.js +8 -0
  54. package/dist/types/reservations/entities/slot-history.entity.js.map +1 -0
  55. package/dist/types/reservations/entities/{Slots.d.ts → slot.entity.d.ts} +13 -13
  56. package/dist/types/reservations/entities/{Slots.js → slot.entity.js} +1 -1
  57. package/dist/types/reservations/entities/slot.entity.js.map +1 -0
  58. package/dist/types/reservations/types/consts/reservation.consts.js +7 -6
  59. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
  60. package/dist/types/reservations/types/enums/reservation.enums.d.ts +58 -0
  61. package/dist/types/reservations/types/enums/reservation.enums.js +67 -1
  62. package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
  63. package/dist/types/reservations/types/interfaces/index.d.ts +1 -1
  64. package/dist/types/reservations/types/interfaces/index.js +1 -1
  65. package/dist/types/reservations/types/interfaces/index.js.map +1 -1
  66. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +9 -8
  67. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  68. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +51 -0
  69. package/dist/types/reservations/types/interfaces/{invoice.interfaces.js → slot.interfaces.js} +1 -1
  70. package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -0
  71. package/dist/types/resources/dto/resource.dto.d.ts +2 -2
  72. package/dist/types/resources/entities/Resource.d.ts +2 -2
  73. package/dist/types/services/enums.service.d.ts +0 -53
  74. package/dist/types/services/enums.service.js +2 -64
  75. package/dist/types/services/enums.service.js.map +1 -1
  76. package/dist/types/services/interfaces.service.d.ts +4 -53
  77. package/dist/types/services/interfaces.service.js.map +1 -1
  78. package/package.json +1 -1
  79. package/dist/types/entity/Reservations.d.ts +0 -35
  80. package/dist/types/entity/Reservations.js +0 -8
  81. package/dist/types/entity/Reservations.js.map +0 -1
  82. package/dist/types/entity/SlotHistory.d.ts +0 -53
  83. package/dist/types/entity/SlotHistory.js +0 -8
  84. package/dist/types/entity/SlotHistory.js.map +0 -1
  85. package/dist/types/invoice/dto/publishInvoice.dto.js.map +0 -1
  86. package/dist/types/reservations/dto/invoice.dto.d.ts +0 -50
  87. package/dist/types/reservations/dto/invoice.dto.js +0 -31
  88. package/dist/types/reservations/dto/invoice.dto.js.map +0 -1
  89. package/dist/types/reservations/dto/lineItem.dto.js.map +0 -1
  90. package/dist/types/reservations/entities/Addon.js.map +0 -1
  91. package/dist/types/reservations/entities/InvoicedSlots.d.ts +0 -7
  92. package/dist/types/reservations/entities/InvoicedSlots.js +0 -8
  93. package/dist/types/reservations/entities/InvoicedSlots.js.map +0 -1
  94. package/dist/types/reservations/entities/Reservations.js.map +0 -1
  95. package/dist/types/reservations/entities/Segments.js.map +0 -1
  96. package/dist/types/reservations/entities/Series.js.map +0 -1
  97. package/dist/types/reservations/entities/Slots.js.map +0 -1
  98. package/dist/types/reservations/types/interfaces/invoice.interfaces.d.ts +0 -28
  99. package/dist/types/reservations/types/interfaces/invoice.interfaces.js.map +0 -1
  100. /package/dist/types/{reservations → invoice}/dto/lineItem.dto.js +0 -0
  101. /package/dist/types/invoice/dto/{publishInvoice.dto.d.ts → publish-invoice.dto.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
- import { Reservation } from './Reservations';
3
- import { Series } from './Series';
4
- import { Slot } from './Slots';
2
+ import { Reservation } from './reservation.entity';
3
+ import { Series } from './series.entity';
4
+ import { Slot } from './slot.entity';
5
5
  export declare class Segment extends OrganizationConnectionBaseEntity {
6
6
  deletedAt?: Date;
7
7
  reservationId: number;
@@ -11,7 +11,7 @@ export declare class Segment extends OrganizationConnectionBaseEntity {
11
11
  sportId: number;
12
12
  reservation?: Reservation;
13
13
  series?: Series[];
14
- addonIds?: number[] | null;
14
+ addonIds?: number[];
15
15
  publicNotesForSlots?: string;
16
16
  privateNotesForSlots?: string;
17
17
  slots?: Slot[];
@@ -5,4 +5,4 @@ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationCon
5
5
  class Segment extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
6
  }
7
7
  exports.Segment = Segment;
8
- //# sourceMappingURL=Segments.js.map
8
+ //# sourceMappingURL=segment.entity.js.map
@@ -0,0 +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;CAwB5D;AAxBD,0BAwBC"}
@@ -1,20 +1,21 @@
1
1
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
- import { Segment } from './Segments';
3
- import { Slot } from './Slots';
4
2
  import { Resource } from '../../resources/entities/Resource';
3
+ import { DurationUnitTypesEnum, FrequencyEnum, SlotDurationTypeEnum } from '../types/enums/reservation.enums';
4
+ import { Segment } from './segment.entity';
5
+ import { Slot } from './slot.entity';
5
6
  export declare class Series extends OrganizationConnectionBaseEntity {
6
7
  deletedAt?: Date;
7
8
  segmentId: number;
8
9
  segment?: Segment;
9
10
  slots?: Slot[];
10
- slotDurationType: string;
11
+ slotDurationType: SlotDurationTypeEnum;
11
12
  durationEndsAfter: number;
12
- durationUnit: string;
13
+ durationUnit: DurationUnitTypesEnum;
13
14
  startDate?: Date;
14
15
  endDate?: Date;
15
16
  startTime: string;
16
17
  endTime: string;
17
- frequency: string;
18
+ frequency: FrequencyEnum;
18
19
  repeatEvery: number;
19
20
  repeatOn?: number[];
20
21
  repeatEndDate?: Date;
@@ -5,4 +5,4 @@ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationCon
5
5
  class Series extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
6
  }
7
7
  exports.Series = Series;
8
- //# sourceMappingURL=Series.js.map
8
+ //# sourceMappingURL=series.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"series.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/series.entity.ts"],"names":[],"mappings":";;;AACA,oGAAiG;AAMjG,MAAa,MAAO,SAAQ,mEAAgC;CAmC3D;AAnCD,wBAmCC"}
@@ -0,0 +1,6 @@
1
+ import { Slot } from './slot.entity';
2
+ export declare class SlotHistory extends Slot {
3
+ slotId: number;
4
+ parentHistoryId?: number;
5
+ actionId?: string;
6
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlotHistory = void 0;
4
+ const slot_entity_1 = require("./slot.entity");
5
+ class SlotHistory extends slot_entity_1.Slot {
6
+ }
7
+ exports.SlotHistory = SlotHistory;
8
+ //# sourceMappingURL=slot-history.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slot-history.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot-history.entity.ts"],"names":[],"mappings":";;;AACA,+CAAqC;AAErC,MAAa,WAAY,SAAQ,kBAAI;CAMpC;AAND,kCAMC"}
@@ -4,13 +4,13 @@ import { Invoice } from '../../entity/Invoice';
4
4
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
5
5
  import { ProductsUsers } from '../../entity/ProductsUsers';
6
6
  import { Product } from '../../product-pricing/entities/Product';
7
- import { ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../../services/enums.service';
8
7
  import { Resource } from '../../resources/entities/Resource';
8
+ import { DurationUnitTypesEnum, MaintenanceTimingEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotDurationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
9
9
  import { IAddonMetadata } from '../types/interfaces/reservation.interfaces';
10
- import { Addon } from './Addon';
11
- import { Reservation } from './Reservations';
12
- import { Segment } from './Segments';
13
- import { Series } from './Series';
10
+ import { Addon } from './addon.entity';
11
+ import { Reservation } from './reservation.entity';
12
+ import { Segment } from './segment.entity';
13
+ import { Series } from './series.entity';
14
14
  export declare class Slot extends OrganizationConnectionBaseEntity {
15
15
  isReverted: boolean;
16
16
  reservationId: number;
@@ -34,8 +34,6 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
34
34
  productUser?: ProductsUsers;
35
35
  product?: Product;
36
36
  addons: Addon[];
37
- addonsProductUserIds?: number[] | null;
38
- addonsMetadata: IAddonMetadata[];
39
37
  segmentId: number;
40
38
  segment: Segment;
41
39
  eventId: number;
@@ -44,8 +42,8 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
44
42
  parentSlotId?: number;
45
43
  parent?: Slot;
46
44
  children?: Slot[];
47
- maintenanceDurationdurationType: string;
48
- maintenanceTiming: number;
45
+ maintenanceDurationdurationType: DurationUnitTypesEnum;
46
+ maintenanceTiming: MaintenanceTimingEnum;
49
47
  durationValue: number;
50
48
  seriesId?: number;
51
49
  series?: Series;
@@ -55,23 +53,25 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
55
53
  approvalStatus?: ReservationStatusEnum;
56
54
  displayName?: string;
57
55
  internalName?: string;
58
- activityTypes?: number[];
59
- hourlyRate: number;
60
56
  totalPrice: number;
61
57
  isConsumerVisible: boolean;
62
58
  isMonitorVisible: boolean;
63
59
  isPrivate: boolean;
64
60
  occurrence?: number;
65
- maintenance?: Slot[];
66
61
  productMetadata: {
67
62
  productId: number;
68
63
  price: number;
69
64
  };
70
- slotDurationType: string;
65
+ slotDurationType: SlotDurationTypeEnum;
71
66
  previousProductUsersIds?: number[];
72
67
  colorCodeId?: number;
73
68
  colorCode?: ColorCode;
74
69
  previousProductUsers?: ProductsUsers[];
75
70
  conflictsCount?: number;
76
71
  conflicts?: Slot[];
72
+ maintenance?: Slot[];
73
+ addonsProductUserIds?: number[] | null;
74
+ addonsMetadata: IAddonMetadata[];
75
+ activityTypes?: number[];
76
+ hourlyRate: number;
77
77
  }
@@ -5,4 +5,4 @@ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationCon
5
5
  class Slot extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
6
  }
7
7
  exports.Slot = Slot;
8
- //# sourceMappingURL=Slots.js.map
8
+ //# sourceMappingURL=slot.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAmBjG,MAAa,IAAK,SAAQ,mEAAgC;CA0HzD;AA1HD,oBA0HC"}
@@ -2,15 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reservationStatusMapper = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = void 0;
4
4
  const enums_service_1 = require("../../../services/enums.service");
5
+ const reservation_enums_1 = require("../enums/reservation.enums");
5
6
  exports.RESOURCE_TOTAL_FIELD = enums_service_1.PriceFieldEnum.TOTAL_PRICE;
6
7
  exports.PUBLIC_NOTES_LIMIT = 500;
7
8
  exports.PRIVATE_NOTES_LIMIT = 500;
8
9
  exports.reservationStatusMapper = {
9
- [enums_service_1.ReservationStatusEnum.PLANNED]: enums_service_1.InvoiceStatusEnum.DRAFT,
10
- [enums_service_1.ReservationStatusEnum.APPROVED]: enums_service_1.InvoiceStatusEnum.DRAFT,
11
- [enums_service_1.ReservationStatusEnum.AWAITING_ADMIN]: enums_service_1.InvoiceStatusEnum.WAITING_ADMIN,
12
- [enums_service_1.ReservationStatusEnum.AWAITING_CUSTOMER]: enums_service_1.InvoiceStatusEnum.WAITING_CLIENT,
13
- [enums_service_1.ReservationStatusEnum.REJECTED]: enums_service_1.InvoiceStatusEnum.CANCELED,
14
- [enums_service_1.ReservationStatusEnum.CANCELED]: enums_service_1.InvoiceStatusEnum.CANCELED,
10
+ [reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.InvoiceStatusEnum.DRAFT,
11
+ [reservation_enums_1.ReservationStatusEnum.APPROVED]: enums_service_1.InvoiceStatusEnum.DRAFT,
12
+ [reservation_enums_1.ReservationStatusEnum.AWAITING_ADMIN]: enums_service_1.InvoiceStatusEnum.WAITING_ADMIN,
13
+ [reservation_enums_1.ReservationStatusEnum.AWAITING_CUSTOMER]: enums_service_1.InvoiceStatusEnum.WAITING_CLIENT,
14
+ [reservation_enums_1.ReservationStatusEnum.REJECTED]: enums_service_1.InvoiceStatusEnum.CANCELED,
15
+ [reservation_enums_1.ReservationStatusEnum.CANCELED]: enums_service_1.InvoiceStatusEnum.CANCELED,
15
16
  };
16
17
  //# 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,mEAA2G;AAE9F,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,uBAAuB,GAAG;IACtC,CAAC,qCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,qCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,CAAC,qCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,qCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,qCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,qCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC"}
1
+ {"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAoF;AACpF,kEAAmE;AAEtD,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
1
2
  export declare enum ItemResourceEnum {
2
3
  SEGMENTS = "segments",
3
4
  SERIES = "series",
@@ -5,3 +6,60 @@ export declare enum ItemResourceEnum {
5
6
  RESERVATION_ADDONS = "reservation_addons",
6
7
  SLOT_ADDONS = "slot_addons"
7
8
  }
9
+ export declare enum PrivacySettingsEnum {
10
+ PUBLIC = "public",
11
+ PRIVATE = "private",
12
+ HIDDEN = "hidden"
13
+ }
14
+ export declare enum ReservationTypeEnum {
15
+ RENTAL = "rental",
16
+ PROGRAM = "program",
17
+ MAINTENANCE = "maintenance",
18
+ CUSTOM = "custom",
19
+ INTERNAL = "internal"
20
+ }
21
+ export declare enum SlotDurationTypeEnum {
22
+ DATES = "dates",
23
+ ALL_DAY = "all day",
24
+ DURATION = "duration"
25
+ }
26
+ export declare enum ReservationExtendedEnum {
27
+ PURCHASE_ORDER = "purchase_order"
28
+ }
29
+ export type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
30
+ export declare enum ReservationStatusEnum {
31
+ PLANNED = "Planned",
32
+ APPROVED = "Approved",
33
+ AWAITING_ADMIN = "Awaiting Admin",
34
+ AWAITING_CUSTOMER = "Awaiting Customer",
35
+ REJECTED = "Rejected",
36
+ CANCELED = "Canceled"
37
+ }
38
+ export declare enum ReservationMigrationStatusEnum {
39
+ NEW = "new",
40
+ NO = "no",
41
+ YES = "yes"
42
+ }
43
+ export declare enum SlotTypeEnum {
44
+ EXTERNAL = "external",
45
+ INTERNAL = "internal",
46
+ MAINTENANCE = "maintenance",
47
+ CUSTOM = "custom"
48
+ }
49
+ export declare enum DurationUnitTypesEnum {
50
+ MINUTES = "minutes",
51
+ HOURS = "hours"
52
+ }
53
+ export declare enum FrequencyEnum {
54
+ NONE = "none",
55
+ WEEKLY = "weekly",
56
+ DAILY = "daily",
57
+ MONTHLY = "monthly",
58
+ YEARLY = "yearly"
59
+ }
60
+ export declare enum MaintenanceTimingEnum {
61
+ BEFORE = 1,
62
+ AFTER = 2,
63
+ AT_THE_BEGINING = 3,
64
+ AT_THE_END = 4
65
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ItemResourceEnum = void 0;
3
+ exports.MaintenanceTimingEnum = exports.FrequencyEnum = exports.DurationUnitTypesEnum = exports.SlotTypeEnum = exports.ReservationMigrationStatusEnum = exports.ReservationStatusEnum = exports.ReservationExtendedEnum = exports.SlotDurationTypeEnum = exports.ReservationTypeEnum = exports.PrivacySettingsEnum = exports.ItemResourceEnum = void 0;
4
4
  var ItemResourceEnum;
5
5
  (function (ItemResourceEnum) {
6
6
  ItemResourceEnum["SEGMENTS"] = "segments";
@@ -9,4 +9,70 @@ var ItemResourceEnum;
9
9
  ItemResourceEnum["RESERVATION_ADDONS"] = "reservation_addons";
10
10
  ItemResourceEnum["SLOT_ADDONS"] = "slot_addons";
11
11
  })(ItemResourceEnum = exports.ItemResourceEnum || (exports.ItemResourceEnum = {}));
12
+ var PrivacySettingsEnum;
13
+ (function (PrivacySettingsEnum) {
14
+ PrivacySettingsEnum["PUBLIC"] = "public";
15
+ PrivacySettingsEnum["PRIVATE"] = "private";
16
+ PrivacySettingsEnum["HIDDEN"] = "hidden";
17
+ })(PrivacySettingsEnum = exports.PrivacySettingsEnum || (exports.PrivacySettingsEnum = {}));
18
+ var ReservationTypeEnum;
19
+ (function (ReservationTypeEnum) {
20
+ ReservationTypeEnum["RENTAL"] = "rental";
21
+ ReservationTypeEnum["PROGRAM"] = "program";
22
+ ReservationTypeEnum["MAINTENANCE"] = "maintenance";
23
+ ReservationTypeEnum["CUSTOM"] = "custom";
24
+ ReservationTypeEnum["INTERNAL"] = "internal";
25
+ })(ReservationTypeEnum = exports.ReservationTypeEnum || (exports.ReservationTypeEnum = {}));
26
+ var SlotDurationTypeEnum;
27
+ (function (SlotDurationTypeEnum) {
28
+ SlotDurationTypeEnum["DATES"] = "dates";
29
+ SlotDurationTypeEnum["ALL_DAY"] = "all day";
30
+ SlotDurationTypeEnum["DURATION"] = "duration";
31
+ })(SlotDurationTypeEnum = exports.SlotDurationTypeEnum || (exports.SlotDurationTypeEnum = {}));
32
+ var ReservationExtendedEnum;
33
+ (function (ReservationExtendedEnum) {
34
+ ReservationExtendedEnum["PURCHASE_ORDER"] = "purchase_order";
35
+ })(ReservationExtendedEnum = exports.ReservationExtendedEnum || (exports.ReservationExtendedEnum = {}));
36
+ var ReservationStatusEnum;
37
+ (function (ReservationStatusEnum) {
38
+ ReservationStatusEnum["PLANNED"] = "Planned";
39
+ ReservationStatusEnum["APPROVED"] = "Approved";
40
+ ReservationStatusEnum["AWAITING_ADMIN"] = "Awaiting Admin";
41
+ ReservationStatusEnum["AWAITING_CUSTOMER"] = "Awaiting Customer";
42
+ ReservationStatusEnum["REJECTED"] = "Rejected";
43
+ ReservationStatusEnum["CANCELED"] = "Canceled";
44
+ })(ReservationStatusEnum = exports.ReservationStatusEnum || (exports.ReservationStatusEnum = {}));
45
+ var ReservationMigrationStatusEnum;
46
+ (function (ReservationMigrationStatusEnum) {
47
+ ReservationMigrationStatusEnum["NEW"] = "new";
48
+ ReservationMigrationStatusEnum["NO"] = "no";
49
+ ReservationMigrationStatusEnum["YES"] = "yes";
50
+ })(ReservationMigrationStatusEnum = exports.ReservationMigrationStatusEnum || (exports.ReservationMigrationStatusEnum = {}));
51
+ var SlotTypeEnum;
52
+ (function (SlotTypeEnum) {
53
+ SlotTypeEnum["EXTERNAL"] = "external";
54
+ SlotTypeEnum["INTERNAL"] = "internal";
55
+ SlotTypeEnum["MAINTENANCE"] = "maintenance";
56
+ SlotTypeEnum["CUSTOM"] = "custom";
57
+ })(SlotTypeEnum = exports.SlotTypeEnum || (exports.SlotTypeEnum = {}));
58
+ var DurationUnitTypesEnum;
59
+ (function (DurationUnitTypesEnum) {
60
+ DurationUnitTypesEnum["MINUTES"] = "minutes";
61
+ DurationUnitTypesEnum["HOURS"] = "hours";
62
+ })(DurationUnitTypesEnum = exports.DurationUnitTypesEnum || (exports.DurationUnitTypesEnum = {}));
63
+ var FrequencyEnum;
64
+ (function (FrequencyEnum) {
65
+ FrequencyEnum["NONE"] = "none";
66
+ FrequencyEnum["WEEKLY"] = "weekly";
67
+ FrequencyEnum["DAILY"] = "daily";
68
+ FrequencyEnum["MONTHLY"] = "monthly";
69
+ FrequencyEnum["YEARLY"] = "yearly";
70
+ })(FrequencyEnum = exports.FrequencyEnum || (exports.FrequencyEnum = {}));
71
+ var MaintenanceTimingEnum;
72
+ (function (MaintenanceTimingEnum) {
73
+ MaintenanceTimingEnum[MaintenanceTimingEnum["BEFORE"] = 1] = "BEFORE";
74
+ MaintenanceTimingEnum[MaintenanceTimingEnum["AFTER"] = 2] = "AFTER";
75
+ MaintenanceTimingEnum[MaintenanceTimingEnum["AT_THE_BEGINING"] = 3] = "AT_THE_BEGINING";
76
+ MaintenanceTimingEnum[MaintenanceTimingEnum["AT_THE_END"] = 4] = "AT_THE_END";
77
+ })(MaintenanceTimingEnum = exports.MaintenanceTimingEnum || (exports.MaintenanceTimingEnum = {}));
12
78
  //# 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,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"}
1
+ {"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAEA,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,oBAIX;AAJD,WAAY,oBAAoB;IAC/B,uCAAe,CAAA;IACf,2CAAmB,CAAA;IACnB,6CAAqB,CAAA;AACtB,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAED,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,4DAAiC,CAAA;AAClC,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC;AAID,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;IACrB,0DAAiC,CAAA;IACjC,gEAAuC,CAAA;IACvC,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;AACtB,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AAED,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACzC,6CAAW,CAAA;IACX,2CAAS,CAAA;IACT,6CAAW,CAAA;AACZ,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,2CAA2B,CAAA;IAC3B,iCAAiB,CAAA;AAClB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AAChB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,aAMX;AAND,WAAY,aAAa;IACxB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AAClB,CAAC,EANW,aAAa,GAAb,qBAAa,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,2 +1,2 @@
1
- export * from './invoice.interfaces';
2
1
  export * from './reservation.interfaces';
2
+ export * from './slot.interfaces';
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./invoice.interfaces"), exports);
18
17
  __exportStar(require("./reservation.interfaces"), exports);
18
+ __exportStar(require("./slot.interfaces"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,oDAAkC"}
@@ -3,25 +3,26 @@ import { ICreateCartOptions } from '../../../cart/types/interfaces/cart.interfac
3
3
  import { PaginationQuery } from '../../../dto/general.dto';
4
4
  import { Customer } from '../../../entity/Customer';
5
5
  import { Invoice } from '../../../entity/Invoice';
6
+ import { InvoiceDto } from '../../../invoice/dto/invoice.dto';
7
+ import { LineItemDto } from '../../../invoice/dto/lineItem.dto';
6
8
  import { PaymentDto } from '../../../payment/dto/payment.dto';
7
9
  import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
8
10
  import { RefundResult } from '../../../payment/types/interfaces/refund.interfaces';
9
11
  import { Product } from '../../../product-pricing/entities/Product';
10
12
  import { Answer } from '../../../questionnaires/entities/Answer';
11
- import { FinancialStepEnum, PlatformsEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../../../services/enums.service';
13
+ import { FinancialStepEnum, PlatformsEnum } from '../../../services/enums.service';
12
14
  import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
13
15
  import { AddonDto } from '../../dto/addon.dto';
14
- import { InvoiceDto } from '../../dto/invoice.dto';
15
- import { LineItemDto } from '../../dto/lineItem.dto';
16
16
  import { ReservationDto } from '../../dto/reservation.dto';
17
17
  import { SegmentDto } from '../../dto/segment.dto';
18
18
  import { SeriesDto } from '../../dto/series.dto';
19
19
  import { SlotDto, TimeSlotDto } from '../../dto/slot.dto';
20
- import { Addon } from '../../entities/Addon';
21
- import { Reservation } from '../../entities/Reservations';
22
- import { Segment } from '../../entities/Segments';
23
- import { Series } from '../../entities/Series';
24
- import { Slot } from '../../entities/Slots';
20
+ import { Addon } from '../../entities/addon.entity';
21
+ import { Reservation } from '../../entities/reservation.entity';
22
+ import { Segment } from '../../entities/segment.entity';
23
+ import { Series } from '../../entities/series.entity';
24
+ import { Slot } from '../../entities/slot.entity';
25
+ import { ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
25
26
  export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
26
27
  export type TResource = Reservation | Segment | Series | Slot | Addon;
27
28
  export type TSlotAndType = {
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAsEA,MAAa,YAAY;CAGxB;AAHD,oCAGC"}
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAiEA,MAAa,YAAY;CAGxB;AAHD,oCAGC"}
@@ -0,0 +1,51 @@
1
+ import { ResourceNameTypeEnum } from '../../../services/enums.service';
2
+ import { SlotTypeEnum } from '../enums/reservation.enums';
3
+ export interface IReservationCreatorData {
4
+ type: ResourceNameTypeEnum;
5
+ id: number;
6
+ organizationId: number;
7
+ startDate: string;
8
+ endDate: string;
9
+ sportId: number;
10
+ }
11
+ export interface IRawSlotInSchedule {
12
+ startDate: string;
13
+ endDate: string;
14
+ startTime: string;
15
+ endTime: string;
16
+ reservationId: number;
17
+ slotTitle: string;
18
+ publicNotes: string;
19
+ spaceId: number;
20
+ creatorType: ResourceNameTypeEnum;
21
+ slotType: SlotTypeEnum;
22
+ slotId: number;
23
+ eventId: number;
24
+ isPrivate: boolean;
25
+ parentSlotId?: number;
26
+ }
27
+ export interface ISlotReservationData {
28
+ reservationId: number;
29
+ reservationName: string;
30
+ date: string;
31
+ startTime: string;
32
+ endTime: string;
33
+ notes: string;
34
+ spaceId: number;
35
+ isRental: boolean;
36
+ slotType: SlotTypeEnum;
37
+ slotId: number;
38
+ eventId: number;
39
+ isPrivate: boolean;
40
+ parentSlotId?: number;
41
+ }
42
+ export interface ISlotInSchedule {
43
+ facilityId: number;
44
+ facilityName: string;
45
+ spaces: ISpaceWithSlots[];
46
+ }
47
+ export interface ISpaceWithSlots {
48
+ id: number;
49
+ name: string;
50
+ slots: ISlotReservationData[];
51
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invoice.interfaces.js.map
3
+ //# sourceMappingURL=slot.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":""}
@@ -6,8 +6,8 @@ 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
8
  import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
9
- import { Addon } from '../../reservations/entities/Addon';
10
- import { Slot } from '../../reservations/entities/Slots';
9
+ import { Addon } from '../../reservations/entities/addon.entity';
10
+ import { Slot } from '../../reservations/entities/slot.entity';
11
11
  import { ActivityEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../services/enums.service';
12
12
  import { OrderByResourceEnum } from '../types/enums/resources.enums';
13
13
  import { IGetResourceByIdsOptions, IGetResourcesOptions } from '../types/interfaces/resource.interfaces';
@@ -4,8 +4,8 @@ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConne
4
4
  import { PurchasedResource } from '../../entity/PurchasedResources';
5
5
  import { Media } from '../../media/entities/Media';
6
6
  import { Product } from '../../product-pricing/entities/Product';
7
- import { Addon } from '../../reservations/entities/Addon';
8
- import { Slot } from '../../reservations/entities/Slots';
7
+ import { Addon } from '../../reservations/entities/addon.entity';
8
+ import { Slot } from '../../reservations/entities/slot.entity';
9
9
  import { ActivityEnum, AmenitiesEnum, ResourceAgesEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SportsEnum, SurfacesEnum } from '../../services/enums.service';
10
10
  import { User } from '../../user/entities/User';
11
11
  import { ResourceScheduleDto } from '../dto/resource.dto';
@@ -1,4 +1,3 @@
1
- import { PaymentStatusEnum } from '../payment/types/enums/payment.enums';
2
1
  export declare enum EntitlementTermsTypesEnum {
3
2
  QUESTION = "question",
4
3
  CITY = "city",
@@ -183,18 +182,6 @@ export declare enum RequestStatusEnum {
183
182
  ACCEPTED = 2,
184
183
  DECLINED = 3
185
184
  }
186
- export declare enum ReservationExtendedEnum {
187
- PURCHASE_ORDER = "purchase_order"
188
- }
189
- export type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
190
- export declare enum ReservationStatusEnum {
191
- PLANNED = "Planned",
192
- APPROVED = "Approved",
193
- AWAITING_ADMIN = "Awaiting Admin",
194
- AWAITING_CUSTOMER = "Awaiting Customer",
195
- REJECTED = "Rejected",
196
- CANCELED = "Canceled"
197
- }
198
185
  export declare enum PackageProductsRelationTypeEnum {
199
186
  CHILD = "child",
200
187
  UPSALE = "upsale",
@@ -418,12 +405,6 @@ export declare enum DateTimeFormatsEnum {
418
405
  API_TIME = "HH:mm:ss",
419
406
  DB_DATE = "YYYY-MM-DD"
420
407
  }
421
- export declare enum SlotTypeEnum {
422
- EXTERNAL = "external",
423
- INTERNAL = "internal",
424
- MAINTENANCE = "maintenance",
425
- CUSTOM = "custom"
426
- }
427
408
  export declare enum PlatformsEnum {
428
409
  CONSUMER = "consumer",
429
410
  CONSUMER_CHECKOUT = "consumer_checkout",
@@ -447,35 +428,6 @@ export declare enum EventStatusEnum {
447
428
  CLOSED = 5,
448
429
  DELETED = 6
449
430
  }
450
- export declare enum ReservationTypeEnum {
451
- RENTAL = "rental",
452
- PROGRAM = "program",
453
- MAINTENANCE = "maintenance",
454
- CUSTOM = "custom",
455
- INTERNAL = "internal"
456
- }
457
- export declare enum SlotDurationTypeEnum {
458
- DATES = "dates",
459
- ALL_DAY = "all day",
460
- DURATION = "duration"
461
- }
462
- export declare enum DurationUnitTypesEnum {
463
- MINUTES = "minutes",
464
- HOURS = "hours"
465
- }
466
- export declare enum FrequencyEnum {
467
- NONE = "none",
468
- WEEKLY = "weekly",
469
- DAILY = "daily",
470
- MONTHLY = "monthly",
471
- YEARLY = "yearly"
472
- }
473
- export declare enum MaintenanceTimingEnum {
474
- BEFORE = 1,
475
- AFTER = 2,
476
- AT_THE_BEGINING = 3,
477
- AT_THE_END = 4
478
- }
479
431
  export declare enum CreatorTypeEnum {
480
432
  SPACE = "space",
481
433
  PROGRAM_SEASON = "program_season",
@@ -495,11 +447,6 @@ export declare enum BondDayOfWeekEnum {
495
447
  SATURDAY = 7,
496
448
  SUNDAY = 8
497
449
  }
498
- export declare enum ReservationMigrationStatusEnum {
499
- NEW = "new",
500
- NO = "no",
501
- YES = "yes"
502
- }
503
450
  export declare enum ProductPackageLevelEnum {
504
451
  HOUR = "hour",
505
452
  SLOT = "slot",