@powerhousedao/contributor-billing 0.1.27 → 0.1.30

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 (390) hide show
  1. package/README.md +165 -8
  2. package/dist/document-models/billing-statement/actions.d.ts +1 -0
  3. package/dist/document-models/billing-statement/actions.d.ts.map +1 -1
  4. package/dist/document-models/billing-statement/gen/document-model.d.ts.map +1 -1
  5. package/dist/document-models/billing-statement/gen/document-model.js +58 -47
  6. package/dist/document-models/billing-statement/gen/document-schema.d.ts +38 -38
  7. package/dist/document-models/billing-statement/gen/document-schema.d.ts.map +1 -1
  8. package/dist/document-models/billing-statement/gen/line-items/actions.d.ts +6 -2
  9. package/dist/document-models/billing-statement/gen/line-items/actions.d.ts.map +1 -1
  10. package/dist/document-models/billing-statement/gen/line-items/creators.d.ts +3 -2
  11. package/dist/document-models/billing-statement/gen/line-items/creators.d.ts.map +1 -1
  12. package/dist/document-models/billing-statement/gen/line-items/creators.js +2 -1
  13. package/dist/document-models/billing-statement/gen/line-items/operations.d.ts +2 -1
  14. package/dist/document-models/billing-statement/gen/line-items/operations.d.ts.map +1 -1
  15. package/dist/document-models/billing-statement/gen/ph-factories.js +1 -1
  16. package/dist/document-models/billing-statement/gen/reducer.d.ts.map +1 -1
  17. package/dist/document-models/billing-statement/gen/reducer.js +5 -1
  18. package/dist/document-models/billing-statement/gen/schema/types.d.ts +3 -0
  19. package/dist/document-models/billing-statement/gen/schema/types.d.ts.map +1 -1
  20. package/dist/document-models/billing-statement/gen/schema/zod.d.ts +2 -1
  21. package/dist/document-models/billing-statement/gen/schema/zod.d.ts.map +1 -1
  22. package/dist/document-models/billing-statement/gen/schema/zod.js +5 -0
  23. package/dist/document-models/billing-statement/gen/utils.js +2 -2
  24. package/dist/document-models/billing-statement/src/reducers/general.d.ts.map +1 -1
  25. package/dist/document-models/billing-statement/src/reducers/general.js +5 -4
  26. package/dist/document-models/billing-statement/src/reducers/line-items.d.ts.map +1 -1
  27. package/dist/document-models/billing-statement/src/reducers/line-items.js +7 -2
  28. package/dist/document-models/billing-statement/src/reducers/tags.d.ts.map +1 -1
  29. package/dist/document-models/billing-statement/src/reducers/tags.js +1 -1
  30. package/dist/document-models/billing-statement/src/tests/document-model.test.d.ts +4 -0
  31. package/dist/document-models/billing-statement/src/tests/document-model.test.d.ts.map +1 -1
  32. package/dist/document-models/billing-statement/src/tests/document-model.test.js +94 -7
  33. package/dist/document-models/billing-statement/src/tests/general.test.d.ts +2 -1
  34. package/dist/document-models/billing-statement/src/tests/general.test.d.ts.map +1 -1
  35. package/dist/document-models/billing-statement/src/tests/general.test.js +33 -88
  36. package/dist/document-models/billing-statement/src/tests/line-items.test.js +22 -125
  37. package/dist/document-models/billing-statement/src/tests/tags.test.js +13 -47
  38. package/dist/document-models/document-models.js +2 -2
  39. package/dist/document-models/expense-report/gen/document-model.d.ts.map +1 -1
  40. package/dist/document-models/expense-report/gen/document-model.js +48 -48
  41. package/dist/document-models/expense-report/gen/document-schema.d.ts +6 -6
  42. package/dist/document-models/expense-report/gen/utils.js +1 -1
  43. package/dist/document-models/expense-report/src/tests/document-model.test.d.ts +4 -0
  44. package/dist/document-models/expense-report/src/tests/document-model.test.d.ts.map +1 -1
  45. package/dist/document-models/expense-report/src/tests/document-model.test.js +94 -8
  46. package/dist/document-models/expense-report/src/tests/wallet.test.js +145 -10
  47. package/dist/document-models/index.d.ts +2 -6
  48. package/dist/document-models/index.d.ts.map +1 -1
  49. package/dist/document-models/index.js +2 -6
  50. package/dist/document-models/integrations/gen/document-model.js +33 -33
  51. package/dist/document-models/integrations/gen/document-schema.d.ts +6 -6
  52. package/dist/document-models/integrations/gen/utils.js +1 -1
  53. package/dist/document-models/integrations/src/reducers/integrations.d.ts.map +1 -1
  54. package/dist/document-models/integrations/src/reducers/integrations.js +9 -32
  55. package/dist/document-models/integrations/src/tests/document-model.test.d.ts +4 -0
  56. package/dist/document-models/integrations/src/tests/document-model.test.d.ts.map +1 -1
  57. package/dist/document-models/integrations/src/tests/document-model.test.js +91 -5
  58. package/dist/document-models/integrations/src/tests/integrations.test.js +21 -46
  59. package/dist/document-models/invoice/gen/document-model.js +147 -147
  60. package/dist/document-models/invoice/gen/document-schema.d.ts +127 -127
  61. package/dist/document-models/invoice/gen/document-schema.d.ts.map +1 -1
  62. package/dist/document-models/invoice/gen/ph-factories.d.ts.map +1 -1
  63. package/dist/document-models/invoice/gen/ph-factories.js +16 -122
  64. package/dist/document-models/invoice/gen/schema/types.d.ts +4 -4
  65. package/dist/document-models/invoice/gen/schema/types.d.ts.map +1 -1
  66. package/dist/document-models/invoice/gen/schema/zod.d.ts.map +1 -1
  67. package/dist/document-models/invoice/gen/schema/zod.js +4 -4
  68. package/dist/document-models/invoice/gen/utils.d.ts.map +1 -1
  69. package/dist/document-models/invoice/gen/utils.js +17 -123
  70. package/dist/document-models/invoice/src/reducers/general.d.ts.map +1 -1
  71. package/dist/document-models/invoice/src/reducers/general.js +34 -10
  72. package/dist/document-models/invoice/src/reducers/items.d.ts.map +1 -1
  73. package/dist/document-models/invoice/src/reducers/items.js +7 -7
  74. package/dist/document-models/invoice/src/reducers/parties.d.ts.map +1 -1
  75. package/dist/document-models/invoice/src/reducers/parties.js +96 -50
  76. package/dist/document-models/invoice/src/reducers/transitions.d.ts.map +1 -1
  77. package/dist/document-models/invoice/src/reducers/transitions.js +69 -53
  78. package/dist/document-models/invoice/src/tests/document-model.test.d.ts +4 -0
  79. package/dist/document-models/invoice/src/tests/document-model.test.d.ts.map +1 -1
  80. package/dist/document-models/invoice/src/tests/document-model.test.js +91 -4
  81. package/dist/document-models/invoice/src/tests/general.test.js +24 -26
  82. package/dist/document-models/invoice/src/tests/items.test.js +37 -17
  83. package/dist/document-models/invoice/src/tests/parties.test.js +32 -26
  84. package/dist/document-models/invoice/src/tests/transitions.test.js +52 -500
  85. package/dist/document-models/invoice/utils/statusTransitions.d.ts.map +1 -1
  86. package/dist/document-models/invoice/utils/statusTransitions.js +10 -10
  87. package/dist/editors/billing-statement/components/lineItemsTable.d.ts.map +1 -1
  88. package/dist/editors/billing-statement/components/lineItemsTable.js +32 -23
  89. package/dist/editors/billing-statement/components/objectSetTable.d.ts.map +1 -1
  90. package/dist/editors/billing-statement/components/objectSetTable.js +1 -2
  91. package/dist/editors/billing-statement/editor.d.ts +4 -0
  92. package/dist/editors/billing-statement/editor.d.ts.map +1 -1
  93. package/dist/editors/billing-statement/editor.js +34 -16
  94. package/dist/editors/billing-statement/lineItemTags/lineItemTags.d.ts.map +1 -1
  95. package/dist/editors/billing-statement/lineItemTags/lineItemTags.js +36 -37
  96. package/dist/editors/billing-statement/lineItemTags/tagMapping.d.ts.map +1 -1
  97. package/dist/editors/billing-statement/lineItemTags/tagMapping.js +28 -10
  98. package/dist/editors/clean-new-editor/components/CreateDocument.d.ts +6 -0
  99. package/dist/editors/clean-new-editor/components/CreateDocument.d.ts.map +1 -0
  100. package/dist/editors/clean-new-editor/components/CreateDocument.js +18 -0
  101. package/dist/editors/clean-new-editor/components/DriveContents.d.ts +3 -0
  102. package/dist/editors/clean-new-editor/components/DriveContents.d.ts.map +1 -0
  103. package/dist/editors/clean-new-editor/components/DriveContents.js +10 -0
  104. package/dist/editors/clean-new-editor/components/DriveExplorer.d.ts +7 -0
  105. package/dist/editors/clean-new-editor/components/DriveExplorer.d.ts.map +1 -0
  106. package/dist/editors/clean-new-editor/components/DriveExplorer.js +16 -0
  107. package/dist/editors/clean-new-editor/components/EmptyState.d.ts +3 -0
  108. package/dist/editors/clean-new-editor/components/EmptyState.d.ts.map +1 -0
  109. package/dist/editors/clean-new-editor/components/EmptyState.js +10 -0
  110. package/dist/editors/clean-new-editor/components/Files.d.ts +3 -0
  111. package/dist/editors/clean-new-editor/components/Files.d.ts.map +1 -0
  112. package/dist/editors/clean-new-editor/components/Files.js +12 -0
  113. package/dist/editors/clean-new-editor/components/FolderTree.d.ts +6 -0
  114. package/dist/editors/clean-new-editor/components/FolderTree.d.ts.map +1 -0
  115. package/dist/editors/clean-new-editor/components/FolderTree.js +65 -0
  116. package/dist/editors/clean-new-editor/components/Folders.d.ts +3 -0
  117. package/dist/editors/clean-new-editor/components/Folders.d.ts.map +1 -0
  118. package/dist/editors/clean-new-editor/components/Folders.js +12 -0
  119. package/dist/editors/clean-new-editor/components/NavigationBreadcrumbs.d.ts +3 -0
  120. package/dist/editors/clean-new-editor/components/NavigationBreadcrumbs.d.ts.map +1 -0
  121. package/dist/editors/clean-new-editor/components/NavigationBreadcrumbs.js +6 -0
  122. package/dist/editors/clean-new-editor/config.d.ts +4 -0
  123. package/dist/editors/clean-new-editor/config.d.ts.map +1 -0
  124. package/dist/editors/clean-new-editor/config.js +5 -0
  125. package/dist/editors/clean-new-editor/editor.d.ts +4 -0
  126. package/dist/editors/clean-new-editor/editor.d.ts.map +1 -0
  127. package/dist/editors/clean-new-editor/editor.js +11 -0
  128. package/dist/editors/clean-new-editor/module.d.ts +3 -0
  129. package/dist/editors/clean-new-editor/module.d.ts.map +1 -0
  130. package/dist/editors/clean-new-editor/module.js +10 -0
  131. package/dist/editors/contributor-billing/components/ConfirmationModal.d.ts +14 -0
  132. package/dist/editors/contributor-billing/components/ConfirmationModal.d.ts.map +1 -0
  133. package/dist/editors/contributor-billing/components/ConfirmationModal.js +6 -0
  134. package/dist/editors/contributor-billing/components/CreateDocument.d.ts +6 -0
  135. package/dist/editors/contributor-billing/components/CreateDocument.d.ts.map +1 -0
  136. package/dist/editors/contributor-billing/components/CreateDocument.js +18 -0
  137. package/dist/editors/contributor-billing/components/DriveContents.d.ts +3 -0
  138. package/dist/editors/contributor-billing/components/DriveContents.d.ts.map +1 -0
  139. package/dist/editors/contributor-billing/components/DriveContents.js +10 -0
  140. package/dist/editors/contributor-billing/components/DriveExplorer.d.ts +3 -3
  141. package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -1
  142. package/dist/editors/contributor-billing/components/DriveExplorer.js +13 -180
  143. package/dist/editors/contributor-billing/components/EmptyState.d.ts +3 -0
  144. package/dist/editors/contributor-billing/components/EmptyState.d.ts.map +1 -0
  145. package/dist/editors/contributor-billing/components/EmptyState.js +10 -0
  146. package/dist/editors/contributor-billing/components/Files.d.ts +3 -0
  147. package/dist/editors/contributor-billing/components/Files.d.ts.map +1 -0
  148. package/dist/editors/contributor-billing/components/Files.js +12 -0
  149. package/dist/editors/contributor-billing/components/FolderTree.d.ts +6 -0
  150. package/dist/editors/contributor-billing/components/FolderTree.d.ts.map +1 -0
  151. package/dist/editors/contributor-billing/components/FolderTree.js +65 -0
  152. package/dist/editors/contributor-billing/components/Folders.d.ts +3 -0
  153. package/dist/editors/contributor-billing/components/Folders.d.ts.map +1 -0
  154. package/dist/editors/contributor-billing/components/Folders.js +12 -0
  155. package/dist/editors/contributor-billing/components/HeaderControls.d.ts +38 -0
  156. package/dist/editors/contributor-billing/components/HeaderControls.d.ts.map +1 -0
  157. package/dist/editors/contributor-billing/components/HeaderControls.js +124 -0
  158. package/dist/editors/contributor-billing/components/HeaderStats.d.ts.map +1 -0
  159. package/dist/editors/contributor-billing/components/{InvoiceTable/HeaderStats.js → HeaderStats.js} +1 -1
  160. package/dist/editors/contributor-billing/components/InvoiceTable.d.ts +22 -0
  161. package/dist/editors/contributor-billing/components/InvoiceTable.d.ts.map +1 -0
  162. package/dist/editors/contributor-billing/components/InvoiceTable.js +399 -0
  163. package/dist/editors/contributor-billing/components/InvoiceTableContainer.d.ts +6 -0
  164. package/dist/editors/contributor-billing/components/InvoiceTableContainer.d.ts.map +1 -0
  165. package/dist/editors/contributor-billing/components/InvoiceTableContainer.js +111 -0
  166. package/dist/editors/contributor-billing/components/InvoiceTableRow.d.ts +32 -0
  167. package/dist/editors/contributor-billing/components/InvoiceTableRow.d.ts.map +1 -0
  168. package/dist/editors/contributor-billing/components/InvoiceTableRow.js +55 -0
  169. package/dist/editors/contributor-billing/components/InvoiceTableSection.d.ts +13 -0
  170. package/dist/editors/contributor-billing/components/InvoiceTableSection.d.ts.map +1 -0
  171. package/dist/editors/contributor-billing/components/InvoiceTableSection.js +16 -0
  172. package/dist/editors/contributor-billing/components/NavigationBreadcrumbs.d.ts +3 -0
  173. package/dist/editors/contributor-billing/components/NavigationBreadcrumbs.d.ts.map +1 -0
  174. package/dist/editors/contributor-billing/components/NavigationBreadcrumbs.js +6 -0
  175. package/dist/editors/contributor-billing/config.d.ts +1 -0
  176. package/dist/editors/contributor-billing/config.d.ts.map +1 -1
  177. package/dist/editors/contributor-billing/config.js +4 -1
  178. package/dist/editors/contributor-billing/editor.d.ts +1 -0
  179. package/dist/editors/contributor-billing/editor.d.ts.map +1 -1
  180. package/dist/editors/contributor-billing/editor.js +4 -1
  181. package/dist/editors/contributor-billing/module.d.ts +1 -1
  182. package/dist/editors/contributor-billing/module.d.ts.map +1 -1
  183. package/dist/editors/contributor-billing/module.js +3 -2
  184. package/dist/editors/contributor-billing/utils/exchangeRate.d.ts +15 -0
  185. package/dist/editors/contributor-billing/utils/exchangeRate.d.ts.map +1 -0
  186. package/dist/editors/contributor-billing/utils/exchangeRate.js +122 -0
  187. package/dist/editors/editors.js +2 -2
  188. package/dist/editors/expense-report/components/AddBillingStatementModal.d.ts.map +1 -1
  189. package/dist/editors/expense-report/editor.js +8 -8
  190. package/dist/editors/index.d.ts +2 -2
  191. package/dist/editors/index.d.ts.map +1 -1
  192. package/dist/editors/index.js +2 -2
  193. package/dist/editors/integrations/components/EditName.d.ts +3 -0
  194. package/dist/editors/integrations/components/EditName.d.ts.map +1 -0
  195. package/dist/editors/integrations/components/EditName.js +31 -0
  196. package/dist/editors/integrations/editor.d.ts +2 -4
  197. package/dist/editors/integrations/editor.d.ts.map +1 -1
  198. package/dist/editors/integrations/editor.js +5 -132
  199. package/dist/editors/integrations/module.d.ts +1 -0
  200. package/dist/editors/integrations/module.d.ts.map +1 -1
  201. package/dist/editors/integrations/module.js +3 -2
  202. package/dist/editors/invoice/components/confirmationModal.js +1 -1
  203. package/dist/editors/invoice/components/countryForm.d.ts.map +1 -1
  204. package/dist/editors/invoice/components/countryForm.js +1 -1
  205. package/dist/editors/invoice/components/currencyForm.d.ts.map +1 -1
  206. package/dist/editors/invoice/components/currencyForm.js +1 -1
  207. package/dist/editors/invoice/components/datePicker.d.ts +1 -1
  208. package/dist/editors/invoice/components/datePicker.d.ts.map +1 -1
  209. package/dist/editors/invoice/components/datePicker.js +1 -1
  210. package/dist/editors/invoice/components/inputField.d.ts.map +1 -1
  211. package/dist/editors/invoice/components/inputField.js +3 -2
  212. package/dist/editors/invoice/components/lineItemMobileModal.d.ts.map +1 -1
  213. package/dist/editors/invoice/components/lineItemMobileModal.js +1 -1
  214. package/dist/editors/invoice/components/numberForm.d.ts.map +1 -1
  215. package/dist/editors/invoice/components/selectField.js +7 -7
  216. package/dist/editors/invoice/components/statusModalComponents.d.ts.map +1 -1
  217. package/dist/editors/invoice/components/statusModalComponents.js +27 -3
  218. package/dist/editors/invoice/editor.d.ts +1 -4
  219. package/dist/editors/invoice/editor.d.ts.map +1 -1
  220. package/dist/editors/invoice/editor.js +102 -40
  221. package/dist/editors/invoice/exportUBL.d.ts.map +1 -1
  222. package/dist/editors/invoice/exportUBL.js +35 -18
  223. package/dist/editors/invoice/ingestPDF.d.ts.map +1 -1
  224. package/dist/editors/invoice/ingestPDF.js +15 -9
  225. package/dist/editors/invoice/invoiceToGnosis.js +2 -2
  226. package/dist/editors/invoice/legalEntity/bankSection.d.ts.map +1 -1
  227. package/dist/editors/invoice/legalEntity/bankSection.js +19 -10
  228. package/dist/editors/invoice/legalEntity/legalEntity.d.ts +4 -0
  229. package/dist/editors/invoice/legalEntity/legalEntity.d.ts.map +1 -1
  230. package/dist/editors/invoice/legalEntity/legalEntity.js +66 -2
  231. package/dist/editors/invoice/legalEntity/walletSection.d.ts.map +1 -1
  232. package/dist/editors/invoice/legalEntity/walletSection.js +3 -3
  233. package/dist/editors/invoice/lineItemTags/lineItemTags.d.ts.map +1 -1
  234. package/dist/editors/invoice/lineItemTags/lineItemTags.js +1 -1
  235. package/dist/editors/invoice/lineItemTags/tagMobileModal.d.ts.map +1 -1
  236. package/dist/editors/invoice/lineItemTags/tagMobileModal.js +4 -3
  237. package/dist/editors/invoice/lineItems.d.ts.map +1 -1
  238. package/dist/editors/invoice/module.d.ts +1 -0
  239. package/dist/editors/invoice/module.d.ts.map +1 -1
  240. package/dist/editors/invoice/module.js +2 -1
  241. package/dist/editors/invoice/requestFinance.js +3 -3
  242. package/dist/editors/invoice/uploadPdfChunked.d.ts.map +1 -1
  243. package/dist/editors/invoice/uploadPdfChunked.js +5 -4
  244. package/dist/editors/invoice/utils/utils.d.ts.map +1 -1
  245. package/dist/editors/invoice/utils/utils.js +5 -4
  246. package/dist/editors/invoice/validation/validationHandler.d.ts.map +1 -1
  247. package/dist/editors/invoice/validation/validationHandler.js +11 -5
  248. package/dist/editors/invoice/validation/validationManager.d.ts +2 -2
  249. package/dist/editors/invoice/validation/validationManager.d.ts.map +1 -1
  250. package/dist/editors/invoice/validation/validationManager.js +5 -5
  251. package/dist/editors/invoice/validation/validationRules.d.ts.map +1 -1
  252. package/dist/editors/invoice/validation/validationRules.js +178 -178
  253. package/dist/index.d.ts +2 -2
  254. package/dist/index.d.ts.map +1 -1
  255. package/dist/index.js +4 -2
  256. package/dist/old-contributor-billing/components/DriveExplorer.d.ts +7 -0
  257. package/dist/old-contributor-billing/components/DriveExplorer.d.ts.map +1 -0
  258. package/dist/old-contributor-billing/components/DriveExplorer.js +184 -0
  259. package/dist/old-contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +1 -0
  260. package/dist/old-contributor-billing/components/InvoiceTable/HeaderStats.d.ts +2 -0
  261. package/dist/old-contributor-billing/components/InvoiceTable/HeaderStats.d.ts.map +1 -0
  262. package/dist/old-contributor-billing/components/InvoiceTable/HeaderStats.js +73 -0
  263. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +1 -0
  264. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +1 -0
  265. package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts.map +1 -0
  266. package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTableSection.js +1 -1
  267. package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/RowActionMenu.d.ts +1 -1
  268. package/dist/old-contributor-billing/components/InvoiceTable/RowActionMenu.d.ts.map +1 -0
  269. package/dist/old-contributor-billing/components/InvoiceTable/RowActionMenu.js +2 -0
  270. package/dist/old-contributor-billing/config.d.ts +3 -0
  271. package/dist/old-contributor-billing/config.d.ts.map +1 -0
  272. package/dist/old-contributor-billing/config.js +4 -0
  273. package/dist/old-contributor-billing/editor.d.ts +3 -0
  274. package/dist/old-contributor-billing/editor.d.ts.map +1 -0
  275. package/dist/old-contributor-billing/editor.js +8 -0
  276. package/dist/old-contributor-billing/module.d.ts +3 -0
  277. package/dist/old-contributor-billing/module.d.ts.map +1 -0
  278. package/dist/old-contributor-billing/module.js +9 -0
  279. package/dist/old-contributor-billing/util.d.ts.map +1 -0
  280. package/dist/{editors/contributor-billing → old-contributor-billing}/util.js +11 -9
  281. package/dist/powerhouse.manifest.json +6 -41
  282. package/dist/processors/index.d.ts +1 -6
  283. package/dist/processors/index.d.ts.map +1 -1
  284. package/dist/processors/index.js +1 -18
  285. package/dist/scripts/contributor-billing/createExpenseReportCsv.d.ts.map +1 -1
  286. package/dist/scripts/contributor-billing/createExpenseReportCsv.js +24 -24
  287. package/dist/scripts/contributor-billing/createXeroCsv.d.ts.map +1 -1
  288. package/dist/scripts/contributor-billing/createXeroCsv.js +52 -46
  289. package/dist/scripts/invoice/autoTagging.d.ts +1 -1
  290. package/dist/scripts/invoice/autoTagging.d.ts.map +1 -1
  291. package/dist/scripts/invoice/autoTagging.js +168 -138
  292. package/dist/scripts/invoice/exampleBatchTxn.js +16 -16
  293. package/dist/scripts/invoice/gnosisTransactionBuilder.d.ts.map +1 -1
  294. package/dist/scripts/invoice/gnosisTransactionBuilder.js +32 -25
  295. package/dist/scripts/invoice/pdfToClaudeAI.d.ts.map +1 -1
  296. package/dist/scripts/invoice/pdfToClaudeAI.js +36 -30
  297. package/dist/scripts/invoice/requestFinance.d.ts.map +1 -1
  298. package/dist/scripts/invoice/requestFinance.js +13 -13
  299. package/dist/style.css +407 -13659
  300. package/dist/subgraphs/billing-statement/resolvers.d.ts +1 -1
  301. package/dist/subgraphs/billing-statement/resolvers.d.ts.map +1 -1
  302. package/dist/subgraphs/billing-statement/resolvers.js +16 -5
  303. package/dist/subgraphs/billing-statement/schema.d.ts.map +1 -1
  304. package/dist/subgraphs/billing-statement/schema.js +12 -67
  305. package/dist/subgraphs/expense-report/resolvers.d.ts +1 -1
  306. package/dist/subgraphs/expense-report/resolvers.d.ts.map +1 -1
  307. package/dist/subgraphs/expense-report/resolvers.js +4 -5
  308. package/dist/subgraphs/expense-report/schema.d.ts.map +1 -1
  309. package/dist/subgraphs/expense-report/schema.js +5 -48
  310. package/dist/subgraphs/index.d.ts +1 -0
  311. package/dist/subgraphs/index.d.ts.map +1 -1
  312. package/dist/subgraphs/index.js +1 -0
  313. package/dist/subgraphs/integrations/resolvers.d.ts +1 -1
  314. package/dist/subgraphs/integrations/resolvers.d.ts.map +1 -1
  315. package/dist/subgraphs/integrations/resolvers.js +4 -5
  316. package/dist/subgraphs/integrations/schema.d.ts.map +1 -1
  317. package/dist/subgraphs/integrations/schema.js +3 -43
  318. package/dist/subgraphs/invoice/index.d.ts.map +1 -1
  319. package/dist/subgraphs/invoice/index.js +1 -20
  320. package/dist/subgraphs/invoice/resolvers.d.ts +1 -1
  321. package/dist/subgraphs/invoice/resolvers.d.ts.map +1 -1
  322. package/dist/subgraphs/invoice/resolvers.js +4 -9
  323. package/dist/subgraphs/invoice/schema.d.ts.map +1 -1
  324. package/dist/subgraphs/invoice/schema.js +14 -232
  325. package/dist/subgraphs/{invoice → invoice-addon}/customResolvers.d.ts +1 -1
  326. package/dist/subgraphs/invoice-addon/customResolvers.d.ts.map +1 -0
  327. package/dist/subgraphs/{invoice → invoice-addon}/customResolvers.js +38 -34
  328. package/dist/subgraphs/invoice-addon/index.d.ts +11 -0
  329. package/dist/subgraphs/invoice-addon/index.d.ts.map +1 -0
  330. package/dist/subgraphs/invoice-addon/index.js +11 -0
  331. package/dist/subgraphs/invoice-addon/resolvers.d.ts +3 -0
  332. package/dist/subgraphs/invoice-addon/resolvers.d.ts.map +1 -0
  333. package/dist/subgraphs/invoice-addon/resolvers.js +12 -0
  334. package/dist/subgraphs/invoice-addon/schema.d.ts +3 -0
  335. package/dist/subgraphs/invoice-addon/schema.d.ts.map +1 -0
  336. package/dist/subgraphs/invoice-addon/schema.js +52 -0
  337. package/package.json +9 -20
  338. package/dist/document-models/expense-report/gen/expense-report/actions.d.ts +0 -8
  339. package/dist/document-models/expense-report/gen/expense-report/actions.d.ts.map +0 -1
  340. package/dist/document-models/expense-report/gen/expense-report/actions.js +0 -1
  341. package/dist/document-models/expense-report/gen/expense-report/creators.d.ts +0 -4
  342. package/dist/document-models/expense-report/gen/expense-report/creators.d.ts.map +0 -1
  343. package/dist/document-models/expense-report/gen/expense-report/creators.js +0 -3
  344. package/dist/document-models/expense-report/gen/expense-report/error.d.ts +0 -2
  345. package/dist/document-models/expense-report/gen/expense-report/error.d.ts.map +0 -1
  346. package/dist/document-models/expense-report/gen/expense-report/error.js +0 -1
  347. package/dist/document-models/expense-report/gen/expense-report/operations.d.ts +0 -7
  348. package/dist/document-models/expense-report/gen/expense-report/operations.d.ts.map +0 -1
  349. package/dist/document-models/expense-report/gen/expense-report/operations.js +0 -3
  350. package/dist/document-models/expense-report/src/tests/expense-report.test.d.ts +0 -6
  351. package/dist/document-models/expense-report/src/tests/expense-report.test.d.ts.map +0 -1
  352. package/dist/document-models/expense-report/src/tests/expense-report.test.js +0 -24
  353. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +0 -1
  354. package/dist/editors/contributor-billing/components/InvoiceTable/HeaderStats.d.ts.map +0 -1
  355. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +0 -1
  356. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +0 -1
  357. package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts.map +0 -1
  358. package/dist/editors/contributor-billing/components/InvoiceTable/RowActionMenu.d.ts.map +0 -1
  359. package/dist/editors/contributor-billing/components/InvoiceTable/RowActionMenu.js +0 -2
  360. package/dist/editors/contributor-billing/util.d.ts.map +0 -1
  361. package/dist/editors/hooks/useBillingStatementDocument.d.ts +0 -4
  362. package/dist/editors/hooks/useBillingStatementDocument.d.ts.map +0 -1
  363. package/dist/editors/hooks/useBillingStatementDocument.js +0 -8
  364. package/dist/editors/hooks/useExpenseReportDocument.d.ts +0 -4
  365. package/dist/editors/hooks/useExpenseReportDocument.d.ts.map +0 -1
  366. package/dist/editors/hooks/useExpenseReportDocument.js +0 -8
  367. package/dist/editors/hooks/useIntegrationsDocument.d.ts +0 -4
  368. package/dist/editors/hooks/useIntegrationsDocument.d.ts.map +0 -1
  369. package/dist/editors/hooks/useIntegrationsDocument.js +0 -8
  370. package/dist/editors/hooks/useInvoiceDocument.d.ts +0 -4
  371. package/dist/editors/hooks/useInvoiceDocument.d.ts.map +0 -1
  372. package/dist/editors/hooks/useInvoiceDocument.js +0 -8
  373. package/dist/editors/integrations/config.d.ts +0 -3
  374. package/dist/editors/integrations/config.d.ts.map +0 -1
  375. package/dist/editors/integrations/config.js +0 -3
  376. package/dist/processors/line-item-processor/index.d.ts +0 -11
  377. package/dist/processors/line-item-processor/index.d.ts.map +0 -1
  378. package/dist/processors/line-item-processor/index.js +0 -36
  379. package/dist/subgraphs/invoice/customResolvers.d.ts.map +0 -1
  380. package/editors/invoice/assets/custom.d.ts +0 -4
  381. package/editors/invoice/assets/powerhouseLogo.png +0 -0
  382. /package/dist/editors/contributor-billing/components/{InvoiceTable/HeaderStats.d.ts → HeaderStats.d.ts} +0 -0
  383. /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/HeaderControls.d.ts +0 -0
  384. /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/HeaderControls.js +0 -0
  385. /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTable.d.ts +0 -0
  386. /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTable.js +0 -0
  387. /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTableRow.d.ts +0 -0
  388. /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTableRow.js +0 -0
  389. /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTableSection.d.ts +0 -0
  390. /package/dist/{editors/contributor-billing → old-contributor-billing}/util.d.ts +0 -0
@@ -19,204 +19,204 @@ function isValidEmail(email) {
19
19
  }
20
20
  // Invoice number validation rule
21
21
  export const invoiceNumberRule = {
22
- field: 'invoiceNo',
22
+ field: "invoiceNo",
23
23
  validate: (value) => {
24
- if (!value || value.trim() === '') {
24
+ if (!value || value.trim() === "") {
25
25
  return {
26
26
  isValid: false,
27
- message: 'Invoice number is required',
28
- severity: 'warning'
27
+ message: "Invoice number is required",
28
+ severity: "warning",
29
29
  };
30
30
  }
31
31
  return {
32
32
  isValid: true,
33
- message: '',
34
- severity: 'none'
33
+ message: "",
34
+ severity: "none",
35
35
  };
36
36
  },
37
37
  appliesTo: {
38
- currencies: ['ALL'],
38
+ currencies: ["ALL"],
39
39
  statusTransitions: {
40
- from: ['DRAFT'],
41
- to: ['ISSUED']
42
- }
43
- }
40
+ from: ["DRAFT"],
41
+ to: ["ISSUED"],
42
+ },
43
+ },
44
44
  };
45
45
  // Ethereum address validation rule
46
46
  export const ethereumAddressRule = {
47
- field: 'address',
47
+ field: "address",
48
48
  validate: (value) => {
49
- if (!value || value.trim() === '') {
49
+ if (!value || value.trim() === "") {
50
50
  return {
51
51
  isValid: false,
52
- message: 'Wallet address is required',
53
- severity: 'error'
52
+ message: "Wallet address is required",
53
+ severity: "error",
54
54
  };
55
55
  }
56
56
  if (!isValidEthereumAddress(value)) {
57
57
  return {
58
58
  isValid: false,
59
- message: 'Invalid Ethereum address format',
60
- severity: 'warning'
59
+ message: "Invalid Ethereum address format",
60
+ severity: "warning",
61
61
  };
62
62
  }
63
63
  return {
64
64
  isValid: true,
65
- message: '',
66
- severity: 'none'
65
+ message: "",
66
+ severity: "none",
67
67
  };
68
68
  },
69
69
  appliesTo: {
70
- currencies: ['USDS', 'DAI'], // Only apply for crypto currencies
70
+ currencies: ["USDS", "DAI"], // Only apply for crypto currencies
71
71
  statusTransitions: {
72
- from: ['DRAFT'],
73
- to: ['ISSUED']
74
- }
75
- }
72
+ from: ["DRAFT"],
73
+ to: ["ISSUED"],
74
+ },
75
+ },
76
76
  };
77
77
  export const currencyRule = {
78
- field: 'currency',
78
+ field: "currency",
79
79
  validate: (value) => {
80
- if (!value || value.trim() === '') {
80
+ if (!value || value.trim() === "") {
81
81
  return {
82
82
  isValid: false,
83
- message: 'Currency is required',
84
- severity: 'warning'
83
+ message: "Currency is required",
84
+ severity: "warning",
85
85
  };
86
86
  }
87
87
  return {
88
88
  isValid: true,
89
- message: '',
90
- severity: 'none'
89
+ message: "",
90
+ severity: "none",
91
91
  };
92
92
  },
93
93
  appliesTo: {
94
- currencies: ['ALL'],
94
+ currencies: ["ALL"],
95
95
  statusTransitions: {
96
- from: ['DRAFT'],
97
- to: ['ISSUED']
98
- }
99
- }
96
+ from: ["DRAFT"],
97
+ to: ["ISSUED"],
98
+ },
99
+ },
100
100
  };
101
101
  export const mainCountryRule = {
102
- field: 'mainCountry',
102
+ field: "mainCountry",
103
103
  validate: (value) => {
104
- if (!value || value.trim() === '') {
104
+ if (!value || value.trim() === "") {
105
105
  return {
106
106
  isValid: false,
107
- message: 'Country is required',
108
- severity: 'warning'
107
+ message: "Country is required",
108
+ severity: "warning",
109
109
  };
110
110
  }
111
111
  return {
112
112
  isValid: true,
113
- message: '',
114
- severity: 'none'
113
+ message: "",
114
+ severity: "none",
115
115
  };
116
116
  },
117
117
  appliesTo: {
118
- currencies: ['USD', 'EUR', 'GBP', 'JPY', 'CNY', 'CHF'],
118
+ currencies: ["USD", "EUR", "GBP", "JPY", "CNY", "CHF"],
119
119
  statusTransitions: {
120
- from: ['DRAFT'],
121
- to: ['ISSUED']
122
- }
123
- }
120
+ from: ["DRAFT"],
121
+ to: ["ISSUED"],
122
+ },
123
+ },
124
124
  };
125
125
  export const bankCountryRule = {
126
- field: 'bankCountry',
126
+ field: "bankCountry",
127
127
  validate: (value) => {
128
- if (!value || value.trim() === '') {
128
+ if (!value || value.trim() === "") {
129
129
  return {
130
130
  isValid: false,
131
- message: 'Bank country is required',
132
- severity: 'warning'
131
+ message: "Bank country is required",
132
+ severity: "warning",
133
133
  };
134
134
  }
135
135
  return {
136
136
  isValid: true,
137
- message: '',
138
- severity: 'none'
137
+ message: "",
138
+ severity: "none",
139
139
  };
140
140
  },
141
141
  appliesTo: {
142
- currencies: ['USD', 'EUR', 'GBP', 'JPY', 'CNY', 'CHF'],
142
+ currencies: ["USD", "EUR", "GBP", "JPY", "CNY", "CHF"],
143
143
  statusTransitions: {
144
- from: ['DRAFT'],
145
- to: ['ISSUED']
146
- }
147
- }
144
+ from: ["DRAFT"],
145
+ to: ["ISSUED"],
146
+ },
147
+ },
148
148
  };
149
149
  export const accountIbanRule = {
150
- field: 'accountNum',
150
+ field: "accountNum",
151
151
  validate: (value, document) => {
152
- if (!value || value.trim() === '') {
152
+ if (!value || value.trim() === "") {
153
153
  return {
154
154
  isValid: false,
155
- message: 'Account number is required',
156
- severity: 'warning'
155
+ message: "Account number is required",
156
+ severity: "warning",
157
157
  };
158
158
  }
159
159
  if (!isValidIBAN(value)) {
160
160
  return {
161
161
  isValid: false,
162
- message: 'Invalid account number format - For IBAN, ensure it starts with country code and follows IBAN format',
163
- severity: 'warning'
162
+ message: "Invalid account number format - For IBAN, ensure it starts with country code and follows IBAN format",
163
+ severity: "warning",
164
164
  };
165
165
  }
166
166
  return {
167
167
  isValid: true,
168
- message: '',
169
- severity: 'none'
168
+ message: "",
169
+ severity: "none",
170
170
  };
171
171
  },
172
172
  appliesTo: {
173
- currencies: ['EUR', 'GBP', 'DKK'],
173
+ currencies: ["EUR", "GBP", "DKK"],
174
174
  statusTransitions: {
175
- from: ['DRAFT'],
176
- to: ['ISSUED']
177
- }
178
- }
175
+ from: ["DRAFT"],
176
+ to: ["ISSUED"],
177
+ },
178
+ },
179
179
  };
180
180
  export const accountNumberRule = {
181
- field: 'accountNum',
181
+ field: "accountNum",
182
182
  validate: (value) => {
183
- if (!value || value.trim() === '') {
183
+ if (!value || value.trim() === "") {
184
184
  return {
185
185
  isValid: false,
186
- message: 'Account number is required',
187
- severity: 'warning'
186
+ message: "Account number is required",
187
+ severity: "warning",
188
188
  };
189
189
  }
190
190
  // Valid account numbers are 6-25 alphanumeric characters. If it DOES NOT match, it's invalid.
191
191
  if (!/^[\da-zA-Z]{6,25}$/.test(value)) {
192
192
  return {
193
193
  isValid: false,
194
- message: 'Invalid account number format - For account number, ensure it is 6-25 characters long',
195
- severity: 'warning'
194
+ message: "Invalid account number format - For account number, ensure it is 6-25 characters long",
195
+ severity: "warning",
196
196
  };
197
197
  }
198
198
  return {
199
199
  isValid: true,
200
- message: '',
201
- severity: 'none'
200
+ message: "",
201
+ severity: "none",
202
202
  };
203
203
  },
204
204
  appliesTo: {
205
- currencies: ['USD', 'JPY', 'CNY', 'CHF'],
205
+ currencies: ["USD", "JPY", "CNY", "CHF"],
206
206
  statusTransitions: {
207
- from: ['DRAFT'],
208
- to: ['ISSUED']
209
- }
210
- }
207
+ from: ["DRAFT"],
208
+ to: ["ISSUED"],
209
+ },
210
+ },
211
211
  };
212
212
  export const bicNumberRule = {
213
- field: 'bicNumber',
213
+ field: "bicNumber",
214
214
  validate: (value) => {
215
- if (!value || value.trim() === '') {
215
+ if (!value || value.trim() === "") {
216
216
  return {
217
217
  isValid: false,
218
- message: 'BIC/SWIFT number is required',
219
- severity: 'warning'
218
+ message: "BIC/SWIFT number is required",
219
+ severity: "warning",
220
220
  };
221
221
  }
222
222
  if (value) {
@@ -224,211 +224,211 @@ export const bicNumberRule = {
224
224
  if (!bicRegex.test(value)) {
225
225
  return {
226
226
  isValid: false,
227
- message: 'Invalid BIC/SWIFT number format',
228
- severity: 'warning'
227
+ message: "Invalid BIC/SWIFT number format",
228
+ severity: "warning",
229
229
  };
230
230
  }
231
231
  }
232
232
  return {
233
233
  isValid: true,
234
- message: '',
235
- severity: 'none'
234
+ message: "",
235
+ severity: "none",
236
236
  };
237
237
  },
238
238
  appliesTo: {
239
- currencies: ['EUR', 'GBP', 'USD'],
239
+ currencies: ["EUR", "GBP", "USD"],
240
240
  statusTransitions: {
241
- from: ['DRAFT'],
242
- to: ['ISSUED']
243
- }
244
- }
241
+ from: ["DRAFT"],
242
+ to: ["ISSUED"],
243
+ },
244
+ },
245
245
  };
246
246
  export const bankNameRule = {
247
- field: 'bankName',
247
+ field: "bankName",
248
248
  validate: (value) => {
249
- if (!value || value.trim() === '') {
249
+ if (!value || value.trim() === "") {
250
250
  return {
251
251
  isValid: false,
252
- message: 'Bank name is required',
253
- severity: 'warning'
252
+ message: "Bank name is required",
253
+ severity: "warning",
254
254
  };
255
255
  }
256
256
  return {
257
257
  isValid: true,
258
- message: '',
259
- severity: 'none'
258
+ message: "",
259
+ severity: "none",
260
260
  };
261
261
  },
262
262
  appliesTo: {
263
- currencies: ['USD', 'EUR', 'GBP', 'JPY', 'CNY', 'CHF'],
263
+ currencies: ["USD", "EUR", "GBP", "JPY", "CNY", "CHF"],
264
264
  statusTransitions: {
265
- from: ['DRAFT'],
266
- to: ['ISSUED']
267
- }
268
- }
265
+ from: ["DRAFT"],
266
+ to: ["ISSUED"],
267
+ },
268
+ },
269
269
  };
270
270
  export const issuerStreetAddressRule = {
271
- field: 'streetAddress',
271
+ field: "streetAddress",
272
272
  validate: (value) => {
273
- if (!value || value.trim() === '') {
273
+ if (!value || value.trim() === "") {
274
274
  return {
275
275
  isValid: false,
276
- message: 'Street address is required',
277
- severity: 'warning'
276
+ message: "Street address is required",
277
+ severity: "warning",
278
278
  };
279
279
  }
280
280
  return {
281
281
  isValid: true,
282
- message: '',
283
- severity: 'none'
282
+ message: "",
283
+ severity: "none",
284
284
  };
285
285
  },
286
286
  appliesTo: {
287
- currencies: ['USD', 'EUR', 'GBP', 'JPY', 'CNY', 'CHF'],
287
+ currencies: ["USD", "EUR", "GBP", "JPY", "CNY", "CHF"],
288
288
  statusTransitions: {
289
- from: ['DRAFT'],
290
- to: ['ISSUED']
291
- }
292
- }
289
+ from: ["DRAFT"],
290
+ to: ["ISSUED"],
291
+ },
292
+ },
293
293
  };
294
294
  export const issuerCityRule = {
295
- field: 'city',
295
+ field: "city",
296
296
  validate: (value) => {
297
- if (!value || value.trim() === '') {
297
+ if (!value || value.trim() === "") {
298
298
  return {
299
299
  isValid: false,
300
- message: 'City is required',
301
- severity: 'warning'
300
+ message: "City is required",
301
+ severity: "warning",
302
302
  };
303
303
  }
304
304
  return {
305
305
  isValid: true,
306
- message: '',
307
- severity: 'none'
306
+ message: "",
307
+ severity: "none",
308
308
  };
309
309
  },
310
310
  appliesTo: {
311
- currencies: ['USD', 'EUR', 'GBP', 'JPY', 'CNY', 'CHF'],
311
+ currencies: ["USD", "EUR", "GBP", "JPY", "CNY", "CHF"],
312
312
  statusTransitions: {
313
- from: ['DRAFT'],
314
- to: ['ISSUED']
315
- }
316
- }
313
+ from: ["DRAFT"],
314
+ to: ["ISSUED"],
315
+ },
316
+ },
317
317
  };
318
318
  export const issuerPostalCodeRule = {
319
- field: 'postalCode',
319
+ field: "postalCode",
320
320
  validate: (value) => {
321
- if (!value || value.trim() === '') {
321
+ if (!value || value.trim() === "") {
322
322
  return {
323
323
  isValid: false,
324
- message: 'Postal code is required',
325
- severity: 'warning'
324
+ message: "Postal code is required",
325
+ severity: "warning",
326
326
  };
327
327
  }
328
328
  return {
329
329
  isValid: true,
330
- message: '',
331
- severity: 'none'
330
+ message: "",
331
+ severity: "none",
332
332
  };
333
333
  },
334
334
  appliesTo: {
335
- currencies: ['USD', 'EUR', 'GBP', 'JPY', 'CNY', 'CHF'],
335
+ currencies: ["USD", "EUR", "GBP", "JPY", "CNY", "CHF"],
336
336
  statusTransitions: {
337
- from: ['DRAFT'],
338
- to: ['ISSUED']
339
- }
340
- }
337
+ from: ["DRAFT"],
338
+ to: ["ISSUED"],
339
+ },
340
+ },
341
341
  };
342
342
  export const payerEmailRule = {
343
- field: 'email',
343
+ field: "email",
344
344
  validate: (value) => {
345
- if (!value || value.trim() === '') {
345
+ if (!value || value.trim() === "") {
346
346
  return {
347
347
  isValid: false,
348
- message: 'Email is required',
349
- severity: 'warning'
348
+ message: "Email is required",
349
+ severity: "warning",
350
350
  };
351
351
  }
352
352
  if (!isValidEmail(value)) {
353
353
  return {
354
354
  isValid: false,
355
- message: 'Invalid email format',
356
- severity: 'warning'
355
+ message: "Invalid email format",
356
+ severity: "warning",
357
357
  };
358
358
  }
359
359
  return {
360
360
  isValid: true,
361
- message: '',
362
- severity: 'none'
361
+ message: "",
362
+ severity: "none",
363
363
  };
364
364
  },
365
365
  appliesTo: {
366
- currencies: ['USD', 'EUR', 'GBP', 'JPY', 'CNY', 'CHF'],
366
+ currencies: ["USD", "EUR", "GBP", "JPY", "CNY", "CHF"],
367
367
  statusTransitions: {
368
- from: ['DRAFT'],
369
- to: ['ISSUED']
370
- }
371
- }
368
+ from: ["DRAFT"],
369
+ to: ["ISSUED"],
370
+ },
371
+ },
372
372
  };
373
373
  export const lineItemRule = {
374
- field: 'lineItem',
374
+ field: "lineItem",
375
375
  validate: (value) => {
376
376
  if (value.length === 0) {
377
377
  return {
378
378
  isValid: false,
379
- message: 'Line item is required - Add at least one line item',
380
- severity: 'warning'
379
+ message: "Line item is required - Add at least one line item",
380
+ severity: "warning",
381
381
  };
382
382
  }
383
383
  return {
384
384
  isValid: true,
385
- message: '',
386
- severity: 'none'
385
+ message: "",
386
+ severity: "none",
387
387
  };
388
388
  },
389
389
  appliesTo: {
390
- currencies: ['USD', 'EUR', 'GBP', 'JPY', 'CNY', 'CHF'],
390
+ currencies: ["USD", "EUR", "GBP", "JPY", "CNY", "CHF"],
391
391
  statusTransitions: {
392
- from: ['DRAFT'],
393
- to: ['ISSUED']
394
- }
395
- }
392
+ from: ["DRAFT"],
393
+ to: ["ISSUED"],
394
+ },
395
+ },
396
396
  };
397
397
  export const routingNumberRule = {
398
- field: 'routingNumber',
398
+ field: "routingNumber",
399
399
  validate: (value) => {
400
- if (!value || value.trim() === '') {
400
+ if (!value || value.trim() === "") {
401
401
  return {
402
402
  isValid: false,
403
- message: 'Routing number is required',
404
- severity: 'warning'
403
+ message: "Routing number is required",
404
+ severity: "warning",
405
405
  };
406
406
  }
407
407
  if (value.length !== 9) {
408
408
  return {
409
409
  isValid: false,
410
- message: 'Routing number must be 9 digits',
411
- severity: 'warning'
410
+ message: "Routing number must be 9 digits",
411
+ severity: "warning",
412
412
  };
413
413
  }
414
414
  if (!/^[0-9]+$/.test(value)) {
415
415
  return {
416
416
  isValid: false,
417
- message: 'Routing number must contain only digits',
418
- severity: 'warning'
417
+ message: "Routing number must contain only digits",
418
+ severity: "warning",
419
419
  };
420
420
  }
421
421
  return {
422
422
  isValid: true,
423
- message: '',
424
- severity: 'none'
423
+ message: "",
424
+ severity: "none",
425
425
  };
426
426
  },
427
427
  appliesTo: {
428
- currencies: ['USD'],
428
+ currencies: ["USD"],
429
429
  statusTransitions: {
430
- from: ['DRAFT'],
431
- to: ['ISSUED']
432
- }
433
- }
430
+ from: ["DRAFT"],
431
+ to: ["ISSUED"],
432
+ },
433
+ },
434
434
  };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Manifest } from "document-model";
2
- export { documentModels } from "./document-models/document-models.js";
3
- export { editors } from "./editors/editors.js";
4
2
  export declare const manifest: Manifest;
3
+ export declare const documentModels: (import("document-model").DocumentModelModule<import("./document-models/invoice/index.js").InvoicePHState> | import("document-model").DocumentModelModule<import("./document-models/billing-statement/index.js").BillingStatementPHState> | import("document-model").DocumentModelModule<import("./document-models/integrations/index.js").IntegrationsPHState> | import("document-model").DocumentModelModule<import("./document-models/expense-report/index.js").ExpenseReportPHState>)[];
4
+ export declare const editors: import("document-model").EditorModule[];
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,eAAO,MAAM,QAAQ,EAAE,QAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAK/C,eAAO,MAAM,QAAQ,EAAE,QAAuB,CAAC;AAC/C,eAAO,MAAM,cAAc,6dAAuC,CAAC;AACnE,eAAO,MAAM,OAAO,yCAAgC,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  import manifestJson from "./powerhouse.manifest.json" with { type: "json" };
2
- export { documentModels } from "./document-models/document-models.js";
3
- export { editors } from "./editors/editors.js";
2
+ import * as documentModelsExports from "./document-models/index.js";
3
+ import * as editorsExports from "./editors/index.js";
4
4
  export const manifest = manifestJson;
5
+ export const documentModels = Object.values(documentModelsExports);
6
+ export const editors = Object.values(editorsExports);
@@ -0,0 +1,7 @@
1
+ import type { EditorProps } from "document-model";
2
+ /**
3
+ * Main drive explorer component with sidebar navigation and content area.
4
+ * Layout: Left sidebar (folder tree) + Right content area (files/folders + document editor)
5
+ */
6
+ export declare function DriveExplorer(props: EditorProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=DriveExplorer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DriveExplorer.d.ts","sourceRoot":"","sources":["../../../old-contributor-billing/components/DriveExplorer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAkBlD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,2CAkS/C"}