@bondsports/types 2.2.71 → 2.2.72

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) 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/programs-seasons/dto/program-seasons.dto.d.ts +3 -2
  24. package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
  25. package/dist/types/reservations/dto/index.d.ts +0 -2
  26. package/dist/types/reservations/dto/index.js +0 -2
  27. package/dist/types/reservations/dto/index.js.map +1 -1
  28. package/dist/types/reservations/dto/maintenance.dto.d.ts +1 -1
  29. package/dist/types/reservations/dto/reservation.dto.d.ts +26 -4
  30. package/dist/types/reservations/dto/reservation.dto.js +17 -1
  31. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  32. package/dist/types/reservations/dto/series.dto.d.ts +1 -1
  33. package/dist/types/reservations/dto/slot.dto.d.ts +1 -1
  34. package/dist/types/reservations/entities/{Addon.d.ts → addon.entity.d.ts} +6 -1
  35. package/dist/types/reservations/entities/{Addon.js → addon.entity.js} +1 -1
  36. package/dist/types/reservations/entities/addon.entity.js.map +1 -0
  37. package/dist/types/reservations/entities/index.d.ts +6 -6
  38. package/dist/types/reservations/entities/index.js +6 -6
  39. package/dist/types/reservations/entities/index.js.map +1 -1
  40. package/dist/types/reservations/entities/{Reservations.d.ts → reservation.entity.d.ts} +14 -13
  41. package/dist/types/reservations/entities/{Reservations.js → reservation.entity.js} +1 -1
  42. package/dist/types/reservations/entities/reservation.entity.js.map +1 -0
  43. package/dist/types/reservations/entities/{Segments.d.ts → segment.entity.d.ts} +4 -4
  44. package/dist/types/reservations/entities/{Segments.js → segment.entity.js} +1 -1
  45. package/dist/types/reservations/entities/segment.entity.js.map +1 -0
  46. package/dist/types/reservations/entities/{Series.d.ts → series.entity.d.ts} +6 -5
  47. package/dist/types/reservations/entities/{Series.js → series.entity.js} +1 -1
  48. package/dist/types/reservations/entities/series.entity.js.map +1 -0
  49. package/dist/types/reservations/entities/slot-history.entity.d.ts +6 -0
  50. package/dist/types/reservations/entities/slot-history.entity.js +8 -0
  51. package/dist/types/reservations/entities/slot-history.entity.js.map +1 -0
  52. package/dist/types/reservations/entities/{Slots.d.ts → slot.entity.d.ts} +13 -13
  53. package/dist/types/reservations/entities/{Slots.js → slot.entity.js} +1 -1
  54. package/dist/types/reservations/entities/slot.entity.js.map +1 -0
  55. package/dist/types/reservations/types/consts/reservation.consts.js +7 -6
  56. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
  57. package/dist/types/reservations/types/enums/reservation.enums.d.ts +58 -0
  58. package/dist/types/reservations/types/enums/reservation.enums.js +67 -1
  59. package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
  60. package/dist/types/reservations/types/interfaces/index.d.ts +1 -1
  61. package/dist/types/reservations/types/interfaces/index.js +1 -1
  62. package/dist/types/reservations/types/interfaces/index.js.map +1 -1
  63. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +9 -8
  64. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  65. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +51 -0
  66. package/dist/types/reservations/types/interfaces/{invoice.interfaces.js → slot.interfaces.js} +1 -1
  67. package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -0
  68. package/dist/types/resources/dto/resource.dto.d.ts +2 -2
  69. package/dist/types/resources/entities/Resource.d.ts +2 -2
  70. package/dist/types/services/enums.service.d.ts +0 -53
  71. package/dist/types/services/enums.service.js +2 -64
  72. package/dist/types/services/enums.service.js.map +1 -1
  73. package/dist/types/services/interfaces.service.d.ts +4 -53
  74. package/dist/types/services/interfaces.service.js.map +1 -1
  75. package/package.json +1 -1
  76. package/dist/types/entity/Reservations.d.ts +0 -35
  77. package/dist/types/entity/Reservations.js +0 -8
  78. package/dist/types/entity/Reservations.js.map +0 -1
  79. package/dist/types/entity/SlotHistory.d.ts +0 -53
  80. package/dist/types/entity/SlotHistory.js +0 -8
  81. package/dist/types/entity/SlotHistory.js.map +0 -1
  82. package/dist/types/invoice/dto/publishInvoice.dto.js.map +0 -1
  83. package/dist/types/reservations/dto/invoice.dto.d.ts +0 -50
  84. package/dist/types/reservations/dto/invoice.dto.js +0 -31
  85. package/dist/types/reservations/dto/invoice.dto.js.map +0 -1
  86. package/dist/types/reservations/dto/lineItem.dto.js.map +0 -1
  87. package/dist/types/reservations/entities/Addon.js.map +0 -1
  88. package/dist/types/reservations/entities/InvoicedSlots.d.ts +0 -7
  89. package/dist/types/reservations/entities/InvoicedSlots.js +0 -8
  90. package/dist/types/reservations/entities/InvoicedSlots.js.map +0 -1
  91. package/dist/types/reservations/entities/Reservations.js.map +0 -1
  92. package/dist/types/reservations/entities/Segments.js.map +0 -1
  93. package/dist/types/reservations/entities/Series.js.map +0 -1
  94. package/dist/types/reservations/entities/Slots.js.map +0 -1
  95. package/dist/types/reservations/types/interfaces/invoice.interfaces.d.ts +0 -28
  96. package/dist/types/reservations/types/interfaces/invoice.interfaces.js.map +0 -1
  97. /package/dist/types/{reservations → invoice}/dto/lineItem.dto.js +0 -0
  98. /package/dist/types/invoice/dto/{publishInvoice.dto.d.ts → publish-invoice.dto.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { PaymentStatusEnum } from '../payment/types/enums/payment.enums';
2
2
  import { MaintenanceDto } from '../reservations/dto/maintenance.dto';
3
- import { Slot } from '../reservations/entities/Slots';
3
+ import { Slot } from '../reservations/entities/slot.entity';
4
4
  import { EntryStatusEnum, ProgramTypesEnum, RegistrationValidationStatusEnum } from '../services/enums.service';
5
5
  import { IBasicSpaceAndSlotCreator } from '../services/interfaces.service';
6
6
  import { SimpleResourceDto } from '../resources/dto/resource.dto';
@@ -1,5 +1,5 @@
1
1
  import { CustomerFamilyStatusEnum } from '../customers/types/enums';
2
- import { Reservation } from '../reservations/entities/Reservations';
2
+ import { Reservation } from '../reservations/entities/reservation.entity';
3
3
  import { CustomerTypeEnum, ResourceNameTypeEnum } from '../services/enums.service';
4
4
  import { MembershipStatus } from '../services/interfaces.service';
5
5
  import { User } from '../user/entities/User';
@@ -5,7 +5,7 @@ import { EventAttendee } from './EventAttendees';
5
5
  import { ProductResource } from './ProductResource';
6
6
  import { ProgramSeason } from '../programs-seasons/entities/ProgramSeason';
7
7
  import { ActivityTimes } from './ActivityTimes';
8
- import { Slot } from '../reservations/entities/Slots';
8
+ import { Slot } from '../reservations/entities/slot.entity';
9
9
  import { PurchasedResource } from './PurchasedResources';
10
10
  import { Program } from '../programs/entities/Program';
11
11
  import { ColorCode } from './ColorCode';
@@ -4,9 +4,9 @@ import { ItemDiscountDto } from '../payment/dto/discount.dto';
4
4
  import { FutureInstallment } from '../payment/entities/FutureInstallment';
5
5
  import { Payment } from '../payment/entities/Payment';
6
6
  import { PaymentMethodTypeEnum, PaymentStatusEnum } from '../payment/types/enums/payment.enums';
7
- import { Addon } from '../reservations/entities/Addon';
8
- import { Reservation } from '../reservations/entities/Reservations';
9
- import { Slot } from '../reservations/entities/Slots';
7
+ import { Addon } from '../reservations/entities/addon.entity';
8
+ import { Reservation } from '../reservations/entities/reservation.entity';
9
+ import { Slot } from '../reservations/entities/slot.entity';
10
10
  import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../services/enums.service';
11
11
  import { User } from '../user/entities/User';
12
12
  import { BondBaseEntity } from './BondBaseEntity';
@@ -1,7 +1,7 @@
1
1
  import { PaymentStatusEnum } from '../payment/types/enums/payment.enums';
2
2
  import { ProgramSeason } from '../programs-seasons/entities/ProgramSeason';
3
- import { Addon } from '../reservations/entities/Addon';
4
- import { Slot } from '../reservations/entities/Slots';
3
+ import { Addon } from '../reservations/entities/addon.entity';
4
+ import { Slot } from '../reservations/entities/slot.entity';
5
5
  import { CurrencyEnum } from '../services/enums.service';
6
6
  import { User } from '../user/entities/User';
7
7
  import { EventAttendee } from './EventAttendees';
@@ -48,14 +48,12 @@ export * from './ProductsReservedForCustomers';
48
48
  export * from './ProductsUsers';
49
49
  export * from './PurchasedResources';
50
50
  export * from './RegistrationConstraint';
51
- export * from './Reservations';
52
51
  export * from './ResourceGroup';
53
52
  export * from './School';
54
53
  export * from './SeasonAttendees';
55
54
  export * from './SeasonDivisions';
56
55
  export * from './SeasonPool';
57
56
  export * from './SeasonTeam';
58
- export * from './SlotHistory';
59
57
  export * from './Station';
60
58
  export * from './StationToSubcategory';
61
59
  export * from './Subcategory';
@@ -64,14 +64,12 @@ __exportStar(require("./ProductsReservedForCustomers"), exports);
64
64
  __exportStar(require("./ProductsUsers"), exports);
65
65
  __exportStar(require("./PurchasedResources"), exports);
66
66
  __exportStar(require("./RegistrationConstraint"), exports);
67
- __exportStar(require("./Reservations"), exports);
68
67
  __exportStar(require("./ResourceGroup"), exports);
69
68
  __exportStar(require("./School"), exports);
70
69
  __exportStar(require("./SeasonAttendees"), exports);
71
70
  __exportStar(require("./SeasonDivisions"), exports);
72
71
  __exportStar(require("./SeasonPool"), exports);
73
72
  __exportStar(require("./SeasonTeam"), exports);
74
- __exportStar(require("./SlotHistory"), exports);
75
73
  __exportStar(require("./Station"), exports);
76
74
  __exportStar(require("./StationToSubcategory"), exports);
77
75
  __exportStar(require("./Subcategory"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,8DAA4C;AAC5C,kDAAgC;AAChC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,6CAA2B;AAC3B,uDAAqC;AACrC,kDAAgC;AAChC,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,+CAA6B;AAC7B,qDAAmC;AACnC,8DAA4C;AAC5C,gDAA8B;AAC9B,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,2DAAyC;AACzC,iDAA+B;AAC/B,kDAAgC;AAChC,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,gDAA8B;AAC9B,4CAA0B;AAC1B,yDAAuC;AACvC,gDAA8B;AAC9B,yCAAuB;AACvB,+CAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,iDAA+B;AAC/B,kDAAgC;AAChC,6CAA2B;AAC3B,qEAAmD;AACnD,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,8DAA4C;AAC5C,kDAAgC;AAChC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,6CAA2B;AAC3B,uDAAqC;AACrC,kDAAgC;AAChC,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,+CAA6B;AAC7B,qDAAmC;AACnC,8DAA4C;AAC5C,gDAA8B;AAC9B,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,2DAAyC;AACzC,kDAAgC;AAChC,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,yDAAuC;AACvC,gDAA8B;AAC9B,yCAAuB;AACvB,+CAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,iDAA+B;AAC/B,kDAAgC;AAChC,6CAA2B;AAC3B,qEAAmD;AACnD,wDAAsC"}
@@ -1,2 +1,3 @@
1
1
  export * from './invoice.dto';
2
- export * from './publishInvoice.dto';
2
+ export * from './lineItem.dto';
3
+ export * from './publish-invoice.dto';
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./invoice.dto"), exports);
18
- __exportStar(require("./publishInvoice.dto"), exports);
18
+ __exportStar(require("./lineItem.dto"), exports);
19
+ __exportStar(require("./publish-invoice.dto"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC"}
@@ -1,4 +1,31 @@
1
+ import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
2
+ import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../../services/enums.service';
1
3
  import { IInvoiceCart } from '../types/interfaces/invoice.interfaces';
4
+ import { LineItemDto } from './lineItem.dto';
5
+ export declare class InvoiceDto {
6
+ invoiceId?: string;
7
+ organizationId: number;
8
+ price: number;
9
+ totalTax?: number;
10
+ totalWithoutTax?: number;
11
+ status?: InvoiceStatusEnum;
12
+ lineItems: LineItemDto[];
13
+ paymentStatus?: PaymentStatusEnum;
14
+ currency: CurrencyEnum;
15
+ creatingUserId?: number;
16
+ platform?: PlatformsEnum;
17
+ }
18
+ export declare class BaseInvoiceDto {
19
+ platform: PlatformsEnum;
20
+ shiftId?: number;
21
+ }
22
+ export declare class UpdateInvoiceOptionsDto {
23
+ basicInfoData?: BaseInvoiceDto;
24
+ addToInvoiceId?: number;
25
+ }
26
+ export declare class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
27
+ isInvoiced: boolean;
28
+ }
2
29
  export declare class InvoiceCartDto implements IInvoiceCart {
3
30
  existingInvoiceId?: number;
4
31
  existingInvoiceToken?: string;
@@ -1,6 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvoiceCartDto = void 0;
3
+ exports.InvoiceCartDto = exports.UpdateInvoiceDto = exports.UpdateInvoiceOptionsDto = exports.BaseInvoiceDto = exports.InvoiceDto = void 0;
4
+ class InvoiceDto {
5
+ }
6
+ exports.InvoiceDto = InvoiceDto;
7
+ class BaseInvoiceDto {
8
+ }
9
+ exports.BaseInvoiceDto = BaseInvoiceDto;
10
+ class UpdateInvoiceOptionsDto {
11
+ }
12
+ exports.UpdateInvoiceOptionsDto = UpdateInvoiceOptionsDto;
13
+ class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
14
+ }
15
+ exports.UpdateInvoiceDto = UpdateInvoiceDto;
4
16
  class InvoiceCartDto {
5
17
  }
6
18
  exports.InvoiceCartDto = InvoiceCartDto;
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/invoice.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;CAM1B;AAND,wCAMC"}
1
+ {"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/invoice.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,UAAU;CAuBtB;AAvBD,gCAuBC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,gBAAiB,SAAQ,uBAAuB;CAE5D;AAFD,4CAEC;AAED,MAAa,cAAc;CAM1B;AAND,wCAMC"}
@@ -1,7 +1,7 @@
1
1
  import { Product } from '../../product-pricing/entities/Product';
2
2
  import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
3
3
  import { CurrencyEnum, LineItemsStatusEnum, ProductTypesEnum } from '../../services/enums.service';
4
- import { PurchasedResourceDto } from './purcased-resource.dto';
4
+ import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
5
5
  export declare class LineItemDto {
6
6
  id?: number;
7
7
  invoiceId?: number;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lineItem.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/lineItem.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;CAmDvB;AAnDD,kCAmDC"}
@@ -10,4 +10,4 @@ exports.LandingPageUrlDto = LandingPageUrlDto;
10
10
  class PublishInvoiceResponseDto {
11
11
  }
12
12
  exports.PublishInvoiceResponseDto = PublishInvoiceResponseDto;
13
- //# sourceMappingURL=publishInvoice.dto.js.map
13
+ //# sourceMappingURL=publish-invoice.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/publish-invoice.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC"}
@@ -3,7 +3,10 @@ import { Invoice } from '../../../entity/Invoice';
3
3
  import { LineItems } from '../../../entity/LineItems';
4
4
  import { UserPaymentMethod } from '../../../entity/user-payment-method';
5
5
  import { PurchaseProductDto } from '../../../purchase/dto/purchase.dto';
6
+ import { ProductPricesDto } from '../../../reservations/dto/reservation.dto';
6
7
  import { InvoiceStatusEnum } from '../../../services/enums.service';
8
+ import { InvoiceDto } from '../../dto/invoice.dto';
9
+ import { LineItemDto } from '../../dto/lineItem.dto';
7
10
  export interface InvoiceAndRelatedMethod {
8
11
  invoice: Invoice;
9
12
  paymentMethod?: DisplayedMethodFields;
@@ -27,3 +30,27 @@ export interface IInvoiceCart {
27
30
  export interface IInvoiceCartOptions extends IValidateCartOptions {
28
31
  purchasedProductMap?: Map<PurchaseProductDto, LineItems>;
29
32
  }
33
+ export interface IGeneratedLineItems {
34
+ lineItems: LineItemDto[];
35
+ childItemToParent: Map<LineItemDto, LineItemDto>;
36
+ }
37
+ export interface IOverridePricingResult {
38
+ overrideProductsPricing: IOverrideProductsPricing;
39
+ totalPrice?: number;
40
+ }
41
+ export interface IOverrideLineItemPrice {
42
+ invoice: InvoiceDto;
43
+ lineItem: LineItemDto;
44
+ ratio: number;
45
+ overrideProductsPricing: IOverrideProductsPricing;
46
+ isLastLineItem?: boolean;
47
+ priceLeft?: number;
48
+ }
49
+ export interface IOverrideProductsPricing {
50
+ [productInfo: string]: ProductPricesDto;
51
+ }
52
+ export interface IInvoiceReservationOptions {
53
+ invoice?: Invoice;
54
+ skipUpdateReservationPrice?: boolean;
55
+ skipUpdatePaymentStatuses?: boolean;
56
+ }
@@ -3,7 +3,8 @@ import { Customer } from '../../../entity/Customer';
3
3
  import { LineItems } from '../../../entity/LineItems';
4
4
  import { FeeDto } from '../../../fee/dto/fee.dto';
5
5
  import { IPurchasePayment } from '../../../purchase/types/interfaces/purchase.interfaces';
6
- import { PlatformsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum } from '../../../services/enums.service';
6
+ import { ReservationPaymentStatusEnum, ReservationStatusEnum } from '../../../reservations/types/enums/reservation.enums';
7
+ import { PlatformsEnum } from '../../../services/enums.service';
7
8
  import { CreateNoteDto } from '../../dto/payment.dto';
8
9
  import { Payment } from '../../entities/Payment';
9
10
  import { PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../enums/payment.enums';
@@ -1 +1 @@
1
- {"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;AAUA,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAgBD,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
1
+ {"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;AAcA,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAgBD,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
@@ -1,13 +1,14 @@
1
+ import { ActivityTimesDto } from '../../dto/activityTimes.dto';
1
2
  import { IdAndNameDto, PaginationMetaDto, PaginationQuery } from '../../dto/general.dto';
2
3
  import { Event } from '../../entity/Events';
3
4
  import { BaseNotificationDto } from '../../notifications/dto/backoffice.notify.dto';
4
5
  import { ByOrganizationIdDto, OptionalOrganizationIdDto } from '../../organization/dto/organization.dto';
5
6
  import { ByProgramDto, UpdateProgramOptionsDto } from '../../programs/dto/program.dto';
6
7
  import { MaintenanceDto } from '../../reservations/dto/maintenance.dto';
8
+ import { SlotTypeEnum } from '../../reservations/types/enums/reservation.enums';
7
9
  import { ITimeSlotConflicts } from '../../reservations/types/interfaces/reservation.interfaces';
8
10
  import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
9
- import { GenderEnum, LevelOfPlayEnum, OrderByEnum, ProgramSeasonTypesEnum, ProgramTypesEnum, PublishingStatusEnum, RegistrationConstraintPeriodTypeEnum, ResourceNameTypeEnum, SlotTypeEnum, SportsEnum } from '../../services/enums.service';
10
- import { ActivityTimesDto } from '../../dto/activityTimes.dto';
11
+ import { GenderEnum, LevelOfPlayEnum, OrderByEnum, ProgramSeasonTypesEnum, ProgramTypesEnum, PublishingStatusEnum, RegistrationConstraintPeriodTypeEnum, ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
11
12
  export declare class FindSessionsFiltersDto {
12
13
  status?: PublishingStatusEnum;
13
14
  isFullFetch?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"names":[],"mappings":";;;AACA,uDAAyF;AAEzF,yFAAoF;AACpF,8EAAyG;AACzG,gEAAuF;AAmBvF,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,WAAY,SAAQ,0BAAY;CAE5C;AAFD,kCAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,wBAAyB,SAAQ,4CAAyB;CAEtE;AAFD,4DAEC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AACD,MAAa,wBAAyB,SAAQ,6BAAe;CAU5D;AAVD,4DAUC;AAED,MAAa,qCAAsC,SAAQ,sCAAmB;CAE7E;AAFD,sFAEC;AAED,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,qBAAsB,SAAQ,wBAAwB;CAElE;AAFD,sDAEC;AAED,MAAa,6BAA8B,SAAQ,6BAAe;CAMjE;AAND,sEAMC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,oBAAoB;CA8EhC;AA9ED,oDA8EC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAE/D;AAFD,wDAEC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAE/D;AAFD,wDAEC;AAED,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AAED,MAAa,6BAA6B;CAwDzC;AAxDD,sEAwDC;AAED,MAAa,yBAA0B,SAAQ,0BAAY;CAAG;AAA9D,8DAA8D;AAE9D,MAAa,gBAAiB,SAAQ,0BAAY;CAUjD;AAVD,4CAUC;AAED,MAAa,oBAAoB;CAWhC;AAXD,oDAWC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,+BAA+B;CAO3C;AAPD,0EAOC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,eAAe;CAK3B;AALD,0CAKC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,oBAAoB;CAShC;AATD,oDASC;AAED,MAAa,uBAAwB,SAAQ,oBAAoB;CAUhE;AAVD,0DAUC;AAED,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,6BAA8B,SAAQ,qCAAuB;CAAG;AAA7E,sEAA6E;AAE7E,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED;;GAEG;AACH,MAAa,uBAAwB,SAAQ,2CAAmB;CAY/D;AAZD,0DAYC;AAED;;GAEG;AACH,MAAa,yBAA0B,SAAQ,2CAAmB;CAajE;AAbD,8DAaC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAMrE;AAND,8EAMC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC"}
1
+ {"version":3,"file":"program-seasons.dto.js","sourceRoot":"","sources":["../../../../src/types/programs-seasons/dto/program-seasons.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAyF;AAEzF,yFAAoF;AACpF,8EAAyG;AACzG,gEAAuF;AAiBvF,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,WAAY,SAAQ,0BAAY;CAE5C;AAFD,kCAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,wBAAyB,SAAQ,4CAAyB;CAEtE;AAFD,4DAEC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AACD,MAAa,wBAAyB,SAAQ,6BAAe;CAU5D;AAVD,4DAUC;AAED,MAAa,qCAAsC,SAAQ,sCAAmB;CAE7E;AAFD,sFAEC;AAED,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,qBAAsB,SAAQ,wBAAwB;CAElE;AAFD,sDAEC;AAED,MAAa,6BAA8B,SAAQ,6BAAe;CAMjE;AAND,sEAMC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,oBAAoB;CA8EhC;AA9ED,oDA8EC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAE/D;AAFD,wDAEC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAE/D;AAFD,wDAEC;AAED,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AAED,MAAa,6BAA6B;CAwDzC;AAxDD,sEAwDC;AAED,MAAa,yBAA0B,SAAQ,0BAAY;CAAG;AAA9D,8DAA8D;AAE9D,MAAa,gBAAiB,SAAQ,0BAAY;CAUjD;AAVD,4CAUC;AAED,MAAa,oBAAoB;CAWhC;AAXD,oDAWC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,+BAA+B;CAO3C;AAPD,0EAOC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,eAAe;CAK3B;AALD,0CAKC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,oBAAoB;CAShC;AATD,oDASC;AAED,MAAa,uBAAwB,SAAQ,oBAAoB;CAUhE;AAVD,0DAUC;AAED,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,6BAA8B,SAAQ,qCAAuB;CAAG;AAA7E,sEAA6E;AAE7E,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED;;GAEG;AACH,MAAa,uBAAwB,SAAQ,2CAAmB;CAY/D;AAZD,0DAYC;AAED;;GAEG;AACH,MAAa,yBAA0B,SAAQ,2CAAmB;CAajE;AAbD,8DAaC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAMrE;AAND,8EAMC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC"}
@@ -1,6 +1,4 @@
1
1
  export * from './addon.dto';
2
- export * from './invoice.dto';
3
- export * from './lineItem.dto';
4
2
  export * from './maintenance.dto';
5
3
  export * from './purcased-resource.dto';
6
4
  export * from './reservation.dto';
@@ -15,8 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./addon.dto"), exports);
18
- __exportStar(require("./invoice.dto"), exports);
19
- __exportStar(require("./lineItem.dto"), exports);
20
18
  __exportStar(require("./maintenance.dto"), exports);
21
19
  __exportStar(require("./purcased-resource.dto"), exports);
22
20
  __exportStar(require("./reservation.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,gDAA8B;AAC9B,iDAA+B;AAC/B,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,uDAAqC"}
@@ -1,4 +1,4 @@
1
- import { DurationUnitTypesEnum, MaintenanceTimingEnum } from '../../services/enums.service';
1
+ import { DurationUnitTypesEnum, MaintenanceTimingEnum } from '../types/enums/reservation.enums';
2
2
  export declare class MaintenanceDto {
3
3
  id?: number;
4
4
  title: string;
@@ -4,12 +4,14 @@ import { PaymentMethodDto, RefundAmountDto } from '../../payment/dto/refund.dto'
4
4
  import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
5
5
  import { Product } from '../../product-pricing/entities/Product';
6
6
  import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purchase.dto';
7
- import { NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, ResourceNameTypeEnum, ResourceTypeEnum, SlotTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
8
- import { Reservation } from '../entities/Reservations';
7
+ import { NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
8
+ import { Reservation } from '../entities/reservation.entity';
9
+ import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
9
10
  import { ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
10
11
  import { AddonDto } from './addon.dto';
11
- import { InvoiceDto } from './invoice.dto';
12
+ import { InvoiceDto, UpdateInvoiceDto, UpdateInvoiceOptionsDto } from '../../invoice/dto/invoice.dto';
12
13
  import { SegmentDto } from './segment.dto';
14
+ import { SeriesDto } from './series.dto';
13
15
  import { SlotDto, UpdateSlotsColorsDto } from './slot.dto';
14
16
  export declare class ProductPricesDto {
15
17
  productId: number;
@@ -27,7 +29,7 @@ export declare class ReservationDto {
27
29
  segments: SegmentDto[];
28
30
  description?: string;
29
31
  status?: ReservationStatusEnum;
30
- privacySetting?: string;
32
+ privacySetting?: PrivacySettingsEnum;
31
33
  invoiceId?: string;
32
34
  price?: number;
33
35
  paymentStatus?: ReservationPaymentStatusEnum;
@@ -184,4 +186,24 @@ export declare class ChargeReservationResultDto extends PurchaseResultDto {
184
186
  reservation: Reservation;
185
187
  debug?: any;
186
188
  }
189
+ export declare class AddSlotToSegmenResultDto {
190
+ series: SeriesDto;
191
+ slotTotalPrice: number;
192
+ addonsTotalPrice: number;
193
+ debug?: any;
194
+ }
195
+ export declare class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
196
+ reservationTotalPrice: number;
197
+ }
198
+ export declare class InvoiceReservationItemsDto extends UpdateInvoiceOptionsDto {
199
+ slotsIds?: number[];
200
+ addonsIds?: number[];
201
+ purchasingUserId?: number;
202
+ }
203
+ export declare class AddSlotsDto extends UpdateInvoiceDto {
204
+ slots: SlotDto[];
205
+ }
206
+ export declare class AddSegmentsDto extends UpdateInvoiceDto {
207
+ segments: SegmentDto[];
208
+ }
187
209
  export {};
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationInvoiceDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
3
+ exports.AddSegmentsDto = exports.AddSlotsDto = exports.InvoiceReservationItemsDto = exports.SaveSlotToSegmenResultDto = exports.AddSlotToSegmenResultDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationInvoiceDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
6
6
  const purchase_dto_1 = require("../../purchase/dto/purchase.dto");
7
+ const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
7
8
  const MAX_SLOTS_REQUEST_LIMIT = 5000;
8
9
  class ProductPricesDto {
9
10
  }
@@ -103,4 +104,19 @@ exports.UpdateCustomerSlotsColorsDto = UpdateCustomerSlotsColorsDto;
103
104
  class ChargeReservationResultDto extends purchase_dto_1.PurchaseResultDto {
104
105
  }
105
106
  exports.ChargeReservationResultDto = ChargeReservationResultDto;
107
+ class AddSlotToSegmenResultDto {
108
+ }
109
+ exports.AddSlotToSegmenResultDto = AddSlotToSegmenResultDto;
110
+ class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
111
+ }
112
+ exports.SaveSlotToSegmenResultDto = SaveSlotToSegmenResultDto;
113
+ class InvoiceReservationItemsDto extends invoice_dto_1.UpdateInvoiceOptionsDto {
114
+ }
115
+ exports.InvoiceReservationItemsDto = InvoiceReservationItemsDto;
116
+ class AddSlotsDto extends invoice_dto_1.UpdateInvoiceDto {
117
+ }
118
+ exports.AddSlotsDto = AddSlotsDto;
119
+ class AddSegmentsDto extends invoice_dto_1.UpdateInvoiceDto {
120
+ }
121
+ exports.AddSegmentsDto = AddSegmentsDto;
106
122
  //# sourceMappingURL=reservation.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAI9E,kEAAwF;AAuBxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,cAAc;CAqD1B;AArDD,wCAqDC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGAYC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAUtE;AAVD,gFAUC;AAED,MAAa,+BAA+B;IAA5C;QAKC,UAAK,GAAW,uBAAuB,CAAC;IAqBzC,CAAC;CAAA;AA1BD,0EA0BC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,iBAAkB,SAAQ,oBAAoB;CAE1D;AAFD,8CAEC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAEtD;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,oBAAoB;CAEnE;AAFD,gEAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,YAAa,SAAQ,cAAc;CAE/C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AACD,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,0BAA2B,SAAQ,gCAAiB;CAIhE;AAJD,gEAIC"}
1
+ {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAI9E,kEAAwF;AAsBxF,+DAAsG;AAKtG,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,cAAc;CAqD1B;AArDD,wCAqDC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGAYC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAUtE;AAVD,gFAUC;AAED,MAAa,+BAA+B;IAA5C;QAKC,UAAK,GAAW,uBAAuB,CAAC;IAqBzC,CAAC;CAAA;AA1BD,0EA0BC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,iBAAkB,SAAQ,oBAAoB;CAE1D;AAFD,8CAEC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAEtD;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,oBAAoB;CAEnE;AAFD,gEAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,YAAa,SAAQ,cAAc;CAE/C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AACD,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,0BAA2B,SAAQ,gCAAiB;CAIhE;AAJD,gEAIC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AACD,MAAa,yBAA0B,SAAQ,wBAAwB;CAEtE;AAFD,8DAEC;AAED,MAAa,0BAA2B,SAAQ,qCAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,WAAY,SAAQ,8BAAgB;CAEhD;AAFD,kCAEC;AAED,MAAa,cAAe,SAAQ,8BAAgB;CAEnD;AAFD,wCAEC"}
@@ -1,4 +1,4 @@
1
- import { DurationUnitTypesEnum, FrequencyEnum, SlotDurationTypeEnum } from '../../services/enums.service';
1
+ import { DurationUnitTypesEnum, FrequencyEnum, SlotDurationTypeEnum } from '../types/enums/reservation.enums';
2
2
  import { MaintenanceDto } from './maintenance.dto';
3
3
  import { SlotDto } from './slot.dto';
4
4
  export declare class SeriesDto {
@@ -1,5 +1,5 @@
1
1
  import { Product } from '../../product-pricing/entities/Product';
2
- import { DurationUnitTypesEnum, MaintenanceTimingEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotDurationTypeEnum, SlotTypeEnum } from '../../services/enums.service';
2
+ import { DurationUnitTypesEnum, MaintenanceTimingEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotDurationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
3
3
  import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
4
4
  import { AddonDto } from './addon.dto';
5
5
  import { MaintenanceDto } from './maintenance.dto';
@@ -3,7 +3,10 @@ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConne
3
3
  import { ProductsUsers } from '../../entity/ProductsUsers';
4
4
  import { Product } from '../../product-pricing/entities/Product';
5
5
  import { Resource } from '../../resources/entities/Resource';
6
- import { AddonParentTypeEnum, ProductPackageLevelEnum, ReservationPaymentStatusEnum, ReservationStatusEnum } from '../../services/enums.service';
6
+ import { AddonParentTypeEnum, ProductPackageLevelEnum } from '../../services/enums.service';
7
+ import { ReservationPaymentStatusEnum, ReservationStatusEnum } from '../types/enums/reservation.enums';
8
+ import { Reservation } from './reservation.entity';
9
+ import { Slot } from './slot.entity';
7
10
  export declare class Addon extends OrganizationConnectionBaseEntity {
8
11
  deletedAt?: Date;
9
12
  parentId: number;
@@ -24,4 +27,6 @@ export declare class Addon extends OrganizationConnectionBaseEntity {
24
27
  productUser?: ProductsUsers;
25
28
  previousProductUsersIds?: number[];
26
29
  previousProductUsers?: ProductsUsers[];
30
+ reservation?: Reservation;
31
+ slot?: Slot;
27
32
  }
@@ -5,4 +5,4 @@ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationCon
5
5
  class Addon extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
6
  }
7
7
  exports.Addon = Addon;
8
- //# sourceMappingURL=Addon.js.map
8
+ //# sourceMappingURL=addon.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addon.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/addon.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAUjG,MAAa,KAAM,SAAQ,mEAAgC;CA2C1D;AA3CD,sBA2CC"}
@@ -1,6 +1,6 @@
1
- export * from './Addon';
2
- export * from './InvoicedSlots';
3
- export * from './Reservations';
4
- export * from './Segments';
5
- export * from './Series';
6
- export * from './Slots';
1
+ export * from './addon.entity';
2
+ export * from './reservation.entity';
3
+ export * from './segment.entity';
4
+ export * from './series.entity';
5
+ export * from './slot-history.entity';
6
+ export * from './slot.entity';
@@ -14,10 +14,10 @@ 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("./Addon"), exports);
18
- __exportStar(require("./InvoicedSlots"), exports);
19
- __exportStar(require("./Reservations"), exports);
20
- __exportStar(require("./Segments"), exports);
21
- __exportStar(require("./Series"), exports);
22
- __exportStar(require("./Slots"), exports);
17
+ __exportStar(require("./addon.entity"), exports);
18
+ __exportStar(require("./reservation.entity"), exports);
19
+ __exportStar(require("./segment.entity"), exports);
20
+ __exportStar(require("./series.entity"), exports);
21
+ __exportStar(require("./slot-history.entity"), exports);
22
+ __exportStar(require("./slot.entity"), exports);
23
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,mDAAiC;AACjC,kDAAgC;AAChC,wDAAsC;AACtC,gDAA8B"}
@@ -1,40 +1,41 @@
1
1
  import { Customer } from '../../entity/Customer';
2
2
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
- import { ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, ResourceNameTypeEnum } from '../../services/enums.service';
4
- import { Addon } from './Addon';
5
- import { Segment } from './Segments';
6
- import { Slot } from './Slots';
3
+ import { ResourceNameTypeEnum } from '../../services/enums.service';
4
+ import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum } from '../types/enums/reservation.enums';
5
+ import { Addon } from './addon.entity';
6
+ import { Segment } from './segment.entity';
7
+ import { Slot } from './slot.entity';
7
8
  export declare class Reservation extends OrganizationConnectionBaseEntity {
8
9
  name?: string;
9
10
  description?: string;
10
11
  approvalStatus?: ReservationStatusEnum;
11
- privacySetting?: string;
12
+ privacySetting?: PrivacySettingsEnum;
12
13
  reservationType?: ReservationTypeEnum;
13
- invoiceId?: string;
14
14
  customerId?: number;
15
15
  customer?: Customer;
16
16
  price?: number;
17
17
  paymentStatus?: ReservationPaymentStatusEnum;
18
- startTime?: string;
19
- startDate?: Date;
20
- endDate?: Date;
21
18
  creatorId?: number;
22
19
  creatorType?: ResourceNameTypeEnum;
23
20
  userCreatorId?: number;
24
- sportType?: number;
25
21
  importedId?: string;
26
22
  deletedAt?: Date;
27
23
  publicNotes?: string;
28
24
  privateNotes?: string;
29
25
  forms?: number[] | null;
30
26
  answerTitleIds?: number[] | null;
31
- segments?: Segment[];
32
- migrationStatus?: string;
33
- addons: Addon[];
34
27
  overrideProductsPrice: {
35
28
  productId: number;
36
29
  price: number;
37
30
  }[];
38
31
  targetGlobalPrice?: number;
32
+ segments?: Segment[];
33
+ addons: Addon[];
39
34
  slots: Slot[];
35
+ invoiceId?: string;
36
+ startTime?: string;
37
+ startDate?: Date;
38
+ endDate?: Date;
39
+ sportType?: number;
40
+ migrationStatus?: string;
40
41
  }
@@ -5,4 +5,4 @@ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationCon
5
5
  class Reservation extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
6
  }
7
7
  exports.Reservation = Reservation;
8
- //# sourceMappingURL=Reservations.js.map
8
+ //# sourceMappingURL=reservation.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservation.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/reservation.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAcjG,MAAa,WAAY,SAAQ,mEAAgC;CAgEhE;AAhED,kCAgEC"}
@@ -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"}