@powerhousedao/contributor-billing 0.1.51 → 0.1.53

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 (1037) hide show
  1. package/dist/document-models/document-models.d.ts.map +1 -1
  2. package/dist/document-models/document-models.js +0 -10
  3. package/dist/document-models/expense-report/src/reducers/wallet.d.ts.map +1 -1
  4. package/dist/document-models/expense-report/src/reducers/wallet.js +4 -4
  5. package/dist/document-models/index.d.ts +0 -5
  6. package/dist/document-models/index.d.ts.map +1 -1
  7. package/dist/document-models/index.js +0 -5
  8. package/dist/editors/account-transactions-editor/alchemyIntegration.d.ts +1 -0
  9. package/dist/editors/account-transactions-editor/alchemyIntegration.d.ts.map +1 -1
  10. package/dist/editors/account-transactions-editor/alchemyIntegration.js +1 -0
  11. package/dist/editors/account-transactions-editor/editor.d.ts.map +1 -1
  12. package/dist/editors/account-transactions-editor/editor.js +67 -10
  13. package/dist/editors/accounts-editor/components/AccountCard.d.ts.map +1 -1
  14. package/dist/editors/accounts-editor/components/AccountCard.js +1 -1
  15. package/dist/editors/accounts-editor/components/AccountForm.d.ts.map +1 -1
  16. package/dist/editors/accounts-editor/components/AccountForm.js +55 -16
  17. package/dist/editors/accounts-editor/components/AccountsList.js +1 -1
  18. package/dist/editors/accounts-editor/editor.d.ts.map +1 -1
  19. package/dist/editors/accounts-editor/editor.js +86 -44
  20. package/dist/editors/builder-team-admin/components/DriveContents.d.ts.map +1 -1
  21. package/dist/editors/builder-team-admin/components/DriveContents.js +1 -10
  22. package/dist/editors/contributor-billing/components/BillingOverview.d.ts +2 -1
  23. package/dist/editors/contributor-billing/components/BillingOverview.d.ts.map +1 -1
  24. package/dist/editors/contributor-billing/components/BillingOverview.js +2 -2
  25. package/dist/editors/contributor-billing/components/DashboardHome.d.ts.map +1 -1
  26. package/dist/editors/contributor-billing/components/DashboardHome.js +78 -8
  27. package/dist/editors/contributor-billing/components/DocumentDropZone.d.ts +13 -0
  28. package/dist/editors/contributor-billing/components/DocumentDropZone.d.ts.map +1 -0
  29. package/dist/editors/contributor-billing/components/DocumentDropZone.js +101 -0
  30. package/dist/editors/contributor-billing/components/DriveContents.d.ts +2 -1
  31. package/dist/editors/contributor-billing/components/DriveContents.d.ts.map +1 -1
  32. package/dist/editors/contributor-billing/components/DriveContents.js +7 -7
  33. package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -1
  34. package/dist/editors/contributor-billing/components/DriveExplorer.js +25 -3
  35. package/dist/editors/contributor-billing/components/FolderTree.d.ts.map +1 -1
  36. package/dist/editors/contributor-billing/components/FolderTree.js +37 -34
  37. package/dist/editors/contributor-billing/components/MonthReportCard.d.ts +2 -1
  38. package/dist/editors/contributor-billing/components/MonthReportCard.d.ts.map +1 -1
  39. package/dist/editors/contributor-billing/components/MonthReportCard.js +12 -2
  40. package/dist/editors/contributor-billing/components/MonthlyReportsOverview.d.ts +2 -1
  41. package/dist/editors/contributor-billing/components/MonthlyReportsOverview.d.ts.map +1 -1
  42. package/dist/editors/contributor-billing/components/MonthlyReportsOverview.js +69 -8
  43. package/dist/editors/contributor-billing/components/ReportingView.d.ts.map +1 -1
  44. package/dist/editors/contributor-billing/components/ReportingView.js +38 -9
  45. package/dist/editors/contributor-billing/components/SubscriptionsOverview.d.ts.map +1 -1
  46. package/dist/editors/contributor-billing/components/SubscriptionsOverview.js +1 -1
  47. package/dist/editors/contributor-billing/config.d.ts.map +1 -1
  48. package/dist/editors/contributor-billing/config.js +2 -1
  49. package/dist/editors/contributor-billing/hooks/useDocumentAutoPlacement.d.ts +18 -0
  50. package/dist/editors/contributor-billing/hooks/useDocumentAutoPlacement.d.ts.map +1 -0
  51. package/dist/editors/contributor-billing/hooks/useDocumentAutoPlacement.js +149 -0
  52. package/dist/editors/contributor-billing/hooks/useMonthlyReports.d.ts.map +1 -1
  53. package/dist/editors/contributor-billing/hooks/useMonthlyReports.js +30 -4
  54. package/dist/editors/editors.d.ts.map +1 -1
  55. package/dist/editors/editors.js +0 -10
  56. package/dist/editors/expense-report/components/SetOwner.d.ts.map +1 -1
  57. package/dist/editors/expense-report/components/SetOwner.js +43 -2
  58. package/dist/editors/expense-report/components/WalletsTable.d.ts.map +1 -1
  59. package/dist/editors/expense-report/components/WalletsTable.js +22 -3
  60. package/dist/editors/expense-report/editor.d.ts.map +1 -1
  61. package/dist/editors/expense-report/editor.js +20 -2
  62. package/dist/editors/expense-report/hooks/useSyncWallet.d.ts.map +1 -1
  63. package/dist/editors/expense-report/hooks/useSyncWallet.js +41 -24
  64. package/dist/editors/index.d.ts +0 -3
  65. package/dist/editors/index.d.ts.map +1 -1
  66. package/dist/editors/index.js +0 -3
  67. package/dist/editors/operational-hub-profile-editor/components/ProfileOverview.d.ts +10 -0
  68. package/dist/editors/operational-hub-profile-editor/components/ProfileOverview.d.ts.map +1 -0
  69. package/dist/editors/operational-hub-profile-editor/components/ProfileOverview.js +114 -0
  70. package/dist/editors/operational-hub-profile-editor/components/SubteamsPicker.d.ts.map +1 -1
  71. package/dist/editors/operational-hub-profile-editor/components/SubteamsPicker.js +44 -4
  72. package/dist/editors/operational-hub-profile-editor/editor.d.ts.map +1 -1
  73. package/dist/editors/operational-hub-profile-editor/editor.js +7 -2
  74. package/dist/editors/snapshot-report-editor/components/SetOwner.d.ts.map +1 -1
  75. package/dist/editors/snapshot-report-editor/components/SetOwner.js +43 -2
  76. package/dist/editors/snapshot-report-editor/editor.d.ts.map +1 -1
  77. package/dist/editors/snapshot-report-editor/editor.js +9 -2
  78. package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.d.ts.map +1 -1
  79. package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.js +120 -27
  80. package/dist/editors/snapshot-report-editor/utils/balanceCalculations.d.ts +5 -1
  81. package/dist/editors/snapshot-report-editor/utils/balanceCalculations.d.ts.map +1 -1
  82. package/dist/editors/snapshot-report-editor/utils/balanceCalculations.js +47 -1
  83. package/dist/powerhouse.manifest.json +0 -26
  84. package/dist/style.css +1404 -266
  85. package/dist/subgraphs/resources-services/resolvers.d.ts.map +1 -1
  86. package/dist/subgraphs/resources-services/resolvers.js +70 -34
  87. package/dist/subgraphs/resources-services/schema.d.ts.map +1 -1
  88. package/dist/subgraphs/resources-services/schema.js +86 -47
  89. package/package.json +29 -5
  90. package/dist/document-models/resource-instance/actions.d.ts +0 -31
  91. package/dist/document-models/resource-instance/actions.d.ts.map +0 -1
  92. package/dist/document-models/resource-instance/actions.js +0 -8
  93. package/dist/document-models/resource-instance/gen/actions.d.ts +0 -6
  94. package/dist/document-models/resource-instance/gen/actions.d.ts.map +0 -1
  95. package/dist/document-models/resource-instance/gen/actions.js +0 -2
  96. package/dist/document-models/resource-instance/gen/configuration-management/actions.d.ts +0 -20
  97. package/dist/document-models/resource-instance/gen/configuration-management/actions.d.ts.map +0 -1
  98. package/dist/document-models/resource-instance/gen/configuration-management/actions.js +0 -1
  99. package/dist/document-models/resource-instance/gen/configuration-management/creators.d.ts +0 -7
  100. package/dist/document-models/resource-instance/gen/configuration-management/creators.d.ts.map +0 -1
  101. package/dist/document-models/resource-instance/gen/configuration-management/creators.js +0 -6
  102. package/dist/document-models/resource-instance/gen/configuration-management/error.d.ts +0 -35
  103. package/dist/document-models/resource-instance/gen/configuration-management/error.d.ts.map +0 -1
  104. package/dist/document-models/resource-instance/gen/configuration-management/error.js +0 -32
  105. package/dist/document-models/resource-instance/gen/configuration-management/operations.d.ts +0 -10
  106. package/dist/document-models/resource-instance/gen/configuration-management/operations.d.ts.map +0 -1
  107. package/dist/document-models/resource-instance/gen/configuration-management/operations.js +0 -1
  108. package/dist/document-models/resource-instance/gen/creators.d.ts +0 -5
  109. package/dist/document-models/resource-instance/gen/creators.d.ts.map +0 -1
  110. package/dist/document-models/resource-instance/gen/creators.js +0 -4
  111. package/dist/document-models/resource-instance/gen/document-model.d.ts +0 -3
  112. package/dist/document-models/resource-instance/gen/document-model.d.ts.map +0 -1
  113. package/dist/document-models/resource-instance/gen/document-model.js +0 -394
  114. package/dist/document-models/resource-instance/gen/document-schema.d.ts +0 -104
  115. package/dist/document-models/resource-instance/gen/document-schema.d.ts.map +0 -1
  116. package/dist/document-models/resource-instance/gen/document-schema.js +0 -33
  117. package/dist/document-models/resource-instance/gen/document-type.d.ts +0 -2
  118. package/dist/document-models/resource-instance/gen/document-type.d.ts.map +0 -1
  119. package/dist/document-models/resource-instance/gen/document-type.js +0 -1
  120. package/dist/document-models/resource-instance/gen/index.d.ts +0 -13
  121. package/dist/document-models/resource-instance/gen/index.d.ts.map +0 -1
  122. package/dist/document-models/resource-instance/gen/index.js +0 -12
  123. package/dist/document-models/resource-instance/gen/instance-management/actions.d.ts +0 -64
  124. package/dist/document-models/resource-instance/gen/instance-management/actions.d.ts.map +0 -1
  125. package/dist/document-models/resource-instance/gen/instance-management/actions.js +0 -1
  126. package/dist/document-models/resource-instance/gen/instance-management/creators.d.ts +0 -18
  127. package/dist/document-models/resource-instance/gen/instance-management/creators.d.ts.map +0 -1
  128. package/dist/document-models/resource-instance/gen/instance-management/creators.js +0 -17
  129. package/dist/document-models/resource-instance/gen/instance-management/error.d.ts +0 -99
  130. package/dist/document-models/resource-instance/gen/instance-management/error.d.ts.map +0 -1
  131. package/dist/document-models/resource-instance/gen/instance-management/error.js +0 -112
  132. package/dist/document-models/resource-instance/gen/instance-management/operations.d.ts +0 -21
  133. package/dist/document-models/resource-instance/gen/instance-management/operations.d.ts.map +0 -1
  134. package/dist/document-models/resource-instance/gen/instance-management/operations.js +0 -1
  135. package/dist/document-models/resource-instance/gen/ph-factories.d.ts +0 -23
  136. package/dist/document-models/resource-instance/gen/ph-factories.d.ts.map +0 -1
  137. package/dist/document-models/resource-instance/gen/ph-factories.js +0 -67
  138. package/dist/document-models/resource-instance/gen/reducer.d.ts +0 -3
  139. package/dist/document-models/resource-instance/gen/reducer.d.ts.map +0 -1
  140. package/dist/document-models/resource-instance/gen/reducer.js +0 -109
  141. package/dist/document-models/resource-instance/gen/schema/index.d.ts +0 -3
  142. package/dist/document-models/resource-instance/gen/schema/index.d.ts.map +0 -1
  143. package/dist/document-models/resource-instance/gen/schema/index.js +0 -2
  144. package/dist/document-models/resource-instance/gen/schema/types.d.ts +0 -269
  145. package/dist/document-models/resource-instance/gen/schema/types.d.ts.map +0 -1
  146. package/dist/document-models/resource-instance/gen/schema/types.js +0 -1
  147. package/dist/document-models/resource-instance/gen/schema/zod.d.ts +0 -44
  148. package/dist/document-models/resource-instance/gen/schema/zod.d.ts.map +0 -1
  149. package/dist/document-models/resource-instance/gen/schema/zod.js +0 -184
  150. package/dist/document-models/resource-instance/gen/types.d.ts +0 -12
  151. package/dist/document-models/resource-instance/gen/types.d.ts.map +0 -1
  152. package/dist/document-models/resource-instance/gen/types.js +0 -1
  153. package/dist/document-models/resource-instance/gen/utils.d.ts +0 -15
  154. package/dist/document-models/resource-instance/gen/utils.d.ts.map +0 -1
  155. package/dist/document-models/resource-instance/gen/utils.js +0 -71
  156. package/dist/document-models/resource-instance/hooks.d.ts +0 -14
  157. package/dist/document-models/resource-instance/hooks.d.ts.map +0 -1
  158. package/dist/document-models/resource-instance/hooks.js +0 -25
  159. package/dist/document-models/resource-instance/index.d.ts +0 -6
  160. package/dist/document-models/resource-instance/index.d.ts.map +0 -1
  161. package/dist/document-models/resource-instance/index.js +0 -5
  162. package/dist/document-models/resource-instance/module.d.ts +0 -5
  163. package/dist/document-models/resource-instance/module.d.ts.map +0 -1
  164. package/dist/document-models/resource-instance/module.js +0 -11
  165. package/dist/document-models/resource-instance/src/index.d.ts +0 -2
  166. package/dist/document-models/resource-instance/src/index.d.ts.map +0 -1
  167. package/dist/document-models/resource-instance/src/index.js +0 -1
  168. package/dist/document-models/resource-instance/src/reducers/configuration-management.d.ts +0 -3
  169. package/dist/document-models/resource-instance/src/reducers/configuration-management.d.ts.map +0 -1
  170. package/dist/document-models/resource-instance/src/reducers/configuration-management.js +0 -73
  171. package/dist/document-models/resource-instance/src/reducers/instance-management.d.ts +0 -3
  172. package/dist/document-models/resource-instance/src/reducers/instance-management.d.ts.map +0 -1
  173. package/dist/document-models/resource-instance/src/reducers/instance-management.js +0 -109
  174. package/dist/document-models/resource-instance/src/reducers/usage-tracking.d.ts +0 -2
  175. package/dist/document-models/resource-instance/src/reducers/usage-tracking.d.ts.map +0 -1
  176. package/dist/document-models/resource-instance/src/reducers/usage-tracking.js +0 -4
  177. package/dist/document-models/resource-instance/src/tests/configuration-management.test.d.ts +0 -6
  178. package/dist/document-models/resource-instance/src/tests/configuration-management.test.d.ts.map +0 -1
  179. package/dist/document-models/resource-instance/src/tests/configuration-management.test.js +0 -49
  180. package/dist/document-models/resource-instance/src/tests/document-model.test.d.ts +0 -10
  181. package/dist/document-models/resource-instance/src/tests/document-model.test.d.ts.map +0 -1
  182. package/dist/document-models/resource-instance/src/tests/document-model.test.js +0 -104
  183. package/dist/document-models/resource-instance/src/tests/instance-management.test.d.ts +0 -6
  184. package/dist/document-models/resource-instance/src/tests/instance-management.test.d.ts.map +0 -1
  185. package/dist/document-models/resource-instance/src/tests/instance-management.test.js +0 -59
  186. package/dist/document-models/resource-instance/src/tests/usage-tracking.test.d.ts +0 -6
  187. package/dist/document-models/resource-instance/src/tests/usage-tracking.test.d.ts.map +0 -1
  188. package/dist/document-models/resource-instance/src/tests/usage-tracking.test.js +0 -10
  189. package/dist/document-models/resource-instance/src/utils.d.ts +0 -2
  190. package/dist/document-models/resource-instance/src/utils.d.ts.map +0 -1
  191. package/dist/document-models/resource-instance/src/utils.js +0 -1
  192. package/dist/document-models/resource-instance/tests/configuration-management.test.d.ts +0 -2
  193. package/dist/document-models/resource-instance/tests/configuration-management.test.d.ts.map +0 -1
  194. package/dist/document-models/resource-instance/tests/configuration-management.test.js +0 -45
  195. package/dist/document-models/resource-instance/tests/document-model.test.d.ts +0 -10
  196. package/dist/document-models/resource-instance/tests/document-model.test.d.ts.map +0 -1
  197. package/dist/document-models/resource-instance/tests/document-model.test.js +0 -104
  198. package/dist/document-models/resource-instance/tests/instance-management.test.d.ts +0 -2
  199. package/dist/document-models/resource-instance/tests/instance-management.test.d.ts.map +0 -1
  200. package/dist/document-models/resource-instance/tests/instance-management.test.js +0 -155
  201. package/dist/document-models/resource-instance/tests/usage-tracking.test.d.ts +0 -2
  202. package/dist/document-models/resource-instance/tests/usage-tracking.test.d.ts.map +0 -1
  203. package/dist/document-models/resource-instance/tests/usage-tracking.test.js +0 -6
  204. package/dist/document-models/resource-instance/utils.d.ts +0 -14
  205. package/dist/document-models/resource-instance/utils.d.ts.map +0 -1
  206. package/dist/document-models/resource-instance/utils.js +0 -7
  207. package/dist/document-models/resource-template/actions.d.ts +0 -40
  208. package/dist/document-models/resource-template/actions.d.ts.map +0 -1
  209. package/dist/document-models/resource-template/actions.js +0 -13
  210. package/dist/document-models/resource-template/gen/actions.d.ts +0 -16
  211. package/dist/document-models/resource-template/gen/actions.d.ts.map +0 -1
  212. package/dist/document-models/resource-template/gen/actions.js +0 -7
  213. package/dist/document-models/resource-template/gen/audience-management/actions.d.ts +0 -12
  214. package/dist/document-models/resource-template/gen/audience-management/actions.d.ts.map +0 -1
  215. package/dist/document-models/resource-template/gen/audience-management/actions.js +0 -1
  216. package/dist/document-models/resource-template/gen/audience-management/creators.d.ts +0 -5
  217. package/dist/document-models/resource-template/gen/audience-management/creators.d.ts.map +0 -1
  218. package/dist/document-models/resource-template/gen/audience-management/creators.js +0 -4
  219. package/dist/document-models/resource-template/gen/audience-management/error.d.ts +0 -21
  220. package/dist/document-models/resource-template/gen/audience-management/error.d.ts.map +0 -1
  221. package/dist/document-models/resource-template/gen/audience-management/error.js +0 -16
  222. package/dist/document-models/resource-template/gen/audience-management/operations.d.ts +0 -8
  223. package/dist/document-models/resource-template/gen/audience-management/operations.d.ts.map +0 -1
  224. package/dist/document-models/resource-template/gen/audience-management/operations.js +0 -1
  225. package/dist/document-models/resource-template/gen/content-section-management/actions.d.ts +0 -20
  226. package/dist/document-models/resource-template/gen/content-section-management/actions.d.ts.map +0 -1
  227. package/dist/document-models/resource-template/gen/content-section-management/actions.js +0 -1
  228. package/dist/document-models/resource-template/gen/content-section-management/creators.d.ts +0 -7
  229. package/dist/document-models/resource-template/gen/content-section-management/creators.d.ts.map +0 -1
  230. package/dist/document-models/resource-template/gen/content-section-management/creators.js +0 -6
  231. package/dist/document-models/resource-template/gen/content-section-management/error.d.ts +0 -2
  232. package/dist/document-models/resource-template/gen/content-section-management/error.d.ts.map +0 -1
  233. package/dist/document-models/resource-template/gen/content-section-management/error.js +0 -1
  234. package/dist/document-models/resource-template/gen/content-section-management/operations.d.ts +0 -10
  235. package/dist/document-models/resource-template/gen/content-section-management/operations.d.ts.map +0 -1
  236. package/dist/document-models/resource-template/gen/content-section-management/operations.js +0 -1
  237. package/dist/document-models/resource-template/gen/creators.d.ts +0 -15
  238. package/dist/document-models/resource-template/gen/creators.d.ts.map +0 -1
  239. package/dist/document-models/resource-template/gen/creators.js +0 -14
  240. package/dist/document-models/resource-template/gen/document-model.d.ts +0 -3
  241. package/dist/document-models/resource-template/gen/document-model.d.ts.map +0 -1
  242. package/dist/document-models/resource-template/gen/document-model.js +0 -505
  243. package/dist/document-models/resource-template/gen/document-schema.d.ts +0 -92
  244. package/dist/document-models/resource-template/gen/document-schema.d.ts.map +0 -1
  245. package/dist/document-models/resource-template/gen/document-schema.js +0 -33
  246. package/dist/document-models/resource-template/gen/document-type.d.ts +0 -2
  247. package/dist/document-models/resource-template/gen/document-type.d.ts.map +0 -1
  248. package/dist/document-models/resource-template/gen/document-type.js +0 -1
  249. package/dist/document-models/resource-template/gen/facet-targeting/actions.d.ts +0 -20
  250. package/dist/document-models/resource-template/gen/facet-targeting/actions.d.ts.map +0 -1
  251. package/dist/document-models/resource-template/gen/facet-targeting/actions.js +0 -1
  252. package/dist/document-models/resource-template/gen/facet-targeting/creators.d.ts +0 -7
  253. package/dist/document-models/resource-template/gen/facet-targeting/creators.d.ts.map +0 -1
  254. package/dist/document-models/resource-template/gen/facet-targeting/creators.js +0 -6
  255. package/dist/document-models/resource-template/gen/facet-targeting/error.d.ts +0 -28
  256. package/dist/document-models/resource-template/gen/facet-targeting/error.d.ts.map +0 -1
  257. package/dist/document-models/resource-template/gen/facet-targeting/error.js +0 -23
  258. package/dist/document-models/resource-template/gen/facet-targeting/operations.d.ts +0 -10
  259. package/dist/document-models/resource-template/gen/facet-targeting/operations.d.ts.map +0 -1
  260. package/dist/document-models/resource-template/gen/facet-targeting/operations.js +0 -1
  261. package/dist/document-models/resource-template/gen/index.d.ts +0 -18
  262. package/dist/document-models/resource-template/gen/index.d.ts.map +0 -1
  263. package/dist/document-models/resource-template/gen/index.js +0 -17
  264. package/dist/document-models/resource-template/gen/option-group-management/actions.d.ts +0 -32
  265. package/dist/document-models/resource-template/gen/option-group-management/actions.d.ts.map +0 -1
  266. package/dist/document-models/resource-template/gen/option-group-management/actions.js +0 -1
  267. package/dist/document-models/resource-template/gen/option-group-management/creators.d.ts +0 -10
  268. package/dist/document-models/resource-template/gen/option-group-management/creators.d.ts.map +0 -1
  269. package/dist/document-models/resource-template/gen/option-group-management/creators.js +0 -9
  270. package/dist/document-models/resource-template/gen/option-group-management/error.d.ts +0 -28
  271. package/dist/document-models/resource-template/gen/option-group-management/error.d.ts.map +0 -1
  272. package/dist/document-models/resource-template/gen/option-group-management/error.js +0 -23
  273. package/dist/document-models/resource-template/gen/option-group-management/operations.d.ts +0 -13
  274. package/dist/document-models/resource-template/gen/option-group-management/operations.d.ts.map +0 -1
  275. package/dist/document-models/resource-template/gen/option-group-management/operations.js +0 -1
  276. package/dist/document-models/resource-template/gen/ph-factories.d.ts +0 -23
  277. package/dist/document-models/resource-template/gen/ph-factories.d.ts.map +0 -1
  278. package/dist/document-models/resource-template/gen/ph-factories.js +0 -63
  279. package/dist/document-models/resource-template/gen/reducer.d.ts +0 -3
  280. package/dist/document-models/resource-template/gen/reducer.d.ts.map +0 -1
  281. package/dist/document-models/resource-template/gen/reducer.js +0 -159
  282. package/dist/document-models/resource-template/gen/schema/index.d.ts +0 -3
  283. package/dist/document-models/resource-template/gen/schema/index.d.ts.map +0 -1
  284. package/dist/document-models/resource-template/gen/schema/index.js +0 -2
  285. package/dist/document-models/resource-template/gen/schema/types.d.ts +0 -371
  286. package/dist/document-models/resource-template/gen/schema/types.d.ts.map +0 -1
  287. package/dist/document-models/resource-template/gen/schema/types.js +0 -1
  288. package/dist/document-models/resource-template/gen/schema/zod.d.ts +0 -52
  289. package/dist/document-models/resource-template/gen/schema/zod.d.ts.map +0 -1
  290. package/dist/document-models/resource-template/gen/schema/zod.js +0 -312
  291. package/dist/document-models/resource-template/gen/service-category-management/actions.d.ts +0 -12
  292. package/dist/document-models/resource-template/gen/service-category-management/actions.d.ts.map +0 -1
  293. package/dist/document-models/resource-template/gen/service-category-management/actions.js +0 -1
  294. package/dist/document-models/resource-template/gen/service-category-management/creators.d.ts +0 -5
  295. package/dist/document-models/resource-template/gen/service-category-management/creators.d.ts.map +0 -1
  296. package/dist/document-models/resource-template/gen/service-category-management/creators.js +0 -4
  297. package/dist/document-models/resource-template/gen/service-category-management/error.d.ts +0 -2
  298. package/dist/document-models/resource-template/gen/service-category-management/error.d.ts.map +0 -1
  299. package/dist/document-models/resource-template/gen/service-category-management/error.js +0 -1
  300. package/dist/document-models/resource-template/gen/service-category-management/operations.d.ts +0 -8
  301. package/dist/document-models/resource-template/gen/service-category-management/operations.d.ts.map +0 -1
  302. package/dist/document-models/resource-template/gen/service-category-management/operations.js +0 -1
  303. package/dist/document-models/resource-template/gen/service-management/actions.d.ts +0 -24
  304. package/dist/document-models/resource-template/gen/service-management/actions.d.ts.map +0 -1
  305. package/dist/document-models/resource-template/gen/service-management/actions.js +0 -1
  306. package/dist/document-models/resource-template/gen/service-management/creators.d.ts +0 -8
  307. package/dist/document-models/resource-template/gen/service-management/creators.d.ts.map +0 -1
  308. package/dist/document-models/resource-template/gen/service-management/creators.js +0 -7
  309. package/dist/document-models/resource-template/gen/service-management/error.d.ts +0 -52
  310. package/dist/document-models/resource-template/gen/service-management/error.d.ts.map +0 -1
  311. package/dist/document-models/resource-template/gen/service-management/error.js +0 -49
  312. package/dist/document-models/resource-template/gen/service-management/operations.d.ts +0 -11
  313. package/dist/document-models/resource-template/gen/service-management/operations.d.ts.map +0 -1
  314. package/dist/document-models/resource-template/gen/service-management/operations.js +0 -1
  315. package/dist/document-models/resource-template/gen/template-management/actions.d.ts +0 -20
  316. package/dist/document-models/resource-template/gen/template-management/actions.d.ts.map +0 -1
  317. package/dist/document-models/resource-template/gen/template-management/actions.js +0 -1
  318. package/dist/document-models/resource-template/gen/template-management/creators.d.ts +0 -7
  319. package/dist/document-models/resource-template/gen/template-management/creators.d.ts.map +0 -1
  320. package/dist/document-models/resource-template/gen/template-management/creators.js +0 -6
  321. package/dist/document-models/resource-template/gen/template-management/error.d.ts +0 -2
  322. package/dist/document-models/resource-template/gen/template-management/error.d.ts.map +0 -1
  323. package/dist/document-models/resource-template/gen/template-management/error.js +0 -1
  324. package/dist/document-models/resource-template/gen/template-management/operations.d.ts +0 -10
  325. package/dist/document-models/resource-template/gen/template-management/operations.d.ts.map +0 -1
  326. package/dist/document-models/resource-template/gen/template-management/operations.js +0 -1
  327. package/dist/document-models/resource-template/gen/types.d.ts +0 -12
  328. package/dist/document-models/resource-template/gen/types.d.ts.map +0 -1
  329. package/dist/document-models/resource-template/gen/types.js +0 -1
  330. package/dist/document-models/resource-template/gen/utils.d.ts +0 -15
  331. package/dist/document-models/resource-template/gen/utils.d.ts.map +0 -1
  332. package/dist/document-models/resource-template/gen/utils.js +0 -67
  333. package/dist/document-models/resource-template/hooks.d.ts +0 -14
  334. package/dist/document-models/resource-template/hooks.d.ts.map +0 -1
  335. package/dist/document-models/resource-template/hooks.js +0 -25
  336. package/dist/document-models/resource-template/index.d.ts +0 -6
  337. package/dist/document-models/resource-template/index.d.ts.map +0 -1
  338. package/dist/document-models/resource-template/index.js +0 -5
  339. package/dist/document-models/resource-template/module.d.ts +0 -5
  340. package/dist/document-models/resource-template/module.d.ts.map +0 -1
  341. package/dist/document-models/resource-template/module.js +0 -11
  342. package/dist/document-models/resource-template/src/index.d.ts +0 -2
  343. package/dist/document-models/resource-template/src/index.d.ts.map +0 -1
  344. package/dist/document-models/resource-template/src/index.js +0 -1
  345. package/dist/document-models/resource-template/src/reducers/audience-management.d.ts +0 -3
  346. package/dist/document-models/resource-template/src/reducers/audience-management.d.ts.map +0 -1
  347. package/dist/document-models/resource-template/src/reducers/audience-management.js +0 -17
  348. package/dist/document-models/resource-template/src/reducers/content-section-management.d.ts +0 -3
  349. package/dist/document-models/resource-template/src/reducers/content-section-management.d.ts.map +0 -1
  350. package/dist/document-models/resource-template/src/reducers/content-section-management.js +0 -44
  351. package/dist/document-models/resource-template/src/reducers/facet-preset-management.d.ts +0 -59
  352. package/dist/document-models/resource-template/src/reducers/facet-preset-management.d.ts.map +0 -1
  353. package/dist/document-models/resource-template/src/reducers/facet-preset-management.js +0 -52
  354. package/dist/document-models/resource-template/src/reducers/facet-targeting.d.ts +0 -3
  355. package/dist/document-models/resource-template/src/reducers/facet-targeting.d.ts.map +0 -1
  356. package/dist/document-models/resource-template/src/reducers/facet-targeting.js +0 -47
  357. package/dist/document-models/resource-template/src/reducers/option-group-management.d.ts +0 -3
  358. package/dist/document-models/resource-template/src/reducers/option-group-management.d.ts.map +0 -1
  359. package/dist/document-models/resource-template/src/reducers/option-group-management.js +0 -85
  360. package/dist/document-models/resource-template/src/reducers/service-category-management.d.ts +0 -3
  361. package/dist/document-models/resource-template/src/reducers/service-category-management.d.ts.map +0 -1
  362. package/dist/document-models/resource-template/src/reducers/service-category-management.js +0 -10
  363. package/dist/document-models/resource-template/src/reducers/service-management.d.ts +0 -3
  364. package/dist/document-models/resource-template/src/reducers/service-management.d.ts.map +0 -1
  365. package/dist/document-models/resource-template/src/reducers/service-management.js +0 -71
  366. package/dist/document-models/resource-template/src/reducers/template-management.d.ts +0 -3
  367. package/dist/document-models/resource-template/src/reducers/template-management.d.ts.map +0 -1
  368. package/dist/document-models/resource-template/src/reducers/template-management.js +0 -32
  369. package/dist/document-models/resource-template/src/tests/audience-management.test.d.ts +0 -6
  370. package/dist/document-models/resource-template/src/tests/audience-management.test.d.ts.map +0 -1
  371. package/dist/document-models/resource-template/src/tests/audience-management.test.js +0 -29
  372. package/dist/document-models/resource-template/src/tests/document-model.test.d.ts +0 -10
  373. package/dist/document-models/resource-template/src/tests/document-model.test.d.ts.map +0 -1
  374. package/dist/document-models/resource-template/src/tests/document-model.test.js +0 -104
  375. package/dist/document-models/resource-template/src/tests/facet-targeting.test.d.ts +0 -6
  376. package/dist/document-models/resource-template/src/tests/facet-targeting.test.d.ts.map +0 -1
  377. package/dist/document-models/resource-template/src/tests/facet-targeting.test.js +0 -49
  378. package/dist/document-models/resource-template/src/tests/option-group-management.test.d.ts +0 -6
  379. package/dist/document-models/resource-template/src/tests/option-group-management.test.d.ts.map +0 -1
  380. package/dist/document-models/resource-template/src/tests/option-group-management.test.js +0 -39
  381. package/dist/document-models/resource-template/src/tests/service-category-management.test.d.ts +0 -6
  382. package/dist/document-models/resource-template/src/tests/service-category-management.test.d.ts.map +0 -1
  383. package/dist/document-models/resource-template/src/tests/service-category-management.test.js +0 -29
  384. package/dist/document-models/resource-template/src/tests/service-management.test.d.ts +0 -6
  385. package/dist/document-models/resource-template/src/tests/service-management.test.d.ts.map +0 -1
  386. package/dist/document-models/resource-template/src/tests/service-management.test.js +0 -59
  387. package/dist/document-models/resource-template/src/tests/template-management.test.d.ts +0 -6
  388. package/dist/document-models/resource-template/src/tests/template-management.test.d.ts.map +0 -1
  389. package/dist/document-models/resource-template/src/tests/template-management.test.js +0 -49
  390. package/dist/document-models/resource-template/src/utils.d.ts +0 -2
  391. package/dist/document-models/resource-template/src/utils.d.ts.map +0 -1
  392. package/dist/document-models/resource-template/src/utils.js +0 -1
  393. package/dist/document-models/resource-template/tests/audience-management.test.d.ts +0 -2
  394. package/dist/document-models/resource-template/tests/audience-management.test.d.ts.map +0 -1
  395. package/dist/document-models/resource-template/tests/audience-management.test.js +0 -25
  396. package/dist/document-models/resource-template/tests/content-section-management.test.d.ts +0 -2
  397. package/dist/document-models/resource-template/tests/content-section-management.test.d.ts.map +0 -1
  398. package/dist/document-models/resource-template/tests/content-section-management.test.js +0 -45
  399. package/dist/document-models/resource-template/tests/document-model.test.d.ts +0 -10
  400. package/dist/document-models/resource-template/tests/document-model.test.d.ts.map +0 -1
  401. package/dist/document-models/resource-template/tests/document-model.test.js +0 -104
  402. package/dist/document-models/resource-template/tests/facet-targeting.test.d.ts +0 -2
  403. package/dist/document-models/resource-template/tests/facet-targeting.test.d.ts.map +0 -1
  404. package/dist/document-models/resource-template/tests/facet-targeting.test.js +0 -45
  405. package/dist/document-models/resource-template/tests/option-group-management.test.d.ts +0 -2
  406. package/dist/document-models/resource-template/tests/option-group-management.test.d.ts.map +0 -1
  407. package/dist/document-models/resource-template/tests/option-group-management.test.js +0 -75
  408. package/dist/document-models/resource-template/tests/service-category-management.test.d.ts +0 -2
  409. package/dist/document-models/resource-template/tests/service-category-management.test.d.ts.map +0 -1
  410. package/dist/document-models/resource-template/tests/service-category-management.test.js +0 -25
  411. package/dist/document-models/resource-template/tests/service-management.test.d.ts +0 -2
  412. package/dist/document-models/resource-template/tests/service-management.test.d.ts.map +0 -1
  413. package/dist/document-models/resource-template/tests/service-management.test.js +0 -55
  414. package/dist/document-models/resource-template/tests/template-management.test.d.ts +0 -2
  415. package/dist/document-models/resource-template/tests/template-management.test.d.ts.map +0 -1
  416. package/dist/document-models/resource-template/tests/template-management.test.js +0 -45
  417. package/dist/document-models/resource-template/utils.d.ts +0 -14
  418. package/dist/document-models/resource-template/utils.d.ts.map +0 -1
  419. package/dist/document-models/resource-template/utils.js +0 -7
  420. package/dist/document-models/service-offering/actions.d.ts +0 -47
  421. package/dist/document-models/service-offering/actions.d.ts.map +0 -1
  422. package/dist/document-models/service-offering/actions.js +0 -10
  423. package/dist/document-models/service-offering/gen/actions.d.ts +0 -10
  424. package/dist/document-models/service-offering/gen/actions.d.ts.map +0 -1
  425. package/dist/document-models/service-offering/gen/actions.js +0 -4
  426. package/dist/document-models/service-offering/gen/creators.d.ts +0 -9
  427. package/dist/document-models/service-offering/gen/creators.d.ts.map +0 -1
  428. package/dist/document-models/service-offering/gen/creators.js +0 -8
  429. package/dist/document-models/service-offering/gen/document-model.d.ts +0 -3
  430. package/dist/document-models/service-offering/gen/document-model.d.ts.map +0 -1
  431. package/dist/document-models/service-offering/gen/document-model.js +0 -743
  432. package/dist/document-models/service-offering/gen/document-schema.d.ts +0 -92
  433. package/dist/document-models/service-offering/gen/document-schema.d.ts.map +0 -1
  434. package/dist/document-models/service-offering/gen/document-schema.js +0 -33
  435. package/dist/document-models/service-offering/gen/document-type.d.ts +0 -2
  436. package/dist/document-models/service-offering/gen/document-type.d.ts.map +0 -1
  437. package/dist/document-models/service-offering/gen/document-type.js +0 -1
  438. package/dist/document-models/service-offering/gen/index.d.ts +0 -15
  439. package/dist/document-models/service-offering/gen/index.d.ts.map +0 -1
  440. package/dist/document-models/service-offering/gen/index.js +0 -14
  441. package/dist/document-models/service-offering/gen/offering-management/actions.d.ts +0 -60
  442. package/dist/document-models/service-offering/gen/offering-management/actions.d.ts.map +0 -1
  443. package/dist/document-models/service-offering/gen/offering-management/actions.js +0 -1
  444. package/dist/document-models/service-offering/gen/offering-management/creators.d.ts +0 -17
  445. package/dist/document-models/service-offering/gen/offering-management/creators.d.ts.map +0 -1
  446. package/dist/document-models/service-offering/gen/offering-management/creators.js +0 -16
  447. package/dist/document-models/service-offering/gen/offering-management/error.d.ts +0 -54
  448. package/dist/document-models/service-offering/gen/offering-management/error.d.ts.map +0 -1
  449. package/dist/document-models/service-offering/gen/offering-management/error.js +0 -50
  450. package/dist/document-models/service-offering/gen/offering-management/operations.d.ts +0 -20
  451. package/dist/document-models/service-offering/gen/offering-management/operations.d.ts.map +0 -1
  452. package/dist/document-models/service-offering/gen/offering-management/operations.js +0 -1
  453. package/dist/document-models/service-offering/gen/option-group-management/actions.d.ts +0 -16
  454. package/dist/document-models/service-offering/gen/option-group-management/actions.d.ts.map +0 -1
  455. package/dist/document-models/service-offering/gen/option-group-management/actions.js +0 -1
  456. package/dist/document-models/service-offering/gen/option-group-management/creators.d.ts +0 -6
  457. package/dist/document-models/service-offering/gen/option-group-management/creators.d.ts.map +0 -1
  458. package/dist/document-models/service-offering/gen/option-group-management/creators.js +0 -5
  459. package/dist/document-models/service-offering/gen/option-group-management/error.d.ts +0 -28
  460. package/dist/document-models/service-offering/gen/option-group-management/error.d.ts.map +0 -1
  461. package/dist/document-models/service-offering/gen/option-group-management/error.js +0 -23
  462. package/dist/document-models/service-offering/gen/option-group-management/operations.d.ts +0 -9
  463. package/dist/document-models/service-offering/gen/option-group-management/operations.d.ts.map +0 -1
  464. package/dist/document-models/service-offering/gen/option-group-management/operations.js +0 -1
  465. package/dist/document-models/service-offering/gen/ph-factories.d.ts +0 -23
  466. package/dist/document-models/service-offering/gen/ph-factories.d.ts.map +0 -1
  467. package/dist/document-models/service-offering/gen/ph-factories.js +0 -63
  468. package/dist/document-models/service-offering/gen/reducer.d.ts +0 -3
  469. package/dist/document-models/service-offering/gen/reducer.d.ts.map +0 -1
  470. package/dist/document-models/service-offering/gen/reducer.js +0 -191
  471. package/dist/document-models/service-offering/gen/schema/index.d.ts +0 -3
  472. package/dist/document-models/service-offering/gen/schema/index.d.ts.map +0 -1
  473. package/dist/document-models/service-offering/gen/schema/index.js +0 -2
  474. package/dist/document-models/service-offering/gen/schema/types.d.ts +0 -509
  475. package/dist/document-models/service-offering/gen/schema/types.d.ts.map +0 -1
  476. package/dist/document-models/service-offering/gen/schema/types.js +0 -1
  477. package/dist/document-models/service-offering/gen/schema/zod.d.ts +0 -86
  478. package/dist/document-models/service-offering/gen/schema/zod.d.ts.map +0 -1
  479. package/dist/document-models/service-offering/gen/schema/zod.js +0 -494
  480. package/dist/document-models/service-offering/gen/service-management/actions.d.ts +0 -24
  481. package/dist/document-models/service-offering/gen/service-management/actions.d.ts.map +0 -1
  482. package/dist/document-models/service-offering/gen/service-management/actions.js +0 -1
  483. package/dist/document-models/service-offering/gen/service-management/creators.d.ts +0 -8
  484. package/dist/document-models/service-offering/gen/service-management/creators.d.ts.map +0 -1
  485. package/dist/document-models/service-offering/gen/service-management/creators.js +0 -7
  486. package/dist/document-models/service-offering/gen/service-management/error.d.ts +0 -52
  487. package/dist/document-models/service-offering/gen/service-management/error.d.ts.map +0 -1
  488. package/dist/document-models/service-offering/gen/service-management/error.js +0 -49
  489. package/dist/document-models/service-offering/gen/service-management/operations.d.ts +0 -11
  490. package/dist/document-models/service-offering/gen/service-management/operations.d.ts.map +0 -1
  491. package/dist/document-models/service-offering/gen/service-management/operations.js +0 -1
  492. package/dist/document-models/service-offering/gen/tier-management/actions.d.ts +0 -56
  493. package/dist/document-models/service-offering/gen/tier-management/actions.d.ts.map +0 -1
  494. package/dist/document-models/service-offering/gen/tier-management/actions.js +0 -1
  495. package/dist/document-models/service-offering/gen/tier-management/creators.d.ts +0 -16
  496. package/dist/document-models/service-offering/gen/tier-management/creators.d.ts.map +0 -1
  497. package/dist/document-models/service-offering/gen/tier-management/creators.js +0 -15
  498. package/dist/document-models/service-offering/gen/tier-management/error.d.ts +0 -143
  499. package/dist/document-models/service-offering/gen/tier-management/error.d.ts.map +0 -1
  500. package/dist/document-models/service-offering/gen/tier-management/error.js +0 -171
  501. package/dist/document-models/service-offering/gen/tier-management/operations.d.ts +0 -19
  502. package/dist/document-models/service-offering/gen/tier-management/operations.d.ts.map +0 -1
  503. package/dist/document-models/service-offering/gen/tier-management/operations.js +0 -1
  504. package/dist/document-models/service-offering/gen/types.d.ts +0 -12
  505. package/dist/document-models/service-offering/gen/types.d.ts.map +0 -1
  506. package/dist/document-models/service-offering/gen/types.js +0 -1
  507. package/dist/document-models/service-offering/gen/utils.d.ts +0 -15
  508. package/dist/document-models/service-offering/gen/utils.d.ts.map +0 -1
  509. package/dist/document-models/service-offering/gen/utils.js +0 -67
  510. package/dist/document-models/service-offering/hooks.d.ts +0 -14
  511. package/dist/document-models/service-offering/hooks.d.ts.map +0 -1
  512. package/dist/document-models/service-offering/hooks.js +0 -25
  513. package/dist/document-models/service-offering/index.d.ts +0 -6
  514. package/dist/document-models/service-offering/index.d.ts.map +0 -1
  515. package/dist/document-models/service-offering/index.js +0 -5
  516. package/dist/document-models/service-offering/module.d.ts +0 -5
  517. package/dist/document-models/service-offering/module.d.ts.map +0 -1
  518. package/dist/document-models/service-offering/module.js +0 -11
  519. package/dist/document-models/service-offering/src/index.d.ts +0 -2
  520. package/dist/document-models/service-offering/src/index.d.ts.map +0 -1
  521. package/dist/document-models/service-offering/src/index.js +0 -1
  522. package/dist/document-models/service-offering/src/reducers/offering-management.d.ts +0 -3
  523. package/dist/document-models/service-offering/src/reducers/offering-management.d.ts.map +0 -1
  524. package/dist/document-models/service-offering/src/reducers/offering-management.js +0 -118
  525. package/dist/document-models/service-offering/src/reducers/option-group-management.d.ts +0 -3
  526. package/dist/document-models/service-offering/src/reducers/option-group-management.d.ts.map +0 -1
  527. package/dist/document-models/service-offering/src/reducers/option-group-management.js +0 -47
  528. package/dist/document-models/service-offering/src/reducers/service-management.d.ts +0 -3
  529. package/dist/document-models/service-offering/src/reducers/service-management.d.ts.map +0 -1
  530. package/dist/document-models/service-offering/src/reducers/service-management.js +0 -79
  531. package/dist/document-models/service-offering/src/reducers/tier-management.d.ts +0 -3
  532. package/dist/document-models/service-offering/src/reducers/tier-management.d.ts.map +0 -1
  533. package/dist/document-models/service-offering/src/reducers/tier-management.js +0 -267
  534. package/dist/document-models/service-offering/src/tests/document-model.test.d.ts +0 -10
  535. package/dist/document-models/service-offering/src/tests/document-model.test.d.ts.map +0 -1
  536. package/dist/document-models/service-offering/src/tests/document-model.test.js +0 -104
  537. package/dist/document-models/service-offering/src/tests/offering-management.test.d.ts +0 -6
  538. package/dist/document-models/service-offering/src/tests/offering-management.test.d.ts.map +0 -1
  539. package/dist/document-models/service-offering/src/tests/offering-management.test.js +0 -49
  540. package/dist/document-models/service-offering/src/tests/option-group-management.test.d.ts +0 -6
  541. package/dist/document-models/service-offering/src/tests/option-group-management.test.d.ts.map +0 -1
  542. package/dist/document-models/service-offering/src/tests/option-group-management.test.js +0 -39
  543. package/dist/document-models/service-offering/src/tests/service-management.test.d.ts +0 -6
  544. package/dist/document-models/service-offering/src/tests/service-management.test.d.ts.map +0 -1
  545. package/dist/document-models/service-offering/src/tests/service-management.test.js +0 -59
  546. package/dist/document-models/service-offering/src/tests/tier-management.test.d.ts +0 -6
  547. package/dist/document-models/service-offering/src/tests/tier-management.test.d.ts.map +0 -1
  548. package/dist/document-models/service-offering/src/tests/tier-management.test.js +0 -109
  549. package/dist/document-models/service-offering/src/utils.d.ts +0 -2
  550. package/dist/document-models/service-offering/src/utils.d.ts.map +0 -1
  551. package/dist/document-models/service-offering/src/utils.js +0 -1
  552. package/dist/document-models/service-offering/tests/document-model.test.d.ts +0 -10
  553. package/dist/document-models/service-offering/tests/document-model.test.d.ts.map +0 -1
  554. package/dist/document-models/service-offering/tests/document-model.test.js +0 -104
  555. package/dist/document-models/service-offering/tests/offering-management.test.d.ts +0 -2
  556. package/dist/document-models/service-offering/tests/offering-management.test.d.ts.map +0 -1
  557. package/dist/document-models/service-offering/tests/offering-management.test.js +0 -145
  558. package/dist/document-models/service-offering/tests/option-group-management.test.d.ts +0 -2
  559. package/dist/document-models/service-offering/tests/option-group-management.test.d.ts.map +0 -1
  560. package/dist/document-models/service-offering/tests/option-group-management.test.js +0 -35
  561. package/dist/document-models/service-offering/tests/service-management.test.d.ts +0 -2
  562. package/dist/document-models/service-offering/tests/service-management.test.d.ts.map +0 -1
  563. package/dist/document-models/service-offering/tests/service-management.test.js +0 -55
  564. package/dist/document-models/service-offering/tests/tier-management.test.d.ts +0 -2
  565. package/dist/document-models/service-offering/tests/tier-management.test.d.ts.map +0 -1
  566. package/dist/document-models/service-offering/tests/tier-management.test.js +0 -135
  567. package/dist/document-models/service-offering/utils.d.ts +0 -14
  568. package/dist/document-models/service-offering/utils.d.ts.map +0 -1
  569. package/dist/document-models/service-offering/utils.js +0 -7
  570. package/dist/document-models/service-subscriptions/actions.d.ts +0 -25
  571. package/dist/document-models/service-subscriptions/actions.d.ts.map +0 -1
  572. package/dist/document-models/service-subscriptions/actions.js +0 -9
  573. package/dist/document-models/service-subscriptions/gen/actions.d.ts +0 -8
  574. package/dist/document-models/service-subscriptions/gen/actions.d.ts.map +0 -1
  575. package/dist/document-models/service-subscriptions/gen/actions.js +0 -3
  576. package/dist/document-models/service-subscriptions/gen/categories/actions.d.ts +0 -16
  577. package/dist/document-models/service-subscriptions/gen/categories/actions.d.ts.map +0 -1
  578. package/dist/document-models/service-subscriptions/gen/categories/actions.js +0 -1
  579. package/dist/document-models/service-subscriptions/gen/categories/creators.d.ts +0 -6
  580. package/dist/document-models/service-subscriptions/gen/categories/creators.d.ts.map +0 -1
  581. package/dist/document-models/service-subscriptions/gen/categories/creators.js +0 -5
  582. package/dist/document-models/service-subscriptions/gen/categories/error.d.ts +0 -2
  583. package/dist/document-models/service-subscriptions/gen/categories/error.d.ts.map +0 -1
  584. package/dist/document-models/service-subscriptions/gen/categories/error.js +0 -1
  585. package/dist/document-models/service-subscriptions/gen/categories/operations.d.ts +0 -9
  586. package/dist/document-models/service-subscriptions/gen/categories/operations.d.ts.map +0 -1
  587. package/dist/document-models/service-subscriptions/gen/categories/operations.js +0 -1
  588. package/dist/document-models/service-subscriptions/gen/creators.d.ts +0 -7
  589. package/dist/document-models/service-subscriptions/gen/creators.d.ts.map +0 -1
  590. package/dist/document-models/service-subscriptions/gen/creators.js +0 -6
  591. package/dist/document-models/service-subscriptions/gen/document-model.d.ts +0 -3
  592. package/dist/document-models/service-subscriptions/gen/document-model.d.ts.map +0 -1
  593. package/dist/document-models/service-subscriptions/gen/document-model.js +0 -194
  594. package/dist/document-models/service-subscriptions/gen/document-schema.d.ts +0 -50
  595. package/dist/document-models/service-subscriptions/gen/document-schema.d.ts.map +0 -1
  596. package/dist/document-models/service-subscriptions/gen/document-schema.js +0 -33
  597. package/dist/document-models/service-subscriptions/gen/document-type.d.ts +0 -2
  598. package/dist/document-models/service-subscriptions/gen/document-type.d.ts.map +0 -1
  599. package/dist/document-models/service-subscriptions/gen/document-type.js +0 -1
  600. package/dist/document-models/service-subscriptions/gen/index.d.ts +0 -14
  601. package/dist/document-models/service-subscriptions/gen/index.d.ts.map +0 -1
  602. package/dist/document-models/service-subscriptions/gen/index.js +0 -13
  603. package/dist/document-models/service-subscriptions/gen/ph-factories.d.ts +0 -23
  604. package/dist/document-models/service-subscriptions/gen/ph-factories.d.ts.map +0 -1
  605. package/dist/document-models/service-subscriptions/gen/ph-factories.js +0 -45
  606. package/dist/document-models/service-subscriptions/gen/reducer.d.ts +0 -3
  607. package/dist/document-models/service-subscriptions/gen/reducer.d.ts.map +0 -1
  608. package/dist/document-models/service-subscriptions/gen/reducer.js +0 -80
  609. package/dist/document-models/service-subscriptions/gen/schema/index.d.ts +0 -3
  610. package/dist/document-models/service-subscriptions/gen/schema/index.d.ts.map +0 -1
  611. package/dist/document-models/service-subscriptions/gen/schema/index.js +0 -2
  612. package/dist/document-models/service-subscriptions/gen/schema/types.d.ts +0 -286
  613. package/dist/document-models/service-subscriptions/gen/schema/types.d.ts.map +0 -1
  614. package/dist/document-models/service-subscriptions/gen/schema/types.js +0 -1
  615. package/dist/document-models/service-subscriptions/gen/schema/zod.d.ts +0 -45
  616. package/dist/document-models/service-subscriptions/gen/schema/zod.d.ts.map +0 -1
  617. package/dist/document-models/service-subscriptions/gen/schema/zod.js +0 -199
  618. package/dist/document-models/service-subscriptions/gen/subscriptions/actions.d.ts +0 -32
  619. package/dist/document-models/service-subscriptions/gen/subscriptions/actions.d.ts.map +0 -1
  620. package/dist/document-models/service-subscriptions/gen/subscriptions/actions.js +0 -1
  621. package/dist/document-models/service-subscriptions/gen/subscriptions/creators.d.ts +0 -10
  622. package/dist/document-models/service-subscriptions/gen/subscriptions/creators.d.ts.map +0 -1
  623. package/dist/document-models/service-subscriptions/gen/subscriptions/creators.js +0 -9
  624. package/dist/document-models/service-subscriptions/gen/subscriptions/error.d.ts +0 -2
  625. package/dist/document-models/service-subscriptions/gen/subscriptions/error.d.ts.map +0 -1
  626. package/dist/document-models/service-subscriptions/gen/subscriptions/error.js +0 -1
  627. package/dist/document-models/service-subscriptions/gen/subscriptions/operations.d.ts +0 -13
  628. package/dist/document-models/service-subscriptions/gen/subscriptions/operations.d.ts.map +0 -1
  629. package/dist/document-models/service-subscriptions/gen/subscriptions/operations.js +0 -1
  630. package/dist/document-models/service-subscriptions/gen/types.d.ts +0 -12
  631. package/dist/document-models/service-subscriptions/gen/types.d.ts.map +0 -1
  632. package/dist/document-models/service-subscriptions/gen/types.js +0 -1
  633. package/dist/document-models/service-subscriptions/gen/utils.d.ts +0 -15
  634. package/dist/document-models/service-subscriptions/gen/utils.d.ts.map +0 -1
  635. package/dist/document-models/service-subscriptions/gen/utils.js +0 -53
  636. package/dist/document-models/service-subscriptions/gen/vendors/actions.d.ts +0 -16
  637. package/dist/document-models/service-subscriptions/gen/vendors/actions.d.ts.map +0 -1
  638. package/dist/document-models/service-subscriptions/gen/vendors/actions.js +0 -1
  639. package/dist/document-models/service-subscriptions/gen/vendors/creators.d.ts +0 -6
  640. package/dist/document-models/service-subscriptions/gen/vendors/creators.d.ts.map +0 -1
  641. package/dist/document-models/service-subscriptions/gen/vendors/creators.js +0 -5
  642. package/dist/document-models/service-subscriptions/gen/vendors/error.d.ts +0 -2
  643. package/dist/document-models/service-subscriptions/gen/vendors/error.d.ts.map +0 -1
  644. package/dist/document-models/service-subscriptions/gen/vendors/error.js +0 -1
  645. package/dist/document-models/service-subscriptions/gen/vendors/operations.d.ts +0 -9
  646. package/dist/document-models/service-subscriptions/gen/vendors/operations.d.ts.map +0 -1
  647. package/dist/document-models/service-subscriptions/gen/vendors/operations.js +0 -1
  648. package/dist/document-models/service-subscriptions/hooks.d.ts +0 -14
  649. package/dist/document-models/service-subscriptions/hooks.d.ts.map +0 -1
  650. package/dist/document-models/service-subscriptions/hooks.js +0 -25
  651. package/dist/document-models/service-subscriptions/index.d.ts +0 -6
  652. package/dist/document-models/service-subscriptions/index.d.ts.map +0 -1
  653. package/dist/document-models/service-subscriptions/index.js +0 -5
  654. package/dist/document-models/service-subscriptions/module.d.ts +0 -5
  655. package/dist/document-models/service-subscriptions/module.d.ts.map +0 -1
  656. package/dist/document-models/service-subscriptions/module.js +0 -11
  657. package/dist/document-models/service-subscriptions/src/index.d.ts +0 -2
  658. package/dist/document-models/service-subscriptions/src/index.d.ts.map +0 -1
  659. package/dist/document-models/service-subscriptions/src/index.js +0 -1
  660. package/dist/document-models/service-subscriptions/src/reducers/categories.d.ts +0 -3
  661. package/dist/document-models/service-subscriptions/src/reducers/categories.d.ts.map +0 -1
  662. package/dist/document-models/service-subscriptions/src/reducers/categories.js +0 -24
  663. package/dist/document-models/service-subscriptions/src/reducers/subscriptions.d.ts +0 -3
  664. package/dist/document-models/service-subscriptions/src/reducers/subscriptions.d.ts.map +0 -1
  665. package/dist/document-models/service-subscriptions/src/reducers/subscriptions.js +0 -114
  666. package/dist/document-models/service-subscriptions/src/reducers/vendors.d.ts +0 -3
  667. package/dist/document-models/service-subscriptions/src/reducers/vendors.d.ts.map +0 -1
  668. package/dist/document-models/service-subscriptions/src/reducers/vendors.js +0 -30
  669. package/dist/document-models/service-subscriptions/src/tests/categories.test.d.ts +0 -6
  670. package/dist/document-models/service-subscriptions/src/tests/categories.test.d.ts.map +0 -1
  671. package/dist/document-models/service-subscriptions/src/tests/categories.test.js +0 -39
  672. package/dist/document-models/service-subscriptions/src/tests/document-model.test.d.ts +0 -10
  673. package/dist/document-models/service-subscriptions/src/tests/document-model.test.d.ts.map +0 -1
  674. package/dist/document-models/service-subscriptions/src/tests/document-model.test.js +0 -104
  675. package/dist/document-models/service-subscriptions/src/tests/subscriptions.test.d.ts +0 -6
  676. package/dist/document-models/service-subscriptions/src/tests/subscriptions.test.d.ts.map +0 -1
  677. package/dist/document-models/service-subscriptions/src/tests/subscriptions.test.js +0 -79
  678. package/dist/document-models/service-subscriptions/src/tests/vendors.test.d.ts +0 -6
  679. package/dist/document-models/service-subscriptions/src/tests/vendors.test.d.ts.map +0 -1
  680. package/dist/document-models/service-subscriptions/src/tests/vendors.test.js +0 -39
  681. package/dist/document-models/service-subscriptions/src/utils.d.ts +0 -2
  682. package/dist/document-models/service-subscriptions/src/utils.d.ts.map +0 -1
  683. package/dist/document-models/service-subscriptions/src/utils.js +0 -1
  684. package/dist/document-models/service-subscriptions/tests/categories.test.d.ts +0 -2
  685. package/dist/document-models/service-subscriptions/tests/categories.test.d.ts.map +0 -1
  686. package/dist/document-models/service-subscriptions/tests/categories.test.js +0 -35
  687. package/dist/document-models/service-subscriptions/tests/document-model.test.d.ts +0 -10
  688. package/dist/document-models/service-subscriptions/tests/document-model.test.d.ts.map +0 -1
  689. package/dist/document-models/service-subscriptions/tests/document-model.test.js +0 -104
  690. package/dist/document-models/service-subscriptions/tests/subscriptions.test.d.ts +0 -2
  691. package/dist/document-models/service-subscriptions/tests/subscriptions.test.d.ts.map +0 -1
  692. package/dist/document-models/service-subscriptions/tests/subscriptions.test.js +0 -75
  693. package/dist/document-models/service-subscriptions/tests/vendors.test.d.ts +0 -2
  694. package/dist/document-models/service-subscriptions/tests/vendors.test.d.ts.map +0 -1
  695. package/dist/document-models/service-subscriptions/tests/vendors.test.js +0 -35
  696. package/dist/document-models/service-subscriptions/utils.d.ts +0 -14
  697. package/dist/document-models/service-subscriptions/utils.d.ts.map +0 -1
  698. package/dist/document-models/service-subscriptions/utils.js +0 -7
  699. package/dist/document-models/subscription-instance/actions.d.ts +0 -63
  700. package/dist/document-models/subscription-instance/actions.d.ts.map +0 -1
  701. package/dist/document-models/subscription-instance/actions.js +0 -12
  702. package/dist/document-models/subscription-instance/gen/actions.d.ts +0 -14
  703. package/dist/document-models/subscription-instance/gen/actions.d.ts.map +0 -1
  704. package/dist/document-models/subscription-instance/gen/actions.js +0 -6
  705. package/dist/document-models/subscription-instance/gen/billing/actions.d.ts +0 -44
  706. package/dist/document-models/subscription-instance/gen/billing/actions.d.ts.map +0 -1
  707. package/dist/document-models/subscription-instance/gen/billing/actions.js +0 -1
  708. package/dist/document-models/subscription-instance/gen/billing/creators.d.ts +0 -13
  709. package/dist/document-models/subscription-instance/gen/billing/creators.d.ts.map +0 -1
  710. package/dist/document-models/subscription-instance/gen/billing/creators.js +0 -12
  711. package/dist/document-models/subscription-instance/gen/billing/error.d.ts +0 -2
  712. package/dist/document-models/subscription-instance/gen/billing/error.d.ts.map +0 -1
  713. package/dist/document-models/subscription-instance/gen/billing/error.js +0 -1
  714. package/dist/document-models/subscription-instance/gen/billing/operations.d.ts +0 -16
  715. package/dist/document-models/subscription-instance/gen/billing/operations.d.ts.map +0 -1
  716. package/dist/document-models/subscription-instance/gen/billing/operations.js +0 -1
  717. package/dist/document-models/subscription-instance/gen/creators.d.ts +0 -13
  718. package/dist/document-models/subscription-instance/gen/creators.d.ts.map +0 -1
  719. package/dist/document-models/subscription-instance/gen/creators.js +0 -12
  720. package/dist/document-models/subscription-instance/gen/customer/actions.d.ts +0 -36
  721. package/dist/document-models/subscription-instance/gen/customer/actions.d.ts.map +0 -1
  722. package/dist/document-models/subscription-instance/gen/customer/actions.js +0 -1
  723. package/dist/document-models/subscription-instance/gen/customer/creators.d.ts +0 -11
  724. package/dist/document-models/subscription-instance/gen/customer/creators.d.ts.map +0 -1
  725. package/dist/document-models/subscription-instance/gen/customer/creators.js +0 -10
  726. package/dist/document-models/subscription-instance/gen/customer/error.d.ts +0 -2
  727. package/dist/document-models/subscription-instance/gen/customer/error.d.ts.map +0 -1
  728. package/dist/document-models/subscription-instance/gen/customer/error.js +0 -1
  729. package/dist/document-models/subscription-instance/gen/customer/operations.d.ts +0 -14
  730. package/dist/document-models/subscription-instance/gen/customer/operations.d.ts.map +0 -1
  731. package/dist/document-models/subscription-instance/gen/customer/operations.js +0 -1
  732. package/dist/document-models/subscription-instance/gen/document-model.d.ts +0 -3
  733. package/dist/document-models/subscription-instance/gen/document-model.d.ts.map +0 -1
  734. package/dist/document-models/subscription-instance/gen/document-model.js +0 -633
  735. package/dist/document-models/subscription-instance/gen/document-schema.d.ts +0 -122
  736. package/dist/document-models/subscription-instance/gen/document-schema.d.ts.map +0 -1
  737. package/dist/document-models/subscription-instance/gen/document-schema.js +0 -33
  738. package/dist/document-models/subscription-instance/gen/document-type.d.ts +0 -2
  739. package/dist/document-models/subscription-instance/gen/document-type.d.ts.map +0 -1
  740. package/dist/document-models/subscription-instance/gen/document-type.js +0 -1
  741. package/dist/document-models/subscription-instance/gen/index.d.ts +0 -17
  742. package/dist/document-models/subscription-instance/gen/index.d.ts.map +0 -1
  743. package/dist/document-models/subscription-instance/gen/index.js +0 -16
  744. package/dist/document-models/subscription-instance/gen/metrics/actions.d.ts +0 -28
  745. package/dist/document-models/subscription-instance/gen/metrics/actions.d.ts.map +0 -1
  746. package/dist/document-models/subscription-instance/gen/metrics/actions.js +0 -1
  747. package/dist/document-models/subscription-instance/gen/metrics/creators.d.ts +0 -9
  748. package/dist/document-models/subscription-instance/gen/metrics/creators.d.ts.map +0 -1
  749. package/dist/document-models/subscription-instance/gen/metrics/creators.js +0 -8
  750. package/dist/document-models/subscription-instance/gen/metrics/error.d.ts +0 -2
  751. package/dist/document-models/subscription-instance/gen/metrics/error.d.ts.map +0 -1
  752. package/dist/document-models/subscription-instance/gen/metrics/error.js +0 -1
  753. package/dist/document-models/subscription-instance/gen/metrics/operations.d.ts +0 -12
  754. package/dist/document-models/subscription-instance/gen/metrics/operations.d.ts.map +0 -1
  755. package/dist/document-models/subscription-instance/gen/metrics/operations.js +0 -1
  756. package/dist/document-models/subscription-instance/gen/ph-factories.d.ts +0 -23
  757. package/dist/document-models/subscription-instance/gen/ph-factories.d.ts.map +0 -1
  758. package/dist/document-models/subscription-instance/gen/ph-factories.js +0 -73
  759. package/dist/document-models/subscription-instance/gen/reducer.d.ts +0 -3
  760. package/dist/document-models/subscription-instance/gen/reducer.d.ts.map +0 -1
  761. package/dist/document-models/subscription-instance/gen/reducer.js +0 -273
  762. package/dist/document-models/subscription-instance/gen/schema/index.d.ts +0 -3
  763. package/dist/document-models/subscription-instance/gen/schema/index.d.ts.map +0 -1
  764. package/dist/document-models/subscription-instance/gen/schema/index.js +0 -2
  765. package/dist/document-models/subscription-instance/gen/schema/types.d.ts +0 -548
  766. package/dist/document-models/subscription-instance/gen/schema/types.d.ts.map +0 -1
  767. package/dist/document-models/subscription-instance/gen/schema/types.js +0 -1
  768. package/dist/document-models/subscription-instance/gen/schema/zod.d.ts +0 -130
  769. package/dist/document-models/subscription-instance/gen/schema/zod.d.ts.map +0 -1
  770. package/dist/document-models/subscription-instance/gen/schema/zod.js +0 -608
  771. package/dist/document-models/subscription-instance/gen/service/actions.d.ts +0 -32
  772. package/dist/document-models/subscription-instance/gen/service/actions.d.ts.map +0 -1
  773. package/dist/document-models/subscription-instance/gen/service/actions.js +0 -1
  774. package/dist/document-models/subscription-instance/gen/service/creators.d.ts +0 -10
  775. package/dist/document-models/subscription-instance/gen/service/creators.d.ts.map +0 -1
  776. package/dist/document-models/subscription-instance/gen/service/creators.js +0 -9
  777. package/dist/document-models/subscription-instance/gen/service/error.d.ts +0 -2
  778. package/dist/document-models/subscription-instance/gen/service/error.d.ts.map +0 -1
  779. package/dist/document-models/subscription-instance/gen/service/error.js +0 -1
  780. package/dist/document-models/subscription-instance/gen/service/operations.d.ts +0 -13
  781. package/dist/document-models/subscription-instance/gen/service/operations.d.ts.map +0 -1
  782. package/dist/document-models/subscription-instance/gen/service/operations.js +0 -1
  783. package/dist/document-models/subscription-instance/gen/service-group/actions.d.ts +0 -20
  784. package/dist/document-models/subscription-instance/gen/service-group/actions.d.ts.map +0 -1
  785. package/dist/document-models/subscription-instance/gen/service-group/actions.js +0 -1
  786. package/dist/document-models/subscription-instance/gen/service-group/creators.d.ts +0 -7
  787. package/dist/document-models/subscription-instance/gen/service-group/creators.d.ts.map +0 -1
  788. package/dist/document-models/subscription-instance/gen/service-group/creators.js +0 -6
  789. package/dist/document-models/subscription-instance/gen/service-group/error.d.ts +0 -2
  790. package/dist/document-models/subscription-instance/gen/service-group/error.d.ts.map +0 -1
  791. package/dist/document-models/subscription-instance/gen/service-group/error.js +0 -1
  792. package/dist/document-models/subscription-instance/gen/service-group/operations.d.ts +0 -10
  793. package/dist/document-models/subscription-instance/gen/service-group/operations.d.ts.map +0 -1
  794. package/dist/document-models/subscription-instance/gen/service-group/operations.js +0 -1
  795. package/dist/document-models/subscription-instance/gen/subscription/actions.d.ts +0 -68
  796. package/dist/document-models/subscription-instance/gen/subscription/actions.d.ts.map +0 -1
  797. package/dist/document-models/subscription-instance/gen/subscription/actions.js +0 -1
  798. package/dist/document-models/subscription-instance/gen/subscription/creators.d.ts +0 -19
  799. package/dist/document-models/subscription-instance/gen/subscription/creators.d.ts.map +0 -1
  800. package/dist/document-models/subscription-instance/gen/subscription/creators.js +0 -18
  801. package/dist/document-models/subscription-instance/gen/subscription/error.d.ts +0 -2
  802. package/dist/document-models/subscription-instance/gen/subscription/error.d.ts.map +0 -1
  803. package/dist/document-models/subscription-instance/gen/subscription/error.js +0 -1
  804. package/dist/document-models/subscription-instance/gen/subscription/operations.d.ts +0 -22
  805. package/dist/document-models/subscription-instance/gen/subscription/operations.d.ts.map +0 -1
  806. package/dist/document-models/subscription-instance/gen/subscription/operations.js +0 -1
  807. package/dist/document-models/subscription-instance/gen/types.d.ts +0 -12
  808. package/dist/document-models/subscription-instance/gen/types.d.ts.map +0 -1
  809. package/dist/document-models/subscription-instance/gen/types.js +0 -1
  810. package/dist/document-models/subscription-instance/gen/utils.d.ts +0 -15
  811. package/dist/document-models/subscription-instance/gen/utils.d.ts.map +0 -1
  812. package/dist/document-models/subscription-instance/gen/utils.js +0 -77
  813. package/dist/document-models/subscription-instance/hooks.d.ts +0 -14
  814. package/dist/document-models/subscription-instance/hooks.d.ts.map +0 -1
  815. package/dist/document-models/subscription-instance/hooks.js +0 -25
  816. package/dist/document-models/subscription-instance/index.d.ts +0 -6
  817. package/dist/document-models/subscription-instance/index.d.ts.map +0 -1
  818. package/dist/document-models/subscription-instance/index.js +0 -5
  819. package/dist/document-models/subscription-instance/module.d.ts +0 -5
  820. package/dist/document-models/subscription-instance/module.d.ts.map +0 -1
  821. package/dist/document-models/subscription-instance/module.js +0 -11
  822. package/dist/document-models/subscription-instance/src/index.d.ts +0 -2
  823. package/dist/document-models/subscription-instance/src/index.d.ts.map +0 -1
  824. package/dist/document-models/subscription-instance/src/index.js +0 -1
  825. package/dist/document-models/subscription-instance/src/reducers/billing.d.ts +0 -3
  826. package/dist/document-models/subscription-instance/src/reducers/billing.d.ts.map +0 -1
  827. package/dist/document-models/subscription-instance/src/reducers/billing.js +0 -132
  828. package/dist/document-models/subscription-instance/src/reducers/customer.d.ts +0 -3
  829. package/dist/document-models/subscription-instance/src/reducers/customer.d.ts.map +0 -1
  830. package/dist/document-models/subscription-instance/src/reducers/customer.js +0 -55
  831. package/dist/document-models/subscription-instance/src/reducers/metrics.d.ts +0 -3
  832. package/dist/document-models/subscription-instance/src/reducers/metrics.d.ts.map +0 -1
  833. package/dist/document-models/subscription-instance/src/reducers/metrics.js +0 -90
  834. package/dist/document-models/subscription-instance/src/reducers/requests.d.ts +0 -2
  835. package/dist/document-models/subscription-instance/src/reducers/requests.d.ts.map +0 -1
  836. package/dist/document-models/subscription-instance/src/reducers/requests.js +0 -3
  837. package/dist/document-models/subscription-instance/src/reducers/service-group.d.ts +0 -3
  838. package/dist/document-models/subscription-instance/src/reducers/service-group.d.ts.map +0 -1
  839. package/dist/document-models/subscription-instance/src/reducers/service-group.js +0 -62
  840. package/dist/document-models/subscription-instance/src/reducers/service.d.ts +0 -3
  841. package/dist/document-models/subscription-instance/src/reducers/service.d.ts.map +0 -1
  842. package/dist/document-models/subscription-instance/src/reducers/service.js +0 -110
  843. package/dist/document-models/subscription-instance/src/reducers/subscription.d.ts +0 -3
  844. package/dist/document-models/subscription-instance/src/reducers/subscription.d.ts.map +0 -1
  845. package/dist/document-models/subscription-instance/src/reducers/subscription.js +0 -97
  846. package/dist/document-models/subscription-instance/src/utils.d.ts +0 -2
  847. package/dist/document-models/subscription-instance/src/utils.d.ts.map +0 -1
  848. package/dist/document-models/subscription-instance/src/utils.js +0 -1
  849. package/dist/document-models/subscription-instance/tests/billing.test.d.ts +0 -2
  850. package/dist/document-models/subscription-instance/tests/billing.test.d.ts.map +0 -1
  851. package/dist/document-models/subscription-instance/tests/billing.test.js +0 -107
  852. package/dist/document-models/subscription-instance/tests/customer.test.d.ts +0 -2
  853. package/dist/document-models/subscription-instance/tests/customer.test.d.ts.map +0 -1
  854. package/dist/document-models/subscription-instance/tests/customer.test.js +0 -85
  855. package/dist/document-models/subscription-instance/tests/document-model.test.d.ts +0 -10
  856. package/dist/document-models/subscription-instance/tests/document-model.test.d.ts.map +0 -1
  857. package/dist/document-models/subscription-instance/tests/document-model.test.js +0 -104
  858. package/dist/document-models/subscription-instance/tests/metrics.test.d.ts +0 -2
  859. package/dist/document-models/subscription-instance/tests/metrics.test.d.ts.map +0 -1
  860. package/dist/document-models/subscription-instance/tests/metrics.test.js +0 -65
  861. package/dist/document-models/subscription-instance/tests/requests.test.d.ts +0 -2
  862. package/dist/document-models/subscription-instance/tests/requests.test.d.ts.map +0 -1
  863. package/dist/document-models/subscription-instance/tests/requests.test.js +0 -8
  864. package/dist/document-models/subscription-instance/tests/service-group.test.d.ts +0 -2
  865. package/dist/document-models/subscription-instance/tests/service-group.test.d.ts.map +0 -1
  866. package/dist/document-models/subscription-instance/tests/service-group.test.js +0 -45
  867. package/dist/document-models/subscription-instance/tests/service.test.d.ts +0 -2
  868. package/dist/document-models/subscription-instance/tests/service.test.d.ts.map +0 -1
  869. package/dist/document-models/subscription-instance/tests/service.test.js +0 -75
  870. package/dist/document-models/subscription-instance/tests/subscription.test.d.ts +0 -2
  871. package/dist/document-models/subscription-instance/tests/subscription.test.d.ts.map +0 -1
  872. package/dist/document-models/subscription-instance/tests/subscription.test.js +0 -167
  873. package/dist/document-models/subscription-instance/utils.d.ts +0 -14
  874. package/dist/document-models/subscription-instance/utils.d.ts.map +0 -1
  875. package/dist/document-models/subscription-instance/utils.js +0 -7
  876. package/dist/editors/resource-instance-editor/editor.d.ts +0 -2
  877. package/dist/editors/resource-instance-editor/editor.d.ts.map +0 -1
  878. package/dist/editors/resource-instance-editor/editor.js +0 -1239
  879. package/dist/editors/resource-instance-editor/module.d.ts +0 -4
  880. package/dist/editors/resource-instance-editor/module.d.ts.map +0 -1
  881. package/dist/editors/resource-instance-editor/module.js +0 -10
  882. package/dist/editors/resource-instance-editor/types.d.ts +0 -2
  883. package/dist/editors/resource-instance-editor/types.d.ts.map +0 -1
  884. package/dist/editors/resource-instance-editor/types.js +0 -1
  885. package/dist/editors/resource-template-editor/components/FacetTargeting.d.ts +0 -9
  886. package/dist/editors/resource-template-editor/components/FacetTargeting.d.ts.map +0 -1
  887. package/dist/editors/resource-template-editor/components/FacetTargeting.js +0 -958
  888. package/dist/editors/resource-template-editor/components/TemplateInfo.d.ts +0 -9
  889. package/dist/editors/resource-template-editor/components/TemplateInfo.d.ts.map +0 -1
  890. package/dist/editors/resource-template-editor/components/TemplateInfo.js +0 -2175
  891. package/dist/editors/resource-template-editor/components/markdown-editor.d.ts +0 -12
  892. package/dist/editors/resource-template-editor/components/markdown-editor.d.ts.map +0 -1
  893. package/dist/editors/resource-template-editor/components/markdown-editor.js +0 -130
  894. package/dist/editors/resource-template-editor/editor.d.ts +0 -2
  895. package/dist/editors/resource-template-editor/editor.d.ts.map +0 -1
  896. package/dist/editors/resource-template-editor/editor.js +0 -149
  897. package/dist/editors/resource-template-editor/module.d.ts +0 -4
  898. package/dist/editors/resource-template-editor/module.d.ts.map +0 -1
  899. package/dist/editors/resource-template-editor/module.js +0 -10
  900. package/dist/editors/service-offering-editor/components/EditName.d.ts +0 -3
  901. package/dist/editors/service-offering-editor/components/EditName.d.ts.map +0 -1
  902. package/dist/editors/service-offering-editor/components/EditName.js +0 -31
  903. package/dist/editors/service-offering-editor/components/MarkdownPreview.d.ts +0 -8
  904. package/dist/editors/service-offering-editor/components/MarkdownPreview.d.ts.map +0 -1
  905. package/dist/editors/service-offering-editor/components/MarkdownPreview.js +0 -87
  906. package/dist/editors/service-offering-editor/components/OfferingInfo.d.ts +0 -9
  907. package/dist/editors/service-offering-editor/components/OfferingInfo.d.ts.map +0 -1
  908. package/dist/editors/service-offering-editor/components/OfferingInfo.js +0 -62
  909. package/dist/editors/service-offering-editor/components/OfferingProgress.d.ts +0 -10
  910. package/dist/editors/service-offering-editor/components/OfferingProgress.d.ts.map +0 -1
  911. package/dist/editors/service-offering-editor/components/OfferingProgress.js +0 -240
  912. package/dist/editors/service-offering-editor/components/ResourceTemplateSelector.d.ts +0 -9
  913. package/dist/editors/service-offering-editor/components/ResourceTemplateSelector.d.ts.map +0 -1
  914. package/dist/editors/service-offering-editor/components/ResourceTemplateSelector.js +0 -1158
  915. package/dist/editors/service-offering-editor/components/ScopeAndFacets.d.ts +0 -9
  916. package/dist/editors/service-offering-editor/components/ScopeAndFacets.d.ts.map +0 -1
  917. package/dist/editors/service-offering-editor/components/ScopeAndFacets.js +0 -1077
  918. package/dist/editors/service-offering-editor/components/ServiceCatalog.d.ts +0 -16
  919. package/dist/editors/service-offering-editor/components/ServiceCatalog.d.ts.map +0 -1
  920. package/dist/editors/service-offering-editor/components/ServiceCatalog.js +0 -1660
  921. package/dist/editors/service-offering-editor/components/ServicesList.d.ts +0 -9
  922. package/dist/editors/service-offering-editor/components/ServicesList.d.ts.map +0 -1
  923. package/dist/editors/service-offering-editor/components/ServicesList.js +0 -63
  924. package/dist/editors/service-offering-editor/components/TabNavigation.d.ts +0 -9
  925. package/dist/editors/service-offering-editor/components/TabNavigation.d.ts.map +0 -1
  926. package/dist/editors/service-offering-editor/components/TabNavigation.js +0 -257
  927. package/dist/editors/service-offering-editor/components/TheMatrix.d.ts +0 -10
  928. package/dist/editors/service-offering-editor/components/TheMatrix.d.ts.map +0 -1
  929. package/dist/editors/service-offering-editor/components/TheMatrix.js +0 -2835
  930. package/dist/editors/service-offering-editor/components/TierDefinition.d.ts +0 -9
  931. package/dist/editors/service-offering-editor/components/TierDefinition.d.ts.map +0 -1
  932. package/dist/editors/service-offering-editor/components/TierDefinition.js +0 -1055
  933. package/dist/editors/service-offering-editor/components/TierPricingOptionsPanel.d.ts +0 -11
  934. package/dist/editors/service-offering-editor/components/TierPricingOptionsPanel.d.ts.map +0 -1
  935. package/dist/editors/service-offering-editor/components/TierPricingOptionsPanel.js +0 -405
  936. package/dist/editors/service-offering-editor/components/TiersList.d.ts +0 -9
  937. package/dist/editors/service-offering-editor/components/TiersList.d.ts.map +0 -1
  938. package/dist/editors/service-offering-editor/components/TiersList.js +0 -137
  939. package/dist/editors/service-offering-editor/components/pricing-utils.d.ts +0 -10
  940. package/dist/editors/service-offering-editor/components/pricing-utils.d.ts.map +0 -1
  941. package/dist/editors/service-offering-editor/components/pricing-utils.js +0 -65
  942. package/dist/editors/service-offering-editor/editor.d.ts +0 -2
  943. package/dist/editors/service-offering-editor/editor.d.ts.map +0 -1
  944. package/dist/editors/service-offering-editor/editor.js +0 -336
  945. package/dist/editors/service-offering-editor/module.d.ts +0 -4
  946. package/dist/editors/service-offering-editor/module.d.ts.map +0 -1
  947. package/dist/editors/service-offering-editor/module.js +0 -10
  948. package/dist/editors/service-subscriptions-editor/components/AddCategoryModal.d.ts +0 -7
  949. package/dist/editors/service-subscriptions-editor/components/AddCategoryModal.d.ts.map +0 -1
  950. package/dist/editors/service-subscriptions-editor/components/AddCategoryModal.js +0 -39
  951. package/dist/editors/service-subscriptions-editor/components/AddSubscriptionModal.d.ts +0 -10
  952. package/dist/editors/service-subscriptions-editor/components/AddSubscriptionModal.d.ts.map +0 -1
  953. package/dist/editors/service-subscriptions-editor/components/AddSubscriptionModal.js +0 -64
  954. package/dist/editors/service-subscriptions-editor/components/AddVendorModal.d.ts +0 -7
  955. package/dist/editors/service-subscriptions-editor/components/AddVendorModal.d.ts.map +0 -1
  956. package/dist/editors/service-subscriptions-editor/components/AddVendorModal.js +0 -43
  957. package/dist/editors/service-subscriptions-editor/components/CategoriesList.d.ts +0 -8
  958. package/dist/editors/service-subscriptions-editor/components/CategoriesList.d.ts.map +0 -1
  959. package/dist/editors/service-subscriptions-editor/components/CategoriesList.js +0 -23
  960. package/dist/editors/service-subscriptions-editor/components/EditName.d.ts +0 -3
  961. package/dist/editors/service-subscriptions-editor/components/EditName.d.ts.map +0 -1
  962. package/dist/editors/service-subscriptions-editor/components/EditName.js +0 -31
  963. package/dist/editors/service-subscriptions-editor/components/StatsOverview.d.ts +0 -8
  964. package/dist/editors/service-subscriptions-editor/components/StatsOverview.d.ts.map +0 -1
  965. package/dist/editors/service-subscriptions-editor/components/StatsOverview.js +0 -32
  966. package/dist/editors/service-subscriptions-editor/components/SubscriptionsList.d.ts +0 -10
  967. package/dist/editors/service-subscriptions-editor/components/SubscriptionsList.d.ts.map +0 -1
  968. package/dist/editors/service-subscriptions-editor/components/SubscriptionsList.js +0 -88
  969. package/dist/editors/service-subscriptions-editor/components/VendorsList.d.ts +0 -8
  970. package/dist/editors/service-subscriptions-editor/components/VendorsList.d.ts.map +0 -1
  971. package/dist/editors/service-subscriptions-editor/components/VendorsList.js +0 -23
  972. package/dist/editors/service-subscriptions-editor/editor.d.ts +0 -2
  973. package/dist/editors/service-subscriptions-editor/editor.d.ts.map +0 -1
  974. package/dist/editors/service-subscriptions-editor/editor.js +0 -60
  975. package/dist/editors/service-subscriptions-editor/module.d.ts +0 -4
  976. package/dist/editors/service-subscriptions-editor/module.d.ts.map +0 -1
  977. package/dist/editors/service-subscriptions-editor/module.js +0 -10
  978. package/dist/editors/subscription-instance-editor/components/BillingPanel.d.ts +0 -11
  979. package/dist/editors/subscription-instance-editor/components/BillingPanel.d.ts.map +0 -1
  980. package/dist/editors/subscription-instance-editor/components/BillingPanel.js +0 -62
  981. package/dist/editors/subscription-instance-editor/components/CommunicationChannelsPanel.d.ts +0 -11
  982. package/dist/editors/subscription-instance-editor/components/CommunicationChannelsPanel.d.ts.map +0 -1
  983. package/dist/editors/subscription-instance-editor/components/CommunicationChannelsPanel.js +0 -68
  984. package/dist/editors/subscription-instance-editor/components/CustomerInfo.d.ts +0 -11
  985. package/dist/editors/subscription-instance-editor/components/CustomerInfo.d.ts.map +0 -1
  986. package/dist/editors/subscription-instance-editor/components/CustomerInfo.js +0 -100
  987. package/dist/editors/subscription-instance-editor/components/ImportServiceConfigButton.d.ts +0 -9
  988. package/dist/editors/subscription-instance-editor/components/ImportServiceConfigButton.d.ts.map +0 -1
  989. package/dist/editors/subscription-instance-editor/components/ImportServiceConfigButton.js +0 -169
  990. package/dist/editors/subscription-instance-editor/components/MetricActions.d.ts +0 -21
  991. package/dist/editors/subscription-instance-editor/components/MetricActions.d.ts.map +0 -1
  992. package/dist/editors/subscription-instance-editor/components/MetricActions.js +0 -74
  993. package/dist/editors/subscription-instance-editor/components/MockDataButton.d.ts +0 -9
  994. package/dist/editors/subscription-instance-editor/components/MockDataButton.d.ts.map +0 -1
  995. package/dist/editors/subscription-instance-editor/components/MockDataButton.js +0 -380
  996. package/dist/editors/subscription-instance-editor/components/ModeToggle.d.ts +0 -8
  997. package/dist/editors/subscription-instance-editor/components/ModeToggle.d.ts.map +0 -1
  998. package/dist/editors/subscription-instance-editor/components/ModeToggle.js +0 -4
  999. package/dist/editors/subscription-instance-editor/components/OperatorNotes.d.ts +0 -9
  1000. package/dist/editors/subscription-instance-editor/components/OperatorNotes.d.ts.map +0 -1
  1001. package/dist/editors/subscription-instance-editor/components/OperatorNotes.js +0 -17
  1002. package/dist/editors/subscription-instance-editor/components/PendingRequestsPanel.d.ts +0 -9
  1003. package/dist/editors/subscription-instance-editor/components/PendingRequestsPanel.d.ts.map +0 -1
  1004. package/dist/editors/subscription-instance-editor/components/PendingRequestsPanel.js +0 -4
  1005. package/dist/editors/subscription-instance-editor/components/RecordPaymentModal.d.ts +0 -13
  1006. package/dist/editors/subscription-instance-editor/components/RecordPaymentModal.d.ts.map +0 -1
  1007. package/dist/editors/subscription-instance-editor/components/RecordPaymentModal.js +0 -62
  1008. package/dist/editors/subscription-instance-editor/components/ServicesPanel.d.ts +0 -11
  1009. package/dist/editors/subscription-instance-editor/components/ServicesPanel.d.ts.map +0 -1
  1010. package/dist/editors/subscription-instance-editor/components/ServicesPanel.js +0 -73
  1011. package/dist/editors/subscription-instance-editor/components/StatusBadge.d.ts +0 -7
  1012. package/dist/editors/subscription-instance-editor/components/StatusBadge.d.ts.map +0 -1
  1013. package/dist/editors/subscription-instance-editor/components/StatusBadge.js +0 -26
  1014. package/dist/editors/subscription-instance-editor/components/SubscriptionActions.d.ts +0 -11
  1015. package/dist/editors/subscription-instance-editor/components/SubscriptionActions.d.ts.map +0 -1
  1016. package/dist/editors/subscription-instance-editor/components/SubscriptionActions.js +0 -102
  1017. package/dist/editors/subscription-instance-editor/components/SubscriptionHeader.d.ts +0 -11
  1018. package/dist/editors/subscription-instance-editor/components/SubscriptionHeader.d.ts.map +0 -1
  1019. package/dist/editors/subscription-instance-editor/components/SubscriptionHeader.js +0 -16
  1020. package/dist/editors/subscription-instance-editor/editor.d.ts +0 -2
  1021. package/dist/editors/subscription-instance-editor/editor.d.ts.map +0 -1
  1022. package/dist/editors/subscription-instance-editor/editor.js +0 -2001
  1023. package/dist/editors/subscription-instance-editor/module.d.ts +0 -4
  1024. package/dist/editors/subscription-instance-editor/module.d.ts.map +0 -1
  1025. package/dist/editors/subscription-instance-editor/module.js +0 -10
  1026. package/dist/editors/subscription-instance-editor/types.d.ts +0 -3
  1027. package/dist/editors/subscription-instance-editor/types.d.ts.map +0 -1
  1028. package/dist/editors/subscription-instance-editor/types.js +0 -1
  1029. package/dist/subgraphs/expense-report/index.d.ts +0 -11
  1030. package/dist/subgraphs/expense-report/index.d.ts.map +0 -1
  1031. package/dist/subgraphs/expense-report/index.js +0 -11
  1032. package/dist/subgraphs/expense-report/resolvers.d.ts +0 -3
  1033. package/dist/subgraphs/expense-report/resolvers.d.ts.map +0 -1
  1034. package/dist/subgraphs/expense-report/resolvers.js +0 -288
  1035. package/dist/subgraphs/expense-report/schema.d.ts +0 -3
  1036. package/dist/subgraphs/expense-report/schema.d.ts.map +0 -1
  1037. package/dist/subgraphs/expense-report/schema.js +0 -218
@@ -1,8 +1,8 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { Button } from "@powerhousedao/document-engineering";
4
- import { ChevronDown, ChevronUp, HelpCircle, X } from "lucide-react";
5
- import { DocumentToolbar } from "@powerhousedao/design-system/connect";
4
+ import { ChevronDown, ChevronUp, HelpCircle, Plus, RefreshCw, X, } from "lucide-react";
5
+ import { DocumentToolbar, toast, ToastContainer, } from "@powerhousedao/design-system/connect";
6
6
  import { setSelectedNode, useParentFolderForSelectedNode, useSelectedDrive, } from "@powerhousedao/reactor-browser";
7
7
  import { generateId } from "document-model/core";
8
8
  import { useSelectedAccountsDocument } from "../hooks/useAccountsDocument.js";
@@ -24,6 +24,8 @@ export default function Editor() {
24
24
  const [creatingTransactionsFor, setCreatingTransactionsFor] = useState(null);
25
25
  const [isSyncingAll, setIsSyncingAll] = useState(false);
26
26
  const [syncProgress, setSyncProgress] = useState(null);
27
+ const [deleteConfirm, setDeleteConfirm] = useState({ isOpen: false, accountId: null, accountName: "" });
28
+ const [syncConfirm, setSyncConfirm] = useState(false);
27
29
  const [showHelp, setShowHelp] = useState(() => {
28
30
  if (typeof window !== "undefined") {
29
31
  return localStorage.getItem(HELP_DISMISSED_KEY) !== "true";
@@ -69,9 +71,19 @@ export default function Editor() {
69
71
  setEditingAccount(null);
70
72
  }
71
73
  function handleDeleteAccount(id) {
72
- if (window.confirm("Are you sure you want to delete this account?")) {
73
- dispatch(deleteAccount({ id }));
74
+ const account = accounts.find((a) => a.id === id);
75
+ setDeleteConfirm({
76
+ isOpen: true,
77
+ accountId: id,
78
+ accountName: account?.name || "this account",
79
+ });
80
+ }
81
+ function confirmDelete() {
82
+ if (deleteConfirm.accountId) {
83
+ dispatch(deleteAccount({ id: deleteConfirm.accountId }));
84
+ toast("Account deleted successfully", { type: "success" });
74
85
  }
86
+ setDeleteConfirm({ isOpen: false, accountId: null, accountName: "" });
75
87
  }
76
88
  function handleUpdateKycStatus(id, KycAmlStatus) {
77
89
  dispatch(updateKycStatus({ id, KycAmlStatus }));
@@ -99,67 +111,91 @@ export default function Editor() {
99
111
  accountTransactionsId: result.documentId,
100
112
  }));
101
113
  }
102
- alert(`Success! Created document and fetched ${result.transactionsAdded} transactions`);
114
+ toast(`Created document and fetched ${result.transactionsAdded} transactions`, { type: "success" });
103
115
  }
104
116
  else {
105
- alert(`Error: ${result.message}`);
117
+ toast(`Error: ${result.message}`, { type: "error" });
106
118
  }
107
119
  }
108
120
  catch (error) {
109
- alert(`Error: ${error instanceof Error ? error.message : "Unknown error occurred"}`);
121
+ toast(`Error: ${error instanceof Error ? error.message : "Unknown error occurred"}`, { type: "error" });
110
122
  }
111
123
  finally {
112
124
  setCreatingTransactionsFor(null);
113
125
  }
114
126
  }
115
- async function handleSyncAllTransactions() {
116
- // Filter accounts that have transaction documents
117
- const accountsWithTransactions = accounts.filter((account) => account.accountTransactionsId &&
118
- account.accountTransactionsId.trim() !== "");
119
- if (accountsWithTransactions.length === 0) {
120
- alert("No accounts have transaction documents to sync. Create transaction documents first.");
121
- return;
122
- }
123
- if (!window.confirm(`This will sync transactions for ${accountsWithTransactions.length} account(s). Continue?`)) {
127
+ function initiateSync() {
128
+ if (accounts.length === 0) {
129
+ toast("No accounts to sync transactions for", { type: "warning" });
124
130
  return;
125
131
  }
132
+ setSyncConfirm(true);
133
+ }
134
+ async function handleSyncAllTransactions() {
135
+ setSyncConfirm(false);
126
136
  setIsSyncingAll(true);
127
137
  const results = [];
128
138
  try {
129
- for (let i = 0; i < accountsWithTransactions.length; i++) {
130
- const account = accountsWithTransactions[i];
139
+ const driveId = selectedDrive?.header?.id;
140
+ const accountsDocumentId = document.header.id;
141
+ for (let i = 0; i < accounts.length; i++) {
142
+ const account = accounts[i];
131
143
  setSyncProgress({
132
144
  current: i + 1,
133
- total: accountsWithTransactions.length,
145
+ total: accounts.length,
134
146
  account: account.name,
135
147
  });
136
- const result = await accountTransactionsService.syncTransactionsForDocument(account.accountTransactionsId, account.account);
137
- results.push({
138
- account: account.name,
139
- success: result.success,
140
- transactionsAdded: result.transactionsAdded || 0,
141
- message: result.message,
142
- });
148
+ try {
149
+ // If account already has a transaction document, sync it
150
+ if (account.accountTransactionsId) {
151
+ const result = await accountTransactionsService.syncTransactionsForDocument(account.accountTransactionsId, account.account);
152
+ results.push({
153
+ account: account.name,
154
+ success: result.success,
155
+ transactionsAdded: result.transactionsAdded || 0,
156
+ message: result.message,
157
+ });
158
+ }
159
+ else {
160
+ // Otherwise, create a new transaction document and fetch transactions
161
+ const result = await accountTransactionsService.createAccountTransactionsDocument(account, accountsDocumentId, driveId);
162
+ if (result.success && result.documentId) {
163
+ // Update the account with the new transaction document ID
164
+ dispatch(updateAccount({
165
+ id: account.id,
166
+ accountTransactionsId: result.documentId,
167
+ }));
168
+ }
169
+ results.push({
170
+ account: account.name,
171
+ success: result.success,
172
+ transactionsAdded: result.transactionsAdded || 0,
173
+ message: result.message,
174
+ });
175
+ }
176
+ }
177
+ catch (error) {
178
+ results.push({
179
+ account: account.name,
180
+ success: false,
181
+ transactionsAdded: 0,
182
+ message: error instanceof Error ? error.message : "Unknown error occurred",
183
+ });
184
+ }
143
185
  }
144
186
  // Show summary
145
187
  const totalAdded = results.reduce((sum, r) => sum + r.transactionsAdded, 0);
146
188
  const successCount = results.filter((r) => r.success).length;
147
189
  const failedCount = results.length - successCount;
148
- let message = `Sync complete!\n\n`;
149
- message += `Successfully synced: ${successCount}/${results.length} accounts\n`;
150
- message += `Total new transactions: ${totalAdded}\n`;
151
- if (failedCount > 0) {
152
- message += `\nFailed accounts:\n`;
153
- results
154
- .filter((r) => !r.success)
155
- .forEach((r) => {
156
- message += `- ${r.account}: ${r.message}\n`;
157
- });
190
+ if (failedCount === 0) {
191
+ toast(`Synced ${successCount} account${successCount !== 1 ? "s" : ""}, ${totalAdded} new transactions`, { type: "success" });
192
+ }
193
+ else {
194
+ toast(`Synced ${successCount}/${results.length} accounts. ${failedCount} failed.`, { type: "warning" });
158
195
  }
159
- alert(message);
160
196
  }
161
197
  catch (error) {
162
- alert(`Error during bulk sync: ${error instanceof Error ? error.message : "Unknown error occurred"}`);
198
+ toast(`Error during sync: ${error instanceof Error ? error.message : "Unknown error occurred"}`, { type: "error" });
163
199
  }
164
200
  finally {
165
201
  setIsSyncingAll(false);
@@ -167,9 +203,15 @@ export default function Editor() {
167
203
  }
168
204
  }
169
205
  const accounts = document.state.global.accounts;
170
- 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: _jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8", children: _jsxs("div", { 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 ||
171
- accounts.filter((a) => a.accountTransactionsId)
172
- .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
173
- ? `${syncProgress.current}/${syncProgress.total}`
174
- : "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" })] })] }), showHelp && (_jsx(InstructionSection, { onDismiss: handleDismissHelp })), 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" })] })) : (_jsx(AccountsList, { accounts: accounts, 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 })] }))] }) }) })] }));
206
+ 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: _jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8", children: _jsxs("div", { children: [viewMode === "list" && (_jsxs("div", { className: "space-y-6", 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" })] }), showHelp && (_jsx(InstructionSection, { onDismiss: handleDismissHelp })), _jsxs("div", { className: "flex items-center justify-end gap-3", children: [_jsxs(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 flex items-center gap-2", children: [_jsx(Plus, { className: "w-4 h-4", "aria-hidden": "true" }), "Add Account"] }), _jsx(Button, { onClick: initiateSync, disabled: isSyncingAll || accounts.length === 0, className: "border border-gray-300 bg-white hover:bg-gray-50 disabled:bg-gray-100 disabled:text-gray-400 text-gray-700 px-4 py-2 rounded-lg font-medium transition-colors flex items-center gap-2", children: isSyncingAll ? (_jsxs(_Fragment, { children: [_jsxs("svg", { className: "animate-spin h-4 w-4", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", 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
207
+ ? `Syncing ${syncProgress.current}/${syncProgress.total}…`
208
+ : "Syncing…"] })) : (_jsxs(_Fragment, { children: [_jsx(RefreshCw, { className: "w-4 h-4", "aria-hidden": "true" }), "Sync Transactions"] })) })] }), 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" })] })) : (_jsx(AccountsList, { accounts: accounts, 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 })] }))] }) }) }), deleteConfirm.isOpen && (_jsx("div", { className: "fixed inset-0 bg-black/50 flex items-center justify-center z-50", onClick: () => setDeleteConfirm({
209
+ isOpen: false,
210
+ accountId: null,
211
+ accountName: "",
212
+ }), children: _jsxs("div", { className: "bg-white rounded-lg shadow-xl max-w-md w-full mx-4 p-6", onClick: (e) => e.stopPropagation(), role: "dialog", "aria-modal": "true", "aria-labelledby": "delete-modal-title", children: [_jsx("h3", { id: "delete-modal-title", className: "text-lg font-semibold text-gray-900 mb-2", children: "Delete Account" }), _jsxs("p", { className: "text-gray-600 mb-6", children: ["Are you sure you want to delete \"", deleteConfirm.accountName, "\"? This action cannot be undone."] }), _jsxs("div", { className: "flex justify-end gap-3", children: [_jsx(Button, { onClick: () => setDeleteConfirm({
213
+ isOpen: false,
214
+ accountId: null,
215
+ accountName: "",
216
+ }), className: "px-4 py-2 border border-gray-300 rounded-lg font-medium text-gray-700 hover:bg-gray-50 transition-colors", children: "Cancel" }), _jsx(Button, { onClick: confirmDelete, className: "px-4 py-2 bg-red-600 hover:bg-red-700 text-white rounded-lg font-medium transition-colors", children: "Delete Account" })] })] }) })), syncConfirm && (_jsx("div", { className: "fixed inset-0 bg-black/50 flex items-center justify-center z-50", onClick: () => setSyncConfirm(false), children: _jsxs("div", { className: "bg-white rounded-lg shadow-xl max-w-md w-full mx-4 p-6", onClick: (e) => e.stopPropagation(), role: "dialog", "aria-modal": "true", "aria-labelledby": "sync-modal-title", children: [_jsx("h3", { id: "sync-modal-title", className: "text-lg font-semibold text-gray-900 mb-2", children: "Sync Transactions" }), _jsxs("p", { className: "text-gray-600 mb-6", children: ["This will sync transactions for all ", accounts.length, " account", accounts.length !== 1 ? "s" : "", ". Accounts without transaction documents will have them created automatically."] }), _jsxs("div", { className: "flex justify-end gap-3", children: [_jsx(Button, { onClick: () => setSyncConfirm(false), className: "px-4 py-2 border border-gray-300 rounded-lg font-medium text-gray-700 hover:bg-gray-50 transition-colors", children: "Cancel" }), _jsx(Button, { onClick: () => void handleSyncAllTransactions(), className: "px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg font-medium transition-colors", children: "Sync All" })] })] }) })), _jsx(ToastContainer, { position: "bottom-right", autoClose: 4000, hideProgressBar: false, newestOnTop: false, closeOnClick: true, rtl: false, pauseOnFocusLoss: true, draggable: true, pauseOnHover: true })] }));
175
217
  }
@@ -1 +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"}
1
+ {"version":3,"file":"DriveContents.d.ts","sourceRoot":"","sources":["../../../../editors/builder-team-admin/components/DriveContents.tsx"],"names":[],"mappings":"AAQA;;;GAGG;AACH,wBAAgB,aAAa,4CA6C5B"}
@@ -3,7 +3,6 @@ import { useMemo } from "react";
3
3
  import { useDocumentsInSelectedDrive } from "@powerhousedao/reactor-browser";
4
4
  import { ProfileHeader } from "./overview/ProfileHeader.js";
5
5
  import { TeamMembersOverview } from "./overview/TeamMembersOverview.js";
6
- import { SubscriptionsStats, SubscriptionsEmptyState, } from "./overview/SubscriptionsStats.js";
7
6
  import { ExpenseReportsStats } from "./ExpenseReportsStats.js";
8
7
  import { useExpenseReportAutoPlacement } from "../hooks/useExpenseReportAutoPlacement.js";
9
8
  /**
@@ -18,19 +17,11 @@ export function DriveContents() {
18
17
  return null;
19
18
  return (documentsInDrive.find((doc) => doc.header.documentType === "powerhouse/builder-profile") ?? null);
20
19
  }, [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
20
  // Use the auto-placement hook - this handles moving expense reports
28
21
  // dropped anywhere in the drive into the proper "Expense Reports" folder
29
22
  const { expenseReportDocuments } = useExpenseReportAutoPlacement();
30
23
  // Get contributors from builder profile
31
24
  const contributors = builderProfileDoc?.state.global.contributors;
32
- // Get subscriptions from service subscriptions doc
33
- const subscriptions = serviceSubscriptionsDoc?.state.global.subscriptions;
34
25
  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 })] }))] }) }));
26
+ 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 }), 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
27
  }
@@ -1,10 +1,11 @@
1
1
  import type { SelectedFolderInfo } from "./FolderTree.js";
2
2
  interface BillingOverviewProps {
3
3
  onFolderSelect?: (folderInfo: SelectedFolderInfo | null) => void;
4
+ onActiveNodeIdChange?: (nodeId: string) => void;
4
5
  }
5
6
  /**
6
7
  * Overview for the Billing folder showing payment stats and monthly reporting
7
8
  */
8
- export declare function BillingOverview({ onFolderSelect }: BillingOverviewProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function BillingOverview({ onFolderSelect, onActiveNodeIdChange, }: BillingOverviewProps): import("react/jsx-runtime").JSX.Element;
9
10
  export {};
10
11
  //# sourceMappingURL=BillingOverview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BillingOverview.d.ts","sourceRoot":"","sources":["../../../../editors/contributor-billing/components/BillingOverview.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,UAAU,oBAAoB;IAC5B,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;CAClE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAAE,cAAc,EAAE,EAAE,oBAAoB,2CAkLvE"}
1
+ {"version":3,"file":"BillingOverview.d.ts","sourceRoot":"","sources":["../../../../editors/contributor-billing/components/BillingOverview.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,UAAU,oBAAoB;IAC5B,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;IACjE,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC9B,cAAc,EACd,oBAAoB,GACrB,EAAE,oBAAoB,2CAmLtB"}
@@ -7,7 +7,7 @@ import { MonthlyReportsOverview } from "./MonthlyReportsOverview.js";
7
7
  /**
8
8
  * Overview for the Billing folder showing payment stats and monthly reporting
9
9
  */
10
- export function BillingOverview({ onFolderSelect }) {
10
+ export function BillingOverview({ onFolderSelect, onActiveNodeIdChange, }) {
11
11
  const { billingFolder, monthFolders, createMonthFolder, createBillingFolder, paymentsFolderIds, } = useBillingFolderStructure();
12
12
  const documentsInDrive = useDocumentsInSelectedDrive();
13
13
  const [driveDocument] = useSelectedDrive();
@@ -71,5 +71,5 @@ export function BillingOverview({ onFolderSelect }) {
71
71
  return (_jsxs("div", { children: [_jsxs("div", { className: "mb-6", children: [_jsx("h1", { className: "text-2xl font-bold text-gray-900", children: "Billing" }), _jsx("p", { className: "text-gray-600", children: "Manage monthly billing, payments, and reports" })] }), _jsxs("div", { className: "bg-white rounded-xl border border-gray-200 p-6 mb-6", children: [_jsxs("div", { className: "flex items-center gap-3 mb-4", children: [_jsx("div", { className: "p-2 bg-blue-100 rounded-lg", children: _jsx(CreditCard, { className: "w-5 h-5 text-blue-600" }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-lg font-semibold text-gray-900", children: "Payment Summary" }), _jsx("p", { className: "text-sm text-gray-600", children: "Overview of all invoices across billing months" })] })] }), _jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4", children: [_jsxs("div", { className: "bg-gray-50 rounded-lg p-3", children: [_jsxs("div", { className: "flex items-center gap-2 mb-1", children: [_jsx(FileText, { className: "w-4 h-4 text-gray-500" }), _jsx("span", { className: "text-sm text-gray-600", children: "Total Invoices" })] }), _jsx("p", { className: "text-xl font-bold text-gray-900", children: paymentStats.totalInvoices })] }), _jsxs("div", { className: "bg-gray-50 rounded-lg p-3", children: [_jsxs("div", { className: "flex items-center gap-2 mb-1", children: [_jsx(CreditCard, { className: "w-4 h-4 text-gray-500" }), _jsx("span", { className: "text-sm text-gray-600", children: "Total Amount" })] }), _jsxs("p", { className: "text-xl font-bold text-gray-900", children: ["$", paymentStats.totalAmount.toLocaleString("en-US", {
72
72
  minimumFractionDigits: 2,
73
73
  maximumFractionDigits: 2,
74
- })] })] }), _jsxs("div", { className: "bg-amber-50 rounded-lg p-3", children: [_jsx("span", { className: "text-sm text-amber-600", children: "Pending" }), _jsx("p", { className: "text-xl font-bold text-amber-700", children: paymentStats.pendingCount })] }), _jsxs("div", { className: "bg-green-50 rounded-lg p-3", children: [_jsx("span", { className: "text-sm text-green-600", children: "Paid" }), _jsx("p", { className: "text-xl font-bold text-green-700", children: paymentStats.paidCount })] })] })] }), _jsx(MonthlyReportsOverview, { onFolderSelect: onFolderSelect, monthFolders: monthFolders, onCreateMonth: createMonthFolder })] }));
74
+ })] })] }), _jsxs("div", { className: "bg-amber-50 rounded-lg p-3", children: [_jsx("span", { className: "text-sm text-amber-600", children: "Pending" }), _jsx("p", { className: "text-xl font-bold text-amber-700", children: paymentStats.pendingCount })] }), _jsxs("div", { className: "bg-green-50 rounded-lg p-3", children: [_jsx("span", { className: "text-sm text-green-600", children: "Paid" }), _jsx("p", { className: "text-xl font-bold text-green-700", children: paymentStats.paidCount })] })] })] }), _jsx(MonthlyReportsOverview, { onFolderSelect: onFolderSelect, monthFolders: monthFolders, onCreateMonth: createMonthFolder, onActiveNodeIdChange: onActiveNodeIdChange })] }));
75
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardHome.d.ts","sourceRoot":"","sources":["../../../../editors/contributor-billing/components/DashboardHome.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAI1D,UAAU,kBAAkB;IAC1B,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;CAClE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,cAAc,EAAE,EAAE,kBAAkB,2CAyQnE"}
1
+ {"version":3,"file":"DashboardHome.d.ts","sourceRoot":"","sources":["../../../../editors/contributor-billing/components/DashboardHome.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAK1D,UAAU,kBAAkB;IAC1B,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;CAClE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,cAAc,EAAE,EAAE,kBAAkB,2CA8WnE"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Wallet, CheckCircle2, ArrowRight, Building2, User, } from "lucide-react";
3
3
  import { useCallback, useMemo, useState } from "react";
4
- import { addDocument, useDocumentsInSelectedDrive, useSelectedDrive, setSelectedNode, } from "@powerhousedao/reactor-browser";
4
+ import { addDocument, useDocumentsInSelectedDrive, useSelectedDrive, setSelectedNode, isFileNodeKind, } from "@powerhousedao/reactor-browser";
5
5
  import { useBillingFolderStructure } from "../hooks/useBillingFolderStructure.js";
6
6
  import { CreateHubProfileModal } from "./CreateHubProfileModal.js";
7
7
  /**
@@ -11,7 +11,7 @@ import { CreateHubProfileModal } from "./CreateHubProfileModal.js";
11
11
  export function DashboardHome({ onFolderSelect }) {
12
12
  const documentsInDrive = useDocumentsInSelectedDrive();
13
13
  const [selectedDrive] = useSelectedDrive();
14
- const { billingFolder, monthFolders } = useBillingFolderStructure();
14
+ const { billingFolder, monthFolders, paymentsFolderIds } = useBillingFolderStructure();
15
15
  // Check if accounts document exists
16
16
  const accountsDocument = useMemo(() => {
17
17
  if (!documentsInDrive)
@@ -25,6 +25,78 @@ export function DashboardHome({ onFolderSelect }) {
25
25
  return documentsInDrive.find((doc) => doc.header.documentType === "powerhouse/operational-hub-profile");
26
26
  }, [documentsInDrive]);
27
27
  const hubName = operationalHubProfileDocument?.state?.global?.name || "Operational Hub";
28
+ // Computed stats for action cards
29
+ const profileStats = useMemo(() => {
30
+ const profile = operationalHubProfileDocument?.state?.global;
31
+ if (!profile)
32
+ return null;
33
+ const hasTeam = !!profile.operatorTeam;
34
+ const subteamCount = profile.subteams?.length ?? 0;
35
+ const parts = [];
36
+ parts.push(hasTeam ? "Operator team set" : "No operator team");
37
+ if (subteamCount > 0) {
38
+ parts.push(`${subteamCount} subteam${subteamCount > 1 ? "s" : ""}`);
39
+ }
40
+ return parts.join(" · ");
41
+ }, [operationalHubProfileDocument]);
42
+ const accountStats = useMemo(() => {
43
+ const accounts = accountsDocument?.state?.global?.accounts;
44
+ if (!accounts || accounts.length === 0)
45
+ return null;
46
+ const counts = {};
47
+ for (const acct of accounts) {
48
+ const t = acct.type.toLowerCase();
49
+ counts[t] = (counts[t] ?? 0) + 1;
50
+ }
51
+ const entries = Object.entries(counts);
52
+ if (entries.length <= 3) {
53
+ return entries.map(([type, count]) => `${count} ${type}`).join(", ");
54
+ }
55
+ return `${accounts.length} accounts`;
56
+ }, [accountsDocument]);
57
+ const billingStats = useMemo(() => {
58
+ if (!selectedDrive || !documentsInDrive)
59
+ return null;
60
+ const monthCount = monthFolders.size;
61
+ if (monthCount === 0)
62
+ return null;
63
+ const nodes = selectedDrive.state.global.nodes;
64
+ const invoiceIds = new Set(nodes
65
+ .filter((n) => isFileNodeKind(n) &&
66
+ paymentsFolderIds.has(n.parentFolder || "") &&
67
+ n.documentType === "powerhouse/invoice")
68
+ .map((n) => n.id));
69
+ const invoices = documentsInDrive.filter((doc) => doc.header.documentType === "powerhouse/invoice" &&
70
+ invoiceIds.has(doc.header.id));
71
+ if (invoices.length === 0) {
72
+ return `${monthCount} month${monthCount > 1 ? "s" : ""} configured`;
73
+ }
74
+ let pendingCount = 0;
75
+ let paidCount = 0;
76
+ for (const invoice of invoices) {
77
+ const status = (invoice.state.global?.status ?? "").toUpperCase();
78
+ if (status === "PAYMENTSENT" ||
79
+ status === "PAYMENTRECEIVED" ||
80
+ status === "PAYMENTCLOSED") {
81
+ paidCount++;
82
+ }
83
+ else if (status !== "REJECTED" && status !== "CANCELLED") {
84
+ pendingCount++;
85
+ }
86
+ }
87
+ const parts = [
88
+ `${monthCount} month${monthCount > 1 ? "s" : ""}`,
89
+ `${invoices.length} invoice${invoices.length > 1 ? "s" : ""}`,
90
+ ];
91
+ const statusParts = [];
92
+ if (pendingCount > 0)
93
+ statusParts.push(`${pendingCount} pending`);
94
+ if (paidCount > 0)
95
+ statusParts.push(`${paidCount} paid`);
96
+ if (statusParts.length > 0)
97
+ parts.push(statusParts.join(", "));
98
+ return parts.join(" · ");
99
+ }, [selectedDrive, documentsInDrive, monthFolders.size, paymentsFolderIds]);
28
100
  // State for custom create hub profile modal
29
101
  const [showCreateHubModal, setShowCreateHubModal] = useState(false);
30
102
  const handleOpenAccounts = useCallback(async () => {
@@ -87,13 +159,11 @@ export function DashboardHome({ onFolderSelect }) {
87
159
  handleOpenBilling,
88
160
  ]);
89
161
  const setupComplete = setupSteps.every((step) => step.done);
90
- return (_jsxs("div", { className: "max-w-4xl mx-auto", children: [_jsxs("div", { className: "mb-8", children: [_jsx("h1", { className: "text-2xl font-bold text-gray-900", children: hubName }), _jsx("p", { className: "text-gray-600 mt-1", children: "Manage accounts, billing, and financial reporting" })] }), !setupComplete && (_jsxs("div", { className: "bg-gradient-to-r from-blue-50 to-indigo-50 rounded-xl border border-blue-100 p-6 mb-6", children: [_jsxs("div", { className: "flex items-center gap-3 mb-5", children: [_jsx("div", { className: "p-2 bg-blue-100 rounded-lg", children: _jsx(CheckCircle2, { className: "w-5 h-5 text-blue-600" }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-lg font-semibold text-gray-900", children: "Getting Started" }), _jsx("p", { className: "text-sm text-gray-600", children: "Complete these steps to set up your operational hub" })] })] }), _jsx("div", { className: "space-y-3", children: setupSteps.map((step, index) => (_jsxs("button", { onClick: step.onClick, disabled: step.done, className: `w-full flex items-start gap-3 p-3 rounded-lg text-left transition-colors ${step.done
162
+ return (_jsxs("div", { className: "max-w-4xl mx-auto", children: [_jsxs("div", { className: "mb-8", children: [_jsxs("h1", { className: "text-2xl font-bold text-gray-900 flex items-center gap-2", children: [_jsx("span", { className: "flex items-center justify-center w-6 h-6 rounded bg-purple-800 flex-shrink-0", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "text-white", children: _jsx("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }) }) }), hubName] }), _jsx("p", { className: "text-gray-600 mt-1", children: "Manage accounts, billing, and financial reporting" })] }), !setupComplete && (_jsxs("div", { className: "bg-gradient-to-r from-blue-50 to-indigo-50 rounded-xl border border-blue-100 p-6 mb-6", children: [_jsxs("div", { className: "flex items-center gap-3 mb-5", children: [_jsx("div", { className: "p-2 bg-blue-100 rounded-lg", children: _jsx(CheckCircle2, { className: "w-5 h-5 text-blue-600" }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-lg font-semibold text-gray-900", children: "Getting Started" }), _jsx("p", { className: "text-sm text-gray-600", children: "Complete these steps to set up your operational hub" })] })] }), _jsx("div", { className: "space-y-3", children: setupSteps.map((step, index) => (_jsxs("button", { onClick: step.onClick, disabled: step.done, className: `w-full flex items-start gap-3 p-3 rounded-lg text-left transition-colors ${step.done
91
163
  ? "bg-white/50 cursor-default"
92
164
  : "bg-white hover:bg-blue-50 cursor-pointer"}`, children: [_jsx("div", { className: "mt-0.5", children: step.done ? (_jsx(CheckCircle2, { className: "w-5 h-5 text-green-500" })) : (_jsx("div", { className: "w-5 h-5 rounded-full border-2 border-blue-400 flex items-center justify-center text-xs font-semibold text-blue-600", children: index + 1 })) }), _jsxs("div", { className: "flex-1", children: [_jsx("span", { className: `font-medium ${step.done ? "text-gray-400 line-through" : "text-gray-900"}`, children: step.label }), _jsx("p", { className: `text-sm mt-0.5 ${step.done ? "text-gray-400" : "text-gray-600"}`, children: step.description })] }), !step.done && (_jsx(ArrowRight, { className: "w-4 h-4 text-blue-500 mt-1" }))] }, index))) })] })), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [_jsxs("button", { onClick: handleOpenProfile, className: "bg-white rounded-xl border border-gray-200 p-5 text-left hover:shadow-md hover:border-blue-200 transition-all group", children: [_jsxs("div", { className: "flex items-start justify-between", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: "p-3 rounded-lg bg-purple-100", children: _jsx(User, { className: "w-5 h-5 text-purple-600" }) }), _jsxs("div", { children: [_jsx("h3", { className: "font-semibold text-gray-900", children: "Profile" }), _jsx("p", { className: "text-sm text-gray-500", children: operationalHubProfileDocument
93
- ? "View and update your hub profile"
165
+ ? profileStats || "View and update your hub profile"
94
166
  : "Set up your hub profile" })] })] }), _jsx(ArrowRight, { className: "w-5 h-5 text-gray-400 group-hover:text-blue-500 transition-colors" })] }), !operationalHubProfileDocument && (_jsx("div", { className: "mt-3 pt-3 border-t border-gray-100", children: _jsx("span", { className: "text-xs font-medium text-amber-600 bg-amber-50 px-2 py-1 rounded", children: "Action Required" }) }))] }), _jsxs("button", { onClick: () => void handleOpenAccounts(), className: "bg-white rounded-xl border border-gray-200 p-5 text-left hover:shadow-md hover:border-blue-200 transition-all group", children: [_jsxs("div", { className: "flex items-start justify-between", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: `p-3 rounded-lg ${accountsDocument ? "bg-green-100" : "bg-amber-100"}`, children: _jsx(Wallet, { className: `w-5 h-5 ${accountsDocument ? "text-green-600" : "text-amber-600"}` }) }), _jsxs("div", { children: [_jsx("h3", { className: "font-semibold text-gray-900", children: "Accounts" }), _jsx("p", { className: "text-sm text-gray-500", children: accountsDocument
95
- ? "View and manage accounts"
96
- : "Set up your accounts first" })] })] }), _jsx(ArrowRight, { className: "w-5 h-5 text-gray-400 group-hover:text-blue-500 transition-colors" })] }), !accountsDocument && (_jsx("div", { className: "mt-3 pt-3 border-t border-gray-100", children: _jsx("span", { className: "text-xs font-medium text-amber-600 bg-amber-50 px-2 py-1 rounded", children: "Action Required" }) }))] }), _jsx("button", { onClick: handleOpenBilling, className: "bg-white rounded-xl border border-gray-200 p-5 text-left hover:shadow-md hover:border-blue-200 transition-all group", children: _jsxs("div", { className: "flex items-start justify-between", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: "p-3 bg-blue-100 rounded-lg", children: _jsx(Building2, { className: "w-5 h-5 text-blue-600" }) }), _jsxs("div", { children: [_jsx("h3", { className: "font-semibold text-gray-900", children: "Billing" }), _jsx("p", { className: "text-sm text-gray-500", children: monthFolders.size > 0
97
- ? `${monthFolders.size} month${monthFolders.size > 1 ? "s" : ""} configured`
98
- : "Manage monthly billing cycles" })] })] }), _jsx(ArrowRight, { className: "w-5 h-5 text-gray-400 group-hover:text-blue-500 transition-colors" })] }) })] }), _jsx(CreateHubProfileModal, { isOpen: showCreateHubModal, onClose: () => setShowCreateHubModal(false) })] }));
167
+ ? accountStats || "View and manage accounts"
168
+ : "Set up your accounts first" })] })] }), _jsx(ArrowRight, { className: "w-5 h-5 text-gray-400 group-hover:text-blue-500 transition-colors" })] }), !accountsDocument && (_jsx("div", { className: "mt-3 pt-3 border-t border-gray-100", children: _jsx("span", { className: "text-xs font-medium text-amber-600 bg-amber-50 px-2 py-1 rounded", children: "Action Required" }) }))] }), _jsx("button", { onClick: handleOpenBilling, className: "bg-white rounded-xl border border-gray-200 p-5 text-left hover:shadow-md hover:border-blue-200 transition-all group", children: _jsxs("div", { className: "flex items-start justify-between", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: "p-3 bg-blue-100 rounded-lg", children: _jsx(Building2, { className: "w-5 h-5 text-blue-600" }) }), _jsxs("div", { children: [_jsx("h3", { className: "font-semibold text-gray-900", children: "Billing" }), _jsx("p", { className: "text-sm text-gray-500", children: billingStats || "Manage monthly billing cycles" })] })] }), _jsx(ArrowRight, { className: "w-5 h-5 text-gray-400 group-hover:text-blue-500 transition-colors" })] }) })] }), _jsx(CreateHubProfileModal, { isOpen: showCreateHubModal, onClose: () => setShowCreateHubModal(false) })] }));
99
169
  }
@@ -0,0 +1,13 @@
1
+ interface DocumentDropZoneProps {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ }
5
+ /**
6
+ * Drop zone component that handles document uploads for the Contributor Billing drive.
7
+ * Supports:
8
+ * - Expense Reports: Auto-placed in Reporting folders based on period
9
+ * - Accounts: Kept at root level
10
+ */
11
+ export declare function DocumentDropZone({ children, className, }: DocumentDropZoneProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=DocumentDropZone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentDropZone.d.ts","sourceRoot":"","sources":["../../../../editors/contributor-billing/components/DocumentDropZone.tsx"],"names":[],"mappings":"AAUA,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,SAAc,GACf,EAAE,qBAAqB,2CA8IvB"}
@@ -0,0 +1,101 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useCallback, useRef, useState } from "react";
3
+ import { useOnDropFile, useSelectedDrive, useDocumentsInSelectedDrive, } from "@powerhousedao/reactor-browser";
4
+ import { toast } from "@powerhousedao/design-system/connect";
5
+ import { useDocumentAutoPlacement } from "../hooks/useDocumentAutoPlacement.js";
6
+ /**
7
+ * Drop zone component that handles document uploads for the Contributor Billing drive.
8
+ * Supports:
9
+ * - Expense Reports: Auto-placed in Reporting folders based on period
10
+ * - Accounts: Kept at root level
11
+ */
12
+ export function DocumentDropZone({ children, className = "", }) {
13
+ const onDropFile = useOnDropFile();
14
+ const [selectedDrive] = useSelectedDrive();
15
+ const documentsInDrive = useDocumentsInSelectedDrive();
16
+ const [isDragging, setIsDragging] = useState(false);
17
+ const dragCounterRef = useRef(0);
18
+ // Activate auto-placement hook
19
+ useDocumentAutoPlacement();
20
+ const driveId = selectedDrive?.header.id;
21
+ const handleDragEnter = useCallback((e) => {
22
+ e.preventDefault();
23
+ e.stopPropagation();
24
+ dragCounterRef.current++;
25
+ if (e.dataTransfer.items && e.dataTransfer.items.length > 0) {
26
+ setIsDragging(true);
27
+ }
28
+ }, []);
29
+ const handleDragLeave = useCallback((e) => {
30
+ e.preventDefault();
31
+ e.stopPropagation();
32
+ dragCounterRef.current--;
33
+ if (dragCounterRef.current === 0) {
34
+ setIsDragging(false);
35
+ }
36
+ }, []);
37
+ const handleDragOver = useCallback((e) => {
38
+ e.preventDefault();
39
+ e.stopPropagation();
40
+ e.dataTransfer.dropEffect = "copy";
41
+ }, []);
42
+ const handleDrop = useCallback(async (e) => {
43
+ e.preventDefault();
44
+ e.stopPropagation();
45
+ setIsDragging(false);
46
+ dragCounterRef.current = 0;
47
+ const files = Array.from(e.dataTransfer.files);
48
+ if (files.length === 0 || !onDropFile || !driveId)
49
+ return;
50
+ // Filter to only accept .phd files (Powerhouse document archives)
51
+ const phdFiles = files.filter((file) => file.name.endsWith(".phd"));
52
+ const rejectedFiles = files.filter((file) => !file.name.endsWith(".phd"));
53
+ // Show error for rejected files
54
+ if (rejectedFiles.length > 0) {
55
+ const rejectedNames = rejectedFiles.map((f) => f.name).join(", ");
56
+ toast(`Only .phd files (Powerhouse documents) can be dropped here. Rejected: ${rejectedNames}`, { type: "error" });
57
+ }
58
+ if (phdFiles.length === 0)
59
+ return;
60
+ // Process all files
61
+ const filePromises = phdFiles.map(async (file) => {
62
+ try {
63
+ const fileNode = await onDropFile(file, (progress) => {
64
+ if (progress.stage === "complete") {
65
+ toast(`Successfully uploaded ${file.name}`, {
66
+ type: "success",
67
+ });
68
+ }
69
+ else if (progress.stage === "failed") {
70
+ toast(`Failed to upload ${file.name}`, {
71
+ type: "error",
72
+ });
73
+ }
74
+ });
75
+ if (fileNode) {
76
+ // Auto-placement hook will handle moving the document to the correct location
77
+ // Give it a moment to detect the new document
78
+ setTimeout(() => {
79
+ // Check if document was loaded and what type it is
80
+ const doc = documentsInDrive?.find((d) => d.header.id === fileNode.id);
81
+ if (doc) {
82
+ const docType = doc.header.documentType;
83
+ if (docType === "powerhouse/expense-report") {
84
+ toast(`Expense report uploaded. It will be placed in the appropriate Reporting folder based on its period.`, { type: "info" });
85
+ }
86
+ else if (docType === "powerhouse/accounts") {
87
+ toast(`Accounts document uploaded. It will remain at the root level.`, { type: "info" });
88
+ }
89
+ }
90
+ }, 1000);
91
+ }
92
+ }
93
+ catch (error) {
94
+ console.error("Error dropping file:", error);
95
+ toast(`Error uploading ${file.name}`, { type: "error" });
96
+ }
97
+ });
98
+ await Promise.allSettled(filePromises);
99
+ }, [onDropFile, driveId, documentsInDrive]);
100
+ return (_jsxs("div", { className: `relative ${className}`, onDragEnter: handleDragEnter, onDragLeave: handleDragLeave, onDragOver: handleDragOver, onDrop: handleDrop, children: [children, isDragging && (_jsx("div", { className: "absolute inset-0 z-50 flex items-center justify-center bg-blue-500/10 border-2 border-dashed border-blue-500 rounded-lg pointer-events-none", children: _jsx("div", { className: "bg-white rounded-lg shadow-lg p-6 border border-blue-200", children: _jsxs("div", { className: "text-center", children: [_jsx("div", { className: "text-4xl mb-2", children: "\uD83D\uDCC4" }), _jsx("p", { className: "text-lg font-semibold text-gray-900", children: "Drop documents here" }), _jsx("p", { className: "text-sm text-gray-600 mt-1", children: "Expense Reports and Accounts documents will be automatically organized" })] }) }) }))] }));
101
+ }
@@ -2,8 +2,9 @@ import type { SelectedFolderInfo } from "./FolderTree.js";
2
2
  interface DriveContentsProps {
3
3
  selectedFolder: SelectedFolderInfo | null;
4
4
  onFolderSelect?: (folderInfo: SelectedFolderInfo | null) => void;
5
+ onActiveNodeIdChange?: (nodeId: string) => void;
5
6
  }
6
7
  /** Shows the content based on the selected folder */
7
- export declare function DriveContents({ selectedFolder, onFolderSelect, }: DriveContentsProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function DriveContents({ selectedFolder, onFolderSelect, onActiveNodeIdChange, }: DriveContentsProps): import("react/jsx-runtime").JSX.Element;
8
9
  export {};
9
10
  //# sourceMappingURL=DriveContents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DriveContents.d.ts","sourceRoot":"","sources":["../../../../editors/contributor-billing/components/DriveContents.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,UAAU,kBAAkB;IAC1B,cAAc,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1C,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;CAClE;AAED,qDAAqD;AACrD,wBAAgB,aAAa,CAAC,EAC5B,cAAc,EACd,cAAc,GACf,EAAE,kBAAkB,2CAsFpB"}
1
+ {"version":3,"file":"DriveContents.d.ts","sourceRoot":"","sources":["../../../../editors/contributor-billing/components/DriveContents.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,UAAU,kBAAkB;IAC1B,cAAc,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1C,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;IACjE,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD;AAED,qDAAqD;AACrD,wBAAgB,aAAa,CAAC,EAC5B,cAAc,EACd,cAAc,EACd,oBAAoB,GACrB,EAAE,kBAAkB,2CAyFpB"}
@@ -7,27 +7,27 @@ import { BillingOverview } from "./BillingOverview.js";
7
7
  import { DashboardHome } from "./DashboardHome.js";
8
8
  import { SubscriptionsOverview } from "./SubscriptionsOverview.js";
9
9
  /** Shows the content based on the selected folder */
10
- export function DriveContents({ selectedFolder, onFolderSelect, }) {
10
+ export function DriveContents({ selectedFolder, onFolderSelect, onActiveNodeIdChange, }) {
11
11
  // Default view (no folder selected or root) - show the dashboard home
12
12
  if (!selectedFolder) {
13
- return (_jsx("div", { className: "container mx-auto flex-1 overflow-y-auto p-4", children: _jsx(Suspense, { children: _jsx(DashboardHome, { onFolderSelect: onFolderSelect }) }) }));
13
+ return (_jsx("div", { className: "container mx-auto flex-1 p-4", children: _jsx(Suspense, { children: _jsx(DashboardHome, { onFolderSelect: onFolderSelect }) }) }));
14
14
  }
15
15
  // Payments folder - show invoice table
16
16
  if (selectedFolder.folderType === "payments") {
17
- return (_jsxs("div", { className: "container mx-auto flex-1 overflow-y-auto p-4", children: [_jsxs("div", { className: "mb-4", children: [_jsxs("h1", { className: "text-2xl font-bold text-gray-900", children: ["Payments - ", selectedFolder.monthName] }), _jsxs("p", { className: "text-gray-600", children: ["Manage invoices and billing statements for", " ", selectedFolder.monthName] })] }), _jsx(Suspense, { children: _jsx(HeaderStats, { folderId: selectedFolder.folderId }) }), _jsx(Suspense, { children: _jsx(InvoiceTableContainer, { folderId: selectedFolder.folderId, monthName: selectedFolder.monthName, reportingFolderId: selectedFolder.reportingFolderId }) })] }, selectedFolder.folderId));
17
+ return (_jsxs("div", { className: "container mx-auto flex-1 p-4", children: [_jsxs("div", { className: "mb-4", children: [_jsxs("h1", { className: "text-2xl font-bold text-gray-900", children: ["Payments - ", selectedFolder.monthName] }), _jsxs("p", { className: "text-gray-600", children: ["Manage invoices and billing statements for", " ", selectedFolder.monthName] })] }), _jsx(Suspense, { children: _jsx(HeaderStats, { folderId: selectedFolder.folderId }) }), _jsx(Suspense, { children: _jsx(InvoiceTableContainer, { folderId: selectedFolder.folderId, monthName: selectedFolder.monthName, reportingFolderId: selectedFolder.reportingFolderId }) })] }, selectedFolder.folderId));
18
18
  }
19
19
  // Reporting folder - show expense and snapshot reports
20
20
  if (selectedFolder.folderType === "reporting") {
21
- return (_jsx("div", { className: "container mx-auto flex-1 overflow-y-auto p-4", children: _jsx(Suspense, { children: _jsx(ReportingView, { folderId: selectedFolder.folderId, monthName: selectedFolder.monthName }) }) }));
21
+ return (_jsx("div", { className: "container mx-auto flex-1 p-4", children: _jsx(Suspense, { children: _jsx(ReportingView, { folderId: selectedFolder.folderId, monthName: selectedFolder.monthName }) }) }));
22
22
  }
23
23
  // Billing folder - show all months overview
24
24
  if (selectedFolder.folderType === "billing") {
25
- return (_jsx("div", { className: "container mx-auto flex-1 overflow-y-auto p-4", children: _jsx(Suspense, { children: _jsx(BillingOverview, { onFolderSelect: onFolderSelect }) }) }));
25
+ return (_jsx("div", { className: "container mx-auto flex-1 p-4", children: _jsx(Suspense, { children: _jsx(BillingOverview, { onFolderSelect: onFolderSelect, onActiveNodeIdChange: onActiveNodeIdChange }) }) }));
26
26
  }
27
27
  // Subscriptions folder - show subscriptions overview
28
28
  if (selectedFolder.folderType === "subscriptions") {
29
- return (_jsx("div", { className: "container mx-auto flex-1 overflow-y-auto p-4", children: _jsx(Suspense, { children: _jsx(SubscriptionsOverview, {}) }) }));
29
+ return (_jsx("div", { className: "container mx-auto flex-1 p-4", children: _jsx(Suspense, { children: _jsx(SubscriptionsOverview, {}) }) }));
30
30
  }
31
31
  // Fallback - show dashboard home
32
- return (_jsx("div", { className: "container mx-auto flex-1 overflow-y-auto p-4", children: _jsx(Suspense, { children: _jsx(DashboardHome, { onFolderSelect: onFolderSelect }) }) }));
32
+ return (_jsx("div", { className: "container mx-auto flex-1 p-4", children: _jsx(Suspense, { children: _jsx(DashboardHome, { onFolderSelect: onFolderSelect }) }) }));
33
33
  }