@bondsports/types 2.1.71 → 2.1.73

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) 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/ActivityTimes.d.ts +2 -0
  6. package/dist/types/entity/ActivityTimes.js.map +1 -1
  7. package/dist/types/entity/SlotHistory.d.ts +2 -2
  8. package/dist/types/entity/user-payment-method.d.ts +1 -0
  9. package/dist/types/entity/user-payment-method.js.map +1 -1
  10. package/dist/types/import/dto/user-payment-method.dto.d.ts +1 -0
  11. package/dist/types/import/dto/user-payment-method.dto.js.map +1 -1
  12. package/dist/types/index.d.ts +0 -1
  13. package/dist/types/index.js +0 -1
  14. package/dist/types/index.js.map +1 -1
  15. package/dist/types/invoice/types/consts/index.d.ts +1 -0
  16. package/dist/types/invoice/types/consts/index.js +1 -0
  17. package/dist/types/invoice/types/consts/index.js.map +1 -1
  18. package/dist/types/invoice/types/consts/invoice.interfaces.d.ts +14 -0
  19. package/dist/types/{models/interfaces/payment.js → invoice/types/consts/invoice.interfaces.js} +1 -1
  20. package/dist/types/invoice/types/consts/invoice.interfaces.js.map +1 -0
  21. package/dist/types/payment/dto/connected-resources.d.ts +13 -0
  22. package/dist/types/payment/dto/connected-resources.js +10 -0
  23. package/dist/types/payment/dto/connected-resources.js.map +1 -0
  24. package/dist/types/payment/dto/index.d.ts +1 -0
  25. package/dist/types/payment/dto/index.js +1 -0
  26. package/dist/types/payment/dto/index.js.map +1 -1
  27. package/dist/types/payment/dto/payment-method.dto.d.ts +25 -0
  28. package/dist/types/payment/dto/payment-method.dto.js +11 -1
  29. package/dist/types/payment/dto/payment-method.dto.js.map +1 -1
  30. package/dist/types/payment/types/enums/connected-resources.enums.d.ts +4 -0
  31. package/dist/types/payment/types/enums/connected-resources.enums.js +9 -0
  32. package/dist/types/payment/types/enums/connected-resources.enums.js.map +1 -0
  33. package/dist/types/payment/types/enums/index.d.ts +1 -0
  34. package/dist/types/payment/types/enums/index.js +1 -0
  35. package/dist/types/payment/types/enums/index.js.map +1 -1
  36. package/dist/types/payment/types/interfaces/connected-resources.interfaces.d.ts +2 -0
  37. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js +3 -0
  38. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js.map +1 -0
  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 +3 -0
  45. package/dist/types/pricing/dto/pricing.dto.js.map +1 -1
  46. package/dist/types/pricing/entities/Price.d.ts +2 -0
  47. package/dist/types/pricing/entities/Price.js.map +1 -1
  48. package/dist/types/pricing/index.d.ts +1 -0
  49. package/dist/types/pricing/index.js +1 -0
  50. package/dist/types/pricing/index.js.map +1 -1
  51. package/dist/types/pricing/types/index.d.ts +2 -0
  52. package/dist/types/pricing/types/index.js +19 -0
  53. package/dist/types/pricing/types/index.js.map +1 -0
  54. package/dist/types/pricing/types/pricing.enums.d.ts +5 -0
  55. package/dist/types/pricing/types/pricing.enums.js +10 -0
  56. package/dist/types/pricing/types/pricing.enums.js.map +1 -0
  57. package/dist/types/pricing/types/pricing.interfaces.d.ts +5 -0
  58. package/dist/types/{util/types/general.js → pricing/types/pricing.interfaces.js} +1 -1
  59. package/dist/types/pricing/types/pricing.interfaces.js.map +1 -0
  60. package/dist/types/product-pricing/dto/index.d.ts +1 -0
  61. package/dist/types/product-pricing/dto/index.js +1 -0
  62. package/dist/types/product-pricing/dto/index.js.map +1 -1
  63. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +22 -1
  64. package/dist/types/product-pricing/dto/product-pricing.dto.js +7 -1
  65. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  66. package/dist/types/product-pricing/dto/product.dto.d.ts +5 -1
  67. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  68. package/dist/types/product-pricing/dto/rental-product.dto.d.ts +42 -0
  69. package/dist/types/product-pricing/dto/rental-product.dto.js +16 -0
  70. package/dist/types/product-pricing/dto/rental-product.dto.js.map +1 -0
  71. package/dist/types/product-pricing/entities/Product.d.ts +2 -0
  72. package/dist/types/product-pricing/entities/Product.js.map +1 -1
  73. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  74. package/dist/types/{models/interfaces → product-pricing/types/consts}/index.js +1 -2
  75. package/dist/types/product-pricing/types/consts/index.js.map +1 -0
  76. package/dist/types/product-pricing/types/consts/product-pricing.consts.d.ts +1 -0
  77. package/dist/types/product-pricing/types/consts/product-pricing.consts.js +5 -0
  78. package/dist/types/product-pricing/types/consts/product-pricing.consts.js.map +1 -0
  79. package/dist/types/product-pricing/types/enums/product.enums.d.ts +8 -0
  80. package/dist/types/product-pricing/types/enums/product.enums.js +10 -1
  81. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  82. package/dist/types/product-pricing/types/index.d.ts +1 -0
  83. package/dist/types/product-pricing/types/index.js +1 -0
  84. package/dist/types/product-pricing/types/index.js.map +1 -1
  85. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +25 -0
  86. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +2 -2
  87. package/dist/types/reservations/dto/reservation.dto.d.ts +1 -2
  88. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  89. package/dist/types/reservations/dto/slot.dto.d.ts +3 -3
  90. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  91. package/dist/types/reservations/entities/Slots.d.ts +2 -2
  92. package/dist/types/reservations/index.d.ts +1 -1
  93. package/dist/types/reservations/index.js +1 -1
  94. package/dist/types/reservations/index.js.map +1 -1
  95. package/dist/types/reservations/types/consts/index.d.ts +1 -0
  96. package/dist/types/reservations/{interfaces → types/consts}/index.js +1 -2
  97. package/dist/types/reservations/types/consts/index.js.map +1 -0
  98. package/dist/types/reservations/types/consts/reservation.consts.d.ts +5 -0
  99. package/dist/types/reservations/types/consts/reservation.consts.js +9 -0
  100. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -0
  101. package/dist/types/reservations/types/enums/index.d.ts +1 -0
  102. package/dist/types/{util/types → reservations/types/enums}/index.js +1 -1
  103. package/dist/types/reservations/types/enums/index.js.map +1 -0
  104. package/dist/types/reservations/types/enums/invoice.enums.d.ts +7 -0
  105. package/dist/types/reservations/{interfaces/invoice.js → types/enums/invoice.enums.js} +2 -3
  106. package/dist/types/reservations/types/enums/invoice.enums.js.map +1 -0
  107. package/dist/types/reservations/types/index.d.ts +3 -0
  108. package/dist/types/reservations/types/index.js +20 -0
  109. package/dist/types/reservations/types/index.js.map +1 -0
  110. package/dist/types/reservations/types/interfaces/index.d.ts +2 -0
  111. package/dist/types/reservations/types/interfaces/index.js +19 -0
  112. package/dist/types/reservations/types/interfaces/index.js.map +1 -0
  113. package/dist/types/reservations/types/interfaces/invoice.interfaces.d.ts +45 -0
  114. package/dist/types/reservations/types/interfaces/invoice.interfaces.js +3 -0
  115. package/dist/types/reservations/types/interfaces/invoice.interfaces.js.map +1 -0
  116. package/dist/types/reservations/{interfaces/reservation.d.ts → types/interfaces/reservation.interfaces.d.ts} +71 -71
  117. package/dist/types/reservations/types/interfaces/reservation.interfaces.js +7 -0
  118. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -0
  119. package/dist/types/resources/dto/resource.dto.d.ts +1 -0
  120. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  121. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +2 -0
  122. package/dist/types/services/enums.service.d.ts +11 -4
  123. package/dist/types/services/enums.service.js +7 -0
  124. package/dist/types/services/enums.service.js.map +1 -1
  125. package/dist/types/services/interfaces.service.d.ts +2 -2
  126. package/dist/types/util/index.d.ts +1 -1
  127. package/dist/types/util/index.js +1 -1
  128. package/dist/types/util/index.js.map +1 -1
  129. package/dist/types/util/models/ExitCode.js.map +1 -0
  130. package/dist/types/{models → util/models}/index.d.ts +1 -0
  131. package/dist/types/{models → util/models}/index.js +1 -0
  132. package/dist/types/util/models/index.js.map +1 -0
  133. package/dist/types/util/models/interfaces/date-util.interfaces.js +3 -0
  134. package/dist/types/util/models/interfaces/date-util.interfaces.js.map +1 -0
  135. package/dist/types/util/models/interfaces/general.interfaces.d.ts +4 -0
  136. package/dist/types/util/models/interfaces/general.interfaces.js +3 -0
  137. package/dist/types/util/models/interfaces/general.interfaces.js.map +1 -0
  138. package/dist/types/util/models/interfaces/index.d.ts +2 -0
  139. package/dist/types/util/models/interfaces/index.js +19 -0
  140. package/dist/types/util/models/interfaces/index.js.map +1 -0
  141. package/dist/types/{models/interfaces/date-util.js → util/models/types/general.types.js} +1 -1
  142. package/dist/types/util/models/types/general.types.js.map +1 -0
  143. package/dist/types/util/models/types/index.d.ts +1 -0
  144. package/dist/types/util/models/types/index.js +18 -0
  145. package/dist/types/util/models/types/index.js.map +1 -0
  146. package/package.json +1 -1
  147. package/dist/types/models/ExitCode.js.map +0 -1
  148. package/dist/types/models/index.js.map +0 -1
  149. package/dist/types/models/interfaces/date-util.js.map +0 -1
  150. package/dist/types/models/interfaces/index.d.ts +0 -2
  151. package/dist/types/models/interfaces/index.js.map +0 -1
  152. package/dist/types/models/interfaces/payment.d.ts +0 -13
  153. package/dist/types/models/interfaces/payment.js.map +0 -1
  154. package/dist/types/reservations/interfaces/index.d.ts +0 -2
  155. package/dist/types/reservations/interfaces/index.js.map +0 -1
  156. package/dist/types/reservations/interfaces/invoice.d.ts +0 -53
  157. package/dist/types/reservations/interfaces/invoice.js.map +0 -1
  158. package/dist/types/reservations/interfaces/reservation.js +0 -11
  159. package/dist/types/reservations/interfaces/reservation.js.map +0 -1
  160. package/dist/types/util/types/general.js.map +0 -1
  161. package/dist/types/util/types/index.d.ts +0 -1
  162. package/dist/types/util/types/index.js.map +0 -1
  163. /package/dist/types/{models → util/models}/ExitCode.d.ts +0 -0
  164. /package/dist/types/{models → util/models}/ExitCode.js +0 -0
  165. /package/dist/types/{models/interfaces/date-util.d.ts → util/models/interfaces/date-util.interfaces.d.ts} +0 -0
  166. /package/dist/types/util/{types/general.d.ts → models/types/general.types.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.71",
3
+ "version": "2.1.73",
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