@powerhousedao/contributor-billing 0.1.41 → 0.1.43

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 (729) hide show
  1. package/dist/document-models/account-transactions/actions.d.ts.map +1 -1
  2. package/dist/document-models/account-transactions/gen/account/actions.d.ts +1 -1
  3. package/dist/document-models/account-transactions/gen/account/actions.d.ts.map +1 -1
  4. package/dist/document-models/account-transactions/gen/account/actions.js +1 -1
  5. package/dist/document-models/account-transactions/gen/account/operations.d.ts +2 -2
  6. package/dist/document-models/account-transactions/gen/account/operations.d.ts.map +1 -1
  7. package/dist/document-models/account-transactions/gen/account/operations.js +0 -2
  8. package/dist/document-models/account-transactions/gen/budgets/actions.d.ts +1 -1
  9. package/dist/document-models/account-transactions/gen/budgets/actions.d.ts.map +1 -1
  10. package/dist/document-models/account-transactions/gen/budgets/actions.js +1 -1
  11. package/dist/document-models/account-transactions/gen/budgets/operations.d.ts +2 -2
  12. package/dist/document-models/account-transactions/gen/budgets/operations.d.ts.map +1 -1
  13. package/dist/document-models/account-transactions/gen/budgets/operations.js +0 -2
  14. package/dist/document-models/account-transactions/gen/document-model.js +45 -45
  15. package/dist/document-models/account-transactions/gen/document-schema.d.ts +21 -151
  16. package/dist/document-models/account-transactions/gen/document-schema.d.ts.map +1 -1
  17. package/dist/document-models/account-transactions/gen/reducer.d.ts.map +1 -1
  18. package/dist/document-models/account-transactions/gen/reducer.js +16 -8
  19. package/dist/document-models/account-transactions/gen/schema/types.d.ts +13 -1
  20. package/dist/document-models/account-transactions/gen/schema/types.d.ts.map +1 -1
  21. package/dist/document-models/account-transactions/gen/schema/zod.d.ts +11 -5
  22. package/dist/document-models/account-transactions/gen/schema/zod.d.ts.map +1 -1
  23. package/dist/document-models/account-transactions/gen/schema/zod.js +18 -18
  24. package/dist/document-models/account-transactions/gen/transactions/actions.d.ts +1 -1
  25. package/dist/document-models/account-transactions/gen/transactions/actions.d.ts.map +1 -1
  26. package/dist/document-models/account-transactions/gen/transactions/actions.js +1 -1
  27. package/dist/document-models/account-transactions/gen/transactions/operations.d.ts +2 -2
  28. package/dist/document-models/account-transactions/gen/transactions/operations.d.ts.map +1 -1
  29. package/dist/document-models/account-transactions/gen/transactions/operations.js +0 -2
  30. package/dist/document-models/account-transactions/gen/types.d.ts.map +1 -1
  31. package/dist/document-models/account-transactions/hooks.d.ts +5 -2
  32. package/dist/document-models/account-transactions/hooks.d.ts.map +1 -1
  33. package/dist/document-models/account-transactions/hooks.js +3 -4
  34. package/dist/document-models/account-transactions/index.d.ts +0 -4
  35. package/dist/document-models/account-transactions/index.d.ts.map +1 -1
  36. package/dist/document-models/account-transactions/index.js +0 -4
  37. package/dist/document-models/account-transactions/module.d.ts.map +1 -1
  38. package/dist/document-models/account-transactions/module.js +1 -0
  39. package/dist/document-models/account-transactions/tests/account.test.d.ts +2 -0
  40. package/dist/document-models/account-transactions/tests/account.test.d.ts.map +1 -0
  41. package/dist/document-models/account-transactions/tests/account.test.js +15 -0
  42. package/dist/document-models/account-transactions/tests/budgets.test.d.ts +2 -0
  43. package/dist/document-models/account-transactions/tests/budgets.test.d.ts.map +1 -0
  44. package/dist/document-models/account-transactions/tests/budgets.test.js +35 -0
  45. package/dist/document-models/account-transactions/tests/document-model.test.d.ts +10 -0
  46. package/dist/document-models/account-transactions/tests/document-model.test.d.ts.map +1 -0
  47. package/dist/document-models/account-transactions/tests/document-model.test.js +104 -0
  48. package/dist/document-models/account-transactions/tests/transactions.test.d.ts +2 -0
  49. package/dist/document-models/account-transactions/tests/transactions.test.d.ts.map +1 -0
  50. package/dist/document-models/account-transactions/tests/transactions.test.js +45 -0
  51. package/dist/document-models/accounts/actions.d.ts.map +1 -1
  52. package/dist/document-models/accounts/gen/accounts/actions.d.ts +1 -1
  53. package/dist/document-models/accounts/gen/accounts/actions.d.ts.map +1 -1
  54. package/dist/document-models/accounts/gen/accounts/actions.js +1 -1
  55. package/dist/document-models/accounts/gen/accounts/operations.d.ts +2 -2
  56. package/dist/document-models/accounts/gen/accounts/operations.d.ts.map +1 -1
  57. package/dist/document-models/accounts/gen/accounts/operations.js +0 -2
  58. package/dist/document-models/accounts/gen/document-model.js +2 -2
  59. package/dist/document-models/accounts/gen/document-schema.d.ts +15 -113
  60. package/dist/document-models/accounts/gen/document-schema.d.ts.map +1 -1
  61. package/dist/document-models/accounts/gen/reducer.d.ts.map +1 -1
  62. package/dist/document-models/accounts/gen/reducer.js +8 -4
  63. package/dist/document-models/accounts/gen/schema/types.d.ts +13 -1
  64. package/dist/document-models/accounts/gen/schema/types.d.ts.map +1 -1
  65. package/dist/document-models/accounts/gen/schema/zod.d.ts +25 -7
  66. package/dist/document-models/accounts/gen/schema/zod.d.ts.map +1 -1
  67. package/dist/document-models/accounts/gen/schema/zod.js +12 -12
  68. package/dist/document-models/accounts/gen/types.d.ts.map +1 -1
  69. package/dist/document-models/accounts/hooks.d.ts +5 -2
  70. package/dist/document-models/accounts/hooks.d.ts.map +1 -1
  71. package/dist/document-models/accounts/hooks.js +3 -4
  72. package/dist/document-models/accounts/index.d.ts +0 -4
  73. package/dist/document-models/accounts/index.d.ts.map +1 -1
  74. package/dist/document-models/accounts/index.js +0 -4
  75. package/dist/document-models/accounts/module.d.ts.map +1 -1
  76. package/dist/document-models/accounts/module.js +1 -0
  77. package/dist/document-models/accounts/tests/accounts.test.d.ts +2 -0
  78. package/dist/document-models/accounts/tests/accounts.test.d.ts.map +1 -0
  79. package/dist/document-models/accounts/tests/accounts.test.js +45 -0
  80. package/dist/document-models/accounts/tests/document-model.test.d.ts +10 -0
  81. package/dist/document-models/accounts/tests/document-model.test.d.ts.map +1 -0
  82. package/dist/document-models/accounts/tests/document-model.test.js +104 -0
  83. package/dist/document-models/billing-statement/actions.d.ts.map +1 -1
  84. package/dist/document-models/billing-statement/gen/document-model.js +41 -41
  85. package/dist/document-models/billing-statement/gen/document-schema.d.ts +39 -265
  86. package/dist/document-models/billing-statement/gen/document-schema.d.ts.map +1 -1
  87. package/dist/document-models/billing-statement/gen/general/actions.d.ts +1 -1
  88. package/dist/document-models/billing-statement/gen/general/actions.d.ts.map +1 -1
  89. package/dist/document-models/billing-statement/gen/general/actions.js +1 -1
  90. package/dist/document-models/billing-statement/gen/general/operations.d.ts +2 -2
  91. package/dist/document-models/billing-statement/gen/general/operations.d.ts.map +1 -1
  92. package/dist/document-models/billing-statement/gen/general/operations.js +0 -2
  93. package/dist/document-models/billing-statement/gen/line-items/actions.d.ts +1 -1
  94. package/dist/document-models/billing-statement/gen/line-items/actions.d.ts.map +1 -1
  95. package/dist/document-models/billing-statement/gen/line-items/actions.js +1 -1
  96. package/dist/document-models/billing-statement/gen/line-items/operations.d.ts +2 -2
  97. package/dist/document-models/billing-statement/gen/line-items/operations.d.ts.map +1 -1
  98. package/dist/document-models/billing-statement/gen/line-items/operations.js +0 -2
  99. package/dist/document-models/billing-statement/gen/reducer.d.ts.map +1 -1
  100. package/dist/document-models/billing-statement/gen/reducer.js +14 -7
  101. package/dist/document-models/billing-statement/gen/schema/types.d.ts +13 -1
  102. package/dist/document-models/billing-statement/gen/schema/types.d.ts.map +1 -1
  103. package/dist/document-models/billing-statement/gen/schema/zod.d.ts +29 -7
  104. package/dist/document-models/billing-statement/gen/schema/zod.d.ts.map +1 -1
  105. package/dist/document-models/billing-statement/gen/schema/zod.js +10 -10
  106. package/dist/document-models/billing-statement/gen/tags/actions.d.ts +1 -1
  107. package/dist/document-models/billing-statement/gen/tags/actions.d.ts.map +1 -1
  108. package/dist/document-models/billing-statement/gen/tags/actions.js +1 -1
  109. package/dist/document-models/billing-statement/gen/tags/operations.d.ts +2 -2
  110. package/dist/document-models/billing-statement/gen/tags/operations.d.ts.map +1 -1
  111. package/dist/document-models/billing-statement/gen/tags/operations.js +0 -2
  112. package/dist/document-models/billing-statement/gen/types.d.ts.map +1 -1
  113. package/dist/document-models/billing-statement/hooks.d.ts +5 -2
  114. package/dist/document-models/billing-statement/hooks.d.ts.map +1 -1
  115. package/dist/document-models/billing-statement/hooks.js +3 -4
  116. package/dist/document-models/billing-statement/index.d.ts +0 -4
  117. package/dist/document-models/billing-statement/index.d.ts.map +1 -1
  118. package/dist/document-models/billing-statement/index.js +0 -4
  119. package/dist/document-models/billing-statement/module.d.ts.map +1 -1
  120. package/dist/document-models/billing-statement/module.js +1 -0
  121. package/dist/document-models/billing-statement/tests/document-model.test.d.ts +10 -0
  122. package/dist/document-models/billing-statement/tests/document-model.test.d.ts.map +1 -0
  123. package/dist/document-models/billing-statement/tests/document-model.test.js +104 -0
  124. package/dist/document-models/billing-statement/tests/general.test.d.ts +2 -0
  125. package/dist/document-models/billing-statement/tests/general.test.d.ts.map +1 -0
  126. package/dist/document-models/billing-statement/tests/general.test.js +35 -0
  127. package/dist/document-models/billing-statement/tests/line-items.test.d.ts +2 -0
  128. package/dist/document-models/billing-statement/tests/line-items.test.d.ts.map +1 -0
  129. package/dist/document-models/billing-statement/tests/line-items.test.js +35 -0
  130. package/dist/document-models/billing-statement/tests/tags.test.d.ts +2 -0
  131. package/dist/document-models/billing-statement/tests/tags.test.d.ts.map +1 -0
  132. package/dist/document-models/billing-statement/tests/tags.test.js +15 -0
  133. package/dist/document-models/document-models.d.ts.map +1 -1
  134. package/dist/document-models/document-models.js +5 -3
  135. package/dist/document-models/expense-report/actions.d.ts +1 -0
  136. package/dist/document-models/expense-report/actions.d.ts.map +1 -1
  137. package/dist/document-models/expense-report/gen/document-model.d.ts.map +1 -1
  138. package/dist/document-models/expense-report/gen/document-model.js +14 -3
  139. package/dist/document-models/expense-report/gen/document-schema.d.ts +36 -208
  140. package/dist/document-models/expense-report/gen/document-schema.d.ts.map +1 -1
  141. package/dist/document-models/expense-report/gen/ph-factories.d.ts.map +1 -1
  142. package/dist/document-models/expense-report/gen/ph-factories.js +2 -0
  143. package/dist/document-models/expense-report/gen/reducer.d.ts.map +1 -1
  144. package/dist/document-models/expense-report/gen/reducer.js +40 -18
  145. package/dist/document-models/expense-report/gen/schema/types.d.ts +19 -1
  146. package/dist/document-models/expense-report/gen/schema/types.d.ts.map +1 -1
  147. package/dist/document-models/expense-report/gen/schema/zod.d.ts +15 -6
  148. package/dist/document-models/expense-report/gen/schema/zod.d.ts.map +1 -1
  149. package/dist/document-models/expense-report/gen/schema/zod.js +37 -29
  150. package/dist/document-models/expense-report/gen/types.d.ts.map +1 -1
  151. package/dist/document-models/expense-report/gen/utils.d.ts.map +1 -1
  152. package/dist/document-models/expense-report/gen/utils.js +2 -0
  153. package/dist/document-models/expense-report/gen/wallet/actions.d.ts +7 -3
  154. package/dist/document-models/expense-report/gen/wallet/actions.d.ts.map +1 -1
  155. package/dist/document-models/expense-report/gen/wallet/actions.js +1 -1
  156. package/dist/document-models/expense-report/gen/wallet/creators.d.ts +3 -2
  157. package/dist/document-models/expense-report/gen/wallet/creators.d.ts.map +1 -1
  158. package/dist/document-models/expense-report/gen/wallet/creators.js +2 -1
  159. package/dist/document-models/expense-report/gen/wallet/operations.d.ts +3 -2
  160. package/dist/document-models/expense-report/gen/wallet/operations.d.ts.map +1 -1
  161. package/dist/document-models/expense-report/gen/wallet/operations.js +0 -2
  162. package/dist/document-models/expense-report/hooks.d.ts +5 -2
  163. package/dist/document-models/expense-report/hooks.d.ts.map +1 -1
  164. package/dist/document-models/expense-report/hooks.js +3 -4
  165. package/dist/document-models/expense-report/index.d.ts +0 -4
  166. package/dist/document-models/expense-report/index.d.ts.map +1 -1
  167. package/dist/document-models/expense-report/index.js +0 -4
  168. package/dist/document-models/expense-report/module.d.ts.map +1 -1
  169. package/dist/document-models/expense-report/module.js +1 -0
  170. package/dist/document-models/expense-report/src/reducers/wallet.d.ts.map +1 -1
  171. package/dist/document-models/expense-report/src/reducers/wallet.js +9 -0
  172. package/dist/document-models/expense-report/tests/document-model.test.d.ts +10 -0
  173. package/dist/document-models/expense-report/tests/document-model.test.d.ts.map +1 -0
  174. package/dist/document-models/expense-report/tests/document-model.test.js +104 -0
  175. package/dist/document-models/expense-report/tests/wallet.test.d.ts +2 -0
  176. package/dist/document-models/expense-report/tests/wallet.test.d.ts.map +1 -0
  177. package/dist/document-models/expense-report/tests/wallet.test.js +175 -0
  178. package/dist/document-models/index.d.ts +3 -7
  179. package/dist/document-models/index.d.ts.map +1 -1
  180. package/dist/document-models/index.js +3 -7
  181. package/dist/document-models/invoice/actions.d.ts.map +1 -1
  182. package/dist/document-models/invoice/gen/document-model.js +146 -146
  183. package/dist/document-models/invoice/gen/document-schema.d.ts +66 -436
  184. package/dist/document-models/invoice/gen/document-schema.d.ts.map +1 -1
  185. package/dist/document-models/invoice/gen/general/actions.d.ts +1 -1
  186. package/dist/document-models/invoice/gen/general/actions.d.ts.map +1 -1
  187. package/dist/document-models/invoice/gen/general/actions.js +1 -1
  188. package/dist/document-models/invoice/gen/general/operations.d.ts +2 -2
  189. package/dist/document-models/invoice/gen/general/operations.d.ts.map +1 -1
  190. package/dist/document-models/invoice/gen/general/operations.js +0 -2
  191. package/dist/document-models/invoice/gen/items/actions.d.ts +1 -1
  192. package/dist/document-models/invoice/gen/items/actions.d.ts.map +1 -1
  193. package/dist/document-models/invoice/gen/items/actions.js +1 -1
  194. package/dist/document-models/invoice/gen/items/operations.d.ts +2 -2
  195. package/dist/document-models/invoice/gen/items/operations.d.ts.map +1 -1
  196. package/dist/document-models/invoice/gen/items/operations.js +0 -2
  197. package/dist/document-models/invoice/gen/parties/actions.d.ts +1 -1
  198. package/dist/document-models/invoice/gen/parties/actions.d.ts.map +1 -1
  199. package/dist/document-models/invoice/gen/parties/actions.js +1 -1
  200. package/dist/document-models/invoice/gen/parties/operations.d.ts +2 -2
  201. package/dist/document-models/invoice/gen/parties/operations.d.ts.map +1 -1
  202. package/dist/document-models/invoice/gen/parties/operations.js +0 -2
  203. package/dist/document-models/invoice/gen/reducer.d.ts.map +1 -1
  204. package/dist/document-models/invoice/gen/reducer.js +56 -28
  205. package/dist/document-models/invoice/gen/schema/types.d.ts +9 -1
  206. package/dist/document-models/invoice/gen/schema/types.d.ts.map +1 -1
  207. package/dist/document-models/invoice/gen/schema/zod.d.ts +42 -21
  208. package/dist/document-models/invoice/gen/schema/zod.d.ts.map +1 -1
  209. package/dist/document-models/invoice/gen/schema/zod.js +67 -67
  210. package/dist/document-models/invoice/gen/transitions/actions.d.ts +1 -1
  211. package/dist/document-models/invoice/gen/transitions/actions.d.ts.map +1 -1
  212. package/dist/document-models/invoice/gen/transitions/actions.js +1 -1
  213. package/dist/document-models/invoice/gen/transitions/operations.d.ts +2 -2
  214. package/dist/document-models/invoice/gen/transitions/operations.d.ts.map +1 -1
  215. package/dist/document-models/invoice/gen/transitions/operations.js +0 -2
  216. package/dist/document-models/invoice/gen/types.d.ts.map +1 -1
  217. package/dist/document-models/invoice/hooks.d.ts +5 -2
  218. package/dist/document-models/invoice/hooks.d.ts.map +1 -1
  219. package/dist/document-models/invoice/hooks.js +3 -4
  220. package/dist/document-models/invoice/index.d.ts +0 -4
  221. package/dist/document-models/invoice/index.d.ts.map +1 -1
  222. package/dist/document-models/invoice/index.js +0 -4
  223. package/dist/document-models/invoice/module.d.ts.map +1 -1
  224. package/dist/document-models/invoice/module.js +1 -0
  225. package/dist/document-models/invoice/tests/document-model.test.d.ts +10 -0
  226. package/dist/document-models/invoice/tests/document-model.test.d.ts.map +1 -0
  227. package/dist/document-models/invoice/tests/document-model.test.js +104 -0
  228. package/dist/document-models/invoice/tests/general.test.d.ts +2 -0
  229. package/dist/document-models/invoice/tests/general.test.d.ts.map +1 -0
  230. package/dist/document-models/invoice/tests/general.test.js +55 -0
  231. package/dist/document-models/invoice/tests/items.test.d.ts +2 -0
  232. package/dist/document-models/invoice/tests/items.test.d.ts.map +1 -0
  233. package/dist/document-models/invoice/tests/items.test.js +55 -0
  234. package/dist/document-models/invoice/tests/parties.test.d.ts +2 -0
  235. package/dist/document-models/invoice/tests/parties.test.d.ts.map +1 -0
  236. package/dist/document-models/invoice/tests/parties.test.js +65 -0
  237. package/dist/document-models/invoice/tests/transitions.test.d.ts +2 -0
  238. package/dist/document-models/invoice/tests/transitions.test.d.ts.map +1 -0
  239. package/dist/document-models/invoice/tests/transitions.test.js +125 -0
  240. package/dist/document-models/resource-template/actions.d.ts +3 -0
  241. package/dist/document-models/resource-template/actions.d.ts.map +1 -1
  242. package/dist/document-models/resource-template/gen/audience-management/actions.d.ts +1 -1
  243. package/dist/document-models/resource-template/gen/audience-management/actions.d.ts.map +1 -1
  244. package/dist/document-models/resource-template/gen/audience-management/actions.js +1 -1
  245. package/dist/document-models/resource-template/gen/audience-management/error.d.ts.map +1 -1
  246. package/dist/document-models/resource-template/gen/audience-management/error.js +2 -6
  247. package/dist/document-models/resource-template/gen/audience-management/operations.d.ts +2 -2
  248. package/dist/document-models/resource-template/gen/audience-management/operations.d.ts.map +1 -1
  249. package/dist/document-models/resource-template/gen/audience-management/operations.js +0 -2
  250. package/dist/document-models/resource-template/gen/document-model.d.ts.map +1 -1
  251. package/dist/document-models/resource-template/gen/document-model.js +36 -3
  252. package/dist/document-models/resource-template/gen/document-schema.d.ts +60 -379
  253. package/dist/document-models/resource-template/gen/document-schema.d.ts.map +1 -1
  254. package/dist/document-models/resource-template/gen/facet-targeting/actions.d.ts +1 -1
  255. package/dist/document-models/resource-template/gen/facet-targeting/actions.d.ts.map +1 -1
  256. package/dist/document-models/resource-template/gen/facet-targeting/actions.js +1 -1
  257. package/dist/document-models/resource-template/gen/facet-targeting/error.d.ts.map +1 -1
  258. package/dist/document-models/resource-template/gen/facet-targeting/error.js +3 -9
  259. package/dist/document-models/resource-template/gen/facet-targeting/operations.d.ts +2 -2
  260. package/dist/document-models/resource-template/gen/facet-targeting/operations.d.ts.map +1 -1
  261. package/dist/document-models/resource-template/gen/facet-targeting/operations.js +0 -2
  262. package/dist/document-models/resource-template/gen/option-group-management/actions.d.ts +15 -3
  263. package/dist/document-models/resource-template/gen/option-group-management/actions.d.ts.map +1 -1
  264. package/dist/document-models/resource-template/gen/option-group-management/actions.js +1 -1
  265. package/dist/document-models/resource-template/gen/option-group-management/creators.d.ts +5 -2
  266. package/dist/document-models/resource-template/gen/option-group-management/creators.d.ts.map +1 -1
  267. package/dist/document-models/resource-template/gen/option-group-management/creators.js +4 -1
  268. package/dist/document-models/resource-template/gen/option-group-management/error.d.ts.map +1 -1
  269. package/dist/document-models/resource-template/gen/option-group-management/error.js +3 -9
  270. package/dist/document-models/resource-template/gen/option-group-management/operations.d.ts +5 -2
  271. package/dist/document-models/resource-template/gen/option-group-management/operations.d.ts.map +1 -1
  272. package/dist/document-models/resource-template/gen/option-group-management/operations.js +0 -2
  273. package/dist/document-models/resource-template/gen/ph-factories.d.ts.map +1 -1
  274. package/dist/document-models/resource-template/gen/ph-factories.js +1 -0
  275. package/dist/document-models/resource-template/gen/reducer.d.ts +1 -1
  276. package/dist/document-models/resource-template/gen/reducer.d.ts.map +1 -1
  277. package/dist/document-models/resource-template/gen/reducer.js +56 -21
  278. package/dist/document-models/resource-template/gen/schema/types.d.ts +34 -3
  279. package/dist/document-models/resource-template/gen/schema/types.d.ts.map +1 -1
  280. package/dist/document-models/resource-template/gen/schema/zod.d.ts +14 -5
  281. package/dist/document-models/resource-template/gen/schema/zod.d.ts.map +1 -1
  282. package/dist/document-models/resource-template/gen/schema/zod.js +43 -15
  283. package/dist/document-models/resource-template/gen/service-category-management/actions.d.ts +1 -1
  284. package/dist/document-models/resource-template/gen/service-category-management/actions.d.ts.map +1 -1
  285. package/dist/document-models/resource-template/gen/service-category-management/actions.js +1 -1
  286. package/dist/document-models/resource-template/gen/service-category-management/operations.d.ts +2 -2
  287. package/dist/document-models/resource-template/gen/service-category-management/operations.d.ts.map +1 -1
  288. package/dist/document-models/resource-template/gen/service-category-management/operations.js +0 -2
  289. package/dist/document-models/resource-template/gen/service-management/actions.d.ts +1 -1
  290. package/dist/document-models/resource-template/gen/service-management/actions.d.ts.map +1 -1
  291. package/dist/document-models/resource-template/gen/service-management/actions.js +1 -1
  292. package/dist/document-models/resource-template/gen/service-management/error.d.ts.map +1 -1
  293. package/dist/document-models/resource-template/gen/service-management/error.js +5 -17
  294. package/dist/document-models/resource-template/gen/service-management/operations.d.ts +2 -2
  295. package/dist/document-models/resource-template/gen/service-management/operations.d.ts.map +1 -1
  296. package/dist/document-models/resource-template/gen/service-management/operations.js +0 -2
  297. package/dist/document-models/resource-template/gen/template-management/actions.d.ts +1 -1
  298. package/dist/document-models/resource-template/gen/template-management/actions.d.ts.map +1 -1
  299. package/dist/document-models/resource-template/gen/template-management/actions.js +1 -1
  300. package/dist/document-models/resource-template/gen/template-management/operations.d.ts +2 -2
  301. package/dist/document-models/resource-template/gen/template-management/operations.d.ts.map +1 -1
  302. package/dist/document-models/resource-template/gen/template-management/operations.js +0 -2
  303. package/dist/document-models/resource-template/gen/types.d.ts.map +1 -1
  304. package/dist/document-models/resource-template/gen/utils.d.ts.map +1 -1
  305. package/dist/document-models/resource-template/gen/utils.js +1 -0
  306. package/dist/document-models/resource-template/hooks.d.ts +5 -2
  307. package/dist/document-models/resource-template/hooks.d.ts.map +1 -1
  308. package/dist/document-models/resource-template/hooks.js +3 -4
  309. package/dist/document-models/resource-template/index.d.ts +0 -4
  310. package/dist/document-models/resource-template/index.d.ts.map +1 -1
  311. package/dist/document-models/resource-template/index.js +0 -4
  312. package/dist/document-models/resource-template/module.d.ts +1 -1
  313. package/dist/document-models/resource-template/module.d.ts.map +1 -1
  314. package/dist/document-models/resource-template/module.js +1 -0
  315. package/dist/document-models/resource-template/src/reducers/audience-management.d.ts.map +1 -1
  316. package/dist/document-models/resource-template/src/reducers/audience-management.js +2 -2
  317. package/dist/document-models/resource-template/src/reducers/facet-preset-management.d.ts +59 -0
  318. package/dist/document-models/resource-template/src/reducers/facet-preset-management.d.ts.map +1 -0
  319. package/dist/document-models/resource-template/src/reducers/facet-preset-management.js +52 -0
  320. package/dist/document-models/resource-template/src/reducers/facet-targeting.d.ts.map +1 -1
  321. package/dist/document-models/resource-template/src/reducers/facet-targeting.js +8 -7
  322. package/dist/document-models/resource-template/src/reducers/option-group-management.d.ts.map +1 -1
  323. package/dist/document-models/resource-template/src/reducers/option-group-management.js +32 -6
  324. package/dist/document-models/resource-template/src/reducers/service-management.d.ts.map +1 -1
  325. package/dist/document-models/resource-template/src/reducers/service-management.js +13 -10
  326. package/dist/document-models/resource-template/tests/audience-management.test.d.ts +2 -0
  327. package/dist/document-models/resource-template/tests/audience-management.test.d.ts.map +1 -0
  328. package/dist/document-models/resource-template/tests/audience-management.test.js +25 -0
  329. package/dist/document-models/resource-template/tests/document-model.test.d.ts +10 -0
  330. package/dist/document-models/resource-template/tests/document-model.test.d.ts.map +1 -0
  331. package/dist/document-models/resource-template/tests/document-model.test.js +104 -0
  332. package/dist/document-models/resource-template/tests/facet-targeting.test.d.ts +2 -0
  333. package/dist/document-models/resource-template/tests/facet-targeting.test.d.ts.map +1 -0
  334. package/dist/document-models/resource-template/tests/facet-targeting.test.js +45 -0
  335. package/dist/document-models/resource-template/tests/option-group-management.test.d.ts +2 -0
  336. package/dist/document-models/resource-template/tests/option-group-management.test.d.ts.map +1 -0
  337. package/dist/document-models/resource-template/tests/option-group-management.test.js +65 -0
  338. package/dist/document-models/resource-template/tests/service-category-management.test.d.ts +2 -0
  339. package/dist/document-models/resource-template/tests/service-category-management.test.d.ts.map +1 -0
  340. package/dist/document-models/resource-template/tests/service-category-management.test.js +25 -0
  341. package/dist/document-models/resource-template/tests/service-management.test.d.ts +2 -0
  342. package/dist/document-models/resource-template/tests/service-management.test.d.ts.map +1 -0
  343. package/dist/document-models/resource-template/tests/service-management.test.js +55 -0
  344. package/dist/document-models/resource-template/tests/template-management.test.d.ts +2 -0
  345. package/dist/document-models/resource-template/tests/template-management.test.d.ts.map +1 -0
  346. package/dist/document-models/resource-template/tests/template-management.test.js +45 -0
  347. package/dist/document-models/service-offering/actions.d.ts +3 -0
  348. package/dist/document-models/service-offering/actions.d.ts.map +1 -1
  349. package/dist/document-models/service-offering/gen/document-model.d.ts.map +1 -1
  350. package/dist/document-models/service-offering/gen/document-model.js +104 -26
  351. package/dist/document-models/service-offering/gen/document-schema.d.ts +63 -417
  352. package/dist/document-models/service-offering/gen/document-schema.d.ts.map +1 -1
  353. package/dist/document-models/service-offering/gen/offering-management/actions.d.ts +1 -1
  354. package/dist/document-models/service-offering/gen/offering-management/actions.d.ts.map +1 -1
  355. package/dist/document-models/service-offering/gen/offering-management/actions.js +1 -1
  356. package/dist/document-models/service-offering/gen/offering-management/error.d.ts.map +1 -1
  357. package/dist/document-models/service-offering/gen/offering-management/error.js +6 -19
  358. package/dist/document-models/service-offering/gen/offering-management/operations.d.ts +2 -2
  359. package/dist/document-models/service-offering/gen/offering-management/operations.d.ts.map +1 -1
  360. package/dist/document-models/service-offering/gen/offering-management/operations.js +0 -2
  361. package/dist/document-models/service-offering/gen/option-group-management/actions.d.ts +1 -1
  362. package/dist/document-models/service-offering/gen/option-group-management/actions.d.ts.map +1 -1
  363. package/dist/document-models/service-offering/gen/option-group-management/actions.js +1 -1
  364. package/dist/document-models/service-offering/gen/option-group-management/error.d.ts.map +1 -1
  365. package/dist/document-models/service-offering/gen/option-group-management/error.js +3 -9
  366. package/dist/document-models/service-offering/gen/option-group-management/operations.d.ts +2 -2
  367. package/dist/document-models/service-offering/gen/option-group-management/operations.d.ts.map +1 -1
  368. package/dist/document-models/service-offering/gen/option-group-management/operations.js +0 -2
  369. package/dist/document-models/service-offering/gen/reducer.d.ts +1 -1
  370. package/dist/document-models/service-offering/gen/reducer.d.ts.map +1 -1
  371. package/dist/document-models/service-offering/gen/reducer.js +80 -33
  372. package/dist/document-models/service-offering/gen/schema/types.d.ts +87 -12
  373. package/dist/document-models/service-offering/gen/schema/types.d.ts.map +1 -1
  374. package/dist/document-models/service-offering/gen/schema/zod.d.ts +38 -8
  375. package/dist/document-models/service-offering/gen/schema/zod.d.ts.map +1 -1
  376. package/dist/document-models/service-offering/gen/schema/zod.js +103 -31
  377. package/dist/document-models/service-offering/gen/service-management/actions.d.ts +1 -1
  378. package/dist/document-models/service-offering/gen/service-management/actions.d.ts.map +1 -1
  379. package/dist/document-models/service-offering/gen/service-management/actions.js +1 -1
  380. package/dist/document-models/service-offering/gen/service-management/error.d.ts.map +1 -1
  381. package/dist/document-models/service-offering/gen/service-management/error.js +5 -17
  382. package/dist/document-models/service-offering/gen/service-management/operations.d.ts +2 -2
  383. package/dist/document-models/service-offering/gen/service-management/operations.d.ts.map +1 -1
  384. package/dist/document-models/service-offering/gen/service-management/operations.js +0 -2
  385. package/dist/document-models/service-offering/gen/tier-management/actions.d.ts +15 -3
  386. package/dist/document-models/service-offering/gen/tier-management/actions.d.ts.map +1 -1
  387. package/dist/document-models/service-offering/gen/tier-management/actions.js +1 -1
  388. package/dist/document-models/service-offering/gen/tier-management/creators.d.ts +5 -2
  389. package/dist/document-models/service-offering/gen/tier-management/creators.d.ts.map +1 -1
  390. package/dist/document-models/service-offering/gen/tier-management/creators.js +4 -1
  391. package/dist/document-models/service-offering/gen/tier-management/error.d.ts +37 -1
  392. package/dist/document-models/service-offering/gen/tier-management/error.d.ts.map +1 -1
  393. package/dist/document-models/service-offering/gen/tier-management/error.js +50 -13
  394. package/dist/document-models/service-offering/gen/tier-management/operations.d.ts +5 -2
  395. package/dist/document-models/service-offering/gen/tier-management/operations.d.ts.map +1 -1
  396. package/dist/document-models/service-offering/gen/tier-management/operations.js +0 -2
  397. package/dist/document-models/service-offering/gen/types.d.ts.map +1 -1
  398. package/dist/document-models/service-offering/hooks.d.ts +5 -2
  399. package/dist/document-models/service-offering/hooks.d.ts.map +1 -1
  400. package/dist/document-models/service-offering/hooks.js +3 -4
  401. package/dist/document-models/service-offering/index.d.ts +0 -4
  402. package/dist/document-models/service-offering/index.d.ts.map +1 -1
  403. package/dist/document-models/service-offering/index.js +0 -4
  404. package/dist/document-models/service-offering/module.d.ts.map +1 -1
  405. package/dist/document-models/service-offering/module.js +1 -0
  406. package/dist/document-models/service-offering/src/reducers/option-group-management.d.ts.map +1 -1
  407. package/dist/document-models/service-offering/src/reducers/option-group-management.js +11 -8
  408. package/dist/document-models/service-offering/src/reducers/service-management.d.ts.map +1 -1
  409. package/dist/document-models/service-offering/src/reducers/service-management.js +20 -12
  410. package/dist/document-models/service-offering/src/reducers/tier-management.d.ts.map +1 -1
  411. package/dist/document-models/service-offering/src/reducers/tier-management.js +131 -21
  412. package/dist/document-models/service-offering/tests/document-model.test.d.ts +10 -0
  413. package/dist/document-models/service-offering/tests/document-model.test.d.ts.map +1 -0
  414. package/dist/document-models/service-offering/tests/document-model.test.js +104 -0
  415. package/dist/document-models/service-offering/tests/offering-management.test.d.ts +2 -0
  416. package/dist/document-models/service-offering/tests/offering-management.test.d.ts.map +1 -0
  417. package/dist/document-models/service-offering/tests/offering-management.test.js +145 -0
  418. package/dist/document-models/service-offering/tests/option-group-management.test.d.ts +2 -0
  419. package/dist/document-models/service-offering/tests/option-group-management.test.d.ts.map +1 -0
  420. package/dist/document-models/service-offering/tests/option-group-management.test.js +35 -0
  421. package/dist/document-models/service-offering/tests/service-management.test.d.ts +2 -0
  422. package/dist/document-models/service-offering/tests/service-management.test.d.ts.map +1 -0
  423. package/dist/document-models/service-offering/tests/service-management.test.js +55 -0
  424. package/dist/document-models/service-offering/tests/tier-management.test.d.ts +2 -0
  425. package/dist/document-models/service-offering/tests/tier-management.test.d.ts.map +1 -0
  426. package/dist/document-models/service-offering/tests/tier-management.test.js +135 -0
  427. package/dist/document-models/service-subscriptions/actions.d.ts.map +1 -1
  428. package/dist/document-models/service-subscriptions/gen/categories/actions.d.ts +1 -1
  429. package/dist/document-models/service-subscriptions/gen/categories/actions.d.ts.map +1 -1
  430. package/dist/document-models/service-subscriptions/gen/categories/actions.js +1 -1
  431. package/dist/document-models/service-subscriptions/gen/categories/operations.d.ts +2 -2
  432. package/dist/document-models/service-subscriptions/gen/categories/operations.d.ts.map +1 -1
  433. package/dist/document-models/service-subscriptions/gen/categories/operations.js +0 -2
  434. package/dist/document-models/service-subscriptions/gen/document-model.d.ts.map +1 -1
  435. package/dist/document-models/service-subscriptions/gen/document-model.js +70 -70
  436. package/dist/document-models/service-subscriptions/gen/document-schema.d.ts +21 -151
  437. package/dist/document-models/service-subscriptions/gen/document-schema.d.ts.map +1 -1
  438. package/dist/document-models/service-subscriptions/gen/reducer.d.ts.map +1 -1
  439. package/dist/document-models/service-subscriptions/gen/reducer.js +26 -13
  440. package/dist/document-models/service-subscriptions/gen/schema/types.d.ts +13 -1
  441. package/dist/document-models/service-subscriptions/gen/schema/types.d.ts.map +1 -1
  442. package/dist/document-models/service-subscriptions/gen/schema/zod.d.ts +19 -5
  443. package/dist/document-models/service-subscriptions/gen/schema/zod.d.ts.map +1 -1
  444. package/dist/document-models/service-subscriptions/gen/schema/zod.js +21 -21
  445. package/dist/document-models/service-subscriptions/gen/subscriptions/actions.d.ts +1 -1
  446. package/dist/document-models/service-subscriptions/gen/subscriptions/actions.d.ts.map +1 -1
  447. package/dist/document-models/service-subscriptions/gen/subscriptions/actions.js +1 -1
  448. package/dist/document-models/service-subscriptions/gen/subscriptions/operations.d.ts +2 -2
  449. package/dist/document-models/service-subscriptions/gen/subscriptions/operations.d.ts.map +1 -1
  450. package/dist/document-models/service-subscriptions/gen/subscriptions/operations.js +0 -2
  451. package/dist/document-models/service-subscriptions/gen/types.d.ts.map +1 -1
  452. package/dist/document-models/service-subscriptions/gen/vendors/actions.d.ts +1 -1
  453. package/dist/document-models/service-subscriptions/gen/vendors/actions.d.ts.map +1 -1
  454. package/dist/document-models/service-subscriptions/gen/vendors/actions.js +1 -1
  455. package/dist/document-models/service-subscriptions/gen/vendors/operations.d.ts +2 -2
  456. package/dist/document-models/service-subscriptions/gen/vendors/operations.d.ts.map +1 -1
  457. package/dist/document-models/service-subscriptions/gen/vendors/operations.js +0 -2
  458. package/dist/document-models/service-subscriptions/hooks.d.ts +5 -2
  459. package/dist/document-models/service-subscriptions/hooks.d.ts.map +1 -1
  460. package/dist/document-models/service-subscriptions/hooks.js +3 -4
  461. package/dist/document-models/service-subscriptions/index.d.ts +0 -4
  462. package/dist/document-models/service-subscriptions/index.d.ts.map +1 -1
  463. package/dist/document-models/service-subscriptions/index.js +0 -4
  464. package/dist/document-models/service-subscriptions/module.d.ts.map +1 -1
  465. package/dist/document-models/service-subscriptions/module.js +1 -0
  466. package/dist/document-models/service-subscriptions/tests/categories.test.d.ts +2 -0
  467. package/dist/document-models/service-subscriptions/tests/categories.test.d.ts.map +1 -0
  468. package/dist/document-models/service-subscriptions/tests/categories.test.js +35 -0
  469. package/dist/document-models/service-subscriptions/tests/document-model.test.d.ts +10 -0
  470. package/dist/document-models/service-subscriptions/tests/document-model.test.d.ts.map +1 -0
  471. package/dist/document-models/service-subscriptions/tests/document-model.test.js +104 -0
  472. package/dist/document-models/service-subscriptions/tests/subscriptions.test.d.ts +2 -0
  473. package/dist/document-models/service-subscriptions/tests/subscriptions.test.d.ts.map +1 -0
  474. package/dist/document-models/service-subscriptions/tests/subscriptions.test.js +75 -0
  475. package/dist/document-models/service-subscriptions/tests/vendors.test.d.ts +2 -0
  476. package/dist/document-models/service-subscriptions/tests/vendors.test.d.ts.map +1 -0
  477. package/dist/document-models/service-subscriptions/tests/vendors.test.js +35 -0
  478. package/dist/document-models/snapshot-report/actions.d.ts +2 -1
  479. package/dist/document-models/snapshot-report/actions.d.ts.map +1 -1
  480. package/dist/document-models/snapshot-report/gen/accounts/actions.d.ts +1 -1
  481. package/dist/document-models/snapshot-report/gen/accounts/actions.d.ts.map +1 -1
  482. package/dist/document-models/snapshot-report/gen/accounts/actions.js +1 -1
  483. package/dist/document-models/snapshot-report/gen/accounts/error.d.ts.map +1 -1
  484. package/dist/document-models/snapshot-report/gen/accounts/error.js +3 -9
  485. package/dist/document-models/snapshot-report/gen/accounts/operations.d.ts +2 -2
  486. package/dist/document-models/snapshot-report/gen/accounts/operations.d.ts.map +1 -1
  487. package/dist/document-models/snapshot-report/gen/accounts/operations.js +0 -2
  488. package/dist/document-models/snapshot-report/gen/balances/actions.d.ts +1 -1
  489. package/dist/document-models/snapshot-report/gen/balances/actions.d.ts.map +1 -1
  490. package/dist/document-models/snapshot-report/gen/balances/actions.js +1 -1
  491. package/dist/document-models/snapshot-report/gen/balances/error.d.ts.map +1 -1
  492. package/dist/document-models/snapshot-report/gen/balances/error.js +4 -12
  493. package/dist/document-models/snapshot-report/gen/balances/operations.d.ts +2 -2
  494. package/dist/document-models/snapshot-report/gen/balances/operations.d.ts.map +1 -1
  495. package/dist/document-models/snapshot-report/gen/balances/operations.js +0 -2
  496. package/dist/document-models/snapshot-report/gen/configuration/actions.d.ts +10 -6
  497. package/dist/document-models/snapshot-report/gen/configuration/actions.d.ts.map +1 -1
  498. package/dist/document-models/snapshot-report/gen/configuration/actions.js +1 -1
  499. package/dist/document-models/snapshot-report/gen/configuration/creators.d.ts +4 -3
  500. package/dist/document-models/snapshot-report/gen/configuration/creators.d.ts.map +1 -1
  501. package/dist/document-models/snapshot-report/gen/configuration/creators.js +3 -2
  502. package/dist/document-models/snapshot-report/gen/configuration/operations.d.ts +4 -3
  503. package/dist/document-models/snapshot-report/gen/configuration/operations.d.ts.map +1 -1
  504. package/dist/document-models/snapshot-report/gen/configuration/operations.js +0 -2
  505. package/dist/document-models/snapshot-report/gen/document-model.d.ts.map +1 -1
  506. package/dist/document-models/snapshot-report/gen/document-model.js +22 -11
  507. package/dist/document-models/snapshot-report/gen/document-schema.d.ts +36 -246
  508. package/dist/document-models/snapshot-report/gen/document-schema.d.ts.map +1 -1
  509. package/dist/document-models/snapshot-report/gen/ph-factories.js +1 -1
  510. package/dist/document-models/snapshot-report/gen/reducer.d.ts.map +1 -1
  511. package/dist/document-models/snapshot-report/gen/reducer.js +42 -20
  512. package/dist/document-models/snapshot-report/gen/schema/types.d.ts +22 -8
  513. package/dist/document-models/snapshot-report/gen/schema/types.d.ts.map +1 -1
  514. package/dist/document-models/snapshot-report/gen/schema/zod.d.ts +40 -11
  515. package/dist/document-models/snapshot-report/gen/schema/zod.d.ts.map +1 -1
  516. package/dist/document-models/snapshot-report/gen/schema/zod.js +34 -28
  517. package/dist/document-models/snapshot-report/gen/transactions/actions.d.ts +1 -1
  518. package/dist/document-models/snapshot-report/gen/transactions/actions.d.ts.map +1 -1
  519. package/dist/document-models/snapshot-report/gen/transactions/actions.js +1 -1
  520. package/dist/document-models/snapshot-report/gen/transactions/error.d.ts.map +1 -1
  521. package/dist/document-models/snapshot-report/gen/transactions/error.js +2 -6
  522. package/dist/document-models/snapshot-report/gen/transactions/operations.d.ts +2 -2
  523. package/dist/document-models/snapshot-report/gen/transactions/operations.d.ts.map +1 -1
  524. package/dist/document-models/snapshot-report/gen/transactions/operations.js +0 -2
  525. package/dist/document-models/snapshot-report/gen/types.d.ts.map +1 -1
  526. package/dist/document-models/snapshot-report/gen/utils.js +1 -1
  527. package/dist/document-models/snapshot-report/hooks.d.ts +5 -2
  528. package/dist/document-models/snapshot-report/hooks.d.ts.map +1 -1
  529. package/dist/document-models/snapshot-report/hooks.js +3 -4
  530. package/dist/document-models/snapshot-report/index.d.ts +0 -4
  531. package/dist/document-models/snapshot-report/index.d.ts.map +1 -1
  532. package/dist/document-models/snapshot-report/index.js +0 -4
  533. package/dist/document-models/snapshot-report/module.d.ts.map +1 -1
  534. package/dist/document-models/snapshot-report/module.js +1 -0
  535. package/dist/document-models/snapshot-report/src/reducers/balances.d.ts.map +1 -1
  536. package/dist/document-models/snapshot-report/src/reducers/balances.js +37 -21
  537. package/dist/document-models/snapshot-report/src/reducers/configuration.d.ts.map +1 -1
  538. package/dist/document-models/snapshot-report/src/reducers/configuration.js +11 -3
  539. package/dist/document-models/snapshot-report/tests/accounts.test.d.ts +2 -0
  540. package/dist/document-models/snapshot-report/tests/accounts.test.d.ts.map +1 -0
  541. package/dist/document-models/snapshot-report/tests/accounts.test.js +35 -0
  542. package/dist/document-models/snapshot-report/tests/balances.test.d.ts +2 -0
  543. package/dist/document-models/snapshot-report/tests/balances.test.d.ts.map +1 -0
  544. package/dist/document-models/snapshot-report/tests/balances.test.js +45 -0
  545. package/dist/document-models/snapshot-report/tests/configuration.test.d.ts +2 -0
  546. package/dist/document-models/snapshot-report/tests/configuration.test.d.ts.map +1 -0
  547. package/dist/document-models/snapshot-report/tests/configuration.test.js +75 -0
  548. package/dist/document-models/snapshot-report/tests/document-model.test.d.ts +10 -0
  549. package/dist/document-models/snapshot-report/tests/document-model.test.d.ts.map +1 -0
  550. package/dist/document-models/snapshot-report/tests/document-model.test.js +104 -0
  551. package/dist/document-models/snapshot-report/tests/transactions.test.d.ts +2 -0
  552. package/dist/document-models/snapshot-report/tests/transactions.test.d.ts.map +1 -0
  553. package/dist/document-models/snapshot-report/tests/transactions.test.js +45 -0
  554. package/dist/editors/accounts-editor/editor.d.ts.map +1 -1
  555. package/dist/editors/accounts-editor/editor.js +25 -6
  556. package/dist/editors/billing-statement/components/lineItemsTable.js +8 -8
  557. package/dist/editors/billing-statement/editor.d.ts.map +1 -1
  558. package/dist/editors/billing-statement/editor.js +15 -16
  559. package/dist/editors/billing-statement/lineItemTags/lineItemTags.js +5 -5
  560. package/dist/editors/builder-team-admin/components/ResourcesServices.d.ts.map +1 -1
  561. package/dist/editors/builder-team-admin/components/ResourcesServices.js +3 -1
  562. package/dist/editors/builder-team-admin/components/overview/TeamMembersOverview.d.ts.map +1 -1
  563. package/dist/editors/builder-team-admin/components/overview/TeamMembersOverview.js +20 -3
  564. package/dist/editors/builder-team-admin/components/team-members.d.ts.map +1 -1
  565. package/dist/editors/builder-team-admin/components/team-members.js +20 -5
  566. package/dist/editors/builder-team-admin/hooks/useExpenseReportAutoPlacement.d.ts.map +1 -1
  567. package/dist/editors/builder-team-admin/hooks/useExpenseReportAutoPlacement.js +45 -17
  568. package/dist/editors/builder-team-admin/hooks/useSnapshotReportAutoPlacement.d.ts.map +1 -1
  569. package/dist/editors/builder-team-admin/hooks/useSnapshotReportAutoPlacement.js +45 -17
  570. package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -1
  571. package/dist/editors/contributor-billing/components/DriveExplorer.js +2 -1
  572. package/dist/editors/contributor-billing/components/FolderTree.d.ts.map +1 -1
  573. package/dist/editors/contributor-billing/components/FolderTree.js +72 -11
  574. package/dist/editors/contributor-billing/components/FolderTreeErrorBoundary.d.ts +24 -0
  575. package/dist/editors/contributor-billing/components/FolderTreeErrorBoundary.d.ts.map +1 -0
  576. package/dist/editors/contributor-billing/components/FolderTreeErrorBoundary.js +41 -0
  577. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderStats.d.ts.map +1 -1
  578. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderStats.js +10 -3
  579. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +1 -1
  580. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.js +65 -28
  581. package/dist/editors/contributor-billing/components/InvoiceTable/NotificationDialog.d.ts +11 -0
  582. package/dist/editors/contributor-billing/components/InvoiceTable/NotificationDialog.d.ts.map +1 -0
  583. package/dist/editors/contributor-billing/components/InvoiceTable/NotificationDialog.js +8 -0
  584. package/dist/editors/expense-report/components/AddReportToRemoteDrive.d.ts +1 -1
  585. package/dist/editors/expense-report/editor.d.ts.map +1 -1
  586. package/dist/editors/expense-report/editor.js +43 -6
  587. package/dist/editors/expense-report/hooks/useSyncWallet.d.ts.map +1 -1
  588. package/dist/editors/expense-report/hooks/useSyncWallet.js +4 -0
  589. package/dist/editors/invoice/exportUBL.js +5 -5
  590. package/dist/editors/resource-template-editor/components/FacetTargeting.d.ts +1 -1
  591. package/dist/editors/resource-template-editor/components/FacetTargeting.d.ts.map +1 -1
  592. package/dist/editors/resource-template-editor/components/FacetTargeting.js +526 -19
  593. package/dist/editors/resource-template-editor/components/TemplateInfo.d.ts +1 -1
  594. package/dist/editors/resource-template-editor/components/TemplateInfo.d.ts.map +1 -1
  595. package/dist/editors/resource-template-editor/components/TemplateInfo.js +604 -9
  596. package/dist/editors/resource-template-editor/editor.d.ts.map +1 -1
  597. package/dist/editors/resource-template-editor/editor.js +2 -2
  598. package/dist/editors/resource-template-editor/module.d.ts +1 -1
  599. package/dist/editors/resource-template-editor/module.d.ts.map +1 -1
  600. package/dist/editors/resource-template-editor/module.js +1 -1
  601. package/dist/editors/service-offering-editor/components/EditName.js +1 -1
  602. package/dist/editors/service-offering-editor/components/OfferingInfo.d.ts +1 -1
  603. package/dist/editors/service-offering-editor/components/OfferingInfo.d.ts.map +1 -1
  604. package/dist/editors/service-offering-editor/components/OfferingProgress.d.ts +10 -0
  605. package/dist/editors/service-offering-editor/components/OfferingProgress.d.ts.map +1 -0
  606. package/dist/editors/service-offering-editor/components/OfferingProgress.js +240 -0
  607. package/dist/editors/service-offering-editor/components/ResourceTemplateSelector.d.ts +1 -1
  608. package/dist/editors/service-offering-editor/components/ResourceTemplateSelector.d.ts.map +1 -1
  609. package/dist/editors/service-offering-editor/components/ResourceTemplateSelector.js +111 -4
  610. package/dist/editors/service-offering-editor/components/ScopeAndFacets.d.ts +1 -1
  611. package/dist/editors/service-offering-editor/components/ScopeAndFacets.d.ts.map +1 -1
  612. package/dist/editors/service-offering-editor/components/ServiceCatalog.d.ts +1 -1
  613. package/dist/editors/service-offering-editor/components/ServiceCatalog.d.ts.map +1 -1
  614. package/dist/editors/service-offering-editor/components/ServiceCatalog.js +282 -1
  615. package/dist/editors/service-offering-editor/components/ServicesList.d.ts +1 -1
  616. package/dist/editors/service-offering-editor/components/ServicesList.d.ts.map +1 -1
  617. package/dist/editors/service-offering-editor/components/TheMatrix.d.ts +1 -1
  618. package/dist/editors/service-offering-editor/components/TheMatrix.d.ts.map +1 -1
  619. package/dist/editors/service-offering-editor/components/TheMatrix.js +1012 -134
  620. package/dist/editors/service-offering-editor/components/TierDefinition.d.ts +1 -1
  621. package/dist/editors/service-offering-editor/components/TierDefinition.d.ts.map +1 -1
  622. package/dist/editors/service-offering-editor/components/TierDefinition.js +616 -29
  623. package/dist/editors/service-offering-editor/components/TierPricingOptionsPanel.d.ts +11 -0
  624. package/dist/editors/service-offering-editor/components/TierPricingOptionsPanel.d.ts.map +1 -0
  625. package/dist/editors/service-offering-editor/components/TierPricingOptionsPanel.js +405 -0
  626. package/dist/editors/service-offering-editor/components/TiersList.d.ts +1 -1
  627. package/dist/editors/service-offering-editor/components/TiersList.d.ts.map +1 -1
  628. package/dist/editors/service-offering-editor/components/TiersList.js +1 -1
  629. package/dist/editors/service-offering-editor/components/pricing-utils.d.ts +10 -0
  630. package/dist/editors/service-offering-editor/components/pricing-utils.d.ts.map +1 -0
  631. package/dist/editors/service-offering-editor/components/pricing-utils.js +65 -0
  632. package/dist/editors/service-offering-editor/editor.d.ts.map +1 -1
  633. package/dist/editors/service-offering-editor/editor.js +2 -2
  634. package/dist/editors/service-offering-editor/module.d.ts +1 -1
  635. package/dist/editors/service-offering-editor/module.d.ts.map +1 -1
  636. package/dist/editors/service-offering-editor/module.js +1 -1
  637. package/dist/editors/service-subscriptions-editor/components/SubscriptionsList.js +1 -1
  638. package/dist/editors/snapshot-report-editor/components/AddReportToRemoteDrive.js +1 -1
  639. package/dist/editors/snapshot-report-editor/components/SetOwner.d.ts +4 -4
  640. package/dist/editors/snapshot-report-editor/components/SetOwner.d.ts.map +1 -1
  641. package/dist/editors/snapshot-report-editor/components/SetOwner.js +25 -14
  642. package/dist/editors/snapshot-report-editor/editor.d.ts.map +1 -1
  643. package/dist/editors/snapshot-report-editor/editor.js +14 -7
  644. package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.d.ts.map +1 -1
  645. package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.js +133 -8
  646. package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.d.ts +4 -0
  647. package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.d.ts.map +1 -1
  648. package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.js +28 -0
  649. package/dist/index.d.ts +1 -1
  650. package/dist/powerhouse.manifest.json +20 -2
  651. package/dist/scripts/alchemy/alchemyEnvironment.d.ts +2 -2
  652. package/dist/scripts/alchemy/alchemyEnvironment.d.ts.map +1 -1
  653. package/dist/scripts/alchemy/alchemyEnvironment.js +31 -10
  654. package/dist/style.css +1327 -1108
  655. package/dist/subgraphs/budget-statements/resolvers.js +2 -2
  656. package/dist/subgraphs/expense-report/resolvers.d.ts.map +1 -1
  657. package/dist/subgraphs/expense-report/resolvers.js +12 -0
  658. package/dist/subgraphs/expense-report/schema.d.ts.map +1 -1
  659. package/dist/subgraphs/expense-report/schema.js +9 -0
  660. package/dist/subgraphs/index.d.ts +2 -8
  661. package/dist/subgraphs/index.d.ts.map +1 -1
  662. package/dist/subgraphs/index.js +2 -8
  663. package/dist/subgraphs/invoice-addon/schema.d.ts.map +1 -1
  664. package/dist/subgraphs/invoice-addon/schema.js +5 -7
  665. package/dist/subgraphs/snapshot-report/resolvers.d.ts.map +1 -1
  666. package/dist/subgraphs/snapshot-report/resolvers.js +15 -3
  667. package/dist/subgraphs/snapshot-report/schema.d.ts.map +1 -1
  668. package/dist/subgraphs/snapshot-report/schema.js +11 -4
  669. package/package.json +26 -21
  670. package/dist/editors/accounts-editor/components/AccountsFilter.d.ts +0 -8
  671. package/dist/editors/accounts-editor/components/AccountsFilter.d.ts.map +0 -1
  672. package/dist/editors/accounts-editor/components/AccountsFilter.js +0 -34
  673. package/dist/editors/billing-statement/components/objectSetTable.d.ts +0 -7
  674. package/dist/editors/billing-statement/components/objectSetTable.d.ts.map +0 -1
  675. package/dist/editors/billing-statement/components/objectSetTable.js +0 -96
  676. package/dist/subgraphs/account-transactions/index.d.ts +0 -11
  677. package/dist/subgraphs/account-transactions/index.d.ts.map +0 -1
  678. package/dist/subgraphs/account-transactions/index.js +0 -11
  679. package/dist/subgraphs/account-transactions/resolvers.d.ts +0 -3
  680. package/dist/subgraphs/account-transactions/resolvers.d.ts.map +0 -1
  681. package/dist/subgraphs/account-transactions/resolvers.js +0 -168
  682. package/dist/subgraphs/account-transactions/schema.d.ts +0 -3
  683. package/dist/subgraphs/account-transactions/schema.d.ts.map +0 -1
  684. package/dist/subgraphs/account-transactions/schema.js +0 -129
  685. package/dist/subgraphs/accounts/index.d.ts +0 -11
  686. package/dist/subgraphs/accounts/index.d.ts.map +0 -1
  687. package/dist/subgraphs/accounts/index.js +0 -11
  688. package/dist/subgraphs/accounts/resolvers.d.ts +0 -3
  689. package/dist/subgraphs/accounts/resolvers.d.ts.map +0 -1
  690. package/dist/subgraphs/accounts/resolvers.js +0 -120
  691. package/dist/subgraphs/accounts/schema.d.ts +0 -3
  692. package/dist/subgraphs/accounts/schema.d.ts.map +0 -1
  693. package/dist/subgraphs/accounts/schema.js +0 -75
  694. package/dist/subgraphs/billing-statement/index.d.ts +0 -11
  695. package/dist/subgraphs/billing-statement/index.d.ts.map +0 -1
  696. package/dist/subgraphs/billing-statement/index.js +0 -11
  697. package/dist/subgraphs/billing-statement/resolvers.d.ts +0 -3
  698. package/dist/subgraphs/billing-statement/resolvers.d.ts.map +0 -1
  699. package/dist/subgraphs/billing-statement/resolvers.js +0 -156
  700. package/dist/subgraphs/billing-statement/schema.d.ts +0 -3
  701. package/dist/subgraphs/billing-statement/schema.d.ts.map +0 -1
  702. package/dist/subgraphs/billing-statement/schema.js +0 -110
  703. package/dist/subgraphs/invoice/index.d.ts +0 -11
  704. package/dist/subgraphs/invoice/index.d.ts.map +0 -1
  705. package/dist/subgraphs/invoice/index.js +0 -11
  706. package/dist/subgraphs/invoice/resolvers.d.ts +0 -3
  707. package/dist/subgraphs/invoice/resolvers.d.ts.map +0 -1
  708. package/dist/subgraphs/invoice/resolvers.js +0 -408
  709. package/dist/subgraphs/invoice/schema.d.ts +0 -3
  710. package/dist/subgraphs/invoice/schema.d.ts.map +0 -1
  711. package/dist/subgraphs/invoice/schema.js +0 -390
  712. package/dist/subgraphs/service-offering/index.d.ts +0 -11
  713. package/dist/subgraphs/service-offering/index.d.ts.map +0 -1
  714. package/dist/subgraphs/service-offering/index.js +0 -11
  715. package/dist/subgraphs/service-offering/resolvers.d.ts +0 -3
  716. package/dist/subgraphs/service-offering/resolvers.d.ts.map +0 -1
  717. package/dist/subgraphs/service-offering/resolvers.js +0 -432
  718. package/dist/subgraphs/service-offering/schema.d.ts +0 -3
  719. package/dist/subgraphs/service-offering/schema.d.ts.map +0 -1
  720. package/dist/subgraphs/service-offering/schema.js +0 -386
  721. package/dist/subgraphs/service-subscriptions/index.d.ts +0 -11
  722. package/dist/subgraphs/service-subscriptions/index.d.ts.map +0 -1
  723. package/dist/subgraphs/service-subscriptions/index.js +0 -11
  724. package/dist/subgraphs/service-subscriptions/resolvers.d.ts +0 -3
  725. package/dist/subgraphs/service-subscriptions/resolvers.d.ts.map +0 -1
  726. package/dist/subgraphs/service-subscriptions/resolvers.js +0 -228
  727. package/dist/subgraphs/service-subscriptions/schema.d.ts +0 -3
  728. package/dist/subgraphs/service-subscriptions/schema.d.ts.map +0 -1
  729. package/dist/subgraphs/service-subscriptions/schema.js +0 -193
@@ -1,12 +1,13 @@
1
1
  import { type SignalDispatch } from "document-model";
2
- import { type SetReportConfigAction, type SetAccountsDocumentAction, type SetPeriodAction, type SetOwnerIdAction, type SetPeriodStartAction, type SetPeriodEndAction } from "./actions.js";
3
- import { type SnapshotReportState } from "../types.js";
2
+ import type { SetReportConfigAction, SetAccountsDocumentAction, SetPeriodAction, AddOwnerIdAction, SetPeriodStartAction, SetPeriodEndAction, RemoveOwnerIdAction } from "./actions.js";
3
+ import type { SnapshotReportState } from "../types.js";
4
4
  export interface SnapshotReportConfigurationOperations {
5
5
  setReportConfigOperation: (state: SnapshotReportState, action: SetReportConfigAction, dispatch?: SignalDispatch) => void;
6
6
  setAccountsDocumentOperation: (state: SnapshotReportState, action: SetAccountsDocumentAction, dispatch?: SignalDispatch) => void;
7
7
  setPeriodOperation: (state: SnapshotReportState, action: SetPeriodAction, dispatch?: SignalDispatch) => void;
8
- setOwnerIdOperation: (state: SnapshotReportState, action: SetOwnerIdAction, dispatch?: SignalDispatch) => void;
8
+ addOwnerIdOperation: (state: SnapshotReportState, action: AddOwnerIdAction, dispatch?: SignalDispatch) => void;
9
9
  setPeriodStartOperation: (state: SnapshotReportState, action: SetPeriodStartAction, dispatch?: SignalDispatch) => void;
10
10
  setPeriodEndOperation: (state: SnapshotReportState, action: SetPeriodEndAction, dispatch?: SignalDispatch) => void;
11
+ removeOwnerIdOperation: (state: SnapshotReportState, action: RemoveOwnerIdAction, dispatch?: SignalDispatch) => void;
11
12
  }
12
13
  //# sourceMappingURL=operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/snapshot-report/gen/configuration/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACxB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,qCAAqC;IACpD,wBAAwB,EAAE,CACxB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,4BAA4B,EAAE,CAC5B,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,yBAAyB,EACjC,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,kBAAkB,EAAE,CAClB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,eAAe,EACvB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,mBAAmB,EAAE,CACnB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,uBAAuB,EAAE,CACvB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,qBAAqB,EAAE,CACrB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/snapshot-report/gen/configuration/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,qCAAqC;IACpD,wBAAwB,EAAE,CACxB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,4BAA4B,EAAE,CAC5B,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,yBAAyB,EACjC,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,kBAAkB,EAAE,CAClB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,eAAe,EACvB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,mBAAmB,EAAE,CACnB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,uBAAuB,EAAE,CACvB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,qBAAqB,EAAE,CACrB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,sBAAsB,EAAE,CACtB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
@@ -1,3 +1 @@
1
1
  import {} from "document-model";
2
- import {} from "./actions.js";
3
- import {} from "../types.js";
@@ -1 +1 @@
1
- {"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/document-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,wBAiY3B,CAAC"}
1
+ {"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/document-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,wBA8Y3B,CAAC"}
@@ -22,8 +22,8 @@ export const documentModel = {
22
22
  examples: [],
23
23
  id: "set-report-config",
24
24
  name: "SET_REPORT_CONFIG",
25
- reducer: "if (action.input.reportName !== undefined && action.input.reportName !== null) {\n state.reportName = action.input.reportName;\n}\nif (action.input.startDate !== undefined && action.input.startDate !== null) {\n state.startDate = action.input.startDate;\n}\nif (action.input.endDate !== undefined && action.input.endDate !== null) {\n state.endDate = action.input.endDate;\n}\nif (action.input.accountsDocumentId !== undefined && action.input.accountsDocumentId !== null) {\n state.accountsDocumentId = action.input.accountsDocumentId;\n}\nif (action.input.ownerId !== undefined && action.input.ownerId !== null) {\n state.ownerId = action.input.ownerId;\n}",
26
- schema: "input SetReportConfigInput {\n reportName: String\n startDate: DateTime\n endDate: DateTime\n accountsDocumentId: PHID\n ownerId: PHID\n}",
25
+ reducer: "if (action.input.reportName !== undefined && action.input.reportName !== null) {\n state.reportName = action.input.reportName;\n}\nif (action.input.startDate !== undefined && action.input.startDate !== null) {\n state.startDate = action.input.startDate;\n}\nif (action.input.endDate !== undefined && action.input.endDate !== null) {\n state.endDate = action.input.endDate;\n}\nif (action.input.accountsDocumentId !== undefined && action.input.accountsDocumentId !== null) {\n state.accountsDocumentId = action.input.accountsDocumentId;\n}",
26
+ schema: "input SetReportConfigInput {\n reportName: String\n startDate: DateTime\n endDate: DateTime\n accountsDocumentId: PHID\n}",
27
27
  scope: "global",
28
28
  template: "Set the report configuration including name, period, and accounts document reference",
29
29
  },
@@ -50,13 +50,13 @@ export const documentModel = {
50
50
  template: "Set the accounting period for the snapshot report",
51
51
  },
52
52
  {
53
- description: "Set the owner ID (builder team) for the snapshot report",
53
+ description: "Add an owner ID (builder team) to the snapshot report",
54
54
  errors: [],
55
55
  examples: [],
56
56
  id: "set-owner-id",
57
- name: "SET_OWNER_ID",
58
- reducer: "state.ownerId = action.input.ownerId;",
59
- schema: "input SetOwnerIdInput {\n ownerId: PHID!\n}",
57
+ name: "ADD_OWNER_ID",
58
+ reducer: "if (!state.ownerIds.includes(action.input.ownerId)) {\n state.ownerIds.push(action.input.ownerId);\n}",
59
+ schema: "input AddOwnerIdInput {\n ownerId: PHID!\n}",
60
60
  scope: "global",
61
61
  template: "Set the owner ID (builder team) for the snapshot report",
62
62
  },
@@ -82,6 +82,17 @@ export const documentModel = {
82
82
  scope: "global",
83
83
  template: "",
84
84
  },
85
+ {
86
+ id: "remove-owner-id",
87
+ name: "REMOVE_OWNER_ID",
88
+ description: "Remove an owner ID from the snapshot report",
89
+ schema: "input RemoveOwnerIdInput {\n ownerId: PHID!\n}",
90
+ template: "",
91
+ reducer: "const index = state.ownerIds.indexOf(action.input.ownerId);\nif (index !== -1) {\n state.ownerIds.splice(index, 1);\n}",
92
+ errors: [],
93
+ examples: [],
94
+ scope: "global",
95
+ },
85
96
  ],
86
97
  },
87
98
  {
@@ -257,7 +268,7 @@ export const documentModel = {
257
268
  examples: [],
258
269
  id: "add-transaction",
259
270
  name: "ADD_TRANSACTION",
260
- reducer: 'const account = state.snapshotAccounts.find(a => a.id === action.input.accountId);\nif (!account) {\n throw new AddTransactionAccountNotFoundError(`Account with ID ${action.input.accountId} not found`);\n}\n\nconst existingTransaction = account.transactions.find(t => t.id === action.input.id);\nif (existingTransaction) {\n throw new DuplicateTransactionError(`Transaction with ID ${action.input.id} already exists`);\n}\n\n// AUTO-CATEGORIZATION: Determine flow type and counter-party account ID\nlet flowType = action.input.flowType || null;\nlet counterPartyAccountId = action.input.counterPartyAccountId || null;\n\nif (action.input.counterParty) {\n // Find counter-party account in snapshot\n const counterPartyAccount = state.snapshotAccounts.find(\n (acc) => acc.accountAddress.toLowerCase() === action.input.counterParty.toLowerCase(),\n );\n\n if (counterPartyAccount) {\n // Auto-link counter-party account\n counterPartyAccountId = counterPartyAccount.id;\n\n // Auto-categorize flow type if not explicitly provided\n if (!flowType) {\n // Determine sender and receiver types based on transaction direction\n const fromType =\n action.input.direction === "OUTFLOW"\n ? account.type\n : counterPartyAccount.type;\n const toType =\n action.input.direction === "OUTFLOW"\n ? counterPartyAccount.type\n : account.type;\n\n // Flow categorization rules\n if (fromType === "Source") {\n flowType = "TopUp";\n } else if (toType === "Source") {\n flowType = "Return";\n } else if (toType === "Destination") {\n flowType = "TopUp";\n } else if (fromType === "External") {\n flowType = "External";\n } else if (fromType === "Internal" && toType === "Internal") {\n flowType = "Internal";\n } else if (fromType === "Internal" && toType === "External") {\n flowType = "External";\n } else {\n flowType = "External";\n }\n }\n } else if (!flowType) {\n // FALLBACK: Counter-party not found in snapshot, default to External\n flowType = "External";\n }\n} else if (!flowType) {\n // FALLBACK: No counter-party provided, default to External\n flowType = "External";\n}\n\nconst newTransaction = {\n id: action.input.id,\n transactionId: action.input.transactionId,\n counterParty: action.input.counterParty || null,\n amount: action.input.amount,\n datetime: action.input.datetime,\n txHash: action.input.txHash,\n token: action.input.token,\n blockNumber: action.input.blockNumber || null,\n direction: action.input.direction,\n flowType: flowType,\n counterPartyAccountId: counterPartyAccountId,\n};\n\naccount.transactions.push(newTransaction);',
271
+ reducer: "const account = state.snapshotAccounts.find(a => a.id === action.input.accountId);\nif (!account) {\n throw new AddTransactionAccountNotFoundError(`Account with ID ${action.input.accountId} not found`);\n}\n\nconst existingTransaction = account.transactions.find(t => t.id === action.input.id);\nif (existingTransaction) {\n throw new DuplicateTransactionError(`Transaction with ID ${action.input.id} already exists`);\n}\n\n// Known swap protocol addresses (lowercase)\nconst SWAP_ADDRESSES = new Set([\n '0x9008d19f58aabd9ed0d60971565aa8510560ab41', // CoW Protocol Settlement\n '0x7a250d5630b4cf539739df2c5dacb4c659f2488d', // Uniswap V2 Router\n '0xe592427a0aece92de3edee1f18e0157c05861564', // Uniswap V3 Router\n '0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45', // Uniswap V3 Router 2\n '0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad', // Uniswap Universal Router\n '0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f', // SushiSwap Router\n '0x1111111254eeb25477b68fb85ed929f73a960582', // 1inch Router v5\n '0x1111111254fb6c44bac0bed2854e76f90643097d', // 1inch Router v4\n '0xdef1c0ded9bec7f1a1670819833240f027b25eff', // 0x Exchange Proxy\n '0x881d40237659c251811cec9c364ef91dc08d300c', // Metamask Swap Router\n]);\n\nfunction isSwapAddress(address) {\n if (!address) return false;\n return SWAP_ADDRESSES.has(address.toLowerCase());\n}\n\n// AUTO-CATEGORIZATION: Determine flow type and counter-party account ID\nlet flowType = action.input.flowType || null;\nlet counterPartyAccountId = action.input.counterPartyAccountId || null;\n\n// Check for swap transactions first (highest priority)\nif (!flowType && isSwapAddress(action.input.counterParty)) {\n flowType = 'Swap';\n} else if (action.input.counterParty) {\n // Find counter-party account in snapshot\n const counterPartyAccount = state.snapshotAccounts.find(\n (acc) => acc.accountAddress.toLowerCase() === action.input.counterParty.toLowerCase(),\n );\n\n if (counterPartyAccount) {\n // Auto-link counter-party account\n counterPartyAccountId = counterPartyAccount.id;\n\n // Auto-categorize flow type if not explicitly provided\n if (!flowType) {\n // Determine sender and receiver types based on transaction direction\n const fromType =\n action.input.direction === 'OUTFLOW'\n ? account.type\n : counterPartyAccount.type;\n const toType =\n action.input.direction === 'OUTFLOW'\n ? counterPartyAccount.type\n : account.type;\n\n // Flow categorization rules\n if (fromType === 'Source') {\n flowType = 'TopUp';\n } else if (toType === 'Source') {\n flowType = 'Return';\n } else if (toType === 'Destination') {\n flowType = 'TopUp';\n } else if (fromType === 'External') {\n flowType = 'External';\n } else if (fromType === 'Internal' && toType === 'Internal') {\n flowType = 'Internal';\n } else if (fromType === 'Internal' && toType === 'External') {\n flowType = 'External';\n } else {\n flowType = 'External';\n }\n }\n } else if (!flowType) {\n // FALLBACK: Counter-party not found in snapshot, default to External\n flowType = 'External';\n }\n} else if (!flowType) {\n // FALLBACK: No counter-party provided, default to External\n flowType = 'External';\n}\n\nconst newTransaction = {\n id: action.input.id,\n transactionId: action.input.transactionId,\n counterParty: action.input.counterParty || null,\n amount: action.input.amount,\n datetime: action.input.datetime,\n txHash: action.input.txHash,\n token: action.input.token,\n blockNumber: action.input.blockNumber || null,\n direction: action.input.direction,\n flowType: flowType,\n counterPartyAccountId: counterPartyAccountId,\n};\n\naccount.transactions.push(newTransaction);",
261
272
  schema: "input AddTransactionInput {\n accountId: OID!\n id: OID!\n transactionId: String!\n counterParty: EthereumAddress\n amount: Amount_Currency!\n datetime: DateTime!\n txHash: String!\n token: Currency!\n blockNumber: Int\n direction: TransactionDirectionInput!\n flowType: TransactionFlowTypeInput\n counterPartyAccountId: OID\n}\n",
262
273
  scope: "global",
263
274
  template: "Add a transaction to the snapshot with enrichment data",
@@ -306,7 +317,7 @@ export const documentModel = {
306
317
  examples: [],
307
318
  id: "recalculate-flow-types",
308
319
  name: "RECALCULATE_FLOW_TYPES",
309
- reducer: 'for (const account of state.snapshotAccounts) {\n for (const tx of account.transactions) {\n if (!tx.counterParty) continue;\n\n // Find counter-party account\n const counterPartyAccount = state.snapshotAccounts.find(\n (acc) => acc.accountAddress.toLowerCase() === tx.counterParty.toLowerCase(),\n );\n\n if (counterPartyAccount) {\n // Update counter-party link if missing\n if (!tx.counterPartyAccountId) {\n tx.counterPartyAccountId = counterPartyAccount.id;\n }\n\n // Recalculate flow type based on account types\n const fromType =\n tx.direction === "OUTFLOW" ? account.type : counterPartyAccount.type;\n const toType =\n tx.direction === "OUTFLOW" ? counterPartyAccount.type : account.type;\n\n // Flow categorization rules\n if (fromType === "Source") {\n tx.flowType = "TopUp";\n } else if (toType === "Source") {\n tx.flowType = "Return";\n } else if (toType === "Destination") {\n tx.flowType = "TopUp";\n } else if (fromType === "External") {\n tx.flowType = "External";\n } else if (fromType === "Internal" && toType === "Internal") {\n tx.flowType = "Internal";\n } else if (fromType === "Internal" && toType === "External") {\n tx.flowType = "External";\n } else {\n tx.flowType = "External";\n }\n }\n }\n}',
320
+ reducer: "// Known swap protocol addresses (lowercase)\nconst SWAP_ADDRESSES = new Set([\n '0x9008d19f58aabd9ed0d60971565aa8510560ab41', // CoW Protocol Settlement\n '0x7a250d5630b4cf539739df2c5dacb4c659f2488d', // Uniswap V2 Router\n '0xe592427a0aece92de3edee1f18e0157c05861564', // Uniswap V3 Router\n '0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45', // Uniswap V3 Router 2\n '0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad', // Uniswap Universal Router\n '0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f', // SushiSwap Router\n '0x1111111254eeb25477b68fb85ed929f73a960582', // 1inch Router v5\n '0x1111111254fb6c44bac0bed2854e76f90643097d', // 1inch Router v4\n '0xdef1c0ded9bec7f1a1670819833240f027b25eff', // 0x Exchange Proxy\n '0x881d40237659c251811cec9c364ef91dc08d300c', // Metamask Swap Router\n]);\n\nfunction isSwapAddress(address) {\n if (!address) return false;\n return SWAP_ADDRESSES.has(address.toLowerCase());\n}\n\nfor (const account of state.snapshotAccounts) {\n for (const tx of account.transactions) {\n // Check for swap transactions first\n if (isSwapAddress(tx.counterParty)) {\n tx.flowType = 'Swap';\n continue;\n }\n\n if (!tx.counterParty) continue;\n\n // Find counter-party account\n const counterPartyAccount = state.snapshotAccounts.find(\n (acc) => acc.accountAddress.toLowerCase() === tx.counterParty.toLowerCase(),\n );\n\n if (counterPartyAccount) {\n // Update counter-party link if missing\n if (!tx.counterPartyAccountId) {\n tx.counterPartyAccountId = counterPartyAccount.id;\n }\n\n // Recalculate flow type based on account types\n const fromType =\n tx.direction === 'OUTFLOW' ? account.type : counterPartyAccount.type;\n const toType =\n tx.direction === 'OUTFLOW' ? counterPartyAccount.type : account.type;\n\n // Flow categorization rules\n if (fromType === 'Source') {\n tx.flowType = 'TopUp';\n } else if (toType === 'Source') {\n tx.flowType = 'Return';\n } else if (toType === 'Destination') {\n tx.flowType = 'TopUp';\n } else if (fromType === 'External') {\n tx.flowType = 'External';\n } else if (fromType === 'Internal' && toType === 'Internal') {\n tx.flowType = 'Internal';\n } else if (fromType === 'Internal' && toType === 'External') {\n tx.flowType = 'External';\n } else {\n tx.flowType = 'External';\n }\n }\n }\n}",
310
321
  schema: "input RecalculateFlowTypesInput {\n _: String\n}",
311
322
  scope: "global",
312
323
  template: "Recalculate all transaction flow types based on current account types",
@@ -317,12 +328,12 @@ export const documentModel = {
317
328
  state: {
318
329
  global: {
319
330
  examples: [],
320
- initialValue: '"{\\"ownerId\\": null, \\"accountsDocumentId\\": null, \\"startDate\\": null, \\"endDate\\": null, \\"reportName\\": null, \\"reportPeriodStart\\": null, \\"reportPeriodEnd\\": null, \\"snapshotAccounts\\": []}"',
321
- schema: "type SnapshotReportState {\n ownerId: PHID\n accountsDocumentId: PHID\n startDate: DateTime\n endDate: DateTime\n reportName: String\n reportPeriodStart: DateTime\n reportPeriodEnd: DateTime\n snapshotAccounts: [SnapshotAccount!]!\n}\n\ntype SnapshotAccount {\n id: OID!\n accountId: OID!\n accountAddress: String!\n accountName: String!\n type: AccountType!\n accountTransactionsId: PHID\n startingBalances: [TokenBalance!]!\n endingBalances: [TokenBalance!]!\n transactions: [SnapshotTransaction!]!\n}\n\ntype TokenBalance {\n id: OID!\n token: Currency!\n amount: Amount_Currency!\n}\n\ntype SnapshotTransaction {\n id: OID!\n transactionId: String!\n counterParty: EthereumAddress\n amount: Amount_Currency!\n datetime: DateTime!\n txHash: String!\n token: Currency!\n blockNumber: Int\n direction: TransactionDirection!\n flowType: TransactionFlowType\n counterPartyAccountId: OID\n}\n\nenum AccountType {\n Source\n Internal\n Destination\n External\n}\n\nenum AccountTypeInput {\n Source\n Internal\n Destination\n External\n}\n\nenum TransactionDirection {\n INFLOW\n OUTFLOW\n}\n\nenum TransactionDirectionInput {\n INFLOW\n OUTFLOW\n}\n\nenum TransactionFlowType {\n TopUp\n Return\n Internal\n External\n}\n\nenum TransactionFlowTypeInput {\n TopUp\n Return\n Internal\n External\n}",
331
+ initialValue: '{"ownerIds": [], "accountsDocumentId": null, "startDate": null, "endDate": null, "reportName": null, "reportPeriodStart": null, "reportPeriodEnd": null, "snapshotAccounts": []}',
332
+ schema: "type SnapshotReportState {\n ownerIds: [PHID!]!\n accountsDocumentId: PHID\n startDate: DateTime\n endDate: DateTime\n reportName: String\n reportPeriodStart: DateTime\n reportPeriodEnd: DateTime\n snapshotAccounts: [SnapshotAccount!]!\n}\n\ntype SnapshotAccount {\n id: OID!\n accountId: OID!\n accountAddress: String!\n accountName: String!\n type: AccountType!\n accountTransactionsId: PHID\n startingBalances: [TokenBalance!]!\n endingBalances: [TokenBalance!]!\n transactions: [SnapshotTransaction!]!\n}\n\ntype TokenBalance {\n id: OID!\n token: Currency!\n amount: Amount_Currency!\n}\n\ntype SnapshotTransaction {\n id: OID!\n transactionId: String!\n counterParty: EthereumAddress\n amount: Amount_Currency!\n datetime: DateTime!\n txHash: String!\n token: Currency!\n blockNumber: Int\n direction: TransactionDirection!\n flowType: TransactionFlowType\n counterPartyAccountId: OID\n}\n\nenum AccountType {\n Source\n Internal\n Destination\n External\n}\n\nenum AccountTypeInput {\n Source\n Internal\n Destination\n External\n}\n\nenum TransactionDirection {\n INFLOW\n OUTFLOW\n}\n\nenum TransactionDirectionInput {\n INFLOW\n OUTFLOW\n}\n\nenum TransactionFlowType {\n TopUp\n Return\n Internal\n External\n Swap\n}\n\nenum TransactionFlowTypeInput {\n TopUp\n Return\n Internal\n External\n Swap\n}",
322
333
  },
323
334
  local: {
324
335
  examples: [],
325
- initialValue: '""',
336
+ initialValue: "",
326
337
  schema: "",
327
338
  },
328
339
  },
@@ -6,264 +6,54 @@ export declare const SnapshotReportDocumentHeaderSchema: z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  createdAtUtcIso: z.ZodString;
8
8
  lastModifiedAtUtcIso: z.ZodString;
9
- } & {
10
9
  documentType: z.ZodLiteral<"powerhouse/snapshot-report">;
11
- }, "strip", z.ZodTypeAny, {
12
- id: string;
13
- name: string;
14
- documentType: "powerhouse/snapshot-report";
15
- createdAtUtcIso: string;
16
- lastModifiedAtUtcIso: string;
17
- }, {
18
- id: string;
19
- name: string;
20
- documentType: "powerhouse/snapshot-report";
21
- createdAtUtcIso: string;
22
- lastModifiedAtUtcIso: string;
23
- }>;
10
+ }, z.core.$strip>;
24
11
  /** Schema for validating the state object of a SnapshotReport document */
25
- export declare const SnapshotReportPHStateSchema: z.ZodObject<{} & {
12
+ export declare const SnapshotReportPHStateSchema: z.ZodObject<{
26
13
  global: z.ZodObject<Required<{
27
- accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
28
- endDate: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
29
- ownerId: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
30
- reportName: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
31
- reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
32
- reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
33
- snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[], any, import("./types.js").SnapshotAccount[]>;
34
- startDate: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
35
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
36
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
37
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
38
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
39
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
40
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
41
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
42
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
43
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
44
- }, {
45
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
46
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
47
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
48
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
49
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
50
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
51
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
52
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
53
- }>;
54
- }, "strip", z.ZodTypeAny, {
55
- global: {
56
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
57
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
58
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
59
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
60
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
61
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
62
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
63
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
64
- };
65
- }, {
66
- global: {
67
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
68
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
69
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
70
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
71
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
72
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
73
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
74
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
75
- };
76
- }>;
14
+ accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
15
+ endDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
16
+ ownerIds: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
17
+ reportName: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
18
+ reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
19
+ reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
20
+ snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[], unknown, z.core.$ZodTypeInternals<import("./types.js").SnapshotAccount[], unknown>>;
21
+ startDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
22
+ }>, z.core.$strip>;
23
+ }, z.core.$strip>;
77
24
  export declare const SnapshotReportDocumentSchema: z.ZodObject<{
78
25
  header: z.ZodObject<{
79
26
  id: z.ZodString;
80
27
  name: z.ZodString;
81
28
  createdAtUtcIso: z.ZodString;
82
29
  lastModifiedAtUtcIso: z.ZodString;
83
- } & {
84
30
  documentType: z.ZodLiteral<"powerhouse/snapshot-report">;
85
- }, "strip", z.ZodTypeAny, {
86
- id: string;
87
- name: string;
88
- documentType: "powerhouse/snapshot-report";
89
- createdAtUtcIso: string;
90
- lastModifiedAtUtcIso: string;
91
- }, {
92
- id: string;
93
- name: string;
94
- documentType: "powerhouse/snapshot-report";
95
- createdAtUtcIso: string;
96
- lastModifiedAtUtcIso: string;
97
- }>;
98
- state: z.ZodObject<{} & {
31
+ }, z.core.$strip>;
32
+ state: z.ZodObject<{
99
33
  global: z.ZodObject<Required<{
100
- accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
101
- endDate: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
102
- ownerId: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
103
- reportName: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
104
- reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
105
- reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
106
- snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[], any, import("./types.js").SnapshotAccount[]>;
107
- startDate: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
108
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
109
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
110
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
111
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
112
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
113
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
114
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
115
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
116
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
117
- }, {
118
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
119
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
120
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
121
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
122
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
123
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
124
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
125
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
126
- }>;
127
- }, "strip", z.ZodTypeAny, {
128
- global: {
129
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
130
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
131
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
132
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
133
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
134
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
135
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
136
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
137
- };
138
- }, {
139
- global: {
140
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
141
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
142
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
143
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
144
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
145
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
146
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
147
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
148
- };
149
- }>;
150
- initialState: z.ZodObject<{} & {
34
+ accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
35
+ endDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
36
+ ownerIds: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
37
+ reportName: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
38
+ reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
39
+ reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
40
+ snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[], unknown, z.core.$ZodTypeInternals<import("./types.js").SnapshotAccount[], unknown>>;
41
+ startDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
42
+ }>, z.core.$strip>;
43
+ }, z.core.$strip>;
44
+ initialState: z.ZodObject<{
151
45
  global: z.ZodObject<Required<{
152
- accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
153
- endDate: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
154
- ownerId: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
155
- reportName: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
156
- reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
157
- reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
158
- snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[], any, import("./types.js").SnapshotAccount[]>;
159
- startDate: z.ZodType<import("./types.js").Maybe<string>, any, import("./types.js").Maybe<string>>;
160
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
161
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
162
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
163
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
164
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
165
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
166
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
167
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
168
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
169
- }, {
170
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
171
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
172
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
173
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
174
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
175
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
176
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
177
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
178
- }>;
179
- }, "strip", z.ZodTypeAny, {
180
- global: {
181
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
182
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
183
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
184
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
185
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
186
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
187
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
188
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
189
- };
190
- }, {
191
- global: {
192
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
193
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
194
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
195
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
196
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
197
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
198
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
199
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
200
- };
201
- }>;
202
- }, "strip", z.ZodTypeAny, {
203
- header: {
204
- id: string;
205
- name: string;
206
- documentType: "powerhouse/snapshot-report";
207
- createdAtUtcIso: string;
208
- lastModifiedAtUtcIso: string;
209
- };
210
- state: {
211
- global: {
212
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
213
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
214
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
215
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
216
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
217
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
218
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
219
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
220
- };
221
- };
222
- initialState: {
223
- global: {
224
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
225
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
226
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
227
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
228
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
229
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
230
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
231
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
232
- };
233
- };
234
- }, {
235
- header: {
236
- id: string;
237
- name: string;
238
- documentType: "powerhouse/snapshot-report";
239
- createdAtUtcIso: string;
240
- lastModifiedAtUtcIso: string;
241
- };
242
- state: {
243
- global: {
244
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
245
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
246
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
247
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
248
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
249
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
250
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
251
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
252
- };
253
- };
254
- initialState: {
255
- global: {
256
- ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
257
- accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
258
- endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
259
- startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
260
- reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
261
- reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
262
- reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
263
- snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
264
- };
265
- };
266
- }>;
46
+ accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
47
+ endDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
48
+ ownerIds: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
49
+ reportName: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
50
+ reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
51
+ reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
52
+ snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[], unknown, z.core.$ZodTypeInternals<import("./types.js").SnapshotAccount[], unknown>>;
53
+ startDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
54
+ }>, z.core.$strip>;
55
+ }, z.core.$strip>;
56
+ }, z.core.$strip>;
267
57
  /** Simple helper function to check if a state object is a SnapshotReport document state object */
268
58
  export declare function isSnapshotReportState(state: unknown): state is SnapshotReportPHState;
269
59
  /** Simple helper function to assert that a document state object is a SnapshotReport document state object */
@@ -1 +1 @@
1
- {"version":3,"file":"document-schema.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/document-schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;EAG3C,CAAC;AAEL,0EAA0E;AAC1E,eAAO,MAAM,2BAA2B;;;;;;;;;;;4CAqC0sG,oCAAe;uDAA7G,oCAAe;4CAA8B,wCAAmB;8CAA+R,wCAAmB;+CAApO,sCAAiB;oDAAsC,wCAAmB;sDAAwC,wCAAmB;;;4CAArL,oCAAe;uDAA7G,oCAAe;4CAA8B,wCAAmB;8CAA+R,wCAAmB;+CAApO,sCAAiB;oDAAsC,wCAAmB;sDAAwC,wCAAmB;;;;;4CAArL,oCAAe;uDAA7G,oCAAe;4CAA8B,wCAAmB;8CAA+R,wCAAmB;+CAApO,sCAAiB;oDAAsC,wCAAmB;sDAAwC,wCAAmB;;;;;4CAArL,oCAAe;uDAA7G,oCAAe;4CAA8B,wCAAmB;8CAA+R,wCAAmB;+CAApO,sCAAiB;oDAAsC,wCAAmB;sDAAwC,wCAAmB;;;EAnCr6G,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAiCysG,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;gDAArL,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;;;gDAArL,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;;;gDAArL,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;;;;;;;;;;;;;gDAArL,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;gDAArL,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;;;gDAArL,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;;;gDAArL,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;;;;;;;;;;;;gDAArL,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;;;;gDAArL,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;;;;;;;;;;;;gDAArL,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;;;;gDAArL,oCAAe;2DAA7G,oCAAe;gDAA8B,wCAAmB;kDAA+R,wCAAmB;mDAApO,sCAAiB;wDAAsC,wCAAmB;0DAAwC,wCAAmB;;;;EA7Br6G,CAAC;AAEH,kGAAkG;AAClG,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,qBAAqB,CAEhC;AAED,8GAA8G;AAC9G,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,KAAK,IAAI,qBAAqB,CAExC;AAED,iFAAiF;AACjF,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,OAAO,GAChB,QAAQ,IAAI,sBAAsB,CAEpC;AAED,oFAAoF;AACpF,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,QAAQ,IAAI,sBAAsB,CAE5C"}
1
+ {"version":3,"file":"document-schema.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/document-schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,kCAAkC;;;;;;iBAG3C,CAAC;AAEL,0EAA0E;AAC1E,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIvC,CAAC;AAEH,kGAAkG;AAClG,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,qBAAqB,CAEhC;AAED,8GAA8G;AAC9G,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,KAAK,IAAI,qBAAqB,CAExC;AAED,iFAAiF;AACjF,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,OAAO,GAChB,QAAQ,IAAI,sBAAsB,CAEpC;AAED,oFAAoF;AACpF,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,QAAQ,IAAI,sBAAsB,CAE5C"}
@@ -2,7 +2,7 @@ import { createBaseState, defaultBaseState } from "document-model/core";
2
2
  import { createDocument } from "./utils.js";
3
3
  export function defaultGlobalState() {
4
4
  return {
5
- ownerId: null,
5
+ ownerIds: [],
6
6
  accountsDocumentId: null,
7
7
  startDate: null,
8
8
  endDate: null,
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;AAmMhH,eAAO,MAAM,OAAO,yDAAqD,CAAC"}
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;AAkQhH,eAAO,MAAM,OAAO,yDAAqD,CAAC"}