@bondsports/types 2.1.72 → 2.1.74

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +4 -1
  3. package/dist/types/dto/general.dto.d.ts +2 -1
  4. package/dist/types/dto/general.dto.js.map +1 -1
  5. package/dist/types/entity/SlotHistory.d.ts +2 -2
  6. package/dist/types/entity/user-payment-method.d.ts +1 -0
  7. package/dist/types/entity/user-payment-method.js.map +1 -1
  8. package/dist/types/import/dto/user-payment-method.dto.d.ts +1 -0
  9. package/dist/types/import/dto/user-payment-method.dto.js.map +1 -1
  10. package/dist/types/index.d.ts +0 -1
  11. package/dist/types/index.js +0 -1
  12. package/dist/types/index.js.map +1 -1
  13. package/dist/types/invoice/types/consts/index.d.ts +1 -0
  14. package/dist/types/invoice/types/consts/index.js +1 -0
  15. package/dist/types/invoice/types/consts/index.js.map +1 -1
  16. package/dist/types/invoice/types/consts/invoice.interfaces.d.ts +14 -0
  17. package/dist/types/{models/interfaces/payment.js → invoice/types/consts/invoice.interfaces.js} +1 -1
  18. package/dist/types/invoice/types/consts/invoice.interfaces.js.map +1 -0
  19. package/dist/types/payment/dto/connected-resources.d.ts +13 -0
  20. package/dist/types/payment/dto/connected-resources.js +10 -0
  21. package/dist/types/payment/dto/connected-resources.js.map +1 -0
  22. package/dist/types/payment/dto/index.d.ts +1 -0
  23. package/dist/types/payment/dto/index.js +1 -0
  24. package/dist/types/payment/dto/index.js.map +1 -1
  25. package/dist/types/payment/dto/payment-method.dto.d.ts +25 -0
  26. package/dist/types/payment/dto/payment-method.dto.js +11 -1
  27. package/dist/types/payment/dto/payment-method.dto.js.map +1 -1
  28. package/dist/types/payment/types/enums/connected-resources.enums.d.ts +4 -0
  29. package/dist/types/payment/types/enums/connected-resources.enums.js +9 -0
  30. package/dist/types/payment/types/enums/connected-resources.enums.js.map +1 -0
  31. package/dist/types/payment/types/enums/index.d.ts +1 -0
  32. package/dist/types/payment/types/enums/index.js +1 -0
  33. package/dist/types/payment/types/enums/index.js.map +1 -1
  34. package/dist/types/payment/types/interfaces/connected-resources.interfaces.d.ts +2 -0
  35. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js +3 -0
  36. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js.map +1 -0
  37. package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +5 -0
  38. package/dist/types/payment/types/interfaces/discount.interfaces.js.map +1 -1
  39. package/dist/types/payment/types/interfaces/index.d.ts +1 -0
  40. package/dist/types/payment/types/interfaces/index.js +1 -0
  41. package/dist/types/payment/types/interfaces/index.js.map +1 -1
  42. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +13 -1
  43. package/dist/types/payment/types/interfaces/void.interfaces.d.ts +1 -1
  44. package/dist/types/pricing/dto/pricing.dto.d.ts +0 -4
  45. package/dist/types/pricing/dto/pricing.dto.js.map +1 -1
  46. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +22 -1
  47. package/dist/types/product-pricing/dto/product-pricing.dto.js +7 -1
  48. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  49. package/dist/types/product-pricing/dto/product.dto.d.ts +5 -1
  50. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  51. package/dist/types/product-pricing/dto/rental-product.dto.d.ts +12 -3
  52. package/dist/types/product-pricing/dto/rental-product.dto.js +7 -1
  53. package/dist/types/product-pricing/dto/rental-product.dto.js.map +1 -1
  54. package/dist/types/product-pricing/entities/Product.d.ts +2 -0
  55. package/dist/types/product-pricing/entities/Product.js.map +1 -1
  56. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  57. package/dist/types/{models/interfaces → product-pricing/types/consts}/index.js +1 -2
  58. package/dist/types/product-pricing/types/consts/index.js.map +1 -0
  59. package/dist/types/product-pricing/types/consts/product-pricing.consts.d.ts +1 -0
  60. package/dist/types/product-pricing/types/consts/product-pricing.consts.js +5 -0
  61. package/dist/types/product-pricing/types/consts/product-pricing.consts.js.map +1 -0
  62. package/dist/types/product-pricing/types/enums/product.enums.d.ts +8 -0
  63. package/dist/types/product-pricing/types/enums/product.enums.js +10 -1
  64. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  65. package/dist/types/product-pricing/types/index.d.ts +1 -0
  66. package/dist/types/product-pricing/types/index.js +1 -0
  67. package/dist/types/product-pricing/types/index.js.map +1 -1
  68. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +25 -0
  69. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +2 -2
  70. package/dist/types/reservations/dto/reservation.dto.d.ts +1 -2
  71. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  72. package/dist/types/reservations/dto/slot.dto.d.ts +3 -3
  73. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  74. package/dist/types/reservations/entities/Slots.d.ts +2 -2
  75. package/dist/types/reservations/index.d.ts +1 -1
  76. package/dist/types/reservations/index.js +1 -1
  77. package/dist/types/reservations/index.js.map +1 -1
  78. package/dist/types/reservations/types/consts/index.d.ts +1 -0
  79. package/dist/types/reservations/{interfaces → types/consts}/index.js +1 -2
  80. package/dist/types/reservations/types/consts/index.js.map +1 -0
  81. package/dist/types/reservations/types/consts/reservation.consts.d.ts +5 -0
  82. package/dist/types/reservations/types/consts/reservation.consts.js +9 -0
  83. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -0
  84. package/dist/types/reservations/types/enums/index.d.ts +1 -0
  85. package/dist/types/{util/types → reservations/types/enums}/index.js +1 -1
  86. package/dist/types/reservations/types/enums/index.js.map +1 -0
  87. package/dist/types/reservations/types/enums/invoice.enums.d.ts +7 -0
  88. package/dist/types/reservations/{interfaces/invoice.js → types/enums/invoice.enums.js} +2 -3
  89. package/dist/types/reservations/types/enums/invoice.enums.js.map +1 -0
  90. package/dist/types/reservations/types/index.d.ts +3 -0
  91. package/dist/types/reservations/types/index.js +20 -0
  92. package/dist/types/reservations/types/index.js.map +1 -0
  93. package/dist/types/reservations/types/interfaces/index.d.ts +2 -0
  94. package/dist/types/reservations/types/interfaces/index.js +19 -0
  95. package/dist/types/reservations/types/interfaces/index.js.map +1 -0
  96. package/dist/types/reservations/types/interfaces/invoice.interfaces.d.ts +45 -0
  97. package/dist/types/{util/types/general.js → reservations/types/interfaces/invoice.interfaces.js} +1 -1
  98. package/dist/types/reservations/types/interfaces/invoice.interfaces.js.map +1 -0
  99. package/dist/types/reservations/{interfaces/reservation.d.ts → types/interfaces/reservation.interfaces.d.ts} +71 -71
  100. package/dist/types/reservations/types/interfaces/reservation.interfaces.js +7 -0
  101. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -0
  102. package/dist/types/resources/dto/resource.dto.d.ts +1 -0
  103. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  104. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +2 -0
  105. package/dist/types/services/interfaces.service.d.ts +2 -2
  106. package/dist/types/util/index.d.ts +1 -1
  107. package/dist/types/util/index.js +1 -1
  108. package/dist/types/util/index.js.map +1 -1
  109. package/dist/types/util/models/ExitCode.js.map +1 -0
  110. package/dist/types/{models → util/models}/index.d.ts +1 -0
  111. package/dist/types/{models → util/models}/index.js +1 -0
  112. package/dist/types/util/models/index.js.map +1 -0
  113. package/dist/types/util/models/interfaces/date-util.interfaces.js +3 -0
  114. package/dist/types/util/models/interfaces/date-util.interfaces.js.map +1 -0
  115. package/dist/types/util/models/interfaces/general.interfaces.d.ts +4 -0
  116. package/dist/types/util/models/interfaces/general.interfaces.js +3 -0
  117. package/dist/types/util/models/interfaces/general.interfaces.js.map +1 -0
  118. package/dist/types/util/models/interfaces/index.d.ts +2 -0
  119. package/dist/types/util/models/interfaces/index.js +19 -0
  120. package/dist/types/util/models/interfaces/index.js.map +1 -0
  121. package/dist/types/{models/interfaces/date-util.js → util/models/types/general.types.js} +1 -1
  122. package/dist/types/util/models/types/general.types.js.map +1 -0
  123. package/dist/types/util/models/types/index.d.ts +1 -0
  124. package/dist/types/util/models/types/index.js +18 -0
  125. package/dist/types/util/models/types/index.js.map +1 -0
  126. package/package.json +1 -1
  127. package/dist/types/models/ExitCode.js.map +0 -1
  128. package/dist/types/models/index.js.map +0 -1
  129. package/dist/types/models/interfaces/date-util.js.map +0 -1
  130. package/dist/types/models/interfaces/index.d.ts +0 -2
  131. package/dist/types/models/interfaces/index.js.map +0 -1
  132. package/dist/types/models/interfaces/payment.d.ts +0 -13
  133. package/dist/types/models/interfaces/payment.js.map +0 -1
  134. package/dist/types/reservations/interfaces/index.d.ts +0 -2
  135. package/dist/types/reservations/interfaces/index.js.map +0 -1
  136. package/dist/types/reservations/interfaces/invoice.d.ts +0 -53
  137. package/dist/types/reservations/interfaces/invoice.js.map +0 -1
  138. package/dist/types/reservations/interfaces/reservation.js +0 -11
  139. package/dist/types/reservations/interfaces/reservation.js.map +0 -1
  140. package/dist/types/util/types/general.js.map +0 -1
  141. package/dist/types/util/types/index.d.ts +0 -1
  142. package/dist/types/util/types/index.js.map +0 -1
  143. /package/dist/types/{models → util/models}/ExitCode.d.ts +0 -0
  144. /package/dist/types/{models → util/models}/ExitCode.js +0 -0
  145. /package/dist/types/{models/interfaces/date-util.d.ts → util/models/interfaces/date-util.interfaces.d.ts} +0 -0
  146. /package/dist/types/util/{types/general.d.ts → models/types/general.types.d.ts} +0 -0
@@ -1,30 +1,26 @@
1
- import { PaginationQuery } from '../../dto/general.dto';
2
- import { Answer } from '../../questionnaires/entities/Answer';
3
- import { Customer } from '../../entity/Customer';
4
- import { Invoice } from '../../entity/Invoice';
5
- import { Product } from '../../product-pricing/entities/Product';
6
- import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
7
- import { RefundResult } from '../../payment/types/interfaces/refund.interfaces';
8
- import { FinancialStepEnum, ReservationStatusEnum, ReservationTypeEnum } from '../../services/enums.service';
9
- import { IPaymentMethodToFundLeft } from '../../services/interfaces.service';
10
- import { AddonDto } from '../dto/addon.dto';
11
- import { InvoiceDto } from '../dto/invoice.dto';
12
- import { LineItemDto } from '../dto/lineItem.dto';
13
- import { ReservationDto } from '../dto/reservation.dto';
14
- import { SegmentDto } from '../dto/segment.dto';
15
- import { SeriesDto } from '../dto/series.dto';
16
- import { SlotDto, TimeSlotDto } from '../dto/slot.dto';
17
- import { Addon } from '../entities/Addon';
18
- import { Reservation } from '../entities/Reservations';
19
- import { Segment } from '../entities/Segments';
20
- import { Series } from '../entities/Series';
21
- import { Slot } from '../entities/Slots';
22
1
  import * as moment from 'moment';
23
- import { PaymentDto } from '../../payment/dto/payment.dto';
24
- export declare const RESOURCE_TOTAL_FIELD = "totalPrice";
25
- export declare const DEFAULT_ADDON_QUANTITY = 1;
26
- export declare const PUBLIC_NOTES_LIMIT = 500;
27
- export declare const PRIVATE_NOTES_LIMIT = 500;
2
+ import { PaginationQuery } from '../../../dto/general.dto';
3
+ import { Customer } from '../../../entity/Customer';
4
+ import { Invoice } from '../../../entity/Invoice';
5
+ import { PaymentDto } from '../../../payment/dto/payment.dto';
6
+ import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
7
+ import { RefundResult } from '../../../payment/types/interfaces/refund.interfaces';
8
+ import { Product } from '../../../product-pricing/entities/Product';
9
+ import { Answer } from '../../../questionnaires/entities/Answer';
10
+ import { FinancialStepEnum, ReservationStatusEnum, ReservationTypeEnum } from '../../../services/enums.service';
11
+ import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
12
+ import { AddonDto } from '../../dto/addon.dto';
13
+ import { InvoiceDto } from '../../dto/invoice.dto';
14
+ import { LineItemDto } from '../../dto/lineItem.dto';
15
+ import { ReservationDto } from '../../dto/reservation.dto';
16
+ import { SegmentDto } from '../../dto/segment.dto';
17
+ import { SeriesDto } from '../../dto/series.dto';
18
+ import { SlotDto, TimeSlotDto } from '../../dto/slot.dto';
19
+ import { Addon } from '../../entities/Addon';
20
+ import { Reservation } from '../../entities/Reservations';
21
+ import { Segment } from '../../entities/Segments';
22
+ import { Series } from '../../entities/Series';
23
+ import { Slot } from '../../entities/Slots';
28
24
  export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
29
25
  export type TResource = Reservation | Segment | Series | Slot | Addon;
30
26
  export interface IRevertedResources {
@@ -32,7 +28,7 @@ export interface IRevertedResources {
32
28
  addons: Addon[];
33
29
  }
34
30
  export type TRevertedResources = Slot | Addon;
35
- export interface ReservationV1 {
31
+ export interface IReservationV1 {
36
32
  id: number;
37
33
  price: number;
38
34
  status: string;
@@ -40,7 +36,7 @@ export interface ReservationV1 {
40
36
  sentForAdminDate?: string;
41
37
  name?: string;
42
38
  }
43
- export declare class SlotDateDto {
39
+ export declare class ISlotDateDto {
44
40
  startDate: moment.Moment;
45
41
  endDate: moment.Moment;
46
42
  }
@@ -49,14 +45,14 @@ export interface IProductQuantity {
49
45
  quantity?: number;
50
46
  unitPrice?: number;
51
47
  }
52
- export interface SlotsLineItemData extends BaseReservationItemLineItemData {
48
+ export interface ISlotsLineItemData extends IBaseReservationItemLineItemData {
53
49
  slotIds: number[];
54
50
  }
55
- export interface AddonsLineItemData extends BaseReservationItemLineItemData {
51
+ export interface IAddonsLineItemData extends IBaseReservationItemLineItemData {
56
52
  addonsIds: number[];
57
53
  }
58
- export type ReservationItemLineItemData = BaseReservationItemLineItemData | SlotsLineItemData | AddonsLineItemData;
59
- export interface BaseReservationItemLineItemData {
54
+ export type TReservationItemLineItemData = IBaseReservationItemLineItemData | ISlotsLineItemData | IAddonsLineItemData;
55
+ export interface IBaseReservationItemLineItemData {
60
56
  id: number;
61
57
  amount: number;
62
58
  amountPaid: number;
@@ -67,47 +63,47 @@ export interface BaseReservationItemLineItemData {
67
63
  }
68
64
  export interface IRemoveSlotsFinancialData {
69
65
  paymentMethods: IPaymentMethodToFundLeft[];
70
- lineItems: SlotsLineItemData[];
66
+ lineItems: ISlotsLineItemData[];
71
67
  nextFinancialStep: FinancialStepEnum;
72
68
  invoice: Invoice;
73
69
  }
74
70
  export interface IRemoveAddonsFinancialData {
75
71
  paymentMethods: IPaymentMethodToFundLeft[];
76
- lineItems: AddonsLineItemData[];
72
+ lineItems: IAddonsLineItemData[];
77
73
  nextFinancialStep: FinancialStepEnum;
78
74
  invoice: Invoice;
79
75
  }
80
- export interface ReservationData {
76
+ export interface IReservationData {
81
77
  id: number;
82
78
  reservationName: string;
83
79
  customerId: number;
84
80
  customerFirstName: string;
85
81
  customerLastName: string;
86
- spaces: SpaceInReservation[];
82
+ spaces: ISpaceInReservation[];
87
83
  startDate: string;
88
84
  endDate: string;
89
85
  price: number;
90
86
  status: ReservationStatusEnum;
91
87
  paymentStatus: PaymentStatusEnum;
92
- frequencies: FrequencyInReservation[];
88
+ frequencies: IFrequencyInReservation[];
93
89
  reservationType: ReservationTypeEnum;
94
90
  }
95
- export interface ReservationDataWithInvoice extends ReservationV1 {
91
+ export interface IReservationDataWithInvoice extends IReservationV1 {
96
92
  invoicesIds: number[];
97
93
  }
98
- export interface SpaceInReservation {
94
+ export interface ISpaceInReservation {
99
95
  reservationId: number;
100
96
  spaceId: number;
101
97
  spaceName: string;
102
98
  }
103
- export interface FrequencyInReservation {
99
+ export interface IFrequencyInReservation {
104
100
  reservationId: number;
105
101
  frequency?: string;
106
102
  repeatEvery?: number;
107
103
  repeatOn?: number[];
108
104
  repeatEndDate?: string;
109
105
  }
110
- export interface FindReservationsByOrganizationIdFilters extends PaginationQuery {
106
+ export interface IFindReservationsByOrganizationIdFilters extends PaginationQuery {
111
107
  resourcesIds?: string;
112
108
  datesRange?: {
113
109
  startDate: string;
@@ -117,7 +113,7 @@ export interface FindReservationsByOrganizationIdFilters extends PaginationQuery
117
113
  paymentStatuses?: string[];
118
114
  customerName?: string;
119
115
  }
120
- export interface FindReservationsByUserIdFilters extends PaginationQuery {
116
+ export interface IFindReservationsByUserIdFilters extends PaginationQuery {
121
117
  organizationIds?: number[];
122
118
  datesRange?: {
123
119
  startDate: string;
@@ -126,7 +122,7 @@ export interface FindReservationsByUserIdFilters extends PaginationQuery {
126
122
  approvalStatuses?: ReservationStatusEnum[];
127
123
  paymentStatuses?: PaymentStatusEnum[];
128
124
  }
129
- export interface PriceFields {
125
+ export interface IPriceFields {
130
126
  unitPrice: string;
131
127
  price: string;
132
128
  totalTax: string;
@@ -134,7 +130,7 @@ export interface PriceFields {
134
130
  isTaxInclusive: boolean;
135
131
  currency: string;
136
132
  }
137
- export interface LineItemPrice {
133
+ export interface ILineItemPrice {
138
134
  unitPrice: number;
139
135
  unitTax: number;
140
136
  isTaxInclusive: boolean;
@@ -144,7 +140,7 @@ export interface LineItemPrice {
144
140
  currency: string;
145
141
  totalPrice: number;
146
142
  }
147
- export interface CalendarSlotCard extends Slot {
143
+ export interface ICalendarSlotCard extends Slot {
148
144
  reservation: Reservation & {
149
145
  resources?: {
150
146
  id: number;
@@ -152,7 +148,7 @@ export interface CalendarSlotCard extends Slot {
152
148
  }[];
153
149
  };
154
150
  invoice: Invoice;
155
- price: LineItemPrice;
151
+ price: ILineItemPrice;
156
152
  totalSlotsInSeries?: number;
157
153
  slotIndexInSeries?: number;
158
154
  }
@@ -161,7 +157,7 @@ export type IPartialPayment = Pick<PaymentDto, 'id' | 'createdAt' | 'price' | 'p
161
157
  export interface IInvoice extends IPartialInvoice {
162
158
  lineItemsCount: number;
163
159
  }
164
- export interface SingleReservation {
160
+ export interface ISingleReservation {
165
161
  id: number;
166
162
  name: string;
167
163
  organizationId: number;
@@ -183,23 +179,23 @@ export interface SingleReservation {
183
179
  series: Series[];
184
180
  segments?: Segment[];
185
181
  }
186
- export interface UpdateReservationResult {
182
+ export interface IUpdateReservationResult {
187
183
  reservation: Reservation;
188
184
  invoice?: Invoice;
189
185
  debug?: any;
190
186
  }
191
- export interface UpdateSlotPricesResult {
187
+ export interface IUpdateSlotPricesResult {
192
188
  reservation: ReservationDto;
193
189
  slots: SlotDto[];
194
190
  invoice: InvoiceDto;
195
191
  debug?: any;
196
192
  }
197
- export interface UpdateSlotsAddonsResult {
193
+ export interface IUpdateSlotsAddonsResult {
198
194
  slots: SlotDto[];
199
195
  invoice: InvoiceDto;
200
196
  debug?: any;
201
197
  }
202
- export interface ValidateEditItemsResult {
198
+ export interface IValidateEditItemsResult {
203
199
  nextFinancialStep: FinancialStepEnum;
204
200
  paymentMethods?: IPaymentMethodToFundLeft[];
205
201
  originalInvoicePrice?: number;
@@ -207,58 +203,62 @@ export interface ValidateEditItemsResult {
207
203
  originalItemsPrice?: number;
208
204
  updatedItemsPrice?: number;
209
205
  priceChange?: number;
210
- refundMetadata?: EditItemsRefundMetadata;
211
- editData?: EditItemsData;
206
+ refundMetadata?: IEditItemsRefundMetadata;
207
+ editData?: IEditItemsData;
212
208
  }
213
- export interface ValidateEditSlotsResult extends ValidateEditItemsResult {
209
+ export interface IValidateEditSlotsResult extends IValidateEditItemsResult {
214
210
  slots: SlotDto[];
215
- refundMetadata?: EditSlotsRefundMetadata;
211
+ refundMetadata?: IEditSlotsRefundMetadata;
216
212
  }
217
- export interface ValidateEditReservationAddonsResult extends ValidateEditItemsResult {
218
- refundMetadata?: EditAddonsRefundMetadata;
213
+ export interface IValidateEditReservationAddonsResult extends IValidateEditItemsResult {
214
+ refundMetadata?: IEditAddonsRefundMetadata;
219
215
  }
220
- export interface EditSlotsRefundMetadata {
221
- lineItems: SlotsLineItemData[];
216
+ export interface IEditSlotsRefundMetadata {
217
+ lineItems: ISlotsLineItemData[];
222
218
  refundAmount: number;
223
219
  }
224
- export interface EditAddonsRefundMetadata {
225
- lineItems: AddonsLineItemData[];
220
+ export interface IEditAddonsRefundMetadata {
221
+ lineItems: IAddonsLineItemData[];
226
222
  refundAmount: number;
227
223
  }
228
- export interface EditItemsRefundMetadata {
229
- lineItems: ReservationItemLineItemData[];
224
+ export interface IEditItemsRefundMetadata {
225
+ lineItems: TReservationItemLineItemData[];
230
226
  refundAmount: number;
231
227
  }
232
- export interface EditItemsData {
228
+ export interface IEditItemsData {
233
229
  invoice?: Invoice;
234
- editLineItems?: ReservationItemLineItemData[];
230
+ editLineItems?: TReservationItemLineItemData[];
235
231
  newLineItems?: LineItemDto[];
236
232
  }
237
- export interface EditReservationItemsResult extends UpdateReservationResult {
233
+ export interface IEditReservationItemsResult extends IUpdateReservationResult {
238
234
  refundResult?: RefundResult;
239
235
  }
240
- export interface TimeSlotConflicts {
236
+ export interface ITimeSlotConflicts {
241
237
  timeSlot: TimeSlotDto;
242
238
  conflicts: Slot[];
243
239
  }
244
- export interface AddonMetadata {
240
+ export interface IAddonMetadata {
245
241
  productId: number;
246
242
  quantity: number;
247
243
  unitPrice: number;
248
244
  totalPrice: number;
249
245
  product?: Product;
250
246
  }
251
- export interface OverridePriceMeta {
247
+ export interface IOverridePriceMeta {
252
248
  unitPrice: number;
253
249
  quantity: number;
254
250
  totalPrice: number;
255
251
  }
256
- export interface ValidateRemoveSlotsResult {
252
+ export interface IValidateRemoveSlotsResult {
257
253
  invoicedSlots: Slot[];
258
254
  invoice: Invoice;
259
255
  }
260
- export interface ValidateRemoveAddonsResult {
256
+ export interface IValidateRemoveAddonsResult {
261
257
  invoicedAddons: Addon[];
262
258
  invoice: Invoice;
263
259
  }
260
+ export interface ICartReservationOptions {
261
+ startOrdinal: number;
262
+ keepReservationPrice: boolean;
263
+ }
264
264
  export {};
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ISlotDateDto = void 0;
4
+ class ISlotDateDto {
5
+ }
6
+ exports.ISlotDateDto = ISlotDateDto;
7
+ //# sourceMappingURL=reservation.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAkDA,MAAa,YAAY;CAGxB;AAHD,oCAGC"}
@@ -63,6 +63,7 @@ export declare class GetResourcesOfFacilityByTypeDto implements IGetFacilityReso
63
63
  export declare class GetResourceByIdOptionsDto extends IncludeAdditionalDataDto implements IGetResourceByIdsOptions {
64
64
  order?: OrderByEnum;
65
65
  orderBy: OrderByResourceEnum;
66
+ includeFacilities?: boolean;
66
67
  }
67
68
  export declare class ByOrganizationIdAndResourceTypeDto extends ByOrganizationIdDto {
68
69
  resourceType: ResourceTypeEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+E;AAqB/E,8EAA8E;AAG9E,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,gBAAiB,SAAQ,0BAAY;CA8DjD;AA9DD,4CA8DC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAItE;AAJD,8DAIC;AAED,MAAa,kCAAmC,SAAQ,sCAAmB;CAE1E;AAFD,gFAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAEnE;AAFD,kEAEC;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,iBAAiB;CAsB7B;AAtBD,8CAsBC"}
1
+ {"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+E;AAqB/E,8EAA8E;AAG9E,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,gBAAiB,SAAQ,0BAAY;CA8DjD;AA9DD,4CA8DC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAMtE;AAND,8DAMC;AAED,MAAa,kCAAmC,SAAQ,sCAAmB;CAE1E;AAFD,gFAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAEnE;AAFD,kEAEC;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,iBAAiB;CAsB7B;AAtBD,8CAsBC"}
@@ -18,6 +18,8 @@ export interface IGetResourceByIdsOptions {
18
18
  includeAdditionalData?: boolean;
19
19
  order?: OrderByEnum;
20
20
  orderBy?: OrderByResourceEnum;
21
+ ignoreDeleted?: boolean;
22
+ includeFacilities?: boolean;
21
23
  }
22
24
  export interface ResourceToPackageV1 {
23
25
  resourceId: number;
@@ -35,8 +35,8 @@ export interface ILowestPriceForItem {
35
35
  export interface IResourcesAvailability {
36
36
  resourceType: ResourceNameTypeEnum;
37
37
  quantity: number;
38
- resourcesIds: number[];
39
- isPunchCard: boolean;
38
+ resourcesIds?: number[];
39
+ isPunchCard?: boolean;
40
40
  resources?: any[];
41
41
  }
42
42
  export interface IPackageResponse {
@@ -1 +1 @@
1
- export * from './types';
1
+ export * from './models';
@@ -14,5 +14,5 @@ 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("./types"), exports);
17
+ __exportStar(require("./models"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExitCode.js","sourceRoot":"","sources":["../../../../src/types/util/models/ExitCode.ts"],"names":[],"mappings":";;AAAA,IAAK,QAIJ;AAJD,WAAK,QAAQ;IACZ,6CAAW,CAAA;IACX,6DAAmB,CAAA;IACnB,mEAAsB,CAAA;AACvB,CAAC,EAJI,QAAQ,KAAR,QAAQ,QAIZ;AAED,kBAAe,QAAQ,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './ExitCode';
2
2
  export * from './interfaces';
3
+ export * from './types';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ExitCode"), exports);
18
18
  __exportStar(require("./interfaces"), exports);
19
+ __exportStar(require("./types"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/util/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,+CAA6B;AAC7B,0CAAwB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=date-util.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-util.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/util/models/interfaces/date-util.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface IPagination {
2
+ page?: number;
3
+ itemsPerPage?: number;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=general.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"general.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/util/models/interfaces/general.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './date-util.interfaces';
2
+ export * from './general.interfaces';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./date-util.interfaces"), exports);
18
+ __exportStar(require("./general.interfaces"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/util/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,uDAAqC"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=date-util.js.map
3
+ //# sourceMappingURL=general.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"general.types.js","sourceRoot":"","sources":["../../../../../src/types/util/models/types/general.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './general.types';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./general.types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/util/models/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.72",
3
+ "version": "2.1.74",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExitCode.js","sourceRoot":"","sources":["../../../src/types/models/ExitCode.ts"],"names":[],"mappings":";;AAAA,IAAK,QAIJ;AAJD,WAAK,QAAQ;IACZ,6CAAW,CAAA;IACX,6DAAmB,CAAA;IACnB,mEAAsB,CAAA;AACvB,CAAC,EAJI,QAAQ,KAAR,QAAQ,QAIZ;AAED,kBAAe,QAAQ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,+CAA6B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"date-util.js","sourceRoot":"","sources":["../../../../src/types/models/interfaces/date-util.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from './date-util';
2
- export * from './payment';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/models/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B"}
@@ -1,13 +0,0 @@
1
- import { ReservationPaymentStatusEnum, ReservationStatusEnum } from '../../services/enums.service';
2
- export interface PaymentStatus {
3
- parentId: number;
4
- paymentStatus: ReservationPaymentStatusEnum;
5
- approvalStatus?: ReservationStatusEnum;
6
- id?: number;
7
- }
8
- export interface PaymentStatusesDict {
9
- [id: number]: PaymentStatus[];
10
- }
11
- export interface PaymentStatusDict {
12
- [id: number]: ReservationPaymentStatusEnum;
13
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../../src/types/models/interfaces/payment.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from './invoice';
2
- export * from './reservation';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B"}
@@ -1,53 +0,0 @@
1
- import { Invoice } from '../../entity/Invoice';
2
- import { Product } from '../../product-pricing/entities/Product';
3
- import { InvoiceDto } from '../dto/invoice.dto';
4
- import { LineItemDto } from '../dto/lineItem.dto';
5
- import { ProductPricesDto } from '../dto/reservation.dto';
6
- import { SlotDto } from '../dto/slot.dto';
7
- import { TDtoResource, TResource } from './reservation';
8
- export declare const DEFAULT_QUANTITY = 1;
9
- export declare enum LineItemResourceEnum {
10
- SEGMENTS = "segments",
11
- SERIES = "series",
12
- SLOTS = "slots",
13
- RESERVATION_ADDONS = "reservation_addons",
14
- SLOT_ADDONS = "slot_addons"
15
- }
16
- export type TSlotAndType = {
17
- type: 'slots' | 'slot_addons';
18
- slotsForProduct: {
19
- [productId: number]: {
20
- product: Product;
21
- slots: SlotDto[];
22
- };
23
- };
24
- };
25
- export interface ILineItemResource {
26
- type: 'segments' | 'series' | 'slots' | 'reservation_addons' | 'slot_addons';
27
- values: TResource[];
28
- dtoValues: TDtoResource[];
29
- }
30
- export interface GeneratedLineItems {
31
- lineItems: LineItemDto[];
32
- childItemToParent: Map<LineItemDto, LineItemDto>;
33
- }
34
- export interface OverridePricingResult {
35
- overrideProductsPricing: OverrideProductsPricing;
36
- totalPrice?: number;
37
- }
38
- export interface OverrideLineItemPrice {
39
- invoice: InvoiceDto;
40
- lineItem: LineItemDto;
41
- ratio: number;
42
- overrideProductsPricing: OverrideProductsPricing;
43
- isLastLineItem?: boolean;
44
- priceLeft?: number;
45
- }
46
- export interface OverrideProductsPricing {
47
- [productInfo: string]: ProductPricesDto;
48
- }
49
- export interface InvoiceReservationOptions {
50
- invoice?: Invoice;
51
- skipUpdateReservationPrice?: boolean;
52
- skipUpdatePaymentStatuses?: boolean;
53
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../../../src/types/reservations/interfaces/invoice.ts"],"names":[],"mappings":";;;AAQa,QAAA,gBAAgB,GAAG,CAAC,CAAC;AAElC,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC/B,6CAAqB,CAAA;IACrB,yCAAiB,CAAA;IACjB,uCAAe,CAAA;IACf,iEAAyC,CAAA;IACzC,mDAA2B,CAAA;AAC5B,CAAC,EANW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAM/B"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SlotDateDto = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.DEFAULT_ADDON_QUANTITY = exports.RESOURCE_TOTAL_FIELD = void 0;
4
- exports.RESOURCE_TOTAL_FIELD = 'totalPrice';
5
- exports.DEFAULT_ADDON_QUANTITY = 1;
6
- exports.PUBLIC_NOTES_LIMIT = 500;
7
- exports.PRIVATE_NOTES_LIMIT = 500;
8
- class SlotDateDto {
9
- }
10
- exports.SlotDateDto = SlotDateDto;
11
- //# sourceMappingURL=reservation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reservation.js","sourceRoot":"","sources":["../../../../src/types/reservations/interfaces/reservation.ts"],"names":[],"mappings":";;;AAwBa,QAAA,oBAAoB,GAAG,YAAY,CAAC;AACpC,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAC3B,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AA4BvC,MAAa,WAAW;CAGvB;AAHD,kCAGC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"general.js","sourceRoot":"","sources":["../../../../src/types/util/types/general.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export * from './general';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/util/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
File without changes