@bondsports/types 2.5.7 → 2.5.8-a-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 (261) hide show
  1. package/LICENSE.md +0 -0
  2. package/dist/tsconfig.build.tsbuildinfo +1 -1
  3. package/dist/types/attendance/dto/index.d.ts +1 -0
  4. package/dist/types/attendance/dto/index.js +1 -0
  5. package/dist/types/attendance/dto/index.js.map +1 -1
  6. package/dist/types/attendance/dto/organization-attendance.dto.d.ts +23 -0
  7. package/dist/types/attendance/dto/organization-attendance.dto.js +18 -0
  8. package/dist/types/attendance/dto/organization-attendance.dto.js.map +1 -0
  9. package/dist/types/attendance/types/attendance.enums.d.ts +8 -0
  10. package/dist/types/attendance/types/attendance.enums.js +10 -1
  11. package/dist/types/attendance/types/attendance.enums.js.map +1 -1
  12. package/dist/types/attendance/types/index.d.ts +1 -0
  13. package/dist/types/attendance/types/index.js +1 -0
  14. package/dist/types/attendance/types/index.js.map +1 -1
  15. package/dist/types/attendance/types/interfaces/attendance.interfaces.d.ts +63 -0
  16. package/dist/types/attendance/types/interfaces/attendance.interfaces.js +3 -0
  17. package/dist/types/attendance/types/interfaces/attendance.interfaces.js.map +1 -0
  18. package/dist/types/attendance/types/interfaces/index.d.ts +1 -0
  19. package/dist/types/attendance/types/interfaces/index.js +18 -0
  20. package/dist/types/attendance/types/interfaces/index.js.map +1 -0
  21. package/dist/types/cart/dto/cart-item-public.dto.d.ts +27 -1
  22. package/dist/types/cart/dto/cart-item-public.dto.js +26 -1
  23. package/dist/types/cart/dto/cart-item-public.dto.js.map +1 -1
  24. package/dist/types/cart/dto/cart-item.dto.d.ts +18 -4
  25. package/dist/types/cart/dto/cart-item.dto.js +17 -2
  26. package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
  27. package/dist/types/cart/dto/cart-public.dto.d.ts +15 -1
  28. package/dist/types/cart/dto/cart-public.dto.js +15 -1
  29. package/dist/types/cart/dto/cart-public.dto.js.map +1 -1
  30. package/dist/types/cart/dto/cart.dto.d.ts +4 -0
  31. package/dist/types/cart/dto/cart.dto.js +4 -0
  32. package/dist/types/cart/dto/cart.dto.js.map +1 -1
  33. package/dist/types/cart/types/consts/cart-public-api-examples.consts.d.ts +101 -0
  34. package/dist/types/cart/types/consts/cart-public-api-examples.consts.js +137 -0
  35. package/dist/types/cart/types/consts/cart-public-api-examples.consts.js.map +1 -0
  36. package/dist/types/cart/types/consts/cart-request-limits.consts.d.ts +6 -0
  37. package/dist/types/cart/types/consts/cart-request-limits.consts.js +10 -0
  38. package/dist/types/cart/types/consts/cart-request-limits.consts.js.map +1 -0
  39. package/dist/types/cart/types/consts/cart.consts.d.ts +1 -0
  40. package/dist/types/cart/types/consts/cart.consts.js +1 -0
  41. package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
  42. package/dist/types/cart/types/consts/index.d.ts +2 -0
  43. package/dist/types/cart/types/consts/index.js +2 -0
  44. package/dist/types/cart/types/consts/index.js.map +1 -1
  45. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +2 -2
  46. package/dist/types/customers/dto/customer-response.dto.d.ts +1 -0
  47. package/dist/types/customers/dto/customer-response.dto.js.map +1 -1
  48. package/dist/types/customers/dto/full-customer.dto.d.ts +1 -0
  49. package/dist/types/customers/dto/full-customer.dto.js.map +1 -1
  50. package/dist/types/customers/types/interfaces.d.ts +6 -1
  51. package/dist/types/customers-merge/dto/customers-merge.dto.d.ts +2 -1
  52. package/dist/types/customers-merge/dto/customers-merge.dto.js.map +1 -1
  53. package/dist/types/customers-merge/types/index.d.ts +1 -0
  54. package/dist/types/customers-merge/types/index.js +1 -0
  55. package/dist/types/customers-merge/types/index.js.map +1 -1
  56. package/dist/types/customers-merge/types/interfaces.d.ts +4 -3
  57. package/dist/types/customers-merge/types/merge-error-params.d.ts +42 -0
  58. package/dist/types/customers-merge/types/merge-error-params.js +3 -0
  59. package/dist/types/customers-merge/types/merge-error-params.js.map +1 -0
  60. package/dist/types/dto/application.dto.d.ts +1 -0
  61. package/dist/types/dto/application.dto.js.map +1 -1
  62. package/dist/types/dto/customer.dto.d.ts +3 -1
  63. package/dist/types/dto/customer.dto.js.map +1 -1
  64. package/dist/types/dto/package.dto.d.ts +2 -0
  65. package/dist/types/dto/package.dto.js.map +1 -1
  66. package/dist/types/dto/product-user.d.ts +7 -0
  67. package/dist/types/dto/product-user.js +5 -1
  68. package/dist/types/dto/product-user.js.map +1 -1
  69. package/dist/types/entity/Customer.d.ts +3 -0
  70. package/dist/types/entity/Customer.js.map +1 -1
  71. package/dist/types/entity/LineItems.d.ts +4 -12
  72. package/dist/types/entity/LineItems.js.map +1 -1
  73. package/dist/types/filters/types/consts.d.ts +12 -0
  74. package/dist/types/filters/types/consts.js +15 -1
  75. package/dist/types/filters/types/consts.js.map +1 -1
  76. package/dist/types/filters/types/enums/filter.enums.d.ts +2 -1
  77. package/dist/types/filters/types/enums/filter.enums.js +1 -0
  78. package/dist/types/filters/types/enums/filter.enums.js.map +1 -1
  79. package/dist/types/filters/types/interfaces/filters.interfaces.d.ts +18 -0
  80. package/dist/types/index.d.ts +2 -0
  81. package/dist/types/index.js +2 -0
  82. package/dist/types/index.js.map +1 -1
  83. package/dist/types/invoice/dto/index.d.ts +1 -0
  84. package/dist/types/invoice/dto/index.js +1 -0
  85. package/dist/types/invoice/dto/index.js.map +1 -1
  86. package/dist/types/invoice/dto/invoice-cart.dto.d.ts +18 -0
  87. package/dist/types/invoice/dto/invoice-cart.dto.js +16 -0
  88. package/dist/types/invoice/dto/invoice-cart.dto.js.map +1 -0
  89. package/dist/types/invoice/dto/invoice.dto.d.ts +59 -32
  90. package/dist/types/invoice/dto/invoice.dto.js +13 -16
  91. package/dist/types/invoice/dto/invoice.dto.js.map +1 -1
  92. package/dist/types/invoice/dto/lineItem.dto.d.ts +71 -1
  93. package/dist/types/invoice/dto/lineItem.dto.js +9 -2
  94. package/dist/types/invoice/dto/lineItem.dto.js.map +1 -1
  95. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +3 -16
  96. package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
  97. package/dist/types/league-standings/dto/game.dto.d.ts +2 -2
  98. package/dist/types/league-standings/interfaces/competition-team.interface.d.ts +10 -0
  99. package/dist/types/notifications/dto/notification.create.dto.js.map +1 -1
  100. package/dist/types/payment/dto/discount.dto.d.ts +2 -0
  101. package/dist/types/payment/dto/discount.dto.js.map +1 -1
  102. package/dist/types/payment/dto/payment.dto.d.ts +2 -2
  103. package/dist/types/payment/dto/refund.dto.d.ts +1 -0
  104. package/dist/types/payment/dto/refund.dto.js.map +1 -1
  105. package/dist/types/payment/dto/void.dto.d.ts +1 -0
  106. package/dist/types/payment/dto/void.dto.js.map +1 -1
  107. package/dist/types/payment/types/consts/payment.consts.d.ts +0 -2
  108. package/dist/types/payment/types/consts/payment.consts.js +1 -5
  109. package/dist/types/payment/types/consts/payment.consts.js.map +1 -1
  110. package/dist/types/payment/types/enums/payment.enums.d.ts +1 -1
  111. package/dist/types/payment/types/enums/payment.enums.js +1 -1
  112. package/dist/types/payment/types/enums/payment.enums.js.map +1 -1
  113. package/dist/types/payment/types/interfaces/refund.interfaces.d.ts +2 -1
  114. package/dist/types/payment/types/interfaces/refund.interfaces.js.map +1 -1
  115. package/dist/types/payment/types/interfaces/void.interfaces.d.ts +1 -0
  116. package/dist/types/product-pricing/dto/index.d.ts +2 -0
  117. package/dist/types/product-pricing/dto/index.js +2 -0
  118. package/dist/types/product-pricing/dto/index.js.map +1 -1
  119. package/dist/types/product-pricing/dto/product-facility-inventory.dto.d.ts +7 -0
  120. package/dist/types/product-pricing/dto/product-facility-inventory.dto.js +8 -0
  121. package/dist/types/product-pricing/dto/product-facility-inventory.dto.js.map +1 -0
  122. package/dist/types/product-pricing/dto/product-inventory.dto.d.ts +16 -0
  123. package/dist/types/product-pricing/dto/product-inventory.dto.js +17 -0
  124. package/dist/types/product-pricing/dto/product-inventory.dto.js.map +1 -0
  125. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -1
  126. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  127. package/dist/types/product-pricing/dto/product.dto.d.ts +7 -0
  128. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  129. package/dist/types/product-pricing/entities/index.d.ts +2 -0
  130. package/dist/types/product-pricing/entities/index.js +2 -0
  131. package/dist/types/product-pricing/entities/index.js.map +1 -1
  132. package/dist/types/product-pricing/entities/product-facility-inventory.entity.d.ts +12 -0
  133. package/dist/types/product-pricing/entities/product-facility-inventory.entity.js +8 -0
  134. package/dist/types/product-pricing/entities/product-facility-inventory.entity.js.map +1 -0
  135. package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.d.ts +17 -0
  136. package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.js +8 -0
  137. package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.js.map +1 -0
  138. package/dist/types/product-pricing/entities/product.entity.d.ts +6 -0
  139. package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
  140. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  141. package/dist/types/product-pricing/types/consts/index.js +1 -0
  142. package/dist/types/product-pricing/types/consts/index.js.map +1 -1
  143. package/dist/types/product-pricing/types/consts/product-inventory.consts.d.ts +1 -0
  144. package/dist/types/product-pricing/types/consts/product-inventory.consts.js +5 -0
  145. package/dist/types/product-pricing/types/consts/product-inventory.consts.js.map +1 -0
  146. package/dist/types/product-pricing/types/consts/product-resource.consts.d.ts +6 -1
  147. package/dist/types/product-pricing/types/consts/product-resource.consts.js +6 -1
  148. package/dist/types/product-pricing/types/consts/product-resource.consts.js.map +1 -1
  149. package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
  150. package/dist/types/product-pricing/types/enums/index.js +1 -0
  151. package/dist/types/product-pricing/types/enums/index.js.map +1 -1
  152. package/dist/types/product-pricing/types/enums/product-inventory.enums.d.ts +9 -0
  153. package/dist/types/product-pricing/types/enums/product-inventory.enums.js +15 -0
  154. package/dist/types/product-pricing/types/enums/product-inventory.enums.js.map +1 -0
  155. package/dist/types/product-pricing/types/enums/product.enums.d.ts +9 -1
  156. package/dist/types/product-pricing/types/enums/product.enums.js +10 -1
  157. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  158. package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
  159. package/dist/types/product-pricing/types/interfaces/index.js +1 -0
  160. package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
  161. package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.d.ts +36 -0
  162. package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.js +3 -0
  163. package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.js.map +1 -0
  164. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +7 -1
  165. package/dist/types/product-pricing/types/interfaces/product-resource.interfaces.d.ts +2 -3
  166. package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +2 -1
  167. package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.js.map +1 -1
  168. package/dist/types/program-portals/index.d.ts +1 -0
  169. package/dist/types/program-portals/index.js +18 -0
  170. package/dist/types/program-portals/index.js.map +1 -0
  171. package/dist/types/program-portals/types/classes/index.d.ts +2 -0
  172. package/dist/types/program-portals/types/classes/index.js +19 -0
  173. package/dist/types/program-portals/types/classes/index.js.map +1 -0
  174. package/dist/types/program-portals/types/classes/program-portal-options.class.d.ts +24 -0
  175. package/dist/types/program-portals/types/classes/program-portal-options.class.js +13 -0
  176. package/dist/types/program-portals/types/classes/program-portal-options.class.js.map +1 -0
  177. package/dist/types/program-portals/types/classes/program-portal.class.d.ts +14 -0
  178. package/dist/types/program-portals/types/classes/program-portal.class.js +8 -0
  179. package/dist/types/program-portals/types/classes/program-portal.class.js.map +1 -0
  180. package/dist/types/program-portals/types/consts/index.d.ts +1 -0
  181. package/dist/types/program-portals/types/consts/index.js +18 -0
  182. package/dist/types/program-portals/types/consts/index.js.map +1 -0
  183. package/dist/types/program-portals/types/consts/program-portals.consts.d.ts +14 -0
  184. package/dist/types/program-portals/types/consts/program-portals.consts.js +31 -0
  185. package/dist/types/program-portals/types/consts/program-portals.consts.js.map +1 -0
  186. package/dist/types/program-portals/types/dto/index.d.ts +1 -0
  187. package/dist/types/program-portals/types/dto/index.js +18 -0
  188. package/dist/types/program-portals/types/dto/index.js.map +1 -0
  189. package/dist/types/program-portals/types/dto/program-portals.dto.d.ts +91 -0
  190. package/dist/types/program-portals/types/dto/program-portals.dto.js +53 -0
  191. package/dist/types/program-portals/types/dto/program-portals.dto.js.map +1 -0
  192. package/dist/types/program-portals/types/enums/index.d.ts +1 -0
  193. package/dist/types/program-portals/types/enums/index.js +18 -0
  194. package/dist/types/program-portals/types/enums/index.js.map +1 -0
  195. package/dist/types/program-portals/types/enums/program-portals.enums.d.ts +20 -0
  196. package/dist/types/program-portals/types/enums/program-portals.enums.js +28 -0
  197. package/dist/types/program-portals/types/enums/program-portals.enums.js.map +1 -0
  198. package/dist/types/program-portals/types/index.d.ts +5 -0
  199. package/dist/types/program-portals/types/index.js +22 -0
  200. package/dist/types/program-portals/types/index.js.map +1 -0
  201. package/dist/types/program-portals/types/interfaces/index.d.ts +1 -0
  202. package/dist/types/program-portals/types/interfaces/index.js +18 -0
  203. package/dist/types/program-portals/types/interfaces/index.js.map +1 -0
  204. package/dist/types/program-portals/types/interfaces/program-portals.interfaces.d.ts +22 -0
  205. package/dist/types/program-portals/types/interfaces/program-portals.interfaces.js +3 -0
  206. package/dist/types/program-portals/types/interfaces/program-portals.interfaces.js.map +1 -0
  207. package/dist/types/programs/dto/segment-public.dto.d.ts +3 -0
  208. package/dist/types/programs/dto/segment-public.dto.js.map +1 -1
  209. package/dist/types/programs/types/interfaces/program.interfaces.d.ts +1 -0
  210. package/dist/types/programs-seasons/dto/program-session.dto.d.ts +5 -0
  211. package/dist/types/programs-seasons/dto/program-session.dto.js.map +1 -1
  212. package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +3 -0
  213. package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
  214. package/dist/types/purchase/dto/purchase.dto.d.ts +12 -10
  215. package/dist/types/purchase/dto/purchase.dto.js +11 -11
  216. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  217. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +7 -0
  218. package/dist/types/questionnaires/types/questions.enum.d.ts +2 -1
  219. package/dist/types/questionnaires/types/questions.enum.js +1 -0
  220. package/dist/types/questionnaires/types/questions.enum.js.map +1 -1
  221. package/dist/types/react/WaiverTemplate/waiver.types.d.ts +83 -14
  222. package/dist/types/reservations/dto/reservation.dto.d.ts +2 -1
  223. package/dist/types/reservations/dto/reservation.dto.js +3 -3
  224. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  225. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +7 -3
  226. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  227. package/dist/types/segment-tags/entities/index.d.ts +1 -0
  228. package/dist/types/segment-tags/entities/index.js +18 -0
  229. package/dist/types/segment-tags/entities/index.js.map +1 -0
  230. package/dist/types/segment-tags/entities/segment-tag.entity.d.ts +5 -0
  231. package/dist/types/segment-tags/entities/segment-tag.entity.js +8 -0
  232. package/dist/types/segment-tags/entities/segment-tag.entity.js.map +1 -0
  233. package/dist/types/segment-tags/index.d.ts +2 -0
  234. package/dist/types/segment-tags/index.js +19 -0
  235. package/dist/types/segment-tags/index.js.map +1 -0
  236. package/dist/types/segment-tags/types/dto/index.d.ts +1 -0
  237. package/dist/types/segment-tags/types/dto/index.js +18 -0
  238. package/dist/types/segment-tags/types/dto/index.js.map +1 -0
  239. package/dist/types/segment-tags/types/dto/segment-tags.dto.d.ts +22 -0
  240. package/dist/types/segment-tags/types/dto/segment-tags.dto.js +21 -0
  241. package/dist/types/segment-tags/types/dto/segment-tags.dto.js.map +1 -0
  242. package/dist/types/segment-tags/types/enums/index.d.ts +1 -0
  243. package/dist/types/segment-tags/types/enums/index.js +18 -0
  244. package/dist/types/segment-tags/types/enums/index.js.map +1 -0
  245. package/dist/types/segment-tags/types/enums/segment-tag.enum.d.ts +4 -0
  246. package/dist/types/segment-tags/types/enums/segment-tag.enum.js +9 -0
  247. package/dist/types/segment-tags/types/enums/segment-tag.enum.js.map +1 -0
  248. package/dist/types/segment-tags/types/index.d.ts +3 -0
  249. package/dist/types/segment-tags/types/index.js +20 -0
  250. package/dist/types/segment-tags/types/index.js.map +1 -0
  251. package/dist/types/segment-tags/types/interfaces/index.d.ts +1 -0
  252. package/dist/types/segment-tags/types/interfaces/index.js +18 -0
  253. package/dist/types/segment-tags/types/interfaces/index.js.map +1 -0
  254. package/dist/types/segment-tags/types/interfaces/segment-tag.interfaces.d.ts +7 -0
  255. package/dist/types/segment-tags/types/interfaces/segment-tag.interfaces.js +3 -0
  256. package/dist/types/segment-tags/types/interfaces/segment-tag.interfaces.js.map +1 -0
  257. package/dist/types/services/enums.service.d.ts +2 -3
  258. package/dist/types/services/enums.service.js +7 -4
  259. package/dist/types/services/enums.service.js.map +1 -1
  260. package/dist/types/standings-integration/dto/game-score.dto.d.ts +1 -1
  261. package/package.json +4 -4
@@ -1 +1 @@
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,0CAAqB,CAAA;IACrB,wDAAmC,CAAA;IACnC,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,4DAAuC,CAAA;AACxC,CAAC,EAbW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAa5B;AAED,IAAY,mBAQX;AARD,WAAY,mBAAm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Y,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,0CAAqB,CAAA;IACrB,wDAAmC,CAAA;IACnC,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,4DAAuC,CAAA;AACxC,CAAC,EAbW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAa5B;AAED,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC9B,uDAAgC,CAAA;IAChC,wCAAiB,CAAA;IACjB,gCAAS,CAAA;IACT,+CAAwB,CAAA;IACxB,+CAAwB,CAAA;IACxB,sCAAe,CAAA;IACf,2CAAoB,CAAA;AACrB,CAAC,EARW,mBAAmB,GAAnB,2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1B,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"}
@@ -28,6 +28,7 @@ export interface IVoid {
28
28
  meta?: RevertMetaDto;
29
29
  notes?: CreateNoteDto[];
30
30
  type?: VoidTypeEnum;
31
+ replenishStock?: boolean;
31
32
  }
32
33
  export interface IVoidDiscount {
33
34
  id?: number;
@@ -1,4 +1,6 @@
1
1
  export * from './product-categories.dto';
2
+ export * from './product-facility-inventory.dto';
3
+ export * from './product-inventory.dto';
2
4
  export * from './product-pricing.dto';
3
5
  export * from './product-resource.dto';
4
6
  export * from './product.dto';
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-categories.dto"), exports);
18
+ __exportStar(require("./product-facility-inventory.dto"), exports);
19
+ __exportStar(require("./product-inventory.dto"), exports);
18
20
  __exportStar(require("./product-pricing.dto"), exports);
19
21
  __exportStar(require("./product-resource.dto"), exports);
20
22
  __exportStar(require("./product.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B;AAC9B,kEAAgD;AAChD,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC;AACrC,kEAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,mEAAiD;AACjD,0DAAwC;AACxC,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B;AAC9B,kEAAgD;AAChD,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC;AACrC,kEAAgD"}
@@ -0,0 +1,7 @@
1
+ import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
2
+ export declare class ProductFacilityInventoryDto extends OrganizationBaseEntityDto {
3
+ productId: number;
4
+ facilityId: number;
5
+ inventoryQuantity?: number;
6
+ lowInventoryThreshold?: number;
7
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductFacilityInventoryDto = void 0;
4
+ const organization_dto_1 = require("../../organization/dto/organization.dto");
5
+ class ProductFacilityInventoryDto extends organization_dto_1.OrganizationBaseEntityDto {
6
+ }
7
+ exports.ProductFacilityInventoryDto = ProductFacilityInventoryDto;
8
+ //# sourceMappingURL=product-facility-inventory.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-facility-inventory.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-facility-inventory.dto.ts"],"names":[],"mappings":";;;AACA,8EAAoF;AAEpF,MAAa,2BAA4B,SAAQ,4CAAyB;CAQzE;AARD,kEAQC"}
@@ -0,0 +1,16 @@
1
+ import { ByProductAndOrgDto } from './product.dto';
2
+ export declare class ByProductFacilityInventoryDto extends ByProductAndOrgDto {
3
+ facilityId: number;
4
+ }
5
+ export declare class BatchUpdateProductFacilityInventoryItemDto {
6
+ productId: number;
7
+ inventoryQuantity?: number;
8
+ lowInventoryThreshold?: number | null;
9
+ }
10
+ export declare class BatchUpdateProductFacilityInventoryDto {
11
+ items: BatchUpdateProductFacilityInventoryItemDto[];
12
+ }
13
+ export declare class GetProductFacilityInventoriesQueryDto {
14
+ productIds?: number[];
15
+ facilityIds?: number[];
16
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetProductFacilityInventoriesQueryDto = exports.BatchUpdateProductFacilityInventoryDto = exports.BatchUpdateProductFacilityInventoryItemDto = exports.ByProductFacilityInventoryDto = void 0;
4
+ const product_dto_1 = require("./product.dto");
5
+ class ByProductFacilityInventoryDto extends product_dto_1.ByProductAndOrgDto {
6
+ }
7
+ exports.ByProductFacilityInventoryDto = ByProductFacilityInventoryDto;
8
+ class BatchUpdateProductFacilityInventoryItemDto {
9
+ }
10
+ exports.BatchUpdateProductFacilityInventoryItemDto = BatchUpdateProductFacilityInventoryItemDto;
11
+ class BatchUpdateProductFacilityInventoryDto {
12
+ }
13
+ exports.BatchUpdateProductFacilityInventoryDto = BatchUpdateProductFacilityInventoryDto;
14
+ class GetProductFacilityInventoriesQueryDto {
15
+ }
16
+ exports.GetProductFacilityInventoriesQueryDto = GetProductFacilityInventoriesQueryDto;
17
+ //# sourceMappingURL=product-inventory.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-inventory.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-inventory.dto.ts"],"names":[],"mappings":";;;AAEA,+CAAmD;AAEnD,MAAa,6BAA8B,SAAQ,gCAAkB;CAEpE;AAFD,sEAEC;AAED,MAAa,0CAA0C;CAMtD;AAND,gGAMC;AAED,MAAa,sCAAsC;CAElD;AAFD,wFAEC;AAED,MAAa,qCAAqC;CAIjD;AAJD,sFAIC"}
@@ -5,7 +5,7 @@ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
5
5
  import { ProgramTypesEnum } from '../../programs/types/enums/program.enums';
6
6
  import { ResourceDto } from '../../resources/dto/resource.dto';
7
7
  import { ActivityEnum, OrderByEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
8
- import { OrderByProductEnum, ProductExpandEnum } from '../types/enums/product.enums';
8
+ import { CommerceProductInventoryFilterStatusEnum, OrderByProductEnum, ProductExpandEnum } from '../types/enums/product.enums';
9
9
  import { IFindPriceOfProduct, IGetProductsByTypeOptions, IGetPunchPassProductsOptions } from '../types/interfaces/product-pricing.interfaces';
10
10
  export declare class FindPriceOfProductDto implements IFindPriceOfProduct {
11
11
  id?: number;
@@ -53,6 +53,7 @@ export declare class GetProductsByTypeDto extends ByOrganizationIdDto {
53
53
  export declare class GetProductsByTypeQueryDto extends PaginationQuery implements IGetProductsByTypeOptions {
54
54
  productIds?: number[];
55
55
  expand?: ProductExpandEnum[];
56
+ facilityId?: number;
56
57
  includeAddons?: boolean;
57
58
  includeArchived?: boolean;
58
59
  onlyNonGatedProducts?: boolean;
@@ -77,6 +78,7 @@ export declare class GetProductsByTypeQueryDto extends PaginationQuery implement
77
78
  stationId?: number;
78
79
  includeOnlyNotAssignedToCategory?: boolean;
79
80
  isAvailableOnline?: boolean;
81
+ inventoryStatuses?: CommerceProductInventoryFilterStatusEnum[];
80
82
  }
81
83
  export declare class GetPunchPassProductsByTypeQueryDto extends PaginationQuery implements IGetPunchPassProductsOptions {
82
84
  search?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AACxD,8EAA8E;AAW9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,kCAAkC;CAI9C;AAJD,gFAIC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAoD7D;AApDD,8DAoDC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAsBtE;AAtBD,gFAsBC"}
1
+ {"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AACxD,8EAA8E;AAe9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,kCAAkC;CAI9C;AAJD,gFAIC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAwD7D;AAxDD,8DAwDC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAsBtE;AAtBD,gFAsBC"}
@@ -16,8 +16,10 @@ import { ResourceSettingDto } from '../../resource-settings/dto/resource-setting
16
16
  import { ActivityEnum, AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
17
17
  import { IResourcesAvailability } from '../../services/interfaces.service';
18
18
  import { TaxDto } from '../../taxes/dto/tax.dto';
19
+ import { ProductVariantInventoryScopeEnum } from '../types/enums/product-inventory.enums';
19
20
  import { IGetResourcesProductsOptions, IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
20
21
  import { ProductCategoryDto } from './product-categories.dto';
22
+ import { ProductFacilityInventoryDto } from './product-facility-inventory.dto';
21
23
  import { ProductResourceDto } from './product-resource.dto';
22
24
  export declare class FindByProductIdDto {
23
25
  productId: number;
@@ -84,6 +86,7 @@ export declare class ProductFieldsDto {
84
86
  punchCard: boolean;
85
87
  requiredProductIds?: number[];
86
88
  variantParentId?: number;
89
+ variantInventoryScope?: ProductVariantInventoryScopeEnum;
87
90
  isAddon: boolean;
88
91
  isArchive: boolean;
89
92
  timePeriod?: AddonTimePeriodEnum;
@@ -126,6 +129,7 @@ export declare class ProductVariantDto extends IdAndNameDto {
126
129
  prices?: PriceDto[];
127
130
  variantsObj: VariantDto[];
128
131
  variantTitlesObj: VariantTitleDto[];
132
+ facilityInventory?: ProductFacilityInventoryDto;
129
133
  }
130
134
  export declare class AddOnProductDto extends IdAndNameDto {
131
135
  prices?: PriceDto[];
@@ -182,6 +186,7 @@ export declare class BaseProductDto {
182
186
  activityTimes?: ActivityTimesDto[];
183
187
  resourceSettings: ResourceSettingDto[];
184
188
  timezone?: string;
189
+ variantInventoryScope?: ProductVariantInventoryScopeEnum;
185
190
  }
186
191
  export declare class DeprecatedProductDto extends BaseProductDto {
187
192
  productPaymentPlan?: PaymentPlanDto;
@@ -198,6 +203,8 @@ export declare class ProductDto extends BaseProductDto {
198
203
  facilityIds?: number[];
199
204
  isAllFacilities?: boolean;
200
205
  requiredProducts?: ProductDto[];
206
+ inventoryTracked?: boolean;
207
+ facilityInventory?: ProductFacilityInventoryDto;
201
208
  }
202
209
  export declare class ResourceProductDto {
203
210
  id: number;
@@ -1 +1 @@
1
- {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAmF;AAOnF,8EAA8E;AAuB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,oCAAoC;CAMhD;AAND,oFAMC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,gBAAgB;CAwD5B;AAxDD,4CAwDC;AAED,MAAa,sBAAsB;CAkBlC;AAlBD,wDAkBC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAcjD;AAdD,4CAcC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAQlD;AARD,8CAQC;AAED,MAAa,eAAgB,SAAQ,0BAAY;CAIhD;AAJD,0CAIC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,cAAc;CA0F1B;AA1FD,wCA0FC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAsB7C;AAtBD,gCAsBC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAQjD;AARD,gDAQC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC"}
1
+ {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAmF;AAOnF,8EAA8E;AAyB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,oCAAoC;CAMhD;AAND,oFAMC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,gBAAgB;CA0D5B;AA1DD,4CA0DC;AAED,MAAa,sBAAsB;CAkBlC;AAlBD,wDAkBC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAcjD;AAdD,4CAcC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAUlD;AAVD,8CAUC;AAED,MAAa,eAAgB,SAAQ,0BAAY;CAIhD;AAJD,0CAIC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,cAAc;CA4F1B;AA5FD,wCA4FC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CA0B7C;AA1BD,gCA0BC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAQjD;AARD,gDAQC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC"}
@@ -1,4 +1,6 @@
1
1
  export * from './product-category.entity';
2
+ export * from './product-facility-inventory.entity';
3
+ export * from './product-inventory-adjustment.entity';
2
4
  export * from './product-to-facility.entity';
3
5
  export * from './product.entity';
4
6
  export * from './station-to-product-category.entity';
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-category.entity"), exports);
18
+ __exportStar(require("./product-facility-inventory.entity"), exports);
19
+ __exportStar(require("./product-inventory-adjustment.entity"), exports);
18
20
  __exportStar(require("./product-to-facility.entity"), exports);
19
21
  __exportStar(require("./product.entity"), exports);
20
22
  __exportStar(require("./station-to-product-category.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,uEAAqD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,sEAAoD;AACpD,wEAAsD;AACtD,+DAA6C;AAC7C,mDAAiC;AACjC,uEAAqD"}
@@ -0,0 +1,12 @@
1
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
+ import { Facility } from '../../facilities/entities/Facility';
3
+ import { Product } from './product.entity';
4
+ export declare class ProductFacilityInventory extends OrganizationConnectionBaseEntity {
5
+ productId: number;
6
+ facilityId: number;
7
+ inventoryQuantity?: number;
8
+ lowInventoryThreshold?: number;
9
+ deletedAt?: Date;
10
+ facility: Facility;
11
+ product: Product;
12
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductFacilityInventory = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class ProductFacilityInventory extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.ProductFacilityInventory = ProductFacilityInventory;
8
+ //# sourceMappingURL=product-facility-inventory.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-facility-inventory.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product-facility-inventory.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAKjG,MAAa,wBAAyB,SAAQ,mEAAgC;CAc7E;AAdD,4DAcC"}
@@ -0,0 +1,17 @@
1
+ import { LineItems } from '../../entity/LineItems';
2
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
+ import { Facility } from '../../facilities/entities/Facility';
4
+ import { ProductInventoryAdjustmentSourceEnum } from '../types/enums/product-inventory.enums';
5
+ import { Product } from './product.entity';
6
+ export declare class ProductInventoryAdjustment extends OrganizationConnectionBaseEntity {
7
+ productId: number;
8
+ facilityId: number;
9
+ lineItemId?: number;
10
+ quantityDelta: number;
11
+ quantityAfter: number;
12
+ source: ProductInventoryAdjustmentSourceEnum;
13
+ idempotencyKey: string;
14
+ product: Product;
15
+ facility: Facility;
16
+ lineItem?: LineItems;
17
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductInventoryAdjustment = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class ProductInventoryAdjustment extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.ProductInventoryAdjustment = ProductInventoryAdjustment;
8
+ //# sourceMappingURL=product-inventory-adjustment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-inventory-adjustment.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product-inventory-adjustment.entity.ts"],"names":[],"mappings":";;;AAGA,oGAAiG;AAMjG,MAAa,0BAA2B,SAAQ,mEAAgC;CAoB/E;AApBD,gEAoBC"}
@@ -25,8 +25,10 @@ import { IChildProduct, IResourcesAvailability } from '../../services/interfaces
25
25
  import { Tax } from '../../taxes/entities/Tax';
26
26
  import { ProductResourceDto } from '../dto/product-resource.dto';
27
27
  import { ProductStateEnum } from '../types/enums/product.enums';
28
+ import { ProductVariantInventoryScopeEnum } from '../types/enums/product-inventory.enums';
28
29
  import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
29
30
  import { ProductCategory } from './product-category.entity';
31
+ import { ProductFacilityInventory } from './product-facility-inventory.entity';
30
32
  import { ProductToFacility } from './product-to-facility.entity';
31
33
  export declare class Product extends OrganizationConnectionBaseEntity {
32
34
  name: string;
@@ -103,4 +105,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
103
105
  required?: boolean;
104
106
  existingMember?: MembershipMember;
105
107
  isAvailableOnline: boolean;
108
+ variantInventoryScope: ProductVariantInventoryScopeEnum;
109
+ inventoryTracked?: boolean;
110
+ facilityInventory?: ProductFacilityInventory;
111
+ productFacilityInventories: ProductFacilityInventory[];
106
112
  }
@@ -1 +1 @@
1
- {"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AA6BjG,MAAa,OAAQ,SAAQ,mEAAgC;CA+J5D;AA/JD,0BA+JC"}
1
+ {"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AA+BjG,MAAa,OAAQ,SAAQ,mEAAgC;CAuK5D;AAvKD,0BAuKC"}
@@ -1,3 +1,4 @@
1
1
  export * from './product-category.consts';
2
+ export * from './product-inventory.consts';
2
3
  export * from './product-pricing.consts';
3
4
  export * from './product-resource.consts';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-category.consts"), exports);
18
+ __exportStar(require("./product-inventory.consts"), exports);
18
19
  __exportStar(require("./product-pricing.consts"), exports);
19
20
  __exportStar(require("./product-resource.consts"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,6DAA2C;AAC3C,2DAAyC;AACzC,4DAA0C"}
@@ -0,0 +1 @@
1
+ export declare const INITIAL_CLAIMED_QUANTITY_AFTER = 0;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INITIAL_CLAIMED_QUANTITY_AFTER = void 0;
4
+ exports.INITIAL_CLAIMED_QUANTITY_AFTER = 0;
5
+ //# sourceMappingURL=product-inventory.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-inventory.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-inventory.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,8BAA8B,GAAG,CAAC,CAAC"}
@@ -1,7 +1,12 @@
1
- import { ResourceNameTypeEnum } from '../../../services/enums.service';
1
+ import { PlatformsEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
2
2
  import { IProductResource, IResource } from '../interfaces/product-resource.interfaces';
3
3
  export declare const uniqueByProductResource: (resource: IProductResource) => string;
4
4
  export declare const getUniqueByResource: (resource: IResource) => string;
5
+ /**
6
+ * Platforms whose incoming membership resource fields (resourceIdToRenew, startDate, endDate)
7
+ * survive the catalog rebuild. Other platforms get the catalog resource only.
8
+ */
9
+ export declare const MEMBERSHIP_RESOURCE_OVERRIDE_PLATFORMS: PlatformsEnum[];
5
10
  export declare const PRODUCT_RESOURCE_PARENT_TYPES: ResourceNameTypeEnum[];
6
11
  /**
7
12
  * Returns a query that checks if a product resource is a program season.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.productResourceToProgramQuery = exports.productResourceToProgramSeasonQuery = exports.PRODUCT_RESOURCE_PARENT_TYPES = exports.getUniqueByResource = exports.uniqueByProductResource = void 0;
3
+ exports.productResourceToProgramQuery = exports.productResourceToProgramSeasonQuery = exports.PRODUCT_RESOURCE_PARENT_TYPES = exports.MEMBERSHIP_RESOURCE_OVERRIDE_PLATFORMS = exports.getUniqueByResource = exports.uniqueByProductResource = void 0;
4
4
  const enums_service_1 = require("../../../services/enums.service");
5
5
  const uniqueByProductResource = (resource) => {
6
6
  return `${resource.productId}_${resource.type}_${resource.id}`;
@@ -8,6 +8,11 @@ const uniqueByProductResource = (resource) => {
8
8
  exports.uniqueByProductResource = uniqueByProductResource;
9
9
  const getUniqueByResource = (resource) => `${resource.type}_${resource.id}`;
10
10
  exports.getUniqueByResource = getUniqueByResource;
11
+ /**
12
+ * Platforms whose incoming membership resource fields (resourceIdToRenew, startDate, endDate)
13
+ * survive the catalog rebuild. Other platforms get the catalog resource only.
14
+ */
15
+ exports.MEMBERSHIP_RESOURCE_OVERRIDE_PLATFORMS = [enums_service_1.PlatformsEnum.BO, enums_service_1.PlatformsEnum.IMPORT];
11
16
  exports.PRODUCT_RESOURCE_PARENT_TYPES = [
12
17
  enums_service_1.ResourceNameTypeEnum.RESERVATION,
13
18
  enums_service_1.ResourceNameTypeEnum.PROGRAM_SEASON,
@@ -1 +1 @@
1
- {"version":3,"file":"product-resource.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-resource.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAuE;AAGhE,MAAM,uBAAuB,GAAG,CAAC,QAA0B,EAAU,EAAE;IAC7E,OAAO,GAAG,QAAQ,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEK,MAAM,mBAAmB,GAAG,CAAC,QAAmB,EAAU,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAAzF,QAAA,mBAAmB,uBAAsE;AAEzF,QAAA,6BAA6B,GAAG;IAC5C,oCAAoB,CAAC,WAAW;IAChC,oCAAoB,CAAC,cAAc;IACnC,oCAAoB,CAAC,OAAO;IAC5B,oCAAoB,CAAC,UAAU;CAC/B,CAAC;AAEF;;;;GAIG;AACI,MAAM,mCAAmC,GAAG,CAAC,QAAgB,IAAI,EAAE,eAAuB,SAAS,EAAU,EAAE,CACrH,IAAI,YAAY,yBAAyB,KAAK,6BAA6B,KAAK,qBAAqB,YAAY,eAAe,KAAK,uBAAuB,oCAAoB,CAAC,cAAc,WAAW,KAAK,qBAAqB,YAAY,sBAAsB,KAAK,uBAAuB,oCAAoB,CAAC,OAAO,WAAW,KAAK,qBAAqB,YAAY,wBAAwB,KAAK,uBAAuB,oCAAoB,CAAC,YAAY,KAAK,CAAC;AAD9b,QAAA,mCAAmC,uCAC2Z;AAE3c;;;;GAIG;AACI,MAAM,6BAA6B,GAAG,CAAC,QAAgB,IAAI,EAAE,eAAuB,SAAS,EAAU,EAAE,CAC/G,IAAI,KAAK,yBAAyB,YAAY,6BAA6B,KAAK,qBAAqB,YAAY,eAAe,KAAK,uBAAuB,oCAAoB,CAAC,OAAO,WAAW,YAAY,eAAe,KAAK,uBAAuB,KAAK,uBAAuB,oCAAoB,CAAC,YAAY,KAAK,CAAC;AADjT,QAAA,6BAA6B,iCACoR"}
1
+ {"version":3,"file":"product-resource.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-resource.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAsF;AAG/E,MAAM,uBAAuB,GAAG,CAAC,QAA0B,EAAU,EAAE;IAC7E,OAAO,GAAG,QAAQ,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEK,MAAM,mBAAmB,GAAG,CAAC,QAAmB,EAAU,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAAzF,QAAA,mBAAmB,uBAAsE;AAEtG;;;GAGG;AACU,QAAA,sCAAsC,GAAoB,CAAC,6BAAa,CAAC,EAAE,EAAE,6BAAa,CAAC,MAAM,CAAC,CAAC;AAEnG,QAAA,6BAA6B,GAAG;IAC5C,oCAAoB,CAAC,WAAW;IAChC,oCAAoB,CAAC,cAAc;IACnC,oCAAoB,CAAC,OAAO;IAC5B,oCAAoB,CAAC,UAAU;CAC/B,CAAC;AAEF;;;;GAIG;AACI,MAAM,mCAAmC,GAAG,CAAC,QAAgB,IAAI,EAAE,eAAuB,SAAS,EAAU,EAAE,CACrH,IAAI,YAAY,yBAAyB,KAAK,6BAA6B,KAAK,qBAAqB,YAAY,eAAe,KAAK,uBAAuB,oCAAoB,CAAC,cAAc,WAAW,KAAK,qBAAqB,YAAY,sBAAsB,KAAK,uBAAuB,oCAAoB,CAAC,OAAO,WAAW,KAAK,qBAAqB,YAAY,wBAAwB,KAAK,uBAAuB,oCAAoB,CAAC,YAAY,KAAK,CAAC;AAD9b,QAAA,mCAAmC,uCAC2Z;AAE3c;;;;GAIG;AACI,MAAM,6BAA6B,GAAG,CAAC,QAAgB,IAAI,EAAE,eAAuB,SAAS,EAAU,EAAE,CAC/G,IAAI,KAAK,yBAAyB,YAAY,6BAA6B,KAAK,qBAAqB,YAAY,eAAe,KAAK,uBAAuB,oCAAoB,CAAC,OAAO,WAAW,YAAY,eAAe,KAAK,uBAAuB,KAAK,uBAAuB,oCAAoB,CAAC,YAAY,KAAK,CAAC;AADjT,QAAA,6BAA6B,iCACoR"}
@@ -1,2 +1,3 @@
1
1
  export * from './product-categories.enums';
2
+ export * from './product-inventory.enums';
2
3
  export * from './product.enums';
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-categories.enums"), exports);
18
+ __exportStar(require("./product-inventory.enums"), exports);
18
19
  __exportStar(require("./product.enums"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,4DAA0C;AAC1C,kDAAgC"}
@@ -0,0 +1,9 @@
1
+ export declare enum ProductInventoryAdjustmentSourceEnum {
2
+ MANUAL_SET = "manual_set",
3
+ SALE = "sale",
4
+ VOID = "void"
5
+ }
6
+ export declare enum ProductVariantInventoryScopeEnum {
7
+ SHARED = "shared",
8
+ PER_VARIANT = "per_variant"
9
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductVariantInventoryScopeEnum = exports.ProductInventoryAdjustmentSourceEnum = void 0;
4
+ var ProductInventoryAdjustmentSourceEnum;
5
+ (function (ProductInventoryAdjustmentSourceEnum) {
6
+ ProductInventoryAdjustmentSourceEnum["MANUAL_SET"] = "manual_set";
7
+ ProductInventoryAdjustmentSourceEnum["SALE"] = "sale";
8
+ ProductInventoryAdjustmentSourceEnum["VOID"] = "void";
9
+ })(ProductInventoryAdjustmentSourceEnum = exports.ProductInventoryAdjustmentSourceEnum || (exports.ProductInventoryAdjustmentSourceEnum = {}));
10
+ var ProductVariantInventoryScopeEnum;
11
+ (function (ProductVariantInventoryScopeEnum) {
12
+ ProductVariantInventoryScopeEnum["SHARED"] = "shared";
13
+ ProductVariantInventoryScopeEnum["PER_VARIANT"] = "per_variant";
14
+ })(ProductVariantInventoryScopeEnum = exports.ProductVariantInventoryScopeEnum || (exports.ProductVariantInventoryScopeEnum = {}));
15
+ //# sourceMappingURL=product-inventory.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-inventory.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product-inventory.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,oCAIX;AAJD,WAAY,oCAAoC;IAC/C,iEAAyB,CAAA;IACzB,qDAAa,CAAA;IACb,qDAAa,CAAA;AACd,CAAC,EAJW,oCAAoC,GAApC,4CAAoC,KAApC,4CAAoC,QAI/C;AAED,IAAY,gCAGX;AAHD,WAAY,gCAAgC;IAC3C,qDAAiB,CAAA;IACjB,+DAA2B,CAAA;AAC5B,CAAC,EAHW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAG3C"}
@@ -34,7 +34,8 @@ export declare enum ProductExpandEnum {
34
34
  RESOURCE_SETTINGS = "resourceSettings",
35
35
  PUNCH_PASS = "punchPass",
36
36
  PUNCH_PASS_HOLDERS = "punchPass.holders",
37
- VARIANTS = "variants"
37
+ VARIANTS = "variants",
38
+ INVENTORY = "inventory"
38
39
  }
39
40
  export declare const PUBLIC_PRODUCT_EXPAND_VALUES: ProductExpandEnum[];
40
41
  /**
@@ -47,3 +48,10 @@ export declare enum ProductBuilderTypeEnum {
47
48
  PROGRAM_PUNCH_PASS = "program_punch_pass",
48
49
  RENTAL_PUNCH_PASS = "rental_punch_pass"
49
50
  }
51
+ export declare enum CommerceProductInventoryFilterStatusEnum {
52
+ NOT_TRACKED = "not_tracked",
53
+ SOLD_OUT = "sold_out",
54
+ LOW_STOCK = "low_stock",
55
+ IN_STOCK = "in_stock",
56
+ OVERSOLD = "oversold"
57
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductBuilderTypeEnum = exports.PRODUCT_EXPAND_CREATE_RESPONSE = exports.PUBLIC_PRODUCT_EXPAND_VALUES = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
3
+ exports.CommerceProductInventoryFilterStatusEnum = exports.ProductBuilderTypeEnum = exports.PRODUCT_EXPAND_CREATE_RESPONSE = exports.PUBLIC_PRODUCT_EXPAND_VALUES = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
4
4
  var ProductStateEnum;
5
5
  (function (ProductStateEnum) {
6
6
  ProductStateEnum["VALID"] = "valid";
@@ -41,6 +41,7 @@ var ProductExpandEnum;
41
41
  ProductExpandEnum["PUNCH_PASS"] = "punchPass";
42
42
  ProductExpandEnum["PUNCH_PASS_HOLDERS"] = "punchPass.holders";
43
43
  ProductExpandEnum["VARIANTS"] = "variants";
44
+ ProductExpandEnum["INVENTORY"] = "inventory";
44
45
  })(ProductExpandEnum = exports.ProductExpandEnum || (exports.ProductExpandEnum = {}));
45
46
  exports.PUBLIC_PRODUCT_EXPAND_VALUES = [
46
47
  ProductExpandEnum.PRICES,
@@ -73,4 +74,12 @@ var ProductBuilderTypeEnum;
73
74
  ProductBuilderTypeEnum["PROGRAM_PUNCH_PASS"] = "program_punch_pass";
74
75
  ProductBuilderTypeEnum["RENTAL_PUNCH_PASS"] = "rental_punch_pass";
75
76
  })(ProductBuilderTypeEnum = exports.ProductBuilderTypeEnum || (exports.ProductBuilderTypeEnum = {}));
77
+ var CommerceProductInventoryFilterStatusEnum;
78
+ (function (CommerceProductInventoryFilterStatusEnum) {
79
+ CommerceProductInventoryFilterStatusEnum["NOT_TRACKED"] = "not_tracked";
80
+ CommerceProductInventoryFilterStatusEnum["SOLD_OUT"] = "sold_out";
81
+ CommerceProductInventoryFilterStatusEnum["LOW_STOCK"] = "low_stock";
82
+ CommerceProductInventoryFilterStatusEnum["IN_STOCK"] = "in_stock";
83
+ CommerceProductInventoryFilterStatusEnum["OVERSOLD"] = "oversold";
84
+ })(CommerceProductInventoryFilterStatusEnum = exports.CommerceProductInventoryFilterStatusEnum || (exports.CommerceProductInventoryFilterStatusEnum = {}));
76
85
  //# sourceMappingURL=product.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAH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S;IAC3B,iBAAiB,CAAC,UAAU;IAC5B,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,MAAM;IACxB,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,qBAAqB;IACvC,iBAAiB,CAAC,KAAK;CACvB,CAAC;AAEF,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACxC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
1
+ {"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;IAChC,2DAAqC,CAAA;IACrC,+DAAyC,CAAA;AAC1C,CAAC,EAVW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAU7B;AAED,IAAY,iBAuBX;AAvBD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,2DAAsC,CAAA;IACtC,mEAA8C,CAAA;IAC9C,yDAAoC,CAAA;IACpC,kDAA6B,CAAA;IAC7B,yDAAoC,CAAA;IACpC,qDAAgC,CAAA;IAChC,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,2DAAsC,CAAA;IACtC,8CAAyB,CAAA;IACzB,iDAA4B,CAAA;IAC5B,yCAAoB,CAAA;IACpB,6DAAwC,CAAA;IAC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.interfaces';
3
+ export * from './product-inventory.interfaces';
3
4
  export * from './product-pricing.interfaces';
4
5
  export * from './product-resource.interfaces';
5
6
  export * from './validate-resources.interfaces';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-categories.interfaces"), exports);
18
18
  __exportStar(require("./product-creation.interfaces"), exports);
19
+ __exportStar(require("./product-inventory.interfaces"), exports);
19
20
  __exportStar(require("./product-pricing.interfaces"), exports);
20
21
  __exportStar(require("./product-resource.interfaces"), exports);
21
22
  __exportStar(require("./validate-resources.interfaces"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,gEAA8C;AAC9C,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,gEAA8C;AAC9C,iEAA+C;AAC/C,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD"}
@@ -0,0 +1,36 @@
1
+ import { ProductInventoryAdjustmentSourceEnum } from '../enums/product-inventory.enums';
2
+ /**
3
+ * One claimed facility inventory mutation.
4
+ * `lowInventoryThreshold` undefined leaves the stored threshold unchanged; `null` clears it.
5
+ */
6
+ export interface IFacilityInventoryAdjustmentInput {
7
+ organizationId: number;
8
+ facilityId: number;
9
+ lineItemId?: number;
10
+ productId: number;
11
+ idempotencyKey: string;
12
+ lowInventoryThreshold?: number | null;
13
+ quantityDelta: number;
14
+ /**
15
+ * When set, the mutation applies only to a facility row created at or before this instant.
16
+ */
17
+ saleCreatedAt?: Date;
18
+ source: ProductInventoryAdjustmentSourceEnum;
19
+ /**
20
+ * When set, the facility quantity is overwritten to this value.
21
+ * The ledger `quantityDelta` is rewritten after the locked read.
22
+ */
23
+ targetQuantity?: number;
24
+ }
25
+ export interface ITrackedProductFamilyRow {
26
+ productId: number;
27
+ variantParentId: number | null;
28
+ }
29
+ export interface ILineItemQuantityOverride {
30
+ lineItemId: number;
31
+ quantity?: number;
32
+ }
33
+ export interface IReplenishLineItemsOptions {
34
+ idempotencyScope: string;
35
+ quantityOverrides?: ILineItemQuantityOverride[];
36
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=product-inventory.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-inventory.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/product-inventory.interfaces.ts"],"names":[],"mappings":""}