@bondsports/types 2.5.7 → 2.5.8-squad-b-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/attendance/dto/index.d.ts +1 -0
  3. package/dist/types/attendance/dto/index.js +1 -0
  4. package/dist/types/attendance/dto/index.js.map +1 -1
  5. package/dist/types/attendance/dto/organization-attendance.dto.d.ts +23 -0
  6. package/dist/types/attendance/dto/organization-attendance.dto.js +18 -0
  7. package/dist/types/attendance/dto/organization-attendance.dto.js.map +1 -0
  8. package/dist/types/attendance/types/attendance.enums.d.ts +8 -0
  9. package/dist/types/attendance/types/attendance.enums.js +10 -1
  10. package/dist/types/attendance/types/attendance.enums.js.map +1 -1
  11. package/dist/types/attendance/types/index.d.ts +1 -0
  12. package/dist/types/attendance/types/index.js +1 -0
  13. package/dist/types/attendance/types/index.js.map +1 -1
  14. package/dist/types/attendance/types/interfaces/attendance.interfaces.d.ts +63 -0
  15. package/dist/types/attendance/types/interfaces/attendance.interfaces.js +3 -0
  16. package/dist/types/attendance/types/interfaces/attendance.interfaces.js.map +1 -0
  17. package/dist/types/attendance/types/interfaces/index.d.ts +1 -0
  18. package/dist/types/attendance/types/interfaces/index.js +18 -0
  19. package/dist/types/attendance/types/interfaces/index.js.map +1 -0
  20. package/dist/types/cart/dto/cart-item-public.dto.d.ts +27 -1
  21. package/dist/types/cart/dto/cart-item-public.dto.js +26 -1
  22. package/dist/types/cart/dto/cart-item-public.dto.js.map +1 -1
  23. package/dist/types/cart/dto/cart-item.dto.d.ts +18 -4
  24. package/dist/types/cart/dto/cart-item.dto.js +17 -2
  25. package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
  26. package/dist/types/cart/dto/cart-public.dto.d.ts +15 -1
  27. package/dist/types/cart/dto/cart-public.dto.js +15 -1
  28. package/dist/types/cart/dto/cart-public.dto.js.map +1 -1
  29. package/dist/types/cart/dto/cart.dto.d.ts +4 -0
  30. package/dist/types/cart/dto/cart.dto.js +4 -0
  31. package/dist/types/cart/dto/cart.dto.js.map +1 -1
  32. package/dist/types/cart/types/consts/cart-public-api-examples.consts.d.ts +101 -0
  33. package/dist/types/cart/types/consts/cart-public-api-examples.consts.js +137 -0
  34. package/dist/types/cart/types/consts/cart-public-api-examples.consts.js.map +1 -0
  35. package/dist/types/cart/types/consts/cart-request-limits.consts.d.ts +6 -0
  36. package/dist/types/cart/types/consts/cart-request-limits.consts.js +10 -0
  37. package/dist/types/cart/types/consts/cart-request-limits.consts.js.map +1 -0
  38. package/dist/types/cart/types/consts/cart.consts.d.ts +1 -0
  39. package/dist/types/cart/types/consts/cart.consts.js +1 -0
  40. package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
  41. package/dist/types/cart/types/consts/index.d.ts +2 -0
  42. package/dist/types/cart/types/consts/index.js +2 -0
  43. package/dist/types/cart/types/consts/index.js.map +1 -1
  44. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +2 -2
  45. package/dist/types/customers/dto/customer-response.dto.d.ts +1 -0
  46. package/dist/types/customers/dto/customer-response.dto.js.map +1 -1
  47. package/dist/types/customers/dto/full-customer.dto.d.ts +1 -0
  48. package/dist/types/customers/dto/full-customer.dto.js.map +1 -1
  49. package/dist/types/customers/types/interfaces.d.ts +6 -1
  50. package/dist/types/customers-merge/dto/customers-merge.dto.d.ts +2 -1
  51. package/dist/types/customers-merge/dto/customers-merge.dto.js.map +1 -1
  52. package/dist/types/customers-merge/types/index.d.ts +1 -0
  53. package/dist/types/customers-merge/types/index.js +1 -0
  54. package/dist/types/customers-merge/types/index.js.map +1 -1
  55. package/dist/types/customers-merge/types/interfaces.d.ts +4 -3
  56. package/dist/types/customers-merge/types/merge-error-params.d.ts +42 -0
  57. package/dist/types/customers-merge/types/merge-error-params.js +3 -0
  58. package/dist/types/customers-merge/types/merge-error-params.js.map +1 -0
  59. package/dist/types/dto/application.dto.d.ts +1 -0
  60. package/dist/types/dto/application.dto.js.map +1 -1
  61. package/dist/types/dto/customer.dto.d.ts +3 -1
  62. package/dist/types/dto/customer.dto.js.map +1 -1
  63. package/dist/types/dto/product-user.d.ts +7 -0
  64. package/dist/types/dto/product-user.js +5 -1
  65. package/dist/types/dto/product-user.js.map +1 -1
  66. package/dist/types/entity/Customer.d.ts +3 -0
  67. package/dist/types/entity/Customer.js.map +1 -1
  68. package/dist/types/entity/LineItems.d.ts +4 -12
  69. package/dist/types/entity/LineItems.js.map +1 -1
  70. package/dist/types/filters/types/consts.d.ts +12 -0
  71. package/dist/types/filters/types/consts.js +15 -1
  72. package/dist/types/filters/types/consts.js.map +1 -1
  73. package/dist/types/filters/types/enums/filter.enums.d.ts +2 -1
  74. package/dist/types/filters/types/enums/filter.enums.js +1 -0
  75. package/dist/types/filters/types/enums/filter.enums.js.map +1 -1
  76. package/dist/types/filters/types/interfaces/filters.interfaces.d.ts +18 -0
  77. package/dist/types/index.d.ts +2 -0
  78. package/dist/types/index.js +2 -0
  79. package/dist/types/index.js.map +1 -1
  80. package/dist/types/invoice/dto/index.d.ts +1 -0
  81. package/dist/types/invoice/dto/index.js +1 -0
  82. package/dist/types/invoice/dto/index.js.map +1 -1
  83. package/dist/types/invoice/dto/invoice-cart.dto.d.ts +18 -0
  84. package/dist/types/invoice/dto/invoice-cart.dto.js +16 -0
  85. package/dist/types/invoice/dto/invoice-cart.dto.js.map +1 -0
  86. package/dist/types/invoice/dto/invoice.dto.d.ts +59 -32
  87. package/dist/types/invoice/dto/invoice.dto.js +13 -16
  88. package/dist/types/invoice/dto/invoice.dto.js.map +1 -1
  89. package/dist/types/invoice/dto/lineItem.dto.d.ts +71 -1
  90. package/dist/types/invoice/dto/lineItem.dto.js +9 -2
  91. package/dist/types/invoice/dto/lineItem.dto.js.map +1 -1
  92. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +3 -16
  93. package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
  94. package/dist/types/league-standings/dto/game.dto.d.ts +2 -2
  95. package/dist/types/league-standings/interfaces/competition-team.interface.d.ts +10 -0
  96. package/dist/types/notifications/dto/notification.create.dto.js.map +1 -1
  97. package/dist/types/payment/dto/discount.dto.d.ts +2 -0
  98. package/dist/types/payment/dto/discount.dto.js.map +1 -1
  99. package/dist/types/payment/dto/payment.dto.d.ts +2 -2
  100. package/dist/types/payment/types/consts/payment.consts.d.ts +0 -2
  101. package/dist/types/payment/types/consts/payment.consts.js +1 -5
  102. package/dist/types/payment/types/consts/payment.consts.js.map +1 -1
  103. package/dist/types/payment/types/enums/payment.enums.d.ts +1 -1
  104. package/dist/types/payment/types/enums/payment.enums.js +1 -1
  105. package/dist/types/payment/types/enums/payment.enums.js.map +1 -1
  106. package/dist/types/payment/types/interfaces/refund.interfaces.d.ts +2 -1
  107. package/dist/types/payment/types/interfaces/refund.interfaces.js.map +1 -1
  108. package/dist/types/product-pricing/types/interfaces/product-resource.interfaces.d.ts +1 -3
  109. package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +2 -1
  110. package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.js.map +1 -1
  111. package/dist/types/program-portals/index.d.ts +1 -0
  112. package/dist/types/program-portals/index.js +18 -0
  113. package/dist/types/program-portals/index.js.map +1 -0
  114. package/dist/types/program-portals/types/classes/index.d.ts +2 -0
  115. package/dist/types/program-portals/types/classes/index.js +19 -0
  116. package/dist/types/program-portals/types/classes/index.js.map +1 -0
  117. package/dist/types/program-portals/types/classes/program-portal-options.class.d.ts +24 -0
  118. package/dist/types/program-portals/types/classes/program-portal-options.class.js +13 -0
  119. package/dist/types/program-portals/types/classes/program-portal-options.class.js.map +1 -0
  120. package/dist/types/program-portals/types/classes/program-portal.class.d.ts +14 -0
  121. package/dist/types/program-portals/types/classes/program-portal.class.js +8 -0
  122. package/dist/types/program-portals/types/classes/program-portal.class.js.map +1 -0
  123. package/dist/types/program-portals/types/consts/index.d.ts +1 -0
  124. package/dist/types/program-portals/types/consts/index.js +18 -0
  125. package/dist/types/program-portals/types/consts/index.js.map +1 -0
  126. package/dist/types/program-portals/types/consts/program-portals.consts.d.ts +14 -0
  127. package/dist/types/program-portals/types/consts/program-portals.consts.js +31 -0
  128. package/dist/types/program-portals/types/consts/program-portals.consts.js.map +1 -0
  129. package/dist/types/program-portals/types/dto/index.d.ts +1 -0
  130. package/dist/types/program-portals/types/dto/index.js +18 -0
  131. package/dist/types/program-portals/types/dto/index.js.map +1 -0
  132. package/dist/types/program-portals/types/dto/program-portals.dto.d.ts +91 -0
  133. package/dist/types/program-portals/types/dto/program-portals.dto.js +53 -0
  134. package/dist/types/program-portals/types/dto/program-portals.dto.js.map +1 -0
  135. package/dist/types/program-portals/types/enums/index.d.ts +1 -0
  136. package/dist/types/program-portals/types/enums/index.js +18 -0
  137. package/dist/types/program-portals/types/enums/index.js.map +1 -0
  138. package/dist/types/program-portals/types/enums/program-portals.enums.d.ts +20 -0
  139. package/dist/types/program-portals/types/enums/program-portals.enums.js +28 -0
  140. package/dist/types/program-portals/types/enums/program-portals.enums.js.map +1 -0
  141. package/dist/types/program-portals/types/index.d.ts +5 -0
  142. package/dist/types/program-portals/types/index.js +22 -0
  143. package/dist/types/program-portals/types/index.js.map +1 -0
  144. package/dist/types/program-portals/types/interfaces/index.d.ts +1 -0
  145. package/dist/types/program-portals/types/interfaces/index.js +18 -0
  146. package/dist/types/program-portals/types/interfaces/index.js.map +1 -0
  147. package/dist/types/program-portals/types/interfaces/program-portals.interfaces.d.ts +22 -0
  148. package/dist/types/program-portals/types/interfaces/program-portals.interfaces.js +3 -0
  149. package/dist/types/program-portals/types/interfaces/program-portals.interfaces.js.map +1 -0
  150. package/dist/types/programs/dto/segment-public.dto.d.ts +3 -0
  151. package/dist/types/programs/dto/segment-public.dto.js.map +1 -1
  152. package/dist/types/programs/types/interfaces/program.interfaces.d.ts +1 -0
  153. package/dist/types/programs-seasons/dto/program-session.dto.d.ts +5 -0
  154. package/dist/types/programs-seasons/dto/program-session.dto.js.map +1 -1
  155. package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +3 -0
  156. package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
  157. package/dist/types/purchase/dto/purchase.dto.d.ts +11 -10
  158. package/dist/types/purchase/dto/purchase.dto.js +11 -11
  159. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  160. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +7 -0
  161. package/dist/types/questionnaires/types/questions.enum.d.ts +2 -1
  162. package/dist/types/questionnaires/types/questions.enum.js +1 -0
  163. package/dist/types/questionnaires/types/questions.enum.js.map +1 -1
  164. package/dist/types/react/WaiverTemplate/waiver.types.d.ts +83 -14
  165. package/dist/types/reservations/dto/reservation.dto.d.ts +2 -1
  166. package/dist/types/reservations/dto/reservation.dto.js +3 -3
  167. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  168. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +7 -3
  169. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  170. package/dist/types/segment-tags/entities/index.d.ts +1 -0
  171. package/dist/types/segment-tags/entities/index.js +18 -0
  172. package/dist/types/segment-tags/entities/index.js.map +1 -0
  173. package/dist/types/segment-tags/entities/segment-tag.entity.d.ts +5 -0
  174. package/dist/types/segment-tags/entities/segment-tag.entity.js +8 -0
  175. package/dist/types/segment-tags/entities/segment-tag.entity.js.map +1 -0
  176. package/dist/types/segment-tags/index.d.ts +2 -0
  177. package/dist/types/segment-tags/index.js +19 -0
  178. package/dist/types/segment-tags/index.js.map +1 -0
  179. package/dist/types/segment-tags/types/dto/index.d.ts +1 -0
  180. package/dist/types/segment-tags/types/dto/index.js +18 -0
  181. package/dist/types/segment-tags/types/dto/index.js.map +1 -0
  182. package/dist/types/segment-tags/types/dto/segment-tags.dto.d.ts +22 -0
  183. package/dist/types/segment-tags/types/dto/segment-tags.dto.js +21 -0
  184. package/dist/types/segment-tags/types/dto/segment-tags.dto.js.map +1 -0
  185. package/dist/types/segment-tags/types/enums/index.d.ts +1 -0
  186. package/dist/types/segment-tags/types/enums/index.js +18 -0
  187. package/dist/types/segment-tags/types/enums/index.js.map +1 -0
  188. package/dist/types/segment-tags/types/enums/segment-tag.enum.d.ts +4 -0
  189. package/dist/types/segment-tags/types/enums/segment-tag.enum.js +9 -0
  190. package/dist/types/segment-tags/types/enums/segment-tag.enum.js.map +1 -0
  191. package/dist/types/segment-tags/types/index.d.ts +3 -0
  192. package/dist/types/segment-tags/types/index.js +20 -0
  193. package/dist/types/segment-tags/types/index.js.map +1 -0
  194. package/dist/types/segment-tags/types/interfaces/index.d.ts +1 -0
  195. package/dist/types/segment-tags/types/interfaces/index.js +18 -0
  196. package/dist/types/segment-tags/types/interfaces/index.js.map +1 -0
  197. package/dist/types/segment-tags/types/interfaces/segment-tag.interfaces.d.ts +7 -0
  198. package/dist/types/segment-tags/types/interfaces/segment-tag.interfaces.js +3 -0
  199. package/dist/types/segment-tags/types/interfaces/segment-tag.interfaces.js.map +1 -0
  200. package/dist/types/services/enums.service.d.ts +2 -3
  201. package/dist/types/services/enums.service.js +7 -4
  202. package/dist/types/services/enums.service.js.map +1 -1
  203. package/dist/types/standings-integration/dto/game-score.dto.d.ts +1 -1
  204. package/package.json +1 -1
@@ -1,4 +1,21 @@
1
+ import { PublishingStatusEnum } from '../../../programs/types/enums/program.enums';
1
2
  import { Filter } from '../../entities/Filter';
3
+ import { FilterTypeEnum } from '../enums/filter.enums';
4
+ /**
5
+ * Parameters for loading filters by ID, type, and optional organization.
6
+ */
7
+ export interface IGetFiltersByIdsParams {
8
+ organizationId?: number;
9
+ filterIds: number[];
10
+ type: FilterTypeEnum;
11
+ }
12
+ /**
13
+ * Parameters for confirming generic organization-filters HTTP writes are calendar-only.
14
+ */
15
+ export interface IAssertGenericHttpWritesParams {
16
+ organizationId: number;
17
+ filterIds: number[];
18
+ }
2
19
  export interface IGetFilterOptions {
3
20
  organizationId?: number;
4
21
  facilityId?: number;
@@ -7,6 +24,7 @@ export interface IGetFilterOptions {
7
24
  }
8
25
  export interface IGetPaginatedFiltersOptions extends IGetFilterOptions {
9
26
  search?: string;
27
+ statuses?: PublishingStatusEnum[];
10
28
  }
11
29
  export interface IGetFavoriteFilters {
12
30
  default?: Filter;
@@ -43,6 +43,7 @@ export * from './payment';
43
43
  export * from './payout-accounts';
44
44
  export * from './pricing';
45
45
  export * from './product-pricing';
46
+ export * from './program-portals';
46
47
  export * from './programs';
47
48
  export * from './programs-seasons';
48
49
  export * from './public-api';
@@ -55,6 +56,7 @@ export * from './reservations';
55
56
  export * from './resource-settings';
56
57
  export * from './resources';
57
58
  export * from './roles';
59
+ export * from './segment-tags';
58
60
  export * from './services';
59
61
  export * from './session-participants';
60
62
  export * from './shifts';
@@ -59,6 +59,7 @@ __exportStar(require("./payment"), exports);
59
59
  __exportStar(require("./payout-accounts"), exports);
60
60
  __exportStar(require("./pricing"), exports);
61
61
  __exportStar(require("./product-pricing"), exports);
62
+ __exportStar(require("./program-portals"), exports);
62
63
  __exportStar(require("./programs"), exports);
63
64
  __exportStar(require("./programs-seasons"), exports);
64
65
  __exportStar(require("./public-api"), exports);
@@ -71,6 +72,7 @@ __exportStar(require("./reservations"), exports);
71
72
  __exportStar(require("./resource-settings"), exports);
72
73
  __exportStar(require("./resources"), exports);
73
74
  __exportStar(require("./roles"), exports);
75
+ __exportStar(require("./segment-tags"), exports);
74
76
  __exportStar(require("./services"), exports);
75
77
  __exportStar(require("./session-participants"), exports);
76
78
  __exportStar(require("./shifts"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,4DAA0C;AAC1C,sDAAoC;AACpC,8CAA4B;AAC5B,oDAAkC;AAClC,wCA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B,sDAAoC;AACpC,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,uDAAqC;AACrC,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,sDAAoC;AACpC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,4CAA0B;AAC1B,oDAAkC;AAClC,4CAA0B;AAC1B,oDAAkC;AAClC,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB;AACxB,iDAA+B;AAC/B,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,iDAA+B;AAC/B,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B;AAC3B,uDAAqC;AACrC,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
@@ -1,3 +1,4 @@
1
+ export * from './invoice-cart.dto';
1
2
  export * from './invoice-history.dto';
2
3
  export * from './invoice.dto';
3
4
  export * from './lineItem.dto';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./invoice-cart.dto"), exports);
17
18
  __exportStar(require("./invoice-history.dto"), exports);
18
19
  __exportStar(require("./invoice.dto"), exports);
19
20
  __exportStar(require("./lineItem.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B;AAC/B,6DAA2C;AAC3C,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B;AAC/B,6DAA2C;AAC3C,sDAAoC"}
@@ -0,0 +1,18 @@
1
+ import { PlatformsEnum } from '../../services/enums.service';
2
+ import type { IInvoiceCart } from '../types/interfaces/invoice.interfaces';
3
+ export declare class BaseInvoiceDto {
4
+ platform: PlatformsEnum;
5
+ shiftId?: number;
6
+ }
7
+ export declare class UpdateInvoiceOptionsDto {
8
+ basicInfoData?: BaseInvoiceDto;
9
+ addToInvoiceId?: number;
10
+ }
11
+ export declare class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
12
+ isInvoiced: boolean;
13
+ }
14
+ export declare class InvoiceCartDto implements IInvoiceCart {
15
+ existingInvoiceId?: number;
16
+ existingInvoiceToken?: string;
17
+ shiftId?: number;
18
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvoiceCartDto = exports.UpdateInvoiceDto = exports.UpdateInvoiceOptionsDto = exports.BaseInvoiceDto = void 0;
4
+ class BaseInvoiceDto {
5
+ }
6
+ exports.BaseInvoiceDto = BaseInvoiceDto;
7
+ class UpdateInvoiceOptionsDto {
8
+ }
9
+ exports.UpdateInvoiceOptionsDto = UpdateInvoiceOptionsDto;
10
+ class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
11
+ }
12
+ exports.UpdateInvoiceDto = UpdateInvoiceDto;
13
+ class InvoiceCartDto {
14
+ }
15
+ exports.InvoiceCartDto = InvoiceCartDto;
16
+ //# sourceMappingURL=invoice-cart.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice-cart.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/invoice-cart.dto.ts"],"names":[],"mappings":";;;AAIA,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,37 +1,18 @@
1
+ import { ObfuscatedCustomerDto, SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
2
+ import { IdDto } from '../../dto/general.dto';
3
+ import { InvoiceNote } from '../../entity/InvoiceNote';
4
+ import { InvoiceToPayment } from '../../entity/InvoiceToPayment';
5
+ import { PaymentFeeDto } from '../../fee/dto/payment-fee.dto';
1
6
  import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
2
- import { PaymentStatusEnum, DueDateTypeEnum } from '../../payment/types/enums/payment.enums';
7
+ import { ItemDiscountDto } from '../../payment/dto/discount.dto';
8
+ import { DueDateTypeEnum, FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
9
+ import { Reservation } from '../../reservations/entities/reservation.entity';
10
+ import { Slot } from '../../reservations/entities/slot.entity';
3
11
  import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../../services/enums.service';
4
- import { IInvoiceCart, IInvoiceUpdate } from '../types/interfaces/invoice.interfaces';
5
- import { LineItemDto } from './lineItem.dto';
6
- export declare class InvoiceDto {
7
- invoiceId?: string;
8
- organizationId: number;
9
- price: number;
10
- totalTax?: number;
11
- totalWithoutTax?: number;
12
- status?: InvoiceStatusEnum;
13
- lineItems: LineItemDto[];
14
- paymentStatus?: PaymentStatusEnum;
15
- currency: CurrencyEnum;
16
- creatingUserId?: number;
17
- platform?: PlatformsEnum;
18
- }
19
- export declare class BaseInvoiceDto {
20
- platform: PlatformsEnum;
21
- shiftId?: number;
22
- }
23
- export declare class UpdateInvoiceOptionsDto {
24
- basicInfoData?: BaseInvoiceDto;
25
- addToInvoiceId?: number;
26
- }
27
- export declare class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
28
- isInvoiced: boolean;
29
- }
30
- export declare class InvoiceCartDto implements IInvoiceCart {
31
- existingInvoiceId?: number;
32
- existingInvoiceToken?: string;
33
- shiftId?: number;
34
- }
12
+ import { SimpleUserDto } from '../../user/dto/user.dto';
13
+ import type { IInvoiceUpdate } from '../types/interfaces/invoice.interfaces';
14
+ import { LineItemDto, TaxItemDto } from './lineItem.dto';
15
+ export { BaseInvoiceDto, InvoiceCartDto, UpdateInvoiceDto, UpdateInvoiceOptionsDto } from './invoice-cart.dto';
35
16
  export declare class SimpleInvoiceDto extends OrganizationBaseEntityDto {
36
17
  invoiceId: string;
37
18
  price: number;
@@ -57,6 +38,52 @@ export declare class SimpleInvoiceSlotDto {
57
38
  id: number;
58
39
  isScheduled: boolean;
59
40
  }
41
+ export declare class InvoicePaymentDto extends IdDto {
42
+ createdAt: Date;
43
+ paymentType?: PaymentMethodTypeEnum;
44
+ paymentStatus: PaymentStatusEnum;
45
+ status?: FuturePaymentStatusEnum;
46
+ price: number;
47
+ priceWithoutFee?: number;
48
+ totalFeesAmount?: number;
49
+ tipAmount?: number;
50
+ ccLast4?: string;
51
+ ccBrand?: string;
52
+ payingUserId?: number;
53
+ payingUser?: SimpleUserDto;
54
+ paymentFees?: PaymentFeeDto[];
55
+ stripePaymentMethodId?: string;
56
+ disputeStatus?: string;
57
+ disputeReason?: string;
58
+ disputeCreatedAt?: Date;
59
+ disputeUpdatedAt?: Date;
60
+ disputeAmount?: number;
61
+ }
62
+ export declare class InvoiceDto extends SimpleInvoiceDto {
63
+ createdAt?: Date;
64
+ updatedAt?: Date;
65
+ paymentType?: PaymentMethodTypeEnum;
66
+ parentId?: number;
67
+ creatingUserId?: number;
68
+ sentForClientDate?: Date;
69
+ isRefunded?: boolean;
70
+ isVoided?: boolean;
71
+ totalTipsAmount?: number;
72
+ totalDue: number;
73
+ taxes: TaxItemDto[];
74
+ lineItems: LineItemDto[];
75
+ payments: InvoicePaymentDto[];
76
+ customer?: SimpleCustomerDto;
77
+ obfuscatedCustomer?: ObfuscatedCustomerDto;
78
+ invoiceNotes?: InvoiceNote[];
79
+ slots?: Slot[];
80
+ reservations?: Reservation[];
81
+ paymentsFees?: PaymentFeeDto[];
82
+ tippableAmount?: number;
83
+ facilityIds?: number[];
84
+ invoiceToPayments?: InvoiceToPayment[];
85
+ discounts?: ItemDiscountDto[];
86
+ }
60
87
  /**
61
88
  * DTO for updating invoices from client-side requests.
62
89
  * This DTO defines the specific fields that are safe to update from client applications.
@@ -1,28 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateInvoiceFromClientDto = exports.SimpleInvoiceSlotDto = exports.SimpleInvoiceDto = exports.InvoiceCartDto = exports.UpdateInvoiceDto = exports.UpdateInvoiceOptionsDto = exports.BaseInvoiceDto = exports.InvoiceDto = void 0;
3
+ exports.UpdateInvoiceFromClientDto = exports.InvoiceDto = exports.InvoicePaymentDto = exports.SimpleInvoiceSlotDto = exports.SimpleInvoiceDto = exports.UpdateInvoiceOptionsDto = exports.UpdateInvoiceDto = exports.InvoiceCartDto = exports.BaseInvoiceDto = void 0;
4
+ const general_dto_1 = require("../../dto/general.dto");
4
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
5
- class InvoiceDto {
6
- }
7
- exports.InvoiceDto = InvoiceDto;
8
- class BaseInvoiceDto {
9
- }
10
- exports.BaseInvoiceDto = BaseInvoiceDto;
11
- class UpdateInvoiceOptionsDto {
12
- }
13
- exports.UpdateInvoiceOptionsDto = UpdateInvoiceOptionsDto;
14
- class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
15
- }
16
- exports.UpdateInvoiceDto = UpdateInvoiceDto;
17
- class InvoiceCartDto {
18
- }
19
- exports.InvoiceCartDto = InvoiceCartDto;
6
+ var invoice_cart_dto_1 = require("./invoice-cart.dto");
7
+ Object.defineProperty(exports, "BaseInvoiceDto", { enumerable: true, get: function () { return invoice_cart_dto_1.BaseInvoiceDto; } });
8
+ Object.defineProperty(exports, "InvoiceCartDto", { enumerable: true, get: function () { return invoice_cart_dto_1.InvoiceCartDto; } });
9
+ Object.defineProperty(exports, "UpdateInvoiceDto", { enumerable: true, get: function () { return invoice_cart_dto_1.UpdateInvoiceDto; } });
10
+ Object.defineProperty(exports, "UpdateInvoiceOptionsDto", { enumerable: true, get: function () { return invoice_cart_dto_1.UpdateInvoiceOptionsDto; } });
20
11
  class SimpleInvoiceDto extends organization_dto_1.OrganizationBaseEntityDto {
21
12
  }
22
13
  exports.SimpleInvoiceDto = SimpleInvoiceDto;
23
14
  class SimpleInvoiceSlotDto {
24
15
  }
25
16
  exports.SimpleInvoiceSlotDto = SimpleInvoiceSlotDto;
17
+ class InvoicePaymentDto extends general_dto_1.IdDto {
18
+ }
19
+ exports.InvoicePaymentDto = InvoicePaymentDto;
20
+ class InvoiceDto extends SimpleInvoiceDto {
21
+ }
22
+ exports.InvoiceDto = InvoiceDto;
26
23
  /**
27
24
  * DTO for updating invoices from client-side requests.
28
25
  * This DTO defines the specific fields that are safe to update from client applications.
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/invoice.dto.ts"],"names":[],"mappings":";;;AACA,8EAAoF;AAOpF,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;AAED,MAAa,gBAAiB,SAAQ,4CAAyB;CAsC9D;AAtCD,4CAsCC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED;;;;GAIG;AACH,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
1
+ {"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/invoice.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA8C;AAI9C,8EAAoF;AAgBpF,uDAA+G;AAAtG,kHAAA,cAAc,OAAA;AAAE,kHAAA,cAAc,OAAA;AAAE,oHAAA,gBAAgB,OAAA;AAAE,2HAAA,uBAAuB,OAAA;AAElF,MAAa,gBAAiB,SAAQ,4CAAyB;CAsC9D;AAtCD,4CAsCC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAsC3C;AAtCD,8CAsCC;AAED,MAAa,UAAW,SAAQ,gBAAgB;CA8C/C;AA9CD,gCA8CC;AAED;;;;GAIG;AACH,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
@@ -1,8 +1,12 @@
1
+ import { IdDto } from '../../dto/general.dto';
2
+ import { SimpleProductUserDto } from '../../dto/product-user';
3
+ import { ItemDiscountDto } from '../../payment/dto/discount.dto';
1
4
  import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
5
+ import { ProductDto } from '../../product-pricing/dto/product.dto';
2
6
  import { Product } from '../../product-pricing/entities/product.entity';
3
7
  import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
4
8
  import { CurrencyEnum, LineItemsStatusEnum, ProductTypesEnum } from '../../services/enums.service';
5
- export declare class LineItemDto {
9
+ export declare class CartLineItemDto {
6
10
  id?: number;
7
11
  invoiceId?: number;
8
12
  type: LineItemsStatusEnum;
@@ -31,3 +35,69 @@ export declare class LineItemDto {
31
35
  unique?: string;
32
36
  totalPrice?: number;
33
37
  }
38
+ export declare class TaxItemDto {
39
+ taxId?: number;
40
+ name?: string;
41
+ rate: number;
42
+ isInclusive: boolean;
43
+ amount: number;
44
+ paidAmount?: number;
45
+ productId?: number;
46
+ }
47
+ export declare class LineItemDto extends IdDto {
48
+ name: string;
49
+ productId: number;
50
+ productType: ProductTypesEnum;
51
+ paymentStatus: PaymentStatusEnum;
52
+ ordinal?: number;
53
+ parentOrdinal?: number;
54
+ parentLineItemId?: number;
55
+ groupId?: string;
56
+ parentGroupId?: string;
57
+ isVoided?: boolean;
58
+ isRefunded?: boolean;
59
+ quantity: number;
60
+ fullQuantityWithVoid: number;
61
+ totalUnitPrice: number;
62
+ unitTax?: number;
63
+ fullPrice: number;
64
+ fullPriceWithVoid: number;
65
+ fullPriceWithTax: number;
66
+ fullPriceWithVoidAndTax: number;
67
+ taxLineItemTotal: number;
68
+ taxLineItemTotalWithVoid: number;
69
+ totalPaid?: number;
70
+ totalQuantity?: number;
71
+ discountAmount?: number;
72
+ paidAmount?: number;
73
+ userId?: number;
74
+ customerFirstName?: string;
75
+ customerLastName?: string;
76
+ product?: ProductDto;
77
+ productUser?: SimpleProductUserDto;
78
+ purchasedResources?: PurchasedResourceDto[];
79
+ taxItems: TaxItemDto[];
80
+ discounts: ItemDiscountDto[];
81
+ price?: number;
82
+ unitPrice?: number;
83
+ totalPrice?: number;
84
+ totalPriceWithoutTax?: number;
85
+ isProductAdjustable?: boolean;
86
+ entitlementGroupId?: number;
87
+ facilityId?: number;
88
+ organizationId?: number;
89
+ productUserId?: number;
90
+ taxPrecent?: number;
91
+ isTaxInclusive?: boolean;
92
+ displayQuantity?: number;
93
+ displayFullQuantityWithVoid?: number;
94
+ displayTotalQuantity?: number;
95
+ displayUnitPrice?: number;
96
+ displayUnitTax?: number;
97
+ displayFullPrice?: number;
98
+ displayFullPriceWithTax?: number;
99
+ displayFullPriceWithVoid?: number;
100
+ displayFullPriceWithVoidAndTax?: number;
101
+ displayTotalPaid?: number;
102
+ displayTotalPriceWithTax?: number;
103
+ }
@@ -1,7 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LineItemDto = void 0;
4
- class LineItemDto {
3
+ exports.LineItemDto = exports.TaxItemDto = exports.CartLineItemDto = void 0;
4
+ const general_dto_1 = require("../../dto/general.dto");
5
+ class CartLineItemDto {
6
+ }
7
+ exports.CartLineItemDto = CartLineItemDto;
8
+ class TaxItemDto {
9
+ }
10
+ exports.TaxItemDto = TaxItemDto;
11
+ class LineItemDto extends general_dto_1.IdDto {
5
12
  }
6
13
  exports.LineItemDto = LineItemDto;
7
14
  //# sourceMappingURL=lineItem.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lineItem.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/lineItem.dto.ts"],"names":[],"mappings":";;;AAMA,MAAa,WAAW;CAuDvB;AAvDD,kCAuDC"}
1
+ {"version":3,"file":"lineItem.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/lineItem.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8C;AAS9C,MAAa,eAAe;CAuD3B;AAvDD,0CAuDC;AAED,MAAa,UAAU;CActB;AAdD,gCAcC;AAED,MAAa,WAAY,SAAQ,mBAAK;CA8GrC;AA9GD,kCA8GC"}
@@ -8,8 +8,6 @@ import { PurchaseProductDto } from '../../../purchase/dto/purchase.dto';
8
8
  import { ProductPricesDto } from '../../../reservations/dto/reservation.dto';
9
9
  import { IOverrideProductsPricing } from '../../../reservations/types/interfaces/reservation.interfaces';
10
10
  import { CustomerTypeEnum, InvoiceStatusEnum } from '../../../services/enums.service';
11
- import { InvoiceDto } from '../../dto/invoice.dto';
12
- import { LineItemDto } from '../../dto/lineItem.dto';
13
11
  import { GetOrganizationInvoicesQueryDto } from '../../dto/organization-invoice.dto';
14
12
  export type TOrganizationInvoiceCustomerType = CustomerTypeEnum.USER | CustomerTypeEnum.FAMILY;
15
13
  /** Cartless organization id and optional payout snapshot for `createNewInvoice`. */
@@ -23,8 +21,9 @@ export interface IOrganizationInvoiceCustomerFilter {
23
21
  entityIds: number[];
24
22
  }
25
23
  /**
26
- * Internal organization invoice list filters.
27
- * customerFilter is set only after customers are resolved (never from raw client input).
24
+ * Organization invoice list filters.
25
+ * customerFilter is set only by the customer billing path after customers are resolved;
26
+ * unexposed key like this one is dropped during transformation and can never arrive from the client.
28
27
  */
29
28
  export interface IOrganizationInvoiceFilters extends GetOrganizationInvoicesQueryDto {
30
29
  customerFilter?: IOrganizationInvoiceCustomerFilter;
@@ -59,22 +58,10 @@ export interface IInvoiceCartOptions extends IValidateCartOptions {
59
58
  purchasedProductMap?: Map<PurchaseProductDto, LineItems>;
60
59
  resourceKey?: string;
61
60
  }
62
- export interface IGeneratedLineItems {
63
- childItemToParent: Map<LineItemDto, LineItemDto>;
64
- lineItems: LineItemDto[];
65
- }
66
61
  export interface IOverridePricingResult {
67
62
  overrideProductsPricing: OverrideProductsPricingDto;
68
63
  totalPrice?: number;
69
64
  }
70
- export interface IOverrideLineItemPrice {
71
- invoice: InvoiceDto;
72
- isLastLineItem?: boolean;
73
- lineItem: LineItemDto;
74
- overrideProductsPricing: OverrideProductsPricingDto;
75
- priceLeft?: number;
76
- ratio: number;
77
- }
78
65
  export declare class OverrideProductsPricingDto implements IOverrideProductsPricing {
79
66
  [productInfo: string]: ProductPricesDto;
80
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AA+FA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
1
+ {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AAgFA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
@@ -1,8 +1,8 @@
1
1
  import { GameStatusEnum } from '../types';
2
2
  import { StageByIdDto } from './standings-ruleset.dto';
3
3
  export declare class CreateGameDto {
4
- homeTeamId: number;
5
- awayTeamId: number;
4
+ homeTeamId?: number;
5
+ awayTeamId?: number;
6
6
  eventId?: number;
7
7
  homeScore?: number;
8
8
  awayScore?: number;
@@ -8,3 +8,13 @@ export interface IAddTeamByFolderIdsResult {
8
8
  division: CompetitionDivision;
9
9
  team: CompetitionTeam;
10
10
  }
11
+ export interface IEnsureCompetitionTeamsForEventParams {
12
+ competitionId: number;
13
+ eventId: number;
14
+ organizationId: number;
15
+ programSeasonId: number;
16
+ }
17
+ export interface IEventCompetitionTeamIds {
18
+ awayTeamId: number;
19
+ homeTeamId: number;
20
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"notification.create.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification.create.dto.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,qEAQuC;AAEvC,8EAAoF;AAGpF,0EAA0E;AAE1E;;;GAGG;AACU,QAAA,sBAAsB,GAAG,CAAC,CAAC,CAAC;AAEzC;;;GAGG;AACH,MAAa,YAAY;CAQxB;AARD,oCAQC;AAED,MAAa,SAAU,SAAQ,4CAAyB;CAavD;AAbD,8BAaC;AAED,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,UAAU;CAWtB;AAXD,gCAWC;AAED,MAAa,qBAAqB;IAAlC;QAGC,mBAAc,GAAgC,8CAA0B,CAAC,OAAO,CAAC;QAgBjF;WACG;QAEH;;;;WAIG;IACJ,CAAC;CAAA;AA3BD,sDA2BC"}
1
+ {"version":3,"file":"notification.create.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification.create.dto.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,qEAQuC;AAEvC,8EAAoF;AAGpF,0EAA0E;AAE1E;;;GAGG;AACU,QAAA,sBAAsB,GAAG,CAAC,CAAC,CAAC;AAEzC;;;GAGG;AACH,MAAa,YAAY;CAQxB;AARD,oCAQC;AAED,MAAa,SAAU,SAAQ,4CAAyB;CAavD;AAbD,8BAaC;AAED,MAAa,aAAa;CAoBzB;AApBD,sCAoBC;AAED,MAAa,UAAU;CAWtB;AAXD,gCAWC;AAED,MAAa,qBAAqB;IAAlC;QAGC,mBAAc,GAAgC,8CAA0B,CAAC,OAAO,CAAC;QAgBjF;WACG;QAEH;;;;WAIG;IACJ,CAAC;CAAA;AA3BD,sDA2BC"}
@@ -130,6 +130,8 @@ export declare class ItemDiscountDto extends OrganizationBaseEntityDto {
130
130
  discountAmount: number;
131
131
  price: number;
132
132
  unitPrice: number;
133
+ subTotal?: number;
134
+ paymentId?: number;
133
135
  }
134
136
  export declare class EntitlementDiscountGroupDto extends IdAndNameDto {
135
137
  status: ActivityEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"discount.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/discount.dto.ts"],"names":[],"mappings":";;;AACA,uDAA6E;AAG7E,8EAAoF;AACpF,4EAA4E;AAC5E,gEAMsC;AACtC,kEAAwF;AAcxF,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AATC,gCAAgB,CAAC,KAAK,EAEtB,gCAAgB,CAAC,MAAM,EAEvB,gCAAgB,CAAC,IAAI,EAErB,gCAAgB,CAAC,SAAS,EAE1B,gCAAgB,CAAC,MAAM;AAGzB,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAHC,kCAAkB,CAAC,KAAK,EAExB,kCAAkB,CAAC,OAAO;AAG5B,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAM,iBAAiB;CAoBtB;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAYjD;AAZD,kCAYC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAQ/D;AARD,8CAQC;AAED,MAAa,eAAgB,SAAQ,6BAAe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tC;AAVD,gEAUC;AAED,MAAM,iBAAiB;CAoBtB;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAYjD;AAZD,kCAYC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAQ/D;AARD,8CAQC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAMnD;AAND,0CAMC;AAED,MAAa,iBAAkB,SAAQ,iBAAiB;CAMvD;AAND,8CAMC;AAED,MAAa,iBAAiB;CAwB7B;AAxBD,8CAwBC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,cAAc;CAU1B;AAVD,wCAUC;AAED,MAAa,eAAe;CAQ3B;AARD,0CAQC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,eAAgB,SAAQ,4CAAyB;CAgC7D;AAhCD,0CAgCC;AAED,MAAa,2BAA4B,SAAQ,0BAAY;CAI5D;AAJD,kEAIC;AAED,MAAa,sBAAuB,SAAQ,mBAAK;CAYhD;AAZD,wDAYC;AAED,MAAa,4BAA6B,SAAQ,iBAAiB;IAAnE;;QAKC,oBAAoB;QACpB,SAAI,GAAqB,iCAAgB,CAAC,iBAAiB,CAAC;IAC7D,CAAC;CAAA;AAPD,oEAOC"}
@@ -1,12 +1,12 @@
1
1
  import { CustomerDto } from '../../dto/customer.dto';
2
2
  import { IdDto, PaginationQuery } from '../../dto/general.dto';
3
3
  import { BasePaymentMethodFieldsDto, SaveCardTerminalInputDto } from '../../dto/userPaymentMethod.dto';
4
- import { Invoice } from '../../entity/Invoice';
5
4
  import { InvoiceToPayment } from '../../entity/InvoiceToPayment';
6
5
  import { LineItemHistory } from '../../entity/LineItemHistory';
7
6
  import { LineItems } from '../../entity/LineItems';
8
7
  import { PaymentFeeDto } from '../../fee/dto/payment-fee.dto';
9
8
  import { PaymentFee } from '../../fee/entities/PaymentFee';
9
+ import { InvoiceDto } from '../../invoice/dto/invoice.dto';
10
10
  import { ByOrganizationIdDto, OptionalOrganizationIdDto } from '../../organization/dto/organization.dto';
11
11
  import { Reason } from '../../organization/entities/Reason';
12
12
  import { PurchaseProductDto } from '../../purchase/dto/purchase.dto';
@@ -180,7 +180,7 @@ export declare class PaymentDto extends BasePaymentMethodFieldsDto {
180
180
  installmentId?: number;
181
181
  discount?: Discount;
182
182
  paymentFees: PaymentFee[] | PaymentFeeDto[];
183
- invoices: Invoice[];
183
+ invoices: InvoiceDto[];
184
184
  installments?: FutureInstallment[];
185
185
  totalFeesAmount?: number;
186
186
  tipAmount?: number;
@@ -1,4 +1,3 @@
1
- import { LineItems } from '../../../entity/LineItems';
2
1
  import { PurchasedResource } from '../../../entity/PurchasedResources';
3
2
  import { PurchasedResourceTypeEnum } from '../../../services/enums.service';
4
3
  import { ItemDiscountDto } from '../../dto/discount.dto';
@@ -9,7 +8,6 @@ export declare const REVERTED_STATUSES: PaymentStatusEnum[];
9
8
  export declare const installmentStatusDict: {
10
9
  [key: string]: number;
11
10
  };
12
- export declare const uniqueTaxTemplate: (lineItem: LineItems) => string;
13
11
  export declare const UNIQUE_SPLIT_CHAR = "&";
14
12
  export declare const uniqueDiscountTemplate: (discountItem: ItemDiscountDto) => string;
15
13
  export declare const orderByResourceTemplate: (resource: PurchasedResource, type: PurchasedResourceTypeEnum) => string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LANDING_URL_CONFIG = exports.BACKOFFICE_URL_CONFIG = exports.OVERLAPPING_STATUSES = exports.isRevertedStatus = exports.orderByResourceTemplate = exports.uniqueDiscountTemplate = exports.UNIQUE_SPLIT_CHAR = exports.uniqueTaxTemplate = exports.installmentStatusDict = exports.REVERTED_STATUSES = exports.SUPPORTED_NONACTION_PAYMENT_METHODS = exports.MIN_ACH_PAYMENT_AMOUNT = void 0;
3
+ exports.LANDING_URL_CONFIG = exports.BACKOFFICE_URL_CONFIG = exports.OVERLAPPING_STATUSES = exports.isRevertedStatus = exports.orderByResourceTemplate = exports.uniqueDiscountTemplate = exports.UNIQUE_SPLIT_CHAR = exports.installmentStatusDict = exports.REVERTED_STATUSES = exports.SUPPORTED_NONACTION_PAYMENT_METHODS = exports.MIN_ACH_PAYMENT_AMOUNT = void 0;
4
4
  const payment_enums_1 = require("../enums/payment.enums");
5
5
  exports.MIN_ACH_PAYMENT_AMOUNT = 0.5;
6
6
  exports.SUPPORTED_NONACTION_PAYMENT_METHODS = [
@@ -25,10 +25,6 @@ exports.installmentStatusDict = {
25
25
  null: 5,
26
26
  default: 6,
27
27
  };
28
- const uniqueTaxTemplate = (lineItem) => {
29
- return `${lineItem.taxPrecent}_${lineItem.isTaxInclusive}`;
30
- };
31
- exports.uniqueTaxTemplate = uniqueTaxTemplate;
32
28
  exports.UNIQUE_SPLIT_CHAR = '&';
33
29
  const uniqueDiscountTemplate = (discountItem) => {
34
30
  const discountPercentage = `${discountItem.discountPercentage ?? ''}`;
@@ -1 +1 @@
1
- {"version":3,"file":"payment.consts.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/consts/payment.consts.ts"],"names":[],"mappings":";;;AAIA,0DAA2G;AAE9F,QAAA,sBAAsB,GAAG,GAAG,CAAC;AAE7B,QAAA,mCAAmC,GAA4B;IAC3E,qCAAqB,CAAC,IAAI;IAC1B,qCAAqB,CAAC,KAAK;IAC3B,qCAAqB,CAAC,KAAK;IAC3B,qCAAqB,CAAC,SAAS;IAC/B,qCAAqB,CAAC,QAAQ;CAC9B,CAAC;AAEW,QAAA,iBAAiB,GAAwB;IACrD,iCAAiB,CAAC,QAAQ;IAC1B,iCAAiB,CAAC,IAAI;IACtB,iCAAiB,CAAC,QAAQ;IAC1B,iCAAiB,CAAC,eAAe;CACjC,CAAC;AAEW,QAAA,qBAAqB,GAA8B;IAC/D,CAAC,uCAAuB,CAAC,SAAS,CAAC,EAAE,CAAC;IACtC,CAAC,uCAAuB,CAAC,OAAO,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,EAAE,iCAAiB,CAAC,OAAO;IAC3D,CAAC,uCAAuB,CAAC,SAAS,CAAC,EAAE,iCAAiB,CAAC,UAAU;IACjE,CAAC,uCAAuB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC9D,CAAC,uCAAuB,CAAC,UAAU,CAAC,EAAE,iCAAiB,CAAC,UAAU;IAClE,CAAC,uCAAuB,CAAC,MAAM,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,uCAAuB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC9D,CAAC,uCAAuB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC9D,CAAC;AAEW,QAAA,qBAAqB,GAAG,gBAAgB,CAAC;AAEzC,QAAA,kBAAkB,GAAG,aAAa,CAAC"}
@@ -96,7 +96,7 @@ export declare const failedInstallmentStatuses: FuturePaymentStatusEnum[];
96
96
  export declare const unpaidInstallmentStatuses: FuturePaymentStatusEnum[];
97
97
  export declare enum FlattenViaPropEnum {
98
98
  CHILDREN = "children",
99
- TAX_ITEM = "taxLineItem"
99
+ TAX_ITEMS = "taxLineItems"
100
100
  }
101
101
  export declare enum PaymentBrandEnum {
102
102
  VISA = "visa",
@@ -122,7 +122,7 @@ exports.unpaidInstallmentStatuses = [
122
122
  var FlattenViaPropEnum;
123
123
  (function (FlattenViaPropEnum) {
124
124
  FlattenViaPropEnum["CHILDREN"] = "children";
125
- FlattenViaPropEnum["TAX_ITEM"] = "taxLineItem";
125
+ FlattenViaPropEnum["TAX_ITEMS"] = "taxLineItems";
126
126
  })(FlattenViaPropEnum = exports.FlattenViaPropEnum || (exports.FlattenViaPropEnum = {}));
127
127
  var PaymentBrandEnum;
128
128
  (function (PaymentBrandEnum) {
@@ -1 +1 @@
1
- {"version":3,"file":"payment.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAaX;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M,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;AAErH;;GAEG;AACH;;;GAGG;AACU,QAAA,yBAAyB,GAAG;IACxC,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,iBAAiB;IACzC,uBAAuB,CAAC,QAAQ;CAChC,CAAC;AAEF,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,2CAAqB,CAAA;IACrB,8CAAwB,CAAA;AACzB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,iCAAa,CAAA;IACb,6CAAyB,CAAA;IACzB,uCAAmB,CAAA;AACpB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,gDAA6B,CAAA;IAC7B,oCAAiB,CAAA;AAClB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACpB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,yCAAe,CAAA;IACf,+CAAqB,CAAA;IACrB,yCAAe,CAAA;AAChB,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
1
+ {"version":3,"file":"payment.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAaX;AAbD,WAAY,iBAAiB;IAC5B,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,8CAAyB,CAAA;IACzB,kCAAa,CAAA;IACb,0CAAq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Q;CAChC,CAAC;AAEF,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,2CAAqB,CAAA;IACrB,gDAA0B,CAAA;AAC3B,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,iCAAa,CAAA;IACb,6CAAyB,CAAA;IACzB,uCAAmB,CAAA;AACpB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,gDAA6B,CAAA;IAC7B,oCAAiB,CAAA;AAClB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACpB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,yCAAe,CAAA;IACf,+CAAqB,CAAA;IACrB,yCAAe,CAAA;AAChB,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
@@ -1,4 +1,5 @@
1
1
  import { Invoice } from '../../../entity/Invoice';
2
+ import { InvoiceDto } from '../../../invoice/dto/invoice.dto';
2
3
  import { PaymentMethodDto, RefundAmountDto } from '../../dto/refund.dto';
3
4
  import { RefundBuilderErrorCodesEnum, RefundItemTypeEnum, RefundTypeEnum } from '../enums/refund.enums';
4
5
  import { PaymentsResults } from './payment.interfaces';
@@ -26,7 +27,7 @@ export declare class RefundResult extends PaymentsResults {
26
27
  failedLineItems: RefundAmountDto[];
27
28
  successfulFees: RefundAmountDto[];
28
29
  failedFees: RefundAmountDto[];
29
- invoice?: Invoice;
30
+ invoice?: Invoice | InvoiceDto;
30
31
  }
31
32
  export declare class RefundsResult extends PaymentsResults {
32
33
  successfulLineItems: Map<number, RefundAmountDto>;
@@ -1 +1 @@
1
- {"version":3,"file":"refund.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/refund.interfaces.ts"],"names":[],"mappings":";;;AAKA,6DAAuD;AAqBvD,MAAa,YAAa,SAAQ,oCAAe;CAUhD;AAVD,oCAUC;AAED,MAAa,aAAc,SAAQ,oCAAe;CAMjD;AAND,sCAMC"}
1
+ {"version":3,"file":"refund.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/refund.interfaces.ts"],"names":[],"mappings":";;;AAMA,6DAAuD;AAqBvD,MAAa,YAAa,SAAQ,oCAAe;CAUhD;AAVD,oCAUC;AAED,MAAa,aAAc,SAAQ,oCAAe;CAMjD;AAND,sCAMC"}