@powerhousedao/contributor-billing 0.1.30 → 0.1.32

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 (1115) hide show
  1. package/dist/document-models/account-transactions/actions.d.ts +20 -0
  2. package/dist/document-models/account-transactions/actions.d.ts.map +1 -0
  3. package/dist/document-models/account-transactions/actions.js +9 -0
  4. package/dist/document-models/account-transactions/gen/account/actions.d.ts +8 -0
  5. package/dist/document-models/account-transactions/gen/account/actions.d.ts.map +1 -0
  6. package/dist/document-models/account-transactions/gen/account/creators.d.ts +4 -0
  7. package/dist/document-models/account-transactions/gen/account/creators.d.ts.map +1 -0
  8. package/dist/document-models/account-transactions/gen/account/creators.js +3 -0
  9. package/dist/document-models/account-transactions/gen/account/error.d.ts.map +1 -0
  10. package/dist/document-models/account-transactions/gen/account/operations.d.ts +7 -0
  11. package/dist/document-models/account-transactions/gen/account/operations.d.ts.map +1 -0
  12. package/dist/document-models/account-transactions/gen/actions.d.ts +8 -0
  13. package/dist/document-models/account-transactions/gen/actions.d.ts.map +1 -0
  14. package/dist/document-models/account-transactions/gen/actions.js +3 -0
  15. package/dist/document-models/account-transactions/gen/budgets/actions.d.ts +16 -0
  16. package/dist/document-models/account-transactions/gen/budgets/actions.d.ts.map +1 -0
  17. package/dist/document-models/account-transactions/gen/budgets/actions.js +1 -0
  18. package/dist/document-models/account-transactions/gen/budgets/creators.d.ts +6 -0
  19. package/dist/document-models/account-transactions/gen/budgets/creators.d.ts.map +1 -0
  20. package/dist/document-models/account-transactions/gen/budgets/creators.js +5 -0
  21. package/dist/document-models/account-transactions/gen/budgets/error.d.ts +2 -0
  22. package/dist/document-models/account-transactions/gen/budgets/error.d.ts.map +1 -0
  23. package/dist/document-models/account-transactions/gen/budgets/error.js +1 -0
  24. package/dist/document-models/account-transactions/gen/budgets/operations.d.ts +9 -0
  25. package/dist/document-models/account-transactions/gen/budgets/operations.d.ts.map +1 -0
  26. package/dist/document-models/account-transactions/gen/budgets/operations.js +3 -0
  27. package/dist/document-models/account-transactions/gen/creators.d.ts +7 -0
  28. package/dist/document-models/account-transactions/gen/creators.d.ts.map +1 -0
  29. package/dist/document-models/account-transactions/gen/creators.js +6 -0
  30. package/dist/document-models/account-transactions/gen/document-model.d.ts.map +1 -0
  31. package/dist/document-models/account-transactions/gen/document-model.js +139 -0
  32. package/dist/document-models/account-transactions/gen/document-schema.d.ts +180 -0
  33. package/dist/document-models/account-transactions/gen/document-schema.d.ts.map +1 -0
  34. package/dist/document-models/account-transactions/gen/document-schema.js +33 -0
  35. package/dist/document-models/account-transactions/gen/document-type.d.ts +2 -0
  36. package/dist/document-models/account-transactions/gen/document-type.d.ts.map +1 -0
  37. package/dist/document-models/account-transactions/gen/document-type.js +1 -0
  38. package/dist/document-models/account-transactions/gen/index.d.ts +14 -0
  39. package/dist/document-models/account-transactions/gen/index.d.ts.map +1 -0
  40. package/dist/document-models/account-transactions/gen/index.js +13 -0
  41. package/dist/document-models/account-transactions/gen/ph-factories.d.ts +23 -0
  42. package/dist/document-models/account-transactions/gen/ph-factories.d.ts.map +1 -0
  43. package/dist/document-models/account-transactions/gen/ph-factories.js +59 -0
  44. package/dist/document-models/account-transactions/gen/reducer.d.ts +3 -0
  45. package/dist/document-models/account-transactions/gen/reducer.d.ts.map +1 -0
  46. package/dist/document-models/account-transactions/gen/reducer.js +47 -0
  47. package/dist/document-models/account-transactions/gen/schema/index.d.ts.map +1 -0
  48. package/dist/document-models/account-transactions/gen/schema/types.d.ts +230 -0
  49. package/dist/document-models/account-transactions/gen/schema/types.d.ts.map +1 -0
  50. package/dist/document-models/account-transactions/gen/schema/zod.d.ts +25 -0
  51. package/dist/document-models/account-transactions/gen/schema/zod.d.ts.map +1 -0
  52. package/dist/document-models/account-transactions/gen/schema/zod.js +144 -0
  53. package/dist/document-models/account-transactions/gen/transactions/actions.d.ts +20 -0
  54. package/dist/document-models/account-transactions/gen/transactions/actions.d.ts.map +1 -0
  55. package/dist/document-models/account-transactions/gen/transactions/actions.js +1 -0
  56. package/dist/document-models/account-transactions/gen/transactions/creators.d.ts +7 -0
  57. package/dist/document-models/account-transactions/gen/transactions/creators.d.ts.map +1 -0
  58. package/dist/document-models/account-transactions/gen/transactions/creators.js +6 -0
  59. package/dist/document-models/account-transactions/gen/transactions/error.d.ts +2 -0
  60. package/dist/document-models/account-transactions/gen/transactions/error.d.ts.map +1 -0
  61. package/dist/document-models/account-transactions/gen/transactions/error.js +1 -0
  62. package/dist/document-models/account-transactions/gen/transactions/operations.d.ts +10 -0
  63. package/dist/document-models/account-transactions/gen/transactions/operations.d.ts.map +1 -0
  64. package/dist/document-models/account-transactions/gen/transactions/operations.js +3 -0
  65. package/dist/document-models/account-transactions/gen/types.d.ts +12 -0
  66. package/dist/document-models/account-transactions/gen/types.d.ts.map +1 -0
  67. package/dist/document-models/account-transactions/gen/utils.d.ts +15 -0
  68. package/dist/document-models/account-transactions/gen/utils.d.ts.map +1 -0
  69. package/dist/document-models/account-transactions/gen/utils.js +63 -0
  70. package/dist/document-models/account-transactions/hooks.d.ts +11 -0
  71. package/dist/document-models/account-transactions/hooks.d.ts.map +1 -0
  72. package/dist/document-models/account-transactions/hooks.js +26 -0
  73. package/dist/document-models/account-transactions/index.d.ts.map +1 -0
  74. package/dist/document-models/account-transactions/module.d.ts +5 -0
  75. package/dist/document-models/account-transactions/module.d.ts.map +1 -0
  76. package/dist/document-models/account-transactions/module.js +10 -0
  77. package/dist/document-models/account-transactions/src/index.d.ts.map +1 -0
  78. package/dist/document-models/account-transactions/src/reducers/account.d.ts +3 -0
  79. package/dist/document-models/account-transactions/src/reducers/account.d.ts.map +1 -0
  80. package/dist/document-models/account-transactions/src/reducers/account.js +13 -0
  81. package/dist/document-models/account-transactions/src/reducers/budgets.d.ts +3 -0
  82. package/dist/document-models/account-transactions/src/reducers/budgets.d.ts.map +1 -0
  83. package/dist/document-models/account-transactions/src/reducers/budgets.js +20 -0
  84. package/dist/document-models/account-transactions/src/reducers/transactions.d.ts +3 -0
  85. package/dist/document-models/account-transactions/src/reducers/transactions.d.ts.map +1 -0
  86. package/dist/document-models/account-transactions/src/reducers/transactions.js +69 -0
  87. package/dist/document-models/{integrations/src/tests/integrations.test.d.ts → account-transactions/src/tests/account.test.d.ts} +1 -1
  88. package/dist/document-models/account-transactions/src/tests/account.test.d.ts.map +1 -0
  89. package/dist/document-models/account-transactions/src/tests/account.test.js +19 -0
  90. package/dist/document-models/account-transactions/src/tests/budgets.test.d.ts +6 -0
  91. package/dist/document-models/account-transactions/src/tests/budgets.test.d.ts.map +1 -0
  92. package/dist/document-models/account-transactions/src/tests/budgets.test.js +39 -0
  93. package/dist/document-models/account-transactions/src/tests/document-model.test.d.ts.map +1 -0
  94. package/dist/document-models/account-transactions/src/tests/document-model.test.js +104 -0
  95. package/dist/document-models/account-transactions/src/tests/transactions.test.d.ts +6 -0
  96. package/dist/document-models/account-transactions/src/tests/transactions.test.d.ts.map +1 -0
  97. package/dist/document-models/account-transactions/src/tests/transactions.test.js +49 -0
  98. package/dist/document-models/account-transactions/src/utils.d.ts.map +1 -0
  99. package/dist/document-models/account-transactions/utils.d.ts +14 -0
  100. package/dist/document-models/account-transactions/utils.d.ts.map +1 -0
  101. package/dist/document-models/account-transactions/utils.js +7 -0
  102. package/dist/document-models/{integrations → accounts}/actions.d.ts +5 -4
  103. package/dist/document-models/accounts/actions.d.ts.map +1 -0
  104. package/dist/document-models/accounts/actions.js +4 -0
  105. package/dist/document-models/accounts/gen/accounts/actions.d.ts +20 -0
  106. package/dist/document-models/accounts/gen/accounts/actions.d.ts.map +1 -0
  107. package/dist/document-models/accounts/gen/accounts/actions.js +1 -0
  108. package/dist/document-models/accounts/gen/accounts/creators.d.ts +7 -0
  109. package/dist/document-models/accounts/gen/accounts/creators.d.ts.map +1 -0
  110. package/dist/document-models/accounts/gen/accounts/creators.js +6 -0
  111. package/dist/document-models/accounts/gen/accounts/error.d.ts +2 -0
  112. package/dist/document-models/accounts/gen/accounts/error.d.ts.map +1 -0
  113. package/dist/document-models/accounts/gen/accounts/error.js +1 -0
  114. package/dist/document-models/accounts/gen/accounts/operations.d.ts +10 -0
  115. package/dist/document-models/accounts/gen/accounts/operations.d.ts.map +1 -0
  116. package/dist/document-models/accounts/gen/accounts/operations.js +3 -0
  117. package/dist/document-models/accounts/gen/actions.d.ts +4 -0
  118. package/dist/document-models/accounts/gen/actions.d.ts.map +1 -0
  119. package/dist/document-models/accounts/gen/actions.js +1 -0
  120. package/dist/document-models/accounts/gen/creators.d.ts +3 -0
  121. package/dist/document-models/accounts/gen/creators.d.ts.map +1 -0
  122. package/dist/document-models/accounts/gen/creators.js +2 -0
  123. package/dist/document-models/accounts/gen/document-model.d.ts +3 -0
  124. package/dist/document-models/accounts/gen/document-model.d.ts.map +1 -0
  125. package/dist/document-models/accounts/gen/document-model.js +81 -0
  126. package/dist/document-models/accounts/gen/document-schema.d.ts +142 -0
  127. package/dist/document-models/accounts/gen/document-schema.d.ts.map +1 -0
  128. package/dist/document-models/accounts/gen/document-schema.js +33 -0
  129. package/dist/document-models/accounts/gen/document-type.d.ts +2 -0
  130. package/dist/document-models/accounts/gen/document-type.d.ts.map +1 -0
  131. package/dist/document-models/accounts/gen/document-type.js +1 -0
  132. package/dist/document-models/{integrations → accounts}/gen/index.d.ts +2 -2
  133. package/dist/document-models/accounts/gen/index.d.ts.map +1 -0
  134. package/dist/document-models/{integrations → accounts}/gen/index.js +2 -2
  135. package/dist/document-models/accounts/gen/ph-factories.d.ts +23 -0
  136. package/dist/document-models/accounts/gen/ph-factories.d.ts.map +1 -0
  137. package/dist/document-models/{integrations → accounts}/gen/ph-factories.js +3 -5
  138. package/dist/document-models/accounts/gen/reducer.d.ts +3 -0
  139. package/dist/document-models/accounts/gen/reducer.d.ts.map +1 -0
  140. package/dist/document-models/accounts/gen/reducer.js +29 -0
  141. package/dist/document-models/accounts/gen/schema/index.d.ts +3 -0
  142. package/dist/document-models/accounts/gen/schema/index.d.ts.map +1 -0
  143. package/dist/document-models/accounts/gen/schema/index.js +2 -0
  144. package/dist/document-models/{integrations → accounts}/gen/schema/types.d.ts +41 -53
  145. package/dist/document-models/accounts/gen/schema/types.d.ts.map +1 -0
  146. package/dist/document-models/accounts/gen/schema/types.js +1 -0
  147. package/dist/document-models/accounts/gen/schema/zod.d.ts +20 -0
  148. package/dist/document-models/accounts/gen/schema/zod.d.ts.map +1 -0
  149. package/dist/document-models/accounts/gen/schema/zod.js +80 -0
  150. package/dist/document-models/accounts/gen/types.d.ts +12 -0
  151. package/dist/document-models/accounts/gen/types.d.ts.map +1 -0
  152. package/dist/document-models/accounts/gen/types.js +1 -0
  153. package/dist/document-models/accounts/gen/utils.d.ts +15 -0
  154. package/dist/document-models/accounts/gen/utils.d.ts.map +1 -0
  155. package/dist/document-models/{integrations → accounts}/gen/utils.js +8 -10
  156. package/dist/document-models/accounts/hooks.d.ts +11 -0
  157. package/dist/document-models/accounts/hooks.d.ts.map +1 -0
  158. package/dist/document-models/accounts/hooks.js +26 -0
  159. package/dist/document-models/accounts/index.d.ts +10 -0
  160. package/dist/document-models/accounts/index.d.ts.map +1 -0
  161. package/dist/document-models/accounts/index.js +9 -0
  162. package/dist/document-models/accounts/module.d.ts +5 -0
  163. package/dist/document-models/accounts/module.d.ts.map +1 -0
  164. package/dist/document-models/{integrations → accounts}/module.js +2 -2
  165. package/dist/document-models/accounts/src/index.d.ts +2 -0
  166. package/dist/document-models/accounts/src/index.d.ts.map +1 -0
  167. package/dist/document-models/accounts/src/index.js +1 -0
  168. package/dist/document-models/accounts/src/reducers/accounts.d.ts +3 -0
  169. package/dist/document-models/accounts/src/reducers/accounts.d.ts.map +1 -0
  170. package/dist/document-models/accounts/src/reducers/accounts.js +52 -0
  171. package/dist/document-models/accounts/src/tests/accounts.test.d.ts +6 -0
  172. package/dist/document-models/accounts/src/tests/accounts.test.d.ts.map +1 -0
  173. package/dist/document-models/accounts/src/tests/accounts.test.js +19 -0
  174. package/dist/document-models/accounts/src/tests/document-model.test.d.ts +10 -0
  175. package/dist/document-models/accounts/src/tests/document-model.test.d.ts.map +1 -0
  176. package/dist/document-models/{integrations → accounts}/src/tests/document-model.test.js +26 -26
  177. package/dist/document-models/accounts/src/utils.d.ts +2 -0
  178. package/dist/document-models/accounts/src/utils.d.ts.map +1 -0
  179. package/dist/document-models/accounts/src/utils.js +1 -0
  180. package/dist/document-models/accounts/utils.d.ts +14 -0
  181. package/dist/document-models/accounts/utils.d.ts.map +1 -0
  182. package/dist/document-models/{integrations → accounts}/utils.js +1 -1
  183. package/dist/document-models/billing-statement/gen/document-schema.d.ts +32 -32
  184. package/dist/document-models/billing-statement/gen/document-schema.d.ts.map +1 -1
  185. package/dist/document-models/billing-statement/src/reducers/line-items.d.ts.map +1 -1
  186. package/dist/document-models/billing-statement/src/reducers/line-items.js +0 -1
  187. package/dist/document-models/document-models.d.ts.map +1 -1
  188. package/dist/document-models/document-models.js +11 -3
  189. package/dist/document-models/expense-report/actions.d.ts +2 -0
  190. package/dist/document-models/expense-report/actions.d.ts.map +1 -1
  191. package/dist/document-models/expense-report/gen/document-model.d.ts.map +1 -1
  192. package/dist/document-models/expense-report/gen/document-model.js +25 -3
  193. package/dist/document-models/expense-report/gen/document-schema.d.ts +38 -0
  194. package/dist/document-models/expense-report/gen/document-schema.d.ts.map +1 -1
  195. package/dist/document-models/expense-report/gen/ph-factories.d.ts.map +1 -1
  196. package/dist/document-models/expense-report/gen/ph-factories.js +17 -15
  197. package/dist/document-models/expense-report/gen/reducer.d.ts.map +1 -1
  198. package/dist/document-models/expense-report/gen/reducer.js +9 -1
  199. package/dist/document-models/expense-report/gen/schema/types.d.ts +14 -0
  200. package/dist/document-models/expense-report/gen/schema/types.d.ts.map +1 -1
  201. package/dist/document-models/expense-report/gen/schema/zod.d.ts +5 -1
  202. package/dist/document-models/expense-report/gen/schema/zod.d.ts.map +1 -1
  203. package/dist/document-models/expense-report/gen/schema/zod.js +22 -0
  204. package/dist/document-models/expense-report/gen/utils.d.ts.map +1 -1
  205. package/dist/document-models/expense-report/gen/utils.js +17 -15
  206. package/dist/document-models/expense-report/gen/wallet/actions.d.ts +10 -2
  207. package/dist/document-models/expense-report/gen/wallet/actions.d.ts.map +1 -1
  208. package/dist/document-models/expense-report/gen/wallet/creators.d.ts +4 -2
  209. package/dist/document-models/expense-report/gen/wallet/creators.d.ts.map +1 -1
  210. package/dist/document-models/expense-report/gen/wallet/creators.js +3 -1
  211. package/dist/document-models/expense-report/gen/wallet/operations.d.ts +3 -1
  212. package/dist/document-models/expense-report/gen/wallet/operations.d.ts.map +1 -1
  213. package/dist/document-models/expense-report/src/reducers/wallet.d.ts.map +1 -1
  214. package/dist/document-models/expense-report/src/reducers/wallet.js +29 -7
  215. package/dist/document-models/index.d.ts +10 -2
  216. package/dist/document-models/index.d.ts.map +1 -1
  217. package/dist/document-models/index.js +10 -2
  218. package/dist/document-models/invoice/gen/document-schema.d.ts +96 -96
  219. package/dist/document-models/invoice/gen/document-schema.d.ts.map +1 -1
  220. package/dist/document-models/service-offering/actions.d.ts +42 -0
  221. package/dist/document-models/service-offering/actions.d.ts.map +1 -0
  222. package/dist/document-models/service-offering/actions.js +10 -0
  223. package/dist/document-models/service-offering/gen/actions.d.ts +10 -0
  224. package/dist/document-models/service-offering/gen/actions.d.ts.map +1 -0
  225. package/dist/document-models/service-offering/gen/actions.js +4 -0
  226. package/dist/document-models/service-offering/gen/creators.d.ts +9 -0
  227. package/dist/document-models/service-offering/gen/creators.d.ts.map +1 -0
  228. package/dist/document-models/service-offering/gen/creators.js +8 -0
  229. package/dist/document-models/service-offering/gen/document-model.d.ts +3 -0
  230. package/dist/document-models/service-offering/gen/document-model.d.ts.map +1 -0
  231. package/dist/document-models/service-offering/gen/document-model.js +620 -0
  232. package/dist/document-models/service-offering/gen/document-schema.d.ts +427 -0
  233. package/dist/document-models/service-offering/gen/document-schema.d.ts.map +1 -0
  234. package/dist/document-models/service-offering/gen/document-schema.js +33 -0
  235. package/dist/document-models/service-offering/gen/document-type.d.ts +2 -0
  236. package/dist/document-models/service-offering/gen/document-type.d.ts.map +1 -0
  237. package/dist/document-models/service-offering/gen/document-type.js +1 -0
  238. package/dist/document-models/service-offering/gen/index.d.ts +15 -0
  239. package/dist/document-models/service-offering/gen/index.d.ts.map +1 -0
  240. package/dist/document-models/service-offering/gen/index.js +14 -0
  241. package/dist/document-models/service-offering/gen/offering-management/actions.d.ts +52 -0
  242. package/dist/document-models/service-offering/gen/offering-management/actions.d.ts.map +1 -0
  243. package/dist/document-models/service-offering/gen/offering-management/actions.js +1 -0
  244. package/dist/document-models/service-offering/gen/offering-management/creators.d.ts +15 -0
  245. package/dist/document-models/service-offering/gen/offering-management/creators.d.ts.map +1 -0
  246. package/dist/document-models/service-offering/gen/offering-management/creators.js +14 -0
  247. package/dist/document-models/service-offering/gen/offering-management/error.d.ts +35 -0
  248. package/dist/document-models/service-offering/gen/offering-management/error.d.ts.map +1 -0
  249. package/dist/document-models/service-offering/gen/offering-management/error.js +38 -0
  250. package/dist/document-models/service-offering/gen/offering-management/operations.d.ts +18 -0
  251. package/dist/document-models/service-offering/gen/offering-management/operations.d.ts.map +1 -0
  252. package/dist/document-models/service-offering/gen/offering-management/operations.js +3 -0
  253. package/dist/document-models/service-offering/gen/option-group-management/actions.d.ts +16 -0
  254. package/dist/document-models/service-offering/gen/option-group-management/actions.d.ts.map +1 -0
  255. package/dist/document-models/service-offering/gen/option-group-management/actions.js +1 -0
  256. package/dist/document-models/service-offering/gen/option-group-management/creators.d.ts +6 -0
  257. package/dist/document-models/service-offering/gen/option-group-management/creators.d.ts.map +1 -0
  258. package/dist/document-models/service-offering/gen/option-group-management/creators.js +5 -0
  259. package/dist/document-models/service-offering/gen/option-group-management/error.d.ts +28 -0
  260. package/dist/document-models/service-offering/gen/option-group-management/error.d.ts.map +1 -0
  261. package/dist/document-models/service-offering/gen/option-group-management/error.js +29 -0
  262. package/dist/document-models/service-offering/gen/option-group-management/operations.d.ts +9 -0
  263. package/dist/document-models/service-offering/gen/option-group-management/operations.d.ts.map +1 -0
  264. package/dist/document-models/service-offering/gen/option-group-management/operations.js +3 -0
  265. package/dist/document-models/service-offering/gen/ph-factories.d.ts +23 -0
  266. package/dist/document-models/service-offering/gen/ph-factories.d.ts.map +1 -0
  267. package/dist/document-models/service-offering/gen/ph-factories.js +62 -0
  268. package/dist/document-models/service-offering/gen/reducer.d.ts +3 -0
  269. package/dist/document-models/service-offering/gen/reducer.d.ts.map +1 -0
  270. package/dist/document-models/service-offering/gen/reducer.js +136 -0
  271. package/dist/document-models/service-offering/gen/schema/index.d.ts +3 -0
  272. package/dist/document-models/service-offering/gen/schema/index.d.ts.map +1 -0
  273. package/dist/document-models/service-offering/gen/schema/index.js +2 -0
  274. package/dist/document-models/service-offering/gen/schema/types.d.ts +424 -0
  275. package/dist/document-models/service-offering/gen/schema/types.d.ts.map +1 -0
  276. package/dist/document-models/service-offering/gen/schema/types.js +1 -0
  277. package/dist/document-models/service-offering/gen/schema/zod.d.ts +54 -0
  278. package/dist/document-models/service-offering/gen/schema/zod.d.ts.map +1 -0
  279. package/dist/document-models/service-offering/gen/schema/zod.js +408 -0
  280. package/dist/document-models/service-offering/gen/service-management/actions.d.ts +24 -0
  281. package/dist/document-models/service-offering/gen/service-management/actions.d.ts.map +1 -0
  282. package/dist/document-models/service-offering/gen/service-management/actions.js +1 -0
  283. package/dist/document-models/service-offering/gen/service-management/creators.d.ts +8 -0
  284. package/dist/document-models/service-offering/gen/service-management/creators.d.ts.map +1 -0
  285. package/dist/document-models/service-offering/gen/service-management/creators.js +7 -0
  286. package/dist/document-models/service-offering/gen/service-management/error.d.ts +52 -0
  287. package/dist/document-models/service-offering/gen/service-management/error.d.ts.map +1 -0
  288. package/dist/document-models/service-offering/gen/service-management/error.js +61 -0
  289. package/dist/document-models/service-offering/gen/service-management/operations.d.ts +11 -0
  290. package/dist/document-models/service-offering/gen/service-management/operations.d.ts.map +1 -0
  291. package/dist/document-models/service-offering/gen/service-management/operations.js +3 -0
  292. package/dist/document-models/service-offering/gen/tier-management/actions.d.ts +44 -0
  293. package/dist/document-models/service-offering/gen/tier-management/actions.d.ts.map +1 -0
  294. package/dist/document-models/service-offering/gen/tier-management/actions.js +1 -0
  295. package/dist/document-models/service-offering/gen/tier-management/creators.d.ts +13 -0
  296. package/dist/document-models/service-offering/gen/tier-management/creators.d.ts.map +1 -0
  297. package/dist/document-models/service-offering/gen/tier-management/creators.js +12 -0
  298. package/dist/document-models/service-offering/gen/tier-management/error.d.ts +107 -0
  299. package/dist/document-models/service-offering/gen/tier-management/error.d.ts.map +1 -0
  300. package/dist/document-models/service-offering/gen/tier-management/error.js +134 -0
  301. package/dist/document-models/service-offering/gen/tier-management/operations.d.ts +16 -0
  302. package/dist/document-models/service-offering/gen/tier-management/operations.d.ts.map +1 -0
  303. package/dist/document-models/service-offering/gen/tier-management/operations.js +3 -0
  304. package/dist/document-models/service-offering/gen/types.d.ts +12 -0
  305. package/dist/document-models/service-offering/gen/types.d.ts.map +1 -0
  306. package/dist/document-models/service-offering/gen/types.js +1 -0
  307. package/dist/document-models/service-offering/gen/utils.d.ts +15 -0
  308. package/dist/document-models/service-offering/gen/utils.d.ts.map +1 -0
  309. package/dist/document-models/service-offering/gen/utils.js +66 -0
  310. package/dist/document-models/service-offering/hooks.d.ts +11 -0
  311. package/dist/document-models/service-offering/hooks.d.ts.map +1 -0
  312. package/dist/document-models/service-offering/hooks.js +26 -0
  313. package/dist/document-models/service-offering/index.d.ts +10 -0
  314. package/dist/document-models/service-offering/index.d.ts.map +1 -0
  315. package/dist/document-models/service-offering/index.js +9 -0
  316. package/dist/document-models/service-offering/module.d.ts +5 -0
  317. package/dist/document-models/service-offering/module.d.ts.map +1 -0
  318. package/dist/document-models/service-offering/module.js +10 -0
  319. package/dist/document-models/service-offering/src/index.d.ts +2 -0
  320. package/dist/document-models/service-offering/src/index.d.ts.map +1 -0
  321. package/dist/document-models/service-offering/src/index.js +1 -0
  322. package/dist/document-models/service-offering/src/reducers/offering-management.d.ts +3 -0
  323. package/dist/document-models/service-offering/src/reducers/offering-management.d.ts.map +1 -0
  324. package/dist/document-models/service-offering/src/reducers/offering-management.js +100 -0
  325. package/dist/document-models/service-offering/src/reducers/option-group-management.d.ts +3 -0
  326. package/dist/document-models/service-offering/src/reducers/option-group-management.d.ts.map +1 -0
  327. package/dist/document-models/service-offering/src/reducers/option-group-management.js +47 -0
  328. package/dist/document-models/service-offering/src/reducers/service-management.d.ts +3 -0
  329. package/dist/document-models/service-offering/src/reducers/service-management.d.ts.map +1 -0
  330. package/dist/document-models/service-offering/src/reducers/service-management.js +74 -0
  331. package/dist/document-models/service-offering/src/reducers/tier-management.d.ts +3 -0
  332. package/dist/document-models/service-offering/src/reducers/tier-management.d.ts.map +1 -0
  333. package/dist/document-models/service-offering/src/reducers/tier-management.js +159 -0
  334. package/dist/document-models/service-offering/src/tests/document-model.test.d.ts +10 -0
  335. package/dist/document-models/service-offering/src/tests/document-model.test.d.ts.map +1 -0
  336. package/dist/document-models/service-offering/src/tests/document-model.test.js +104 -0
  337. package/dist/document-models/service-offering/src/tests/offering-management.test.d.ts +6 -0
  338. package/dist/document-models/service-offering/src/tests/offering-management.test.d.ts.map +1 -0
  339. package/dist/document-models/service-offering/src/tests/offering-management.test.js +129 -0
  340. package/dist/document-models/service-offering/src/tests/option-group-management.test.d.ts +6 -0
  341. package/dist/document-models/service-offering/src/tests/option-group-management.test.d.ts.map +1 -0
  342. package/dist/document-models/service-offering/src/tests/option-group-management.test.js +39 -0
  343. package/dist/document-models/service-offering/src/tests/service-management.test.d.ts +6 -0
  344. package/dist/document-models/service-offering/src/tests/service-management.test.d.ts.map +1 -0
  345. package/dist/document-models/service-offering/src/tests/service-management.test.js +59 -0
  346. package/dist/document-models/service-offering/src/tests/tier-management.test.d.ts +2 -0
  347. package/dist/document-models/service-offering/src/tests/tier-management.test.d.ts.map +1 -0
  348. package/dist/document-models/service-offering/src/tests/tier-management.test.js +1 -0
  349. package/dist/document-models/service-offering/src/utils.d.ts +2 -0
  350. package/dist/document-models/service-offering/src/utils.d.ts.map +1 -0
  351. package/dist/document-models/service-offering/src/utils.js +1 -0
  352. package/dist/document-models/service-offering/utils.d.ts +14 -0
  353. package/dist/document-models/service-offering/utils.d.ts.map +1 -0
  354. package/dist/document-models/service-offering/utils.js +7 -0
  355. package/dist/document-models/service-subscriptions/actions.d.ts +25 -0
  356. package/dist/document-models/service-subscriptions/actions.d.ts.map +1 -0
  357. package/dist/document-models/service-subscriptions/actions.js +9 -0
  358. package/dist/document-models/service-subscriptions/gen/actions.d.ts +8 -0
  359. package/dist/document-models/service-subscriptions/gen/actions.d.ts.map +1 -0
  360. package/dist/document-models/service-subscriptions/gen/actions.js +3 -0
  361. package/dist/document-models/service-subscriptions/gen/categories/actions.d.ts +16 -0
  362. package/dist/document-models/service-subscriptions/gen/categories/actions.d.ts.map +1 -0
  363. package/dist/document-models/service-subscriptions/gen/categories/actions.js +1 -0
  364. package/dist/document-models/service-subscriptions/gen/categories/creators.d.ts +6 -0
  365. package/dist/document-models/service-subscriptions/gen/categories/creators.d.ts.map +1 -0
  366. package/dist/document-models/service-subscriptions/gen/categories/creators.js +5 -0
  367. package/dist/document-models/service-subscriptions/gen/categories/error.d.ts +2 -0
  368. package/dist/document-models/service-subscriptions/gen/categories/error.d.ts.map +1 -0
  369. package/dist/document-models/service-subscriptions/gen/categories/error.js +1 -0
  370. package/dist/document-models/service-subscriptions/gen/categories/operations.d.ts +9 -0
  371. package/dist/document-models/service-subscriptions/gen/categories/operations.d.ts.map +1 -0
  372. package/dist/document-models/service-subscriptions/gen/categories/operations.js +3 -0
  373. package/dist/document-models/service-subscriptions/gen/creators.d.ts +7 -0
  374. package/dist/document-models/service-subscriptions/gen/creators.d.ts.map +1 -0
  375. package/dist/document-models/service-subscriptions/gen/creators.js +6 -0
  376. package/dist/document-models/service-subscriptions/gen/document-model.d.ts +3 -0
  377. package/dist/document-models/service-subscriptions/gen/document-model.d.ts.map +1 -0
  378. package/dist/document-models/service-subscriptions/gen/document-model.js +194 -0
  379. package/dist/document-models/service-subscriptions/gen/document-schema.d.ts +180 -0
  380. package/dist/document-models/service-subscriptions/gen/document-schema.d.ts.map +1 -0
  381. package/dist/document-models/service-subscriptions/gen/document-schema.js +33 -0
  382. package/dist/document-models/service-subscriptions/gen/document-type.d.ts +2 -0
  383. package/dist/document-models/service-subscriptions/gen/document-type.d.ts.map +1 -0
  384. package/dist/document-models/service-subscriptions/gen/document-type.js +1 -0
  385. package/dist/document-models/service-subscriptions/gen/index.d.ts +14 -0
  386. package/dist/document-models/service-subscriptions/gen/index.d.ts.map +1 -0
  387. package/dist/document-models/service-subscriptions/gen/index.js +13 -0
  388. package/dist/document-models/service-subscriptions/gen/ph-factories.d.ts +23 -0
  389. package/dist/document-models/service-subscriptions/gen/ph-factories.d.ts.map +1 -0
  390. package/dist/document-models/service-subscriptions/gen/ph-factories.js +45 -0
  391. package/dist/document-models/service-subscriptions/gen/reducer.d.ts +3 -0
  392. package/dist/document-models/service-subscriptions/gen/reducer.d.ts.map +1 -0
  393. package/dist/document-models/service-subscriptions/gen/reducer.js +67 -0
  394. package/dist/document-models/service-subscriptions/gen/schema/index.d.ts +3 -0
  395. package/dist/document-models/service-subscriptions/gen/schema/index.d.ts.map +1 -0
  396. package/dist/document-models/service-subscriptions/gen/schema/index.js +2 -0
  397. package/dist/document-models/service-subscriptions/gen/schema/types.d.ts +274 -0
  398. package/dist/document-models/service-subscriptions/gen/schema/types.d.ts.map +1 -0
  399. package/dist/document-models/service-subscriptions/gen/schema/types.js +1 -0
  400. package/dist/document-models/service-subscriptions/gen/schema/zod.d.ts +31 -0
  401. package/dist/document-models/service-subscriptions/gen/schema/zod.d.ts.map +1 -0
  402. package/dist/document-models/service-subscriptions/gen/schema/zod.js +199 -0
  403. package/dist/document-models/service-subscriptions/gen/subscriptions/actions.d.ts +32 -0
  404. package/dist/document-models/service-subscriptions/gen/subscriptions/actions.d.ts.map +1 -0
  405. package/dist/document-models/service-subscriptions/gen/subscriptions/actions.js +1 -0
  406. package/dist/document-models/service-subscriptions/gen/subscriptions/creators.d.ts +10 -0
  407. package/dist/document-models/service-subscriptions/gen/subscriptions/creators.d.ts.map +1 -0
  408. package/dist/document-models/service-subscriptions/gen/subscriptions/creators.js +9 -0
  409. package/dist/document-models/service-subscriptions/gen/subscriptions/error.d.ts +2 -0
  410. package/dist/document-models/service-subscriptions/gen/subscriptions/error.d.ts.map +1 -0
  411. package/dist/document-models/service-subscriptions/gen/subscriptions/error.js +1 -0
  412. package/dist/document-models/service-subscriptions/gen/subscriptions/operations.d.ts +13 -0
  413. package/dist/document-models/service-subscriptions/gen/subscriptions/operations.d.ts.map +1 -0
  414. package/dist/document-models/service-subscriptions/gen/subscriptions/operations.js +3 -0
  415. package/dist/document-models/service-subscriptions/gen/types.d.ts +12 -0
  416. package/dist/document-models/service-subscriptions/gen/types.d.ts.map +1 -0
  417. package/dist/document-models/service-subscriptions/gen/types.js +1 -0
  418. package/dist/document-models/service-subscriptions/gen/utils.d.ts +15 -0
  419. package/dist/document-models/service-subscriptions/gen/utils.d.ts.map +1 -0
  420. package/dist/document-models/service-subscriptions/gen/utils.js +53 -0
  421. package/dist/document-models/service-subscriptions/gen/vendors/actions.d.ts +16 -0
  422. package/dist/document-models/service-subscriptions/gen/vendors/actions.d.ts.map +1 -0
  423. package/dist/document-models/service-subscriptions/gen/vendors/actions.js +1 -0
  424. package/dist/document-models/service-subscriptions/gen/vendors/creators.d.ts +6 -0
  425. package/dist/document-models/service-subscriptions/gen/vendors/creators.d.ts.map +1 -0
  426. package/dist/document-models/service-subscriptions/gen/vendors/creators.js +5 -0
  427. package/dist/document-models/service-subscriptions/gen/vendors/error.d.ts +2 -0
  428. package/dist/document-models/service-subscriptions/gen/vendors/error.d.ts.map +1 -0
  429. package/dist/document-models/service-subscriptions/gen/vendors/error.js +1 -0
  430. package/dist/document-models/service-subscriptions/gen/vendors/operations.d.ts +9 -0
  431. package/dist/document-models/service-subscriptions/gen/vendors/operations.d.ts.map +1 -0
  432. package/dist/document-models/service-subscriptions/gen/vendors/operations.js +3 -0
  433. package/dist/document-models/service-subscriptions/hooks.d.ts +11 -0
  434. package/dist/document-models/service-subscriptions/hooks.d.ts.map +1 -0
  435. package/dist/document-models/service-subscriptions/hooks.js +26 -0
  436. package/dist/document-models/service-subscriptions/index.d.ts +10 -0
  437. package/dist/document-models/service-subscriptions/index.d.ts.map +1 -0
  438. package/dist/document-models/service-subscriptions/index.js +9 -0
  439. package/dist/document-models/service-subscriptions/module.d.ts +5 -0
  440. package/dist/document-models/service-subscriptions/module.d.ts.map +1 -0
  441. package/dist/document-models/service-subscriptions/module.js +10 -0
  442. package/dist/document-models/service-subscriptions/src/index.d.ts +2 -0
  443. package/dist/document-models/service-subscriptions/src/index.d.ts.map +1 -0
  444. package/dist/document-models/service-subscriptions/src/index.js +1 -0
  445. package/dist/document-models/service-subscriptions/src/reducers/categories.d.ts +3 -0
  446. package/dist/document-models/service-subscriptions/src/reducers/categories.d.ts.map +1 -0
  447. package/dist/document-models/service-subscriptions/src/reducers/categories.js +24 -0
  448. package/dist/document-models/service-subscriptions/src/reducers/subscriptions.d.ts +3 -0
  449. package/dist/document-models/service-subscriptions/src/reducers/subscriptions.d.ts.map +1 -0
  450. package/dist/document-models/service-subscriptions/src/reducers/subscriptions.js +114 -0
  451. package/dist/document-models/service-subscriptions/src/reducers/vendors.d.ts +3 -0
  452. package/dist/document-models/service-subscriptions/src/reducers/vendors.d.ts.map +1 -0
  453. package/dist/document-models/service-subscriptions/src/reducers/vendors.js +30 -0
  454. package/dist/document-models/service-subscriptions/src/tests/categories.test.d.ts +6 -0
  455. package/dist/document-models/service-subscriptions/src/tests/categories.test.d.ts.map +1 -0
  456. package/dist/document-models/{integrations/src/tests/integrations.test.js → service-subscriptions/src/tests/categories.test.js} +17 -17
  457. package/dist/document-models/service-subscriptions/src/tests/document-model.test.d.ts +10 -0
  458. package/dist/document-models/service-subscriptions/src/tests/document-model.test.d.ts.map +1 -0
  459. package/dist/document-models/service-subscriptions/src/tests/document-model.test.js +104 -0
  460. package/dist/document-models/service-subscriptions/src/tests/subscriptions.test.d.ts +6 -0
  461. package/dist/document-models/service-subscriptions/src/tests/subscriptions.test.d.ts.map +1 -0
  462. package/dist/document-models/service-subscriptions/src/tests/subscriptions.test.js +79 -0
  463. package/dist/document-models/service-subscriptions/src/tests/vendors.test.d.ts +6 -0
  464. package/dist/document-models/service-subscriptions/src/tests/vendors.test.d.ts.map +1 -0
  465. package/dist/document-models/service-subscriptions/src/tests/vendors.test.js +39 -0
  466. package/dist/document-models/service-subscriptions/src/utils.d.ts +2 -0
  467. package/dist/document-models/service-subscriptions/src/utils.d.ts.map +1 -0
  468. package/dist/document-models/service-subscriptions/src/utils.js +1 -0
  469. package/dist/document-models/service-subscriptions/utils.d.ts +14 -0
  470. package/dist/document-models/service-subscriptions/utils.d.ts.map +1 -0
  471. package/dist/document-models/service-subscriptions/utils.js +7 -0
  472. package/dist/document-models/snapshot-report/actions.d.ts +29 -0
  473. package/dist/document-models/snapshot-report/actions.d.ts.map +1 -0
  474. package/dist/document-models/snapshot-report/actions.js +10 -0
  475. package/dist/document-models/snapshot-report/gen/accounts/actions.d.ts +16 -0
  476. package/dist/document-models/snapshot-report/gen/accounts/actions.d.ts.map +1 -0
  477. package/dist/document-models/snapshot-report/gen/accounts/actions.js +1 -0
  478. package/dist/document-models/snapshot-report/gen/accounts/creators.d.ts +6 -0
  479. package/dist/document-models/snapshot-report/gen/accounts/creators.d.ts.map +1 -0
  480. package/dist/document-models/snapshot-report/gen/accounts/creators.js +5 -0
  481. package/dist/document-models/snapshot-report/gen/accounts/error.d.ts +28 -0
  482. package/dist/document-models/snapshot-report/gen/accounts/error.d.ts.map +1 -0
  483. package/dist/document-models/snapshot-report/gen/accounts/error.js +29 -0
  484. package/dist/document-models/snapshot-report/gen/accounts/operations.d.ts +9 -0
  485. package/dist/document-models/snapshot-report/gen/accounts/operations.d.ts.map +1 -0
  486. package/dist/document-models/snapshot-report/gen/accounts/operations.js +3 -0
  487. package/dist/document-models/snapshot-report/gen/actions.d.ts +10 -0
  488. package/dist/document-models/snapshot-report/gen/actions.d.ts.map +1 -0
  489. package/dist/document-models/snapshot-report/gen/actions.js +4 -0
  490. package/dist/document-models/snapshot-report/gen/balances/actions.d.ts +20 -0
  491. package/dist/document-models/snapshot-report/gen/balances/actions.d.ts.map +1 -0
  492. package/dist/document-models/snapshot-report/gen/balances/actions.js +1 -0
  493. package/dist/document-models/snapshot-report/gen/balances/creators.d.ts +7 -0
  494. package/dist/document-models/snapshot-report/gen/balances/creators.d.ts.map +1 -0
  495. package/dist/document-models/snapshot-report/gen/balances/creators.js +6 -0
  496. package/dist/document-models/snapshot-report/gen/balances/error.d.ts +35 -0
  497. package/dist/document-models/snapshot-report/gen/balances/error.d.ts.map +1 -0
  498. package/dist/document-models/snapshot-report/gen/balances/error.js +38 -0
  499. package/dist/document-models/snapshot-report/gen/balances/operations.d.ts +10 -0
  500. package/dist/document-models/snapshot-report/gen/balances/operations.d.ts.map +1 -0
  501. package/dist/document-models/snapshot-report/gen/balances/operations.js +3 -0
  502. package/dist/document-models/snapshot-report/gen/configuration/actions.d.ts +28 -0
  503. package/dist/document-models/snapshot-report/gen/configuration/actions.d.ts.map +1 -0
  504. package/dist/document-models/snapshot-report/gen/configuration/actions.js +1 -0
  505. package/dist/document-models/snapshot-report/gen/configuration/creators.d.ts +9 -0
  506. package/dist/document-models/snapshot-report/gen/configuration/creators.d.ts.map +1 -0
  507. package/dist/document-models/snapshot-report/gen/configuration/creators.js +8 -0
  508. package/dist/document-models/snapshot-report/gen/configuration/error.d.ts +2 -0
  509. package/dist/document-models/snapshot-report/gen/configuration/error.d.ts.map +1 -0
  510. package/dist/document-models/snapshot-report/gen/configuration/error.js +1 -0
  511. package/dist/document-models/snapshot-report/gen/configuration/operations.d.ts +12 -0
  512. package/dist/document-models/snapshot-report/gen/configuration/operations.d.ts.map +1 -0
  513. package/dist/document-models/snapshot-report/gen/configuration/operations.js +3 -0
  514. package/dist/document-models/snapshot-report/gen/creators.d.ts +9 -0
  515. package/dist/document-models/snapshot-report/gen/creators.d.ts.map +1 -0
  516. package/dist/document-models/snapshot-report/gen/creators.js +8 -0
  517. package/dist/document-models/snapshot-report/gen/document-model.d.ts +3 -0
  518. package/dist/document-models/snapshot-report/gen/document-model.d.ts.map +1 -0
  519. package/dist/document-models/snapshot-report/gen/document-model.js +332 -0
  520. package/dist/document-models/snapshot-report/gen/document-schema.d.ts +275 -0
  521. package/dist/document-models/snapshot-report/gen/document-schema.d.ts.map +1 -0
  522. package/dist/document-models/snapshot-report/gen/document-schema.js +33 -0
  523. package/dist/document-models/snapshot-report/gen/document-type.d.ts +2 -0
  524. package/dist/document-models/snapshot-report/gen/document-type.d.ts.map +1 -0
  525. package/dist/document-models/snapshot-report/gen/document-type.js +1 -0
  526. package/dist/document-models/snapshot-report/gen/index.d.ts +15 -0
  527. package/dist/document-models/snapshot-report/gen/index.d.ts.map +1 -0
  528. package/dist/document-models/snapshot-report/gen/index.js +14 -0
  529. package/dist/document-models/snapshot-report/gen/ph-factories.d.ts +23 -0
  530. package/dist/document-models/snapshot-report/gen/ph-factories.d.ts.map +1 -0
  531. package/dist/document-models/snapshot-report/gen/ph-factories.js +54 -0
  532. package/dist/document-models/snapshot-report/gen/reducer.d.ts +3 -0
  533. package/dist/document-models/snapshot-report/gen/reducer.d.ts.map +1 -0
  534. package/dist/document-models/snapshot-report/gen/reducer.js +84 -0
  535. package/dist/document-models/snapshot-report/gen/schema/index.d.ts +3 -0
  536. package/dist/document-models/snapshot-report/gen/schema/index.d.ts.map +1 -0
  537. package/dist/document-models/snapshot-report/gen/schema/index.js +2 -0
  538. package/dist/document-models/snapshot-report/gen/schema/types.d.ts +264 -0
  539. package/dist/document-models/snapshot-report/gen/schema/types.d.ts.map +1 -0
  540. package/dist/document-models/snapshot-report/gen/schema/types.js +1 -0
  541. package/dist/document-models/snapshot-report/gen/schema/zod.d.ts +37 -0
  542. package/dist/document-models/snapshot-report/gen/schema/zod.d.ts.map +1 -0
  543. package/dist/document-models/snapshot-report/gen/schema/zod.js +208 -0
  544. package/dist/document-models/snapshot-report/gen/transactions/actions.d.ts +20 -0
  545. package/dist/document-models/snapshot-report/gen/transactions/actions.d.ts.map +1 -0
  546. package/dist/document-models/snapshot-report/gen/transactions/actions.js +1 -0
  547. package/dist/document-models/snapshot-report/gen/transactions/creators.d.ts +7 -0
  548. package/dist/document-models/snapshot-report/gen/transactions/creators.d.ts.map +1 -0
  549. package/dist/document-models/snapshot-report/gen/transactions/creators.js +6 -0
  550. package/dist/document-models/snapshot-report/gen/transactions/error.d.ts +33 -0
  551. package/dist/document-models/snapshot-report/gen/transactions/error.d.ts.map +1 -0
  552. package/dist/document-models/snapshot-report/gen/transactions/error.js +36 -0
  553. package/dist/document-models/snapshot-report/gen/transactions/operations.d.ts +10 -0
  554. package/dist/document-models/snapshot-report/gen/transactions/operations.d.ts.map +1 -0
  555. package/dist/document-models/snapshot-report/gen/transactions/operations.js +3 -0
  556. package/dist/document-models/snapshot-report/gen/types.d.ts +12 -0
  557. package/dist/document-models/snapshot-report/gen/types.d.ts.map +1 -0
  558. package/dist/document-models/snapshot-report/gen/types.js +1 -0
  559. package/dist/document-models/snapshot-report/gen/utils.d.ts +15 -0
  560. package/dist/document-models/snapshot-report/gen/utils.d.ts.map +1 -0
  561. package/dist/document-models/snapshot-report/gen/utils.js +58 -0
  562. package/dist/document-models/snapshot-report/hooks.d.ts +11 -0
  563. package/dist/document-models/snapshot-report/hooks.d.ts.map +1 -0
  564. package/dist/document-models/snapshot-report/hooks.js +26 -0
  565. package/dist/document-models/snapshot-report/index.d.ts +10 -0
  566. package/dist/document-models/snapshot-report/index.d.ts.map +1 -0
  567. package/dist/document-models/snapshot-report/index.js +9 -0
  568. package/dist/document-models/snapshot-report/module.d.ts +5 -0
  569. package/dist/document-models/snapshot-report/module.d.ts.map +1 -0
  570. package/dist/document-models/snapshot-report/module.js +10 -0
  571. package/dist/document-models/snapshot-report/src/index.d.ts +2 -0
  572. package/dist/document-models/snapshot-report/src/index.d.ts.map +1 -0
  573. package/dist/document-models/snapshot-report/src/index.js +1 -0
  574. package/dist/document-models/snapshot-report/src/reducers/accounts.d.ts +3 -0
  575. package/dist/document-models/snapshot-report/src/reducers/accounts.d.ts.map +1 -0
  576. package/dist/document-models/snapshot-report/src/reducers/accounts.js +34 -0
  577. package/dist/document-models/snapshot-report/src/reducers/balances.d.ts +3 -0
  578. package/dist/document-models/snapshot-report/src/reducers/balances.d.ts.map +1 -0
  579. package/dist/document-models/snapshot-report/src/reducers/balances.js +60 -0
  580. package/dist/document-models/snapshot-report/src/reducers/configuration.d.ts +3 -0
  581. package/dist/document-models/snapshot-report/src/reducers/configuration.d.ts.map +1 -0
  582. package/dist/document-models/snapshot-report/src/reducers/configuration.js +35 -0
  583. package/dist/document-models/snapshot-report/src/reducers/transactions.d.ts +3 -0
  584. package/dist/document-models/snapshot-report/src/reducers/transactions.d.ts.map +1 -0
  585. package/dist/document-models/snapshot-report/src/reducers/transactions.js +99 -0
  586. package/dist/document-models/snapshot-report/src/tests/accounts.test.d.ts +6 -0
  587. package/dist/document-models/snapshot-report/src/tests/accounts.test.d.ts.map +1 -0
  588. package/dist/document-models/snapshot-report/src/tests/accounts.test.js +39 -0
  589. package/dist/document-models/snapshot-report/src/tests/balances.test.d.ts +6 -0
  590. package/dist/document-models/snapshot-report/src/tests/balances.test.d.ts.map +1 -0
  591. package/dist/document-models/snapshot-report/src/tests/balances.test.js +49 -0
  592. package/dist/document-models/snapshot-report/src/tests/configuration.test.d.ts +6 -0
  593. package/dist/document-models/snapshot-report/src/tests/configuration.test.d.ts.map +1 -0
  594. package/dist/document-models/snapshot-report/src/tests/configuration.test.js +39 -0
  595. package/dist/document-models/snapshot-report/src/tests/document-model.test.d.ts +10 -0
  596. package/dist/document-models/snapshot-report/src/tests/document-model.test.d.ts.map +1 -0
  597. package/dist/document-models/snapshot-report/src/tests/document-model.test.js +104 -0
  598. package/dist/document-models/snapshot-report/src/tests/transactions.test.d.ts +6 -0
  599. package/dist/document-models/snapshot-report/src/tests/transactions.test.d.ts.map +1 -0
  600. package/dist/document-models/snapshot-report/src/tests/transactions.test.js +39 -0
  601. package/dist/document-models/snapshot-report/src/utils.d.ts +2 -0
  602. package/dist/document-models/snapshot-report/src/utils.d.ts.map +1 -0
  603. package/dist/document-models/snapshot-report/src/utils.js +1 -0
  604. package/dist/document-models/snapshot-report/utils.d.ts +14 -0
  605. package/dist/document-models/snapshot-report/utils.d.ts.map +1 -0
  606. package/dist/document-models/snapshot-report/utils.js +7 -0
  607. package/dist/editors/account-transactions-editor/alchemyIntegration.d.ts +55 -0
  608. package/dist/editors/account-transactions-editor/alchemyIntegration.d.ts.map +1 -0
  609. package/dist/editors/account-transactions-editor/alchemyIntegration.js +136 -0
  610. package/dist/editors/account-transactions-editor/components/AccountSection.d.ts +9 -0
  611. package/dist/editors/account-transactions-editor/components/AccountSection.d.ts.map +1 -0
  612. package/dist/editors/account-transactions-editor/components/AccountSection.js +18 -0
  613. package/dist/editors/account-transactions-editor/components/DocumentHeader.d.ts +8 -0
  614. package/dist/editors/account-transactions-editor/components/DocumentHeader.d.ts.map +1 -0
  615. package/dist/editors/account-transactions-editor/components/DocumentHeader.js +13 -0
  616. package/dist/editors/account-transactions-editor/components/TransactionForm.d.ts +10 -0
  617. package/dist/editors/account-transactions-editor/components/TransactionForm.d.ts.map +1 -0
  618. package/dist/editors/account-transactions-editor/components/TransactionForm.js +70 -0
  619. package/dist/editors/account-transactions-editor/components/TransactionsTable.d.ts +9 -0
  620. package/dist/editors/account-transactions-editor/components/TransactionsTable.d.ts.map +1 -0
  621. package/dist/editors/account-transactions-editor/components/TransactionsTable.js +56 -0
  622. package/dist/editors/account-transactions-editor/editor.d.ts +3 -0
  623. package/dist/editors/account-transactions-editor/editor.d.ts.map +1 -0
  624. package/dist/editors/account-transactions-editor/editor.js +212 -0
  625. package/dist/editors/account-transactions-editor/index.d.ts +3 -0
  626. package/dist/editors/account-transactions-editor/index.d.ts.map +1 -0
  627. package/dist/editors/account-transactions-editor/index.js +9 -0
  628. package/dist/editors/account-transactions-editor/module.d.ts +3 -0
  629. package/dist/editors/account-transactions-editor/module.d.ts.map +1 -0
  630. package/dist/editors/account-transactions-editor/module.js +9 -0
  631. package/dist/editors/accounts-editor/components/AccountCard.d.ts +12 -0
  632. package/dist/editors/accounts-editor/components/AccountCard.d.ts.map +1 -0
  633. package/dist/editors/accounts-editor/components/AccountCard.js +23 -0
  634. package/dist/editors/accounts-editor/components/AccountForm.d.ts +19 -0
  635. package/dist/editors/accounts-editor/components/AccountForm.d.ts.map +1 -0
  636. package/dist/editors/accounts-editor/components/AccountForm.js +66 -0
  637. package/dist/editors/accounts-editor/components/AccountsFilter.d.ts +8 -0
  638. package/dist/editors/accounts-editor/components/AccountsFilter.d.ts.map +1 -0
  639. package/dist/editors/accounts-editor/components/AccountsFilter.js +34 -0
  640. package/dist/editors/accounts-editor/components/AccountsList.d.ts +12 -0
  641. package/dist/editors/accounts-editor/components/AccountsList.d.ts.map +1 -0
  642. package/dist/editors/accounts-editor/components/AccountsList.js +8 -0
  643. package/dist/editors/accounts-editor/components/DocumentHeader.d.ts +15 -0
  644. package/dist/editors/accounts-editor/components/DocumentHeader.d.ts.map +1 -0
  645. package/dist/editors/accounts-editor/components/DocumentHeader.js +23 -0
  646. package/dist/editors/accounts-editor/components/KYCStatusBadge.d.ts +7 -0
  647. package/dist/editors/accounts-editor/components/KYCStatusBadge.d.ts.map +1 -0
  648. package/dist/editors/accounts-editor/components/KYCStatusBadge.js +17 -0
  649. package/dist/editors/accounts-editor/editor.d.ts +3 -0
  650. package/dist/editors/accounts-editor/editor.d.ts.map +1 -0
  651. package/dist/editors/accounts-editor/editor.js +159 -0
  652. package/dist/editors/accounts-editor/index.d.ts +3 -0
  653. package/dist/editors/accounts-editor/index.d.ts.map +1 -0
  654. package/dist/editors/accounts-editor/index.js +9 -0
  655. package/dist/editors/accounts-editor/module.d.ts +3 -0
  656. package/dist/editors/accounts-editor/module.d.ts.map +1 -0
  657. package/dist/editors/accounts-editor/module.js +9 -0
  658. package/dist/editors/accounts-editor/services/accountTransactionsService.d.ts +29 -0
  659. package/dist/editors/accounts-editor/services/accountTransactionsService.d.ts.map +1 -0
  660. package/dist/editors/accounts-editor/services/accountTransactionsService.js +252 -0
  661. package/dist/editors/builder-team-admin/components/CreateDocument.d.ts.map +1 -0
  662. package/dist/editors/builder-team-admin/components/DriveContents.d.ts +6 -0
  663. package/dist/editors/builder-team-admin/components/DriveContents.d.ts.map +1 -0
  664. package/dist/editors/builder-team-admin/components/DriveContents.js +36 -0
  665. package/dist/editors/builder-team-admin/components/DriveExplorer.d.ts.map +1 -0
  666. package/dist/editors/builder-team-admin/components/DriveExplorer.js +49 -0
  667. package/dist/editors/builder-team-admin/components/EmptyState.d.ts.map +1 -0
  668. package/dist/editors/builder-team-admin/components/ExpenseReportsStats.d.ts +11 -0
  669. package/dist/editors/builder-team-admin/components/ExpenseReportsStats.d.ts.map +1 -0
  670. package/dist/editors/builder-team-admin/components/ExpenseReportsStats.js +137 -0
  671. package/dist/editors/builder-team-admin/components/Files.d.ts.map +1 -0
  672. package/dist/editors/builder-team-admin/components/FolderTree.d.ts +14 -0
  673. package/dist/editors/builder-team-admin/components/FolderTree.d.ts.map +1 -0
  674. package/dist/editors/builder-team-admin/components/FolderTree.js +307 -0
  675. package/dist/editors/builder-team-admin/components/Folders.d.ts.map +1 -0
  676. package/dist/editors/builder-team-admin/components/NavigationBreadcrumbs.d.ts.map +1 -0
  677. package/dist/editors/builder-team-admin/components/expense-reports.d.ts +2 -0
  678. package/dist/editors/builder-team-admin/components/expense-reports.d.ts.map +1 -0
  679. package/dist/editors/builder-team-admin/components/expense-reports.js +118 -0
  680. package/dist/editors/builder-team-admin/components/overview/ProfileHeader.d.ts +10 -0
  681. package/dist/editors/builder-team-admin/components/overview/ProfileHeader.d.ts.map +1 -0
  682. package/dist/editors/builder-team-admin/components/overview/ProfileHeader.js +24 -0
  683. package/dist/editors/builder-team-admin/components/overview/SubscriptionsStats.d.ts +15 -0
  684. package/dist/editors/builder-team-admin/components/overview/SubscriptionsStats.d.ts.map +1 -0
  685. package/dist/editors/builder-team-admin/components/overview/SubscriptionsStats.js +61 -0
  686. package/dist/editors/builder-team-admin/components/overview/TeamMembersOverview.d.ts +10 -0
  687. package/dist/editors/builder-team-admin/components/overview/TeamMembersOverview.d.ts.map +1 -0
  688. package/dist/editors/builder-team-admin/components/overview/TeamMembersOverview.js +121 -0
  689. package/dist/editors/builder-team-admin/components/snapshot-reports.d.ts +2 -0
  690. package/dist/editors/builder-team-admin/components/snapshot-reports.d.ts.map +1 -0
  691. package/dist/editors/builder-team-admin/components/snapshot-reports.js +116 -0
  692. package/dist/editors/builder-team-admin/components/team-members.d.ts +2 -0
  693. package/dist/editors/builder-team-admin/components/team-members.d.ts.map +1 -0
  694. package/dist/editors/builder-team-admin/components/team-members.js +309 -0
  695. package/dist/editors/{clean-new-editor → builder-team-admin}/config.d.ts +1 -1
  696. package/dist/editors/builder-team-admin/config.d.ts.map +1 -0
  697. package/dist/editors/builder-team-admin/config.js +8 -0
  698. package/dist/editors/{clean-new-editor → builder-team-admin}/editor.d.ts +1 -1
  699. package/dist/editors/builder-team-admin/editor.d.ts.map +1 -0
  700. package/dist/editors/{clean-new-editor → builder-team-admin}/editor.js +1 -1
  701. package/dist/editors/builder-team-admin/hooks/useExpenseReportAutoPlacement.d.ts +25 -0
  702. package/dist/editors/builder-team-admin/hooks/useExpenseReportAutoPlacement.d.ts.map +1 -0
  703. package/dist/editors/builder-team-admin/hooks/useExpenseReportAutoPlacement.js +180 -0
  704. package/dist/editors/builder-team-admin/hooks/useRemoteBuilderProfiles.d.ts +20 -0
  705. package/dist/editors/builder-team-admin/hooks/useRemoteBuilderProfiles.d.ts.map +1 -0
  706. package/dist/editors/builder-team-admin/hooks/useRemoteBuilderProfiles.js +57 -0
  707. package/dist/editors/builder-team-admin/hooks/useSnapshotReportAutoPlacement.d.ts +25 -0
  708. package/dist/editors/builder-team-admin/hooks/useSnapshotReportAutoPlacement.d.ts.map +1 -0
  709. package/dist/editors/builder-team-admin/hooks/useSnapshotReportAutoPlacement.js +180 -0
  710. package/dist/editors/builder-team-admin/module.d.ts +3 -0
  711. package/dist/editors/builder-team-admin/module.d.ts.map +1 -0
  712. package/dist/editors/{clean-new-editor → builder-team-admin}/module.js +3 -3
  713. package/dist/editors/builder-team-admin/utils/graphql-client.d.ts +41 -0
  714. package/dist/editors/builder-team-admin/utils/graphql-client.d.ts.map +1 -0
  715. package/dist/editors/builder-team-admin/utils/graphql-client.js +189 -0
  716. package/dist/editors/contributor-billing/components/DriveContents.d.ts.map +1 -1
  717. package/dist/editors/contributor-billing/components/DriveContents.js +5 -1
  718. package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -1
  719. package/dist/editors/contributor-billing/components/DriveExplorer.js +7 -7
  720. package/dist/editors/contributor-billing/components/FolderTree.d.ts +12 -3
  721. package/dist/editors/contributor-billing/components/FolderTree.d.ts.map +1 -1
  722. package/dist/editors/contributor-billing/components/FolderTree.js +146 -56
  723. package/dist/editors/contributor-billing/components/InvoiceTable/ConfirmationModal.d.ts.map +1 -0
  724. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +1 -0
  725. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderStats.d.ts.map +1 -0
  726. package/dist/{old-contributor-billing → editors/contributor-billing}/components/InvoiceTable/HeaderStats.js +10 -9
  727. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +1 -0
  728. package/dist/editors/contributor-billing/components/{InvoiceTable.js → InvoiceTable/InvoiceTable.js} +5 -5
  729. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableContainer.d.ts.map +1 -0
  730. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +1 -0
  731. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts.map +1 -0
  732. package/dist/editors/contributor-billing/config.d.ts.map +1 -1
  733. package/dist/editors/contributor-billing/config.js +0 -1
  734. package/dist/editors/editors.d.ts.map +1 -1
  735. package/dist/editors/editors.js +13 -3
  736. package/dist/editors/expense-report/components/AddBillingStatementModal.d.ts.map +1 -1
  737. package/dist/editors/expense-report/components/AddReportToRemoteDrive.d.ts +13 -0
  738. package/dist/editors/expense-report/components/AddReportToRemoteDrive.d.ts.map +1 -0
  739. package/dist/editors/expense-report/components/AddReportToRemoteDrive.js +76 -0
  740. package/dist/editors/expense-report/components/AggregatedExpensesTable.d.ts.map +1 -1
  741. package/dist/editors/expense-report/components/AggregatedExpensesTable.js +9 -7
  742. package/dist/editors/expense-report/components/ExpenseReportPDF.d.ts.map +1 -1
  743. package/dist/editors/expense-report/components/ExpenseReportTransactionsTable.d.ts +15 -0
  744. package/dist/editors/expense-report/components/ExpenseReportTransactionsTable.d.ts.map +1 -0
  745. package/dist/editors/expense-report/components/ExpenseReportTransactionsTable.js +64 -0
  746. package/dist/editors/expense-report/components/SetOwner.d.ts +8 -0
  747. package/dist/editors/expense-report/components/SetOwner.d.ts.map +1 -0
  748. package/dist/editors/expense-report/components/SetOwner.js +98 -0
  749. package/dist/editors/expense-report/components/WalletsTable.d.ts +3 -1
  750. package/dist/editors/expense-report/components/WalletsTable.d.ts.map +1 -1
  751. package/dist/editors/expense-report/components/WalletsTable.js +564 -89
  752. package/dist/editors/expense-report/editor.d.ts.map +1 -1
  753. package/dist/editors/expense-report/editor.js +120 -21
  754. package/dist/editors/expense-report/hooks/useSyncWallet.d.ts +2 -2
  755. package/dist/editors/expense-report/hooks/useSyncWallet.d.ts.map +1 -1
  756. package/dist/editors/expense-report/hooks/useSyncWallet.js +92 -17
  757. package/dist/editors/expense-report/hooks/useWalletSync.d.ts.map +1 -1
  758. package/dist/editors/expense-report/hooks/useWalletSync.js +2 -1
  759. package/dist/editors/expense-report/services/walletAccountService.d.ts +40 -0
  760. package/dist/editors/expense-report/services/walletAccountService.d.ts.map +1 -0
  761. package/dist/editors/expense-report/services/walletAccountService.js +403 -0
  762. package/dist/editors/hooks/useAccountTransactionsDocument.d.ts +4 -0
  763. package/dist/editors/hooks/useAccountTransactionsDocument.d.ts.map +1 -0
  764. package/dist/editors/hooks/useAccountTransactionsDocument.js +8 -0
  765. package/dist/editors/hooks/useAccountsDocument.d.ts +4 -0
  766. package/dist/editors/hooks/useAccountsDocument.d.ts.map +1 -0
  767. package/dist/editors/hooks/useAccountsDocument.js +8 -0
  768. package/dist/editors/hooks/useSnapshotReportDocument.d.ts +4 -0
  769. package/dist/editors/hooks/useSnapshotReportDocument.d.ts.map +1 -0
  770. package/dist/editors/hooks/useSnapshotReportDocument.js +8 -0
  771. package/dist/editors/index.d.ts +7 -2
  772. package/dist/editors/index.d.ts.map +1 -1
  773. package/dist/editors/index.js +7 -2
  774. package/dist/editors/invoice/editor.d.ts.map +1 -1
  775. package/dist/editors/invoice/editor.js +20 -34
  776. package/dist/editors/invoice/invoiceToGnosis.js +1 -1
  777. package/dist/editors/invoice/lineItemTags/lineItemTags.d.ts.map +1 -1
  778. package/dist/editors/invoice/lineItemTags/lineItemTags.js +4 -25
  779. package/dist/editors/invoice/lineItems.d.ts +1 -1
  780. package/dist/editors/invoice/lineItems.d.ts.map +1 -1
  781. package/dist/editors/invoice/lineItems.js +31 -75
  782. package/dist/editors/invoice/module.d.ts +1 -1
  783. package/dist/editors/invoice/module.d.ts.map +1 -1
  784. package/dist/editors/invoice/module.js +1 -1
  785. package/dist/editors/service-offering-editor/components/EditName.d.ts +3 -0
  786. package/dist/editors/service-offering-editor/components/EditName.d.ts.map +1 -0
  787. package/dist/editors/service-offering-editor/components/EditName.js +31 -0
  788. package/dist/editors/service-offering-editor/components/OfferingInfo.d.ts +9 -0
  789. package/dist/editors/service-offering-editor/components/OfferingInfo.d.ts.map +1 -0
  790. package/dist/editors/service-offering-editor/components/OfferingInfo.js +62 -0
  791. package/dist/editors/service-offering-editor/components/ScopeAndFacets.d.ts +9 -0
  792. package/dist/editors/service-offering-editor/components/ScopeAndFacets.d.ts.map +1 -0
  793. package/dist/editors/service-offering-editor/components/ScopeAndFacets.js +1077 -0
  794. package/dist/editors/service-offering-editor/components/ServiceCatalog.d.ts +16 -0
  795. package/dist/editors/service-offering-editor/components/ServiceCatalog.d.ts.map +1 -0
  796. package/dist/editors/service-offering-editor/components/ServiceCatalog.js +1379 -0
  797. package/dist/editors/service-offering-editor/components/ServicesList.d.ts +9 -0
  798. package/dist/editors/service-offering-editor/components/ServicesList.d.ts.map +1 -0
  799. package/dist/editors/service-offering-editor/components/ServicesList.js +63 -0
  800. package/dist/editors/service-offering-editor/components/TabNavigation.d.ts +9 -0
  801. package/dist/editors/service-offering-editor/components/TabNavigation.d.ts.map +1 -0
  802. package/dist/editors/service-offering-editor/components/TabNavigation.js +243 -0
  803. package/dist/editors/service-offering-editor/components/TheMatrix.d.ts +10 -0
  804. package/dist/editors/service-offering-editor/components/TheMatrix.d.ts.map +1 -0
  805. package/dist/editors/service-offering-editor/components/TheMatrix.js +1686 -0
  806. package/dist/editors/service-offering-editor/components/TierDefinition.d.ts +9 -0
  807. package/dist/editors/service-offering-editor/components/TierDefinition.d.ts.map +1 -0
  808. package/dist/editors/service-offering-editor/components/TierDefinition.js +653 -0
  809. package/dist/editors/service-offering-editor/components/TiersList.d.ts +9 -0
  810. package/dist/editors/service-offering-editor/components/TiersList.d.ts.map +1 -0
  811. package/dist/editors/service-offering-editor/components/TiersList.js +137 -0
  812. package/dist/editors/service-offering-editor/editor.d.ts +2 -0
  813. package/dist/editors/service-offering-editor/editor.d.ts.map +1 -0
  814. package/dist/editors/service-offering-editor/editor.js +336 -0
  815. package/dist/editors/service-offering-editor/module.d.ts +4 -0
  816. package/dist/editors/service-offering-editor/module.d.ts.map +1 -0
  817. package/dist/editors/service-offering-editor/module.js +10 -0
  818. package/dist/editors/service-subscriptions-editor/components/AddCategoryModal.d.ts +7 -0
  819. package/dist/editors/service-subscriptions-editor/components/AddCategoryModal.d.ts.map +1 -0
  820. package/dist/editors/service-subscriptions-editor/components/AddCategoryModal.js +39 -0
  821. package/dist/editors/service-subscriptions-editor/components/AddSubscriptionModal.d.ts +10 -0
  822. package/dist/editors/service-subscriptions-editor/components/AddSubscriptionModal.d.ts.map +1 -0
  823. package/dist/editors/service-subscriptions-editor/components/AddSubscriptionModal.js +64 -0
  824. package/dist/editors/service-subscriptions-editor/components/AddVendorModal.d.ts +7 -0
  825. package/dist/editors/service-subscriptions-editor/components/AddVendorModal.d.ts.map +1 -0
  826. package/dist/editors/service-subscriptions-editor/components/AddVendorModal.js +43 -0
  827. package/dist/editors/service-subscriptions-editor/components/CategoriesList.d.ts +8 -0
  828. package/dist/editors/service-subscriptions-editor/components/CategoriesList.d.ts.map +1 -0
  829. package/dist/editors/service-subscriptions-editor/components/CategoriesList.js +23 -0
  830. package/dist/editors/service-subscriptions-editor/components/EditName.d.ts +3 -0
  831. package/dist/editors/service-subscriptions-editor/components/EditName.d.ts.map +1 -0
  832. package/dist/editors/service-subscriptions-editor/components/EditName.js +31 -0
  833. package/dist/editors/service-subscriptions-editor/components/StatsOverview.d.ts +8 -0
  834. package/dist/editors/service-subscriptions-editor/components/StatsOverview.d.ts.map +1 -0
  835. package/dist/editors/service-subscriptions-editor/components/StatsOverview.js +32 -0
  836. package/dist/editors/service-subscriptions-editor/components/SubscriptionsList.d.ts +10 -0
  837. package/dist/editors/service-subscriptions-editor/components/SubscriptionsList.d.ts.map +1 -0
  838. package/dist/editors/service-subscriptions-editor/components/SubscriptionsList.js +88 -0
  839. package/dist/editors/service-subscriptions-editor/components/VendorsList.d.ts +8 -0
  840. package/dist/editors/service-subscriptions-editor/components/VendorsList.d.ts.map +1 -0
  841. package/dist/editors/service-subscriptions-editor/components/VendorsList.js +23 -0
  842. package/dist/editors/service-subscriptions-editor/editor.d.ts +2 -0
  843. package/dist/editors/service-subscriptions-editor/editor.d.ts.map +1 -0
  844. package/dist/editors/service-subscriptions-editor/editor.js +60 -0
  845. package/dist/editors/{integrations → service-subscriptions-editor}/module.d.ts +1 -1
  846. package/dist/editors/service-subscriptions-editor/module.d.ts.map +1 -0
  847. package/dist/editors/service-subscriptions-editor/module.js +10 -0
  848. package/dist/editors/snapshot-report-editor/components/AddReportToRemoteDrive.d.ts +13 -0
  849. package/dist/editors/snapshot-report-editor/components/AddReportToRemoteDrive.d.ts.map +1 -0
  850. package/dist/editors/snapshot-report-editor/components/AddReportToRemoteDrive.js +76 -0
  851. package/dist/editors/snapshot-report-editor/components/SetOwner.d.ts +8 -0
  852. package/dist/editors/snapshot-report-editor/components/SetOwner.d.ts.map +1 -0
  853. package/dist/editors/snapshot-report-editor/components/SetOwner.js +98 -0
  854. package/dist/editors/snapshot-report-editor/editor.d.ts +2 -0
  855. package/dist/editors/snapshot-report-editor/editor.d.ts.map +1 -0
  856. package/dist/editors/snapshot-report-editor/editor.js +560 -0
  857. package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.d.ts +15 -0
  858. package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.d.ts.map +1 -0
  859. package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.js +327 -0
  860. package/dist/editors/snapshot-report-editor/module.d.ts +3 -0
  861. package/dist/editors/snapshot-report-editor/module.d.ts.map +1 -0
  862. package/dist/editors/snapshot-report-editor/module.js +9 -0
  863. package/dist/editors/snapshot-report-editor/utils/balanceCalculations.d.ts +26 -0
  864. package/dist/editors/snapshot-report-editor/utils/balanceCalculations.d.ts.map +1 -0
  865. package/dist/editors/snapshot-report-editor/utils/balanceCalculations.js +103 -0
  866. package/dist/editors/snapshot-report-editor/utils/deriveTransactions.d.ts +47 -0
  867. package/dist/editors/snapshot-report-editor/utils/deriveTransactions.d.ts.map +1 -0
  868. package/dist/editors/snapshot-report-editor/utils/deriveTransactions.js +89 -0
  869. package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.d.ts +29 -0
  870. package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.d.ts.map +1 -0
  871. package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.js +63 -0
  872. package/dist/index.d.ts +1 -1
  873. package/dist/index.d.ts.map +1 -1
  874. package/dist/powerhouse.manifest.json +78 -6
  875. package/dist/scripts/alchemy/alchemyClient.d.ts +63 -0
  876. package/dist/scripts/alchemy/alchemyClient.d.ts.map +1 -0
  877. package/dist/scripts/alchemy/alchemyClient.js +232 -0
  878. package/dist/scripts/alchemy/alchemyEnvironment.d.ts +29 -0
  879. package/dist/scripts/alchemy/alchemyEnvironment.d.ts.map +1 -0
  880. package/dist/scripts/alchemy/alchemyEnvironment.js +49 -0
  881. package/dist/scripts/alchemy/alchemyHelpers.d.ts +24 -0
  882. package/dist/scripts/alchemy/alchemyHelpers.d.ts.map +1 -0
  883. package/dist/scripts/alchemy/alchemyHelpers.js +116 -0
  884. package/dist/scripts/alchemy/alchemyTypes.d.ts +93 -0
  885. package/dist/scripts/alchemy/alchemyTypes.d.ts.map +1 -0
  886. package/dist/scripts/alchemy/alchemyTypes.js +25 -0
  887. package/dist/scripts/invoice/pdfToClaudeAI.d.ts.map +1 -1
  888. package/dist/scripts/invoice/pdfToClaudeAI.js +186 -4
  889. package/dist/style.css +4288 -158
  890. package/dist/subgraphs/{integrations → acc-txs-addon}/index.d.ts +1 -1
  891. package/dist/subgraphs/acc-txs-addon/index.d.ts.map +1 -0
  892. package/dist/subgraphs/{integrations → acc-txs-addon}/index.js +2 -2
  893. package/dist/subgraphs/acc-txs-addon/resolvers.d.ts +3 -0
  894. package/dist/subgraphs/acc-txs-addon/resolvers.d.ts.map +1 -0
  895. package/dist/subgraphs/acc-txs-addon/resolvers.js +144 -0
  896. package/dist/subgraphs/acc-txs-addon/schema.d.ts.map +1 -0
  897. package/dist/subgraphs/acc-txs-addon/schema.js +47 -0
  898. package/dist/subgraphs/account-transactions/index.d.ts +11 -0
  899. package/dist/subgraphs/account-transactions/index.d.ts.map +1 -0
  900. package/dist/subgraphs/account-transactions/index.js +11 -0
  901. package/dist/subgraphs/account-transactions/resolvers.d.ts.map +1 -0
  902. package/dist/subgraphs/account-transactions/resolvers.js +168 -0
  903. package/dist/subgraphs/account-transactions/schema.d.ts +3 -0
  904. package/dist/subgraphs/account-transactions/schema.d.ts.map +1 -0
  905. package/dist/subgraphs/account-transactions/schema.js +129 -0
  906. package/dist/subgraphs/accounts/index.d.ts +11 -0
  907. package/dist/subgraphs/accounts/index.d.ts.map +1 -0
  908. package/dist/subgraphs/accounts/index.js +11 -0
  909. package/dist/subgraphs/accounts/resolvers.d.ts +3 -0
  910. package/dist/subgraphs/accounts/resolvers.d.ts.map +1 -0
  911. package/dist/subgraphs/{integrations → accounts}/resolvers.js +27 -15
  912. package/dist/subgraphs/accounts/schema.d.ts +3 -0
  913. package/dist/subgraphs/accounts/schema.d.ts.map +1 -0
  914. package/dist/subgraphs/accounts/schema.js +75 -0
  915. package/dist/subgraphs/expense-report/resolvers.d.ts.map +1 -1
  916. package/dist/subgraphs/expense-report/resolvers.js +24 -0
  917. package/dist/subgraphs/expense-report/schema.d.ts.map +1 -1
  918. package/dist/subgraphs/expense-report/schema.js +24 -0
  919. package/dist/subgraphs/index.d.ts +6 -1
  920. package/dist/subgraphs/index.d.ts.map +1 -1
  921. package/dist/subgraphs/index.js +6 -1
  922. package/dist/subgraphs/invoice-addon/customResolvers.js +1 -1
  923. package/dist/subgraphs/service-offering/index.d.ts +11 -0
  924. package/dist/subgraphs/service-offering/index.d.ts.map +1 -0
  925. package/dist/subgraphs/service-offering/index.js +11 -0
  926. package/dist/subgraphs/service-offering/resolvers.d.ts +3 -0
  927. package/dist/subgraphs/service-offering/resolvers.d.ts.map +1 -0
  928. package/dist/subgraphs/service-offering/resolvers.js +432 -0
  929. package/dist/subgraphs/service-offering/schema.d.ts +3 -0
  930. package/dist/subgraphs/service-offering/schema.d.ts.map +1 -0
  931. package/dist/subgraphs/service-offering/schema.js +386 -0
  932. package/dist/subgraphs/service-subscriptions/index.d.ts +11 -0
  933. package/dist/subgraphs/service-subscriptions/index.d.ts.map +1 -0
  934. package/dist/subgraphs/service-subscriptions/index.js +11 -0
  935. package/dist/subgraphs/service-subscriptions/resolvers.d.ts +3 -0
  936. package/dist/subgraphs/service-subscriptions/resolvers.d.ts.map +1 -0
  937. package/dist/subgraphs/service-subscriptions/resolvers.js +228 -0
  938. package/dist/subgraphs/service-subscriptions/schema.d.ts +3 -0
  939. package/dist/subgraphs/service-subscriptions/schema.d.ts.map +1 -0
  940. package/dist/subgraphs/service-subscriptions/schema.js +193 -0
  941. package/dist/subgraphs/snapshot-report/index.d.ts +11 -0
  942. package/dist/subgraphs/snapshot-report/index.d.ts.map +1 -0
  943. package/dist/subgraphs/snapshot-report/index.js +11 -0
  944. package/dist/subgraphs/snapshot-report/resolvers.d.ts +3 -0
  945. package/dist/subgraphs/snapshot-report/resolvers.d.ts.map +1 -0
  946. package/dist/subgraphs/snapshot-report/resolvers.js +276 -0
  947. package/dist/subgraphs/snapshot-report/schema.d.ts +3 -0
  948. package/dist/subgraphs/snapshot-report/schema.d.ts.map +1 -0
  949. package/dist/subgraphs/snapshot-report/schema.js +206 -0
  950. package/package.json +15 -14
  951. package/dist/document-models/integrations/actions.d.ts.map +0 -1
  952. package/dist/document-models/integrations/actions.js +0 -4
  953. package/dist/document-models/integrations/gen/actions.d.ts +0 -4
  954. package/dist/document-models/integrations/gen/actions.d.ts.map +0 -1
  955. package/dist/document-models/integrations/gen/actions.js +0 -1
  956. package/dist/document-models/integrations/gen/creators.d.ts +0 -3
  957. package/dist/document-models/integrations/gen/creators.d.ts.map +0 -1
  958. package/dist/document-models/integrations/gen/creators.js +0 -2
  959. package/dist/document-models/integrations/gen/document-model.d.ts.map +0 -1
  960. package/dist/document-models/integrations/gen/document-model.js +0 -70
  961. package/dist/document-models/integrations/gen/document-schema.d.ts +0 -180
  962. package/dist/document-models/integrations/gen/document-schema.d.ts.map +0 -1
  963. package/dist/document-models/integrations/gen/document-schema.js +0 -33
  964. package/dist/document-models/integrations/gen/document-type.d.ts +0 -2
  965. package/dist/document-models/integrations/gen/document-type.d.ts.map +0 -1
  966. package/dist/document-models/integrations/gen/document-type.js +0 -1
  967. package/dist/document-models/integrations/gen/index.d.ts.map +0 -1
  968. package/dist/document-models/integrations/gen/integrations/actions.d.ts +0 -16
  969. package/dist/document-models/integrations/gen/integrations/actions.d.ts.map +0 -1
  970. package/dist/document-models/integrations/gen/integrations/creators.d.ts +0 -6
  971. package/dist/document-models/integrations/gen/integrations/creators.d.ts.map +0 -1
  972. package/dist/document-models/integrations/gen/integrations/creators.js +0 -5
  973. package/dist/document-models/integrations/gen/integrations/error.d.ts.map +0 -1
  974. package/dist/document-models/integrations/gen/integrations/operations.d.ts +0 -9
  975. package/dist/document-models/integrations/gen/integrations/operations.d.ts.map +0 -1
  976. package/dist/document-models/integrations/gen/ph-factories.d.ts +0 -23
  977. package/dist/document-models/integrations/gen/ph-factories.d.ts.map +0 -1
  978. package/dist/document-models/integrations/gen/reducer.d.ts +0 -3
  979. package/dist/document-models/integrations/gen/reducer.d.ts.map +0 -1
  980. package/dist/document-models/integrations/gen/reducer.js +0 -25
  981. package/dist/document-models/integrations/gen/schema/index.d.ts.map +0 -1
  982. package/dist/document-models/integrations/gen/schema/types.d.ts.map +0 -1
  983. package/dist/document-models/integrations/gen/schema/zod.d.ts +0 -19
  984. package/dist/document-models/integrations/gen/schema/zod.d.ts.map +0 -1
  985. package/dist/document-models/integrations/gen/schema/zod.js +0 -97
  986. package/dist/document-models/integrations/gen/types.d.ts +0 -12
  987. package/dist/document-models/integrations/gen/types.d.ts.map +0 -1
  988. package/dist/document-models/integrations/gen/utils.d.ts +0 -15
  989. package/dist/document-models/integrations/gen/utils.d.ts.map +0 -1
  990. package/dist/document-models/integrations/hooks.d.ts +0 -11
  991. package/dist/document-models/integrations/hooks.d.ts.map +0 -1
  992. package/dist/document-models/integrations/hooks.js +0 -26
  993. package/dist/document-models/integrations/index.d.ts.map +0 -1
  994. package/dist/document-models/integrations/module.d.ts +0 -5
  995. package/dist/document-models/integrations/module.d.ts.map +0 -1
  996. package/dist/document-models/integrations/src/index.d.ts.map +0 -1
  997. package/dist/document-models/integrations/src/reducers/integrations.d.ts +0 -3
  998. package/dist/document-models/integrations/src/reducers/integrations.d.ts.map +0 -1
  999. package/dist/document-models/integrations/src/reducers/integrations.js +0 -14
  1000. package/dist/document-models/integrations/src/tests/document-model.test.d.ts.map +0 -1
  1001. package/dist/document-models/integrations/src/tests/integrations.test.d.ts.map +0 -1
  1002. package/dist/document-models/integrations/src/utils.d.ts.map +0 -1
  1003. package/dist/document-models/integrations/utils.d.ts +0 -14
  1004. package/dist/document-models/integrations/utils.d.ts.map +0 -1
  1005. package/dist/editors/clean-new-editor/components/CreateDocument.d.ts.map +0 -1
  1006. package/dist/editors/clean-new-editor/components/DriveContents.d.ts +0 -3
  1007. package/dist/editors/clean-new-editor/components/DriveContents.d.ts.map +0 -1
  1008. package/dist/editors/clean-new-editor/components/DriveContents.js +0 -10
  1009. package/dist/editors/clean-new-editor/components/DriveExplorer.d.ts.map +0 -1
  1010. package/dist/editors/clean-new-editor/components/DriveExplorer.js +0 -16
  1011. package/dist/editors/clean-new-editor/components/EmptyState.d.ts.map +0 -1
  1012. package/dist/editors/clean-new-editor/components/Files.d.ts.map +0 -1
  1013. package/dist/editors/clean-new-editor/components/FolderTree.d.ts +0 -6
  1014. package/dist/editors/clean-new-editor/components/FolderTree.d.ts.map +0 -1
  1015. package/dist/editors/clean-new-editor/components/FolderTree.js +0 -65
  1016. package/dist/editors/clean-new-editor/components/Folders.d.ts.map +0 -1
  1017. package/dist/editors/clean-new-editor/components/NavigationBreadcrumbs.d.ts.map +0 -1
  1018. package/dist/editors/clean-new-editor/config.d.ts.map +0 -1
  1019. package/dist/editors/clean-new-editor/config.js +0 -5
  1020. package/dist/editors/clean-new-editor/editor.d.ts.map +0 -1
  1021. package/dist/editors/clean-new-editor/module.d.ts +0 -3
  1022. package/dist/editors/clean-new-editor/module.d.ts.map +0 -1
  1023. package/dist/editors/contributor-billing/components/ConfirmationModal.d.ts.map +0 -1
  1024. package/dist/editors/contributor-billing/components/HeaderControls.d.ts.map +0 -1
  1025. package/dist/editors/contributor-billing/components/HeaderStats.d.ts.map +0 -1
  1026. package/dist/editors/contributor-billing/components/HeaderStats.js +0 -73
  1027. package/dist/editors/contributor-billing/components/InvoiceTable.d.ts.map +0 -1
  1028. package/dist/editors/contributor-billing/components/InvoiceTableContainer.d.ts.map +0 -1
  1029. package/dist/editors/contributor-billing/components/InvoiceTableRow.d.ts.map +0 -1
  1030. package/dist/editors/contributor-billing/components/InvoiceTableSection.d.ts.map +0 -1
  1031. package/dist/editors/integrations/components/EditName.d.ts +0 -3
  1032. package/dist/editors/integrations/components/EditName.d.ts.map +0 -1
  1033. package/dist/editors/integrations/components/EditName.js +0 -31
  1034. package/dist/editors/integrations/editor.d.ts +0 -3
  1035. package/dist/editors/integrations/editor.d.ts.map +0 -1
  1036. package/dist/editors/integrations/editor.js +0 -6
  1037. package/dist/editors/integrations/module.d.ts.map +0 -1
  1038. package/dist/editors/integrations/module.js +0 -10
  1039. package/dist/old-contributor-billing/components/DriveExplorer.d.ts +0 -7
  1040. package/dist/old-contributor-billing/components/DriveExplorer.d.ts.map +0 -1
  1041. package/dist/old-contributor-billing/components/DriveExplorer.js +0 -184
  1042. package/dist/old-contributor-billing/components/InvoiceTable/HeaderControls.d.ts +0 -25
  1043. package/dist/old-contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +0 -1
  1044. package/dist/old-contributor-billing/components/InvoiceTable/HeaderControls.js +0 -154
  1045. package/dist/old-contributor-billing/components/InvoiceTable/HeaderStats.d.ts +0 -2
  1046. package/dist/old-contributor-billing/components/InvoiceTable/HeaderStats.d.ts.map +0 -1
  1047. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTable.d.ts +0 -30
  1048. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +0 -1
  1049. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTable.js +0 -254
  1050. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts +0 -16
  1051. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +0 -1
  1052. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableRow.js +0 -47
  1053. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts +0 -10
  1054. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts.map +0 -1
  1055. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableSection.js +0 -10
  1056. package/dist/old-contributor-billing/components/InvoiceTable/RowActionMenu.d.ts +0 -8
  1057. package/dist/old-contributor-billing/components/InvoiceTable/RowActionMenu.d.ts.map +0 -1
  1058. package/dist/old-contributor-billing/components/InvoiceTable/RowActionMenu.js +0 -2
  1059. package/dist/old-contributor-billing/config.d.ts +0 -3
  1060. package/dist/old-contributor-billing/config.d.ts.map +0 -1
  1061. package/dist/old-contributor-billing/config.js +0 -4
  1062. package/dist/old-contributor-billing/editor.d.ts +0 -3
  1063. package/dist/old-contributor-billing/editor.d.ts.map +0 -1
  1064. package/dist/old-contributor-billing/editor.js +0 -8
  1065. package/dist/old-contributor-billing/module.d.ts +0 -3
  1066. package/dist/old-contributor-billing/module.d.ts.map +0 -1
  1067. package/dist/old-contributor-billing/module.js +0 -9
  1068. package/dist/old-contributor-billing/util.d.ts +0 -10
  1069. package/dist/old-contributor-billing/util.d.ts.map +0 -1
  1070. package/dist/old-contributor-billing/util.js +0 -112
  1071. package/dist/subgraphs/integrations/index.d.ts.map +0 -1
  1072. package/dist/subgraphs/integrations/resolvers.d.ts.map +0 -1
  1073. package/dist/subgraphs/integrations/schema.d.ts.map +0 -1
  1074. package/dist/subgraphs/integrations/schema.js +0 -69
  1075. /package/dist/document-models/{integrations/gen/integrations → account-transactions/gen/account}/actions.js +0 -0
  1076. /package/dist/document-models/{integrations/gen/integrations → account-transactions/gen/account}/error.d.ts +0 -0
  1077. /package/dist/document-models/{integrations/gen/integrations → account-transactions/gen/account}/error.js +0 -0
  1078. /package/dist/document-models/{integrations/gen/integrations → account-transactions/gen/account}/operations.js +0 -0
  1079. /package/dist/document-models/{integrations → account-transactions}/gen/document-model.d.ts +0 -0
  1080. /package/dist/document-models/{integrations → account-transactions}/gen/schema/index.d.ts +0 -0
  1081. /package/dist/document-models/{integrations → account-transactions}/gen/schema/index.js +0 -0
  1082. /package/dist/document-models/{integrations → account-transactions}/gen/schema/types.js +0 -0
  1083. /package/dist/document-models/{integrations → account-transactions}/gen/types.js +0 -0
  1084. /package/dist/document-models/{integrations → account-transactions}/index.d.ts +0 -0
  1085. /package/dist/document-models/{integrations → account-transactions}/index.js +0 -0
  1086. /package/dist/document-models/{integrations → account-transactions}/src/index.d.ts +0 -0
  1087. /package/dist/document-models/{integrations → account-transactions}/src/index.js +0 -0
  1088. /package/dist/document-models/{integrations → account-transactions}/src/tests/document-model.test.d.ts +0 -0
  1089. /package/dist/document-models/{integrations → account-transactions}/src/utils.d.ts +0 -0
  1090. /package/dist/document-models/{integrations → account-transactions}/src/utils.js +0 -0
  1091. /package/dist/editors/{clean-new-editor → builder-team-admin}/components/CreateDocument.d.ts +0 -0
  1092. /package/dist/editors/{clean-new-editor → builder-team-admin}/components/CreateDocument.js +0 -0
  1093. /package/dist/editors/{clean-new-editor → builder-team-admin}/components/DriveExplorer.d.ts +0 -0
  1094. /package/dist/editors/{clean-new-editor → builder-team-admin}/components/EmptyState.d.ts +0 -0
  1095. /package/dist/editors/{clean-new-editor → builder-team-admin}/components/EmptyState.js +0 -0
  1096. /package/dist/editors/{clean-new-editor → builder-team-admin}/components/Files.d.ts +0 -0
  1097. /package/dist/editors/{clean-new-editor → builder-team-admin}/components/Files.js +0 -0
  1098. /package/dist/editors/{clean-new-editor → builder-team-admin}/components/Folders.d.ts +0 -0
  1099. /package/dist/editors/{clean-new-editor → builder-team-admin}/components/Folders.js +0 -0
  1100. /package/dist/editors/{clean-new-editor → builder-team-admin}/components/NavigationBreadcrumbs.d.ts +0 -0
  1101. /package/dist/editors/{clean-new-editor → builder-team-admin}/components/NavigationBreadcrumbs.js +0 -0
  1102. /package/dist/editors/contributor-billing/components/{ConfirmationModal.d.ts → InvoiceTable/ConfirmationModal.d.ts} +0 -0
  1103. /package/dist/editors/contributor-billing/components/{ConfirmationModal.js → InvoiceTable/ConfirmationModal.js} +0 -0
  1104. /package/dist/editors/contributor-billing/components/{HeaderControls.d.ts → InvoiceTable/HeaderControls.d.ts} +0 -0
  1105. /package/dist/editors/contributor-billing/components/{HeaderControls.js → InvoiceTable/HeaderControls.js} +0 -0
  1106. /package/dist/editors/contributor-billing/components/{HeaderStats.d.ts → InvoiceTable/HeaderStats.d.ts} +0 -0
  1107. /package/dist/editors/contributor-billing/components/{InvoiceTable.d.ts → InvoiceTable/InvoiceTable.d.ts} +0 -0
  1108. /package/dist/editors/contributor-billing/components/{InvoiceTableContainer.d.ts → InvoiceTable/InvoiceTableContainer.d.ts} +0 -0
  1109. /package/dist/editors/contributor-billing/components/{InvoiceTableContainer.js → InvoiceTable/InvoiceTableContainer.js} +0 -0
  1110. /package/dist/editors/contributor-billing/components/{InvoiceTableRow.d.ts → InvoiceTable/InvoiceTableRow.d.ts} +0 -0
  1111. /package/dist/editors/contributor-billing/components/{InvoiceTableRow.js → InvoiceTable/InvoiceTableRow.js} +0 -0
  1112. /package/dist/editors/contributor-billing/components/{InvoiceTableSection.d.ts → InvoiceTable/InvoiceTableSection.d.ts} +0 -0
  1113. /package/dist/editors/contributor-billing/components/{InvoiceTableSection.js → InvoiceTable/InvoiceTableSection.js} +0 -0
  1114. /package/dist/subgraphs/{integrations → acc-txs-addon}/schema.d.ts +0 -0
  1115. /package/dist/subgraphs/{integrations → account-transactions}/resolvers.d.ts +0 -0
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ import { Button } from "@powerhousedao/document-engineering";
4
+ export function DocumentHeader({ document, onNameChange, }) {
5
+ const [isEditing, setIsEditing] = useState(false);
6
+ const [name, setName] = useState(document.header.name);
7
+ function handleSave() {
8
+ if (name.trim()) {
9
+ onNameChange(name.trim());
10
+ setIsEditing(false);
11
+ }
12
+ }
13
+ function handleCancel() {
14
+ setName(document.header.name);
15
+ setIsEditing(false);
16
+ }
17
+ return (_jsx("div", { className: "bg-white rounded-xl border border-gray-200 shadow-sm p-6", children: _jsx("div", { className: "flex items-start justify-between", children: _jsxs("div", { className: "flex-1", children: [isEditing ? (_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("input", { type: "text", value: name, onChange: (e) => setName(e.target.value), className: "flex-1 px-4 py-2 text-2xl font-semibold border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent", autoFocus: true, onKeyDown: (e) => {
18
+ if (e.key === "Enter")
19
+ handleSave();
20
+ if (e.key === "Escape")
21
+ handleCancel();
22
+ } }), _jsx(Button, { onClick: handleSave, className: "bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg font-medium", children: "Save" }), _jsx(Button, { onClick: handleCancel, className: "bg-gray-100 hover:bg-gray-200 text-gray-700 px-4 py-2 rounded-lg font-medium", children: "Cancel" })] })) : (_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("h1", { className: "text-2xl font-semibold text-gray-900", children: document.header.name }), _jsx("button", { onClick: () => setIsEditing(true), className: "text-gray-400 hover:text-gray-600 transition-colors", title: "Edit document name", children: _jsx("svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z" }) }) })] })), _jsxs("div", { className: "mt-4 grid grid-cols-2 gap-x-6 gap-y-2 text-sm", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "font-medium text-gray-500", children: "Document ID:" }), _jsx("span", { className: "text-gray-900 font-mono text-xs", children: document.header.id })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "font-medium text-gray-500", children: "Type:" }), _jsx("span", { className: "text-gray-900", children: document.header.documentType })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "font-medium text-gray-500", children: "Created:" }), _jsx("span", { className: "text-gray-900", children: new Date(document.header.createdAtUtcIso).toLocaleString() })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "font-medium text-gray-500", children: "Last Modified:" }), _jsx("span", { className: "text-gray-900", children: new Date(document.header.lastModifiedAtUtcIso).toLocaleString() })] })] })] }) }) }));
23
+ }
@@ -0,0 +1,7 @@
1
+ import type { KycAmlStatusType } from "../../../document-models/accounts/gen/schema/types.js";
2
+ interface KYCStatusBadgeProps {
3
+ status: KycAmlStatusType | null | undefined;
4
+ }
5
+ export declare function KYCStatusBadge({ status }: KYCStatusBadgeProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=KYCStatusBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KYCStatusBadge.d.ts","sourceRoot":"","sources":["../../../../editors/accounts-editor/components/KYCStatusBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAE9F,UAAU,mBAAmB;IAC3B,MAAM,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7C;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,2CAqD7D"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export function KYCStatusBadge({ status }) {
3
+ if (!status) {
4
+ return (_jsx("span", { className: "inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-700", children: "No Status" }));
5
+ }
6
+ const styles = {
7
+ PASSED: "bg-green-100 text-green-800 border-green-200",
8
+ PENDING: "bg-yellow-100 text-yellow-800 border-yellow-200",
9
+ FAILED: "bg-red-100 text-red-800 border-red-200",
10
+ };
11
+ const icons = {
12
+ PASSED: (_jsx("svg", { className: "w-4 h-4", fill: "currentColor", viewBox: "0 0 20 20", children: _jsx("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", clipRule: "evenodd" }) })),
13
+ PENDING: (_jsx("svg", { className: "w-4 h-4", fill: "currentColor", viewBox: "0 0 20 20", children: _jsx("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z", clipRule: "evenodd" }) })),
14
+ FAILED: (_jsx("svg", { className: "w-4 h-4", fill: "currentColor", viewBox: "0 0 20 20", children: _jsx("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z", clipRule: "evenodd" }) })),
15
+ };
16
+ return (_jsxs("span", { className: `inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-medium border ${styles[status]}`, children: [icons[status], _jsxs("span", { children: ["KYC/AML ", status] })] }));
17
+ }
@@ -0,0 +1,3 @@
1
+ export declare function Editor(): import("react/jsx-runtime").JSX.Element;
2
+ export default Editor;
3
+ //# sourceMappingURL=editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/accounts-editor/editor.tsx"],"names":[],"mappings":"AA8BA,wBAAgB,MAAM,4CAyarB;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,159 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ import { Button } from "@powerhousedao/document-engineering";
4
+ import { DocumentToolbar } from "@powerhousedao/design-system/connect";
5
+ import { setSelectedNode, useParentFolderForSelectedNode, useSelectedDrive, } from "@powerhousedao/reactor-browser";
6
+ import { generateId } from "document-model/core";
7
+ import { setName } from "document-model";
8
+ import { useSelectedAccountsDocument } from "../hooks/useAccountsDocument.js";
9
+ import { addAccount, updateAccount, deleteAccount, updateKycStatus, } from "../../document-models/accounts/gen/accounts/creators.js";
10
+ import { AccountForm } from "./components/AccountForm.js";
11
+ import { DocumentHeader } from "./components/DocumentHeader.js";
12
+ import { AccountsList } from "./components/AccountsList.js";
13
+ import { AccountsFilter } from "./components/AccountsFilter.js";
14
+ import { accountTransactionsService } from "./services/accountTransactionsService.js";
15
+ export function Editor() {
16
+ const [document, dispatch] = useSelectedAccountsDocument();
17
+ const parentFolder = useParentFolderForSelectedNode();
18
+ const [selectedDrive] = useSelectedDrive();
19
+ const [viewMode, setViewMode] = useState("list");
20
+ const [editingAccount, setEditingAccount] = useState(null);
21
+ const [filteredAccounts, setFilteredAccounts] = useState([]);
22
+ const [creatingTransactionsFor, setCreatingTransactionsFor] = useState(null);
23
+ const [isSyncingAll, setIsSyncingAll] = useState(false);
24
+ const [syncProgress, setSyncProgress] = useState(null);
25
+ function handleClose() {
26
+ setSelectedNode(parentFolder?.id);
27
+ }
28
+ function handleAddAccount(values) {
29
+ dispatch(addAccount({
30
+ id: generateId(),
31
+ account: values.account,
32
+ name: values.name,
33
+ budgetPath: values.budgetPath,
34
+ accountTransactionsId: values.accountTransactionsId,
35
+ chain: values.chain,
36
+ type: values.type || "External",
37
+ owners: values.owners,
38
+ KycAmlStatus: values.KycAmlStatus,
39
+ }));
40
+ setViewMode("list");
41
+ }
42
+ function handleUpdateAccount(values) {
43
+ if (!values.id)
44
+ return;
45
+ dispatch(updateAccount({
46
+ id: values.id,
47
+ account: values.account,
48
+ name: values.name,
49
+ budgetPath: values.budgetPath,
50
+ accountTransactionsId: values.accountTransactionsId,
51
+ chain: values.chain,
52
+ type: values.type,
53
+ owners: values.owners,
54
+ KycAmlStatus: values.KycAmlStatus,
55
+ }));
56
+ setViewMode("list");
57
+ setEditingAccount(null);
58
+ }
59
+ function handleDeleteAccount(id) {
60
+ if (window.confirm("Are you sure you want to delete this account?")) {
61
+ dispatch(deleteAccount({ id }));
62
+ }
63
+ }
64
+ function handleUpdateKycStatus(id, KycAmlStatus) {
65
+ dispatch(updateKycStatus({ id, KycAmlStatus }));
66
+ }
67
+ function handleEditClick(account) {
68
+ setEditingAccount(account);
69
+ setViewMode("edit");
70
+ }
71
+ function handleCancelForm() {
72
+ setViewMode("list");
73
+ setEditingAccount(null);
74
+ }
75
+ async function handleCreateTransactions(account) {
76
+ setCreatingTransactionsFor(account.id);
77
+ try {
78
+ const driveId = selectedDrive?.header?.id;
79
+ const accountsDocumentId = document.header.id;
80
+ const result = await accountTransactionsService.createAccountTransactionsDocument(account, accountsDocumentId, driveId);
81
+ if (result.success) {
82
+ alert(`Success! Created document and fetched ${result.transactionsAdded} transactions`);
83
+ }
84
+ else {
85
+ alert(`Error: ${result.message}`);
86
+ }
87
+ }
88
+ catch (error) {
89
+ alert(`Error: ${error instanceof Error ? error.message : "Unknown error occurred"}`);
90
+ }
91
+ finally {
92
+ setCreatingTransactionsFor(null);
93
+ }
94
+ }
95
+ async function handleSyncAllTransactions() {
96
+ // Filter accounts that have transaction documents
97
+ const accountsWithTransactions = accounts.filter((account) => account.accountTransactionsId &&
98
+ account.accountTransactionsId.trim() !== "");
99
+ if (accountsWithTransactions.length === 0) {
100
+ alert("No accounts have transaction documents to sync. Create transaction documents first.");
101
+ return;
102
+ }
103
+ if (!window.confirm(`This will sync transactions for ${accountsWithTransactions.length} account(s). Continue?`)) {
104
+ return;
105
+ }
106
+ setIsSyncingAll(true);
107
+ const results = [];
108
+ try {
109
+ for (let i = 0; i < accountsWithTransactions.length; i++) {
110
+ const account = accountsWithTransactions[i];
111
+ setSyncProgress({
112
+ current: i + 1,
113
+ total: accountsWithTransactions.length,
114
+ account: account.name,
115
+ });
116
+ const result = await accountTransactionsService.syncTransactionsForDocument(account.accountTransactionsId, account.account);
117
+ results.push({
118
+ account: account.name,
119
+ success: result.success,
120
+ transactionsAdded: result.transactionsAdded || 0,
121
+ message: result.message,
122
+ });
123
+ }
124
+ // Show summary
125
+ const totalAdded = results.reduce((sum, r) => sum + r.transactionsAdded, 0);
126
+ const successCount = results.filter((r) => r.success).length;
127
+ const failedCount = results.length - successCount;
128
+ let message = `Sync complete!\n\n`;
129
+ message += `Successfully synced: ${successCount}/${results.length} accounts\n`;
130
+ message += `Total new transactions: ${totalAdded}\n`;
131
+ if (failedCount > 0) {
132
+ message += `\nFailed accounts:\n`;
133
+ results
134
+ .filter((r) => !r.success)
135
+ .forEach((r) => {
136
+ message += `- ${r.account}: ${r.message}\n`;
137
+ });
138
+ }
139
+ alert(message);
140
+ }
141
+ catch (error) {
142
+ alert(`Error during bulk sync: ${error instanceof Error ? error.message : "Unknown error occurred"}`);
143
+ }
144
+ finally {
145
+ setIsSyncingAll(false);
146
+ setSyncProgress(null);
147
+ }
148
+ }
149
+ const accounts = document.state.global.accounts;
150
+ const displayAccounts = filteredAccounts.length > 0 || accounts.length === 0
151
+ ? filteredAccounts
152
+ : accounts;
153
+ return (_jsxs("div", { className: "h-screen flex flex-col bg-gray-50", children: [_jsx(DocumentToolbar, { document: document, onClose: handleClose }), _jsx("div", { className: "bg-white border-b border-gray-200 px-4 py-3 flex items-center justify-between", children: _jsx("h1", { className: "text-lg font-semibold text-gray-900", children: "Accounts" }) }), _jsx("div", { className: "flex-1 overflow-auto", children: _jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8", children: [_jsx(DocumentHeader, { document: document, onNameChange: (name) => dispatch(setName(name)) }), _jsxs("div", { className: "mt-8", children: [viewMode === "list" && (_jsxs("div", { className: "space-y-6", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("h2", { className: "text-2xl font-semibold text-gray-900", children: "Accounts" }), _jsx("p", { className: "mt-1 text-sm text-gray-600", children: "Manage your accounts and sync transactions" })] }), _jsxs("div", { className: "flex gap-3", children: [_jsx(Button, { onClick: handleSyncAllTransactions, disabled: isSyncingAll ||
154
+ accounts.filter((a) => a.accountTransactionsId)
155
+ .length === 0, className: "bg-green-600 hover:bg-green-700 disabled:bg-gray-400 text-white px-6 py-2.5 rounded-lg font-medium shadow-sm transition-colors", children: isSyncingAll ? (_jsxs("span", { className: "flex items-center gap-2", children: [_jsxs("svg", { className: "animate-spin h-4 w-4", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [_jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), _jsx("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] }), syncProgress
156
+ ? `${syncProgress.current}/${syncProgress.total}`
157
+ : "Syncing..."] })) : ("Sync All Transactions") }), _jsx(Button, { onClick: () => setViewMode("add"), className: "bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg font-medium shadow-sm transition-colors", children: "Add Account" })] })] }), syncProgress && (_jsx("div", { className: "bg-blue-50 border border-blue-200 rounded-lg p-4", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsxs("p", { className: "text-sm font-medium text-blue-900", children: ["Syncing transactions: ", syncProgress.account] }), _jsxs("p", { className: "text-xs text-blue-700 mt-1", children: ["Progress: ", syncProgress.current, " of", " ", syncProgress.total, " accounts"] })] }), _jsx("div", { className: "flex items-center gap-2", children: _jsxs("svg", { className: "animate-spin h-5 w-5 text-blue-600", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [_jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), _jsx("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] }) })] }) })), accounts.length === 0 ? (_jsxs("div", { className: "bg-white rounded-xl border border-gray-200 p-12 text-center", children: [_jsx("svg", { className: "mx-auto h-12 w-12 text-gray-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" }) }), _jsx("h3", { className: "mt-4 text-lg font-medium text-gray-900", children: "No accounts yet" }), _jsx("p", { className: "mt-2 text-sm text-gray-600", children: "Get started by creating your first account" }), _jsx(Button, { onClick: () => setViewMode("add"), className: "mt-6 bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg font-medium shadow-sm transition-colors", children: "Add Account" })] })) : (_jsxs("div", { className: "space-y-6", children: [_jsx(AccountsFilter, { accounts: accounts, onFilteredAccountsChange: setFilteredAccounts }), _jsx(AccountsList, { accounts: displayAccounts, onEdit: handleEditClick, onDelete: handleDeleteAccount, onUpdateKycStatus: handleUpdateKycStatus, onCreateTransactions: handleCreateTransactions, creatingTransactionsFor: creatingTransactionsFor || undefined })] }))] })), viewMode === "add" && (_jsxs("div", { className: "max-w-3xl", children: [_jsxs("div", { className: "mb-6", children: [_jsx("h2", { className: "text-2xl font-semibold text-gray-900", children: "Add New Account" }), _jsx("p", { className: "mt-1 text-sm text-gray-600", children: "Fill in the account details below" })] }), _jsx(AccountForm, { onSubmit: handleAddAccount, onCancel: handleCancelForm })] })), viewMode === "edit" && editingAccount && (_jsxs("div", { className: "max-w-3xl", children: [_jsxs("div", { className: "mb-6", children: [_jsx("h2", { className: "text-2xl font-semibold text-gray-900", children: "Edit Account" }), _jsx("p", { className: "mt-1 text-sm text-gray-600", children: "Update the account details below" })] }), _jsx(AccountForm, { account: editingAccount, onSubmit: handleUpdateAccount, onCancel: handleCancelForm })] }))] })] }) })] }));
158
+ }
159
+ export default Editor;
@@ -0,0 +1,3 @@
1
+ import type { EditorModule } from "document-model";
2
+ export declare const module: EditorModule;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../editors/accounts-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,eAAO,MAAM,MAAM,EAAE,YAOpB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Editor } from "./editor.js";
2
+ export const module = {
3
+ Component: Editor,
4
+ documentTypes: ["powerhouse/accounts"],
5
+ config: {
6
+ id: "accounts-editor",
7
+ name: "accounts-editor",
8
+ },
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { EditorModule } from "document-model";
2
+ export declare const AccountsEditor: EditorModule;
3
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../editors/accounts-editor/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,eAAO,MAAM,cAAc,EAAE,YAO5B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { lazy } from "react";
2
+ export const AccountsEditor = {
3
+ Component: lazy(() => import("./editor.js")),
4
+ documentTypes: ["powerhouse/accounts"],
5
+ config: {
6
+ id: "powerhouse-accounts-editor",
7
+ name: "Accounts",
8
+ },
9
+ };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Service for creating Account Transactions documents and fetching transactions
3
+ * Uses reactor-browser APIs for universal local/remote drive compatibility
4
+ */
5
+ import type { AccountEntry } from "../../../document-models/accounts/gen/schema/types.js";
6
+ export interface CreateAccountTransactionsResult {
7
+ success: boolean;
8
+ documentId?: string;
9
+ transactionsAdded?: number;
10
+ message: string;
11
+ }
12
+ export declare class AccountTransactionsService {
13
+ constructor();
14
+ /**
15
+ * Create an Account Transactions document and fetch transactions for the account
16
+ */
17
+ createAccountTransactionsDocument(account: AccountEntry, accountsDocumentId: string, driveId?: string): Promise<CreateAccountTransactionsResult>;
18
+ /**
19
+ * Sync transactions for an existing Account Transactions document
20
+ * This fetches new transactions from Alchemy and adds them to an existing document
21
+ */
22
+ syncTransactionsForDocument(documentId: string, address: string): Promise<{
23
+ success: boolean;
24
+ transactionsAdded?: number;
25
+ message: string;
26
+ }>;
27
+ }
28
+ export declare const accountTransactionsService: AccountTransactionsService;
29
+ //# sourceMappingURL=accountTransactionsService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountTransactionsService.d.ts","sourceRoot":"","sources":["../../../../editors/accounts-editor/services/accountTransactionsService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;AAe1F,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,0BAA0B;;IAKrC;;OAEG;IACG,iCAAiC,CACrC,OAAO,EAAE,YAAY,EACrB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,+BAA+B,CAAC;IAuO3C;;;OAGG;IACG,2BAA2B,CAC/B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CAoGH;AAGD,eAAO,MAAM,0BAA0B,4BAAmC,CAAC"}
@@ -0,0 +1,252 @@
1
+ /**
2
+ * Service for creating Account Transactions documents and fetching transactions
3
+ * Uses reactor-browser APIs for universal local/remote drive compatibility
4
+ */
5
+ import { addDocument, dispatchActions, useDocumentById, } from "@powerhousedao/reactor-browser";
6
+ import { actions as accountTransactionsActions, addTransaction, } from "../../../document-models/account-transactions/index.js";
7
+ import { actions as accountsActions } from "../../../document-models/accounts/index.js";
8
+ import { generateId } from "document-model/core";
9
+ import { alchemyIntegration } from "../../account-transactions-editor/alchemyIntegration.js";
10
+ import { reducer as accountTransactionsReducer } from "../../../document-models/account-transactions/gen/reducer.js";
11
+ export class AccountTransactionsService {
12
+ constructor() {
13
+ // No longer need GraphQL endpoint - using reactor-browser APIs
14
+ }
15
+ /**
16
+ * Create an Account Transactions document and fetch transactions for the account
17
+ */
18
+ async createAccountTransactionsDocument(account, accountsDocumentId, driveId) {
19
+ try {
20
+ if (!driveId) {
21
+ throw new Error("Drive ID is required to create document");
22
+ }
23
+ // Step 1: Create the Account Transactions document using addDocument
24
+ const documentName = `${account.name} Transactions`;
25
+ console.log("[AccountTransactionsService] Creating document:", {
26
+ name: documentName,
27
+ driveId,
28
+ });
29
+ const createdNode = await addDocument(driveId, documentName, "powerhouse/account-transactions", undefined, undefined, undefined, "powerhouse-account-transactions-editor");
30
+ if (!createdNode?.id) {
31
+ throw new Error("Failed to create AccountTransactions document");
32
+ }
33
+ console.log("[AccountTransactionsService] Document created:", createdNode.id);
34
+ // Give the document a moment to be fully initialized
35
+ await new Promise((resolve) => setTimeout(resolve, 500));
36
+ // Step 2: Set the account information in the document
37
+ await dispatchActions([
38
+ accountTransactionsActions.setAccount({
39
+ id: account.id,
40
+ account: account.account,
41
+ name: account.name,
42
+ }),
43
+ ], createdNode.id);
44
+ console.log("[AccountTransactionsService] Account info set");
45
+ // Wait a bit before adding transactions
46
+ await new Promise((resolve) => setTimeout(resolve, 200));
47
+ // Step 3: Fetch and add transactions from Alchemy
48
+ let transactionsAdded = 0;
49
+ try {
50
+ console.log("[AccountTransactionsService] Fetching transactions from Alchemy for:", account.account);
51
+ const result = await alchemyIntegration.getTransactionsFromAlchemy(account.account);
52
+ console.log("[AccountTransactionsService] Alchemy result:", result.success, "transactions count:", result.transactions?.length || 0);
53
+ if (result.success && result.transactions.length > 0) {
54
+ // Add each transaction to the document
55
+ const transactionActions = result.transactions
56
+ .filter((txData) => {
57
+ // Validate required fields
58
+ if (!txData.direction || !txData.from || !txData.to) {
59
+ console.error(`[AccountTransactionsService] Skipping invalid transaction:`, txData);
60
+ return false;
61
+ }
62
+ return true;
63
+ })
64
+ .map((txData) => {
65
+ // Handle amount formatting
66
+ let amount;
67
+ if (typeof txData.amount === "string") {
68
+ const amountParts = txData.amount.split(" ");
69
+ amount = {
70
+ value: amountParts[0] || "0",
71
+ unit: amountParts[1] || txData.token,
72
+ };
73
+ }
74
+ else if (typeof txData.amount === "object" &&
75
+ txData.amount &&
76
+ "value" in txData.amount &&
77
+ "unit" in txData.amount) {
78
+ amount = txData.amount;
79
+ }
80
+ else {
81
+ amount = {
82
+ value: "0",
83
+ unit: txData.token,
84
+ };
85
+ }
86
+ return addTransaction({
87
+ id: generateId(),
88
+ counterParty: txData.counterParty,
89
+ amount: amount,
90
+ datetime: txData.datetime,
91
+ txHash: txData.txHash,
92
+ token: txData.token,
93
+ blockNumber: txData.blockNumber,
94
+ //uniqueId: txData.uniqueId || null,
95
+ accountingPeriod: txData.accountingPeriod,
96
+ direction: txData.direction || "OUTFLOW",
97
+ budget: null,
98
+ });
99
+ });
100
+ console.log("[AccountTransactionsService] Creating", transactionActions.length, "transaction actions");
101
+ if (transactionActions.length > 0) {
102
+ console.log("[AccountTransactionsService] Dispatching", transactionActions.length, "transaction actions to document:", createdNode.id);
103
+ // Batch dispatch transactions 100 at a time for better performance
104
+ const BATCH_SIZE = 100;
105
+ for (let i = 0; i < transactionActions.length; i += BATCH_SIZE) {
106
+ try {
107
+ const batch = transactionActions.slice(i, i + BATCH_SIZE);
108
+ const result = await dispatchActions(batch, createdNode.id);
109
+ if (i === 0) {
110
+ console.log(`[AccountTransactionsService] First batch dispatch result:`, result);
111
+ }
112
+ console.log(`[AccountTransactionsService] Dispatched batch ${Math.floor(i / BATCH_SIZE) + 1}/${Math.ceil(transactionActions.length / BATCH_SIZE)} (${Math.min(i + BATCH_SIZE, transactionActions.length)}/${transactionActions.length} transactions)`);
113
+ }
114
+ catch (dispatchError) {
115
+ console.error(`[AccountTransactionsService] ERROR dispatching batch starting at ${i}:`, dispatchError);
116
+ throw dispatchError;
117
+ }
118
+ }
119
+ transactionsAdded = transactionActions.length;
120
+ console.log(`[AccountTransactionsService] Successfully dispatched all ${transactionsAdded} transaction actions`);
121
+ }
122
+ }
123
+ else {
124
+ console.log("[AccountTransactionsService] No transactions to add:", result.success ? "success but empty" : "failed");
125
+ }
126
+ }
127
+ catch (alchemyError) {
128
+ console.error("[AccountTransactionsService] ERROR fetching transactions from Alchemy:", alchemyError);
129
+ // Don't fail the entire operation if Alchemy fetch fails
130
+ }
131
+ // Step 4: Update the account with the transaction document ID
132
+ console.log("[AccountTransactionsService] Updating account in Accounts document:", {
133
+ accountId: account.id,
134
+ accountsDocumentId,
135
+ transactionsDocId: createdNode.id,
136
+ });
137
+ try {
138
+ await dispatchActions([
139
+ accountsActions.updateAccount({
140
+ id: account.id,
141
+ accountTransactionsId: createdNode.id,
142
+ }),
143
+ ], accountsDocumentId);
144
+ console.log("[AccountTransactionsService] Successfully updated account with transactions ID");
145
+ }
146
+ catch (updateError) {
147
+ console.error("[AccountTransactionsService] ERROR updating account:", updateError);
148
+ throw updateError;
149
+ }
150
+ return {
151
+ success: true,
152
+ documentId: createdNode.id,
153
+ transactionsAdded,
154
+ message: `Successfully created document and fetched ${transactionsAdded} transactions`,
155
+ };
156
+ }
157
+ catch (error) {
158
+ console.error("[AccountTransactionsService] Error creating account transactions:", error);
159
+ return {
160
+ success: false,
161
+ message: `Failed to create account transactions: ${error instanceof Error ? error.message : "Unknown error"}`,
162
+ };
163
+ }
164
+ }
165
+ /**
166
+ * Sync transactions for an existing Account Transactions document
167
+ * This fetches new transactions from Alchemy and adds them to an existing document
168
+ */
169
+ async syncTransactionsForDocument(documentId, address) {
170
+ try {
171
+ console.log("[AccountTransactionsService] Syncing transactions for document:", documentId);
172
+ const result = await alchemyIntegration.getTransactionsFromAlchemy(address);
173
+ if (!result.success || result.transactions.length === 0) {
174
+ return {
175
+ success: true,
176
+ transactionsAdded: 0,
177
+ message: "No new transactions found",
178
+ };
179
+ }
180
+ // Add each transaction to the document
181
+ const transactionActions = result.transactions
182
+ .filter((txData) => {
183
+ // Validate required fields
184
+ if (!txData.direction || !txData.from || !txData.to) {
185
+ console.error(`[AccountTransactionsService] Skipping invalid transaction:`, txData);
186
+ return false;
187
+ }
188
+ return true;
189
+ })
190
+ .map((txData) => {
191
+ // Handle amount formatting
192
+ let amount;
193
+ if (typeof txData.amount === "string") {
194
+ const amountParts = txData.amount.split(" ");
195
+ amount = {
196
+ value: amountParts[0] || "0",
197
+ unit: amountParts[1] || txData.token,
198
+ };
199
+ }
200
+ else if (typeof txData.amount === "object" &&
201
+ txData.amount &&
202
+ "value" in txData.amount &&
203
+ "unit" in txData.amount) {
204
+ amount = txData.amount;
205
+ }
206
+ else {
207
+ amount = {
208
+ value: "0",
209
+ unit: txData.token,
210
+ };
211
+ }
212
+ return addTransaction({
213
+ id: generateId(),
214
+ counterParty: txData.counterParty,
215
+ amount: amount,
216
+ datetime: txData.datetime,
217
+ txHash: txData.txHash,
218
+ token: txData.token,
219
+ blockNumber: txData.blockNumber,
220
+ accountingPeriod: txData.accountingPeriod,
221
+ direction: txData.direction || "OUTFLOW",
222
+ budget: null,
223
+ });
224
+ });
225
+ if (transactionActions.length > 0) {
226
+ // Batch dispatch transactions 100 at a time for better performance
227
+ const BATCH_SIZE = 100;
228
+ for (let i = 0; i < transactionActions.length; i += BATCH_SIZE) {
229
+ const batch = transactionActions.slice(i, i + BATCH_SIZE);
230
+ await dispatchActions(batch, documentId);
231
+ console.log(`[AccountTransactionsService] Synced batch ${Math.floor(i / BATCH_SIZE) + 1}/${Math.ceil(transactionActions.length / BATCH_SIZE)} (${Math.min(i + BATCH_SIZE, transactionActions.length)}/${transactionActions.length} transactions)`);
232
+ }
233
+ console.log(`[AccountTransactionsService] Successfully synced all ${transactionActions.length} transactions`);
234
+ }
235
+ return {
236
+ success: true,
237
+ transactionsAdded: transactionActions.length,
238
+ message: `Successfully synced ${transactionActions.length} new transaction(s)`,
239
+ };
240
+ }
241
+ catch (error) {
242
+ console.error("[AccountTransactionsService] Error syncing transactions:", error);
243
+ return {
244
+ success: false,
245
+ transactionsAdded: 0,
246
+ message: `Failed to sync transactions: ${error instanceof Error ? error.message : "Unknown error"}`,
247
+ };
248
+ }
249
+ }
250
+ }
251
+ // Export singleton instance
252
+ export const accountTransactionsService = new AccountTransactionsService();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateDocument.d.ts","sourceRoot":"","sources":["../../../../editors/builder-team-admin/components/CreateDocument.tsx"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wBAAgB,cAAc,4CAsB7B"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Main overview dashboard showing aggregated data from all document types in the drive.
3
+ * Displays: Builder profile, team members, subscriptions stats, and expense reports stats.
4
+ */
5
+ export declare function DriveContents(): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=DriveContents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DriveContents.d.ts","sourceRoot":"","sources":["../../../../editors/builder-team-admin/components/DriveContents.tsx"],"names":[],"mappings":"AAaA;;;GAGG;AACH,wBAAgB,aAAa,4CAiE5B"}
@@ -0,0 +1,36 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useMemo } from "react";
3
+ import { useDocumentsInSelectedDrive } from "@powerhousedao/reactor-browser";
4
+ import { ProfileHeader } from "./overview/ProfileHeader.js";
5
+ import { TeamMembersOverview } from "./overview/TeamMembersOverview.js";
6
+ import { SubscriptionsStats, SubscriptionsEmptyState, } from "./overview/SubscriptionsStats.js";
7
+ import { ExpenseReportsStats } from "./ExpenseReportsStats.js";
8
+ import { useExpenseReportAutoPlacement } from "../hooks/useExpenseReportAutoPlacement.js";
9
+ /**
10
+ * Main overview dashboard showing aggregated data from all document types in the drive.
11
+ * Displays: Builder profile, team members, subscriptions stats, and expense reports stats.
12
+ */
13
+ export function DriveContents() {
14
+ const documentsInDrive = useDocumentsInSelectedDrive();
15
+ // Extract builder profile document
16
+ const builderProfileDoc = useMemo(() => {
17
+ if (!documentsInDrive)
18
+ return null;
19
+ return (documentsInDrive.find((doc) => doc.header.documentType === "powerhouse/builder-profile") ?? null);
20
+ }, [documentsInDrive]);
21
+ // Extract service subscriptions document
22
+ const serviceSubscriptionsDoc = useMemo(() => {
23
+ if (!documentsInDrive)
24
+ return null;
25
+ return (documentsInDrive.find((doc) => doc.header.documentType === "powerhouse/service-subscriptions") ?? null);
26
+ }, [documentsInDrive]);
27
+ // Use the auto-placement hook - this handles moving expense reports
28
+ // dropped anywhere in the drive into the proper "Expense Reports" folder
29
+ const { expenseReportDocuments } = useExpenseReportAutoPlacement();
30
+ // Get contributors from builder profile
31
+ const contributors = builderProfileDoc?.state.global.contributors;
32
+ // Get subscriptions from service subscriptions doc
33
+ const subscriptions = serviceSubscriptionsDoc?.state.global.subscriptions;
34
+ const hasExpenseReports = expenseReportDocuments.length > 0;
35
+ return (_jsx("div", { className: "min-h-full bg-slate-50/50 px-6 py-6", children: _jsxs("div", { className: "mx-auto max-w-5xl space-y-8", children: [_jsx(ProfileHeader, { builderProfileDoc: builderProfileDoc }), _jsx(TeamMembersOverview, { contributors: contributors }), subscriptions ? (_jsx(SubscriptionsStats, { subscriptions: subscriptions })) : (_jsx(SubscriptionsEmptyState, {})), hasExpenseReports && (_jsxs("div", { className: "space-y-4", children: [_jsx("h2", { className: "text-lg font-semibold text-slate-900", children: "Expense Reports" }), _jsx(ExpenseReportsStats, { expenseReportDocuments: expenseReportDocuments })] }))] }) }));
36
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DriveExplorer.d.ts","sourceRoot":"","sources":["../../../../editors/builder-team-admin/components/DriveExplorer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAYlD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,WAAW,2CA+GtD"}