@powerhousedao/contributor-billing 0.1.29 → 0.1.31
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.
- package/README.md +165 -8
- package/dist/document-models/billing-statement/actions.d.ts +1 -0
- package/dist/document-models/billing-statement/actions.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/document-model.js +58 -47
- package/dist/document-models/billing-statement/gen/document-schema.d.ts +38 -38
- package/dist/document-models/billing-statement/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/line-items/actions.d.ts +6 -2
- package/dist/document-models/billing-statement/gen/line-items/actions.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/line-items/creators.d.ts +3 -2
- package/dist/document-models/billing-statement/gen/line-items/creators.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/line-items/creators.js +2 -1
- package/dist/document-models/billing-statement/gen/line-items/operations.d.ts +2 -1
- package/dist/document-models/billing-statement/gen/line-items/operations.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/ph-factories.js +1 -1
- package/dist/document-models/billing-statement/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/reducer.js +5 -1
- package/dist/document-models/billing-statement/gen/schema/types.d.ts +3 -0
- package/dist/document-models/billing-statement/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/schema/zod.d.ts +2 -1
- package/dist/document-models/billing-statement/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/schema/zod.js +5 -0
- package/dist/document-models/billing-statement/gen/utils.js +2 -2
- package/dist/document-models/billing-statement/src/reducers/general.d.ts.map +1 -1
- package/dist/document-models/billing-statement/src/reducers/general.js +5 -4
- package/dist/document-models/billing-statement/src/reducers/line-items.d.ts.map +1 -1
- package/dist/document-models/billing-statement/src/reducers/line-items.js +7 -2
- package/dist/document-models/billing-statement/src/reducers/tags.d.ts.map +1 -1
- package/dist/document-models/billing-statement/src/reducers/tags.js +1 -1
- package/dist/document-models/billing-statement/src/tests/document-model.test.d.ts +4 -0
- package/dist/document-models/billing-statement/src/tests/document-model.test.d.ts.map +1 -1
- package/dist/document-models/billing-statement/src/tests/document-model.test.js +94 -7
- package/dist/document-models/billing-statement/src/tests/general.test.d.ts +2 -1
- package/dist/document-models/billing-statement/src/tests/general.test.d.ts.map +1 -1
- package/dist/document-models/billing-statement/src/tests/general.test.js +33 -88
- package/dist/document-models/billing-statement/src/tests/line-items.test.js +22 -125
- package/dist/document-models/billing-statement/src/tests/tags.test.js +13 -47
- package/dist/document-models/document-models.js +2 -2
- package/dist/document-models/expense-report/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/document-model.js +48 -48
- package/dist/document-models/expense-report/gen/document-schema.d.ts +6 -6
- package/dist/document-models/expense-report/gen/utils.js +1 -1
- package/dist/document-models/expense-report/src/tests/document-model.test.d.ts +4 -0
- package/dist/document-models/expense-report/src/tests/document-model.test.d.ts.map +1 -1
- package/dist/document-models/expense-report/src/tests/document-model.test.js +94 -8
- package/dist/document-models/expense-report/src/tests/wallet.test.js +145 -10
- package/dist/document-models/index.d.ts +2 -6
- package/dist/document-models/index.d.ts.map +1 -1
- package/dist/document-models/index.js +2 -6
- package/dist/document-models/integrations/gen/document-model.js +33 -33
- package/dist/document-models/integrations/gen/document-schema.d.ts +6 -6
- package/dist/document-models/integrations/gen/utils.js +1 -1
- package/dist/document-models/integrations/src/reducers/integrations.d.ts.map +1 -1
- package/dist/document-models/integrations/src/reducers/integrations.js +9 -32
- package/dist/document-models/integrations/src/tests/document-model.test.d.ts +4 -0
- package/dist/document-models/integrations/src/tests/document-model.test.d.ts.map +1 -1
- package/dist/document-models/integrations/src/tests/document-model.test.js +91 -5
- package/dist/document-models/integrations/src/tests/integrations.test.js +21 -46
- package/dist/document-models/invoice/gen/document-model.js +147 -147
- package/dist/document-models/invoice/gen/document-schema.d.ts +127 -127
- package/dist/document-models/invoice/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/ph-factories.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/ph-factories.js +16 -122
- package/dist/document-models/invoice/gen/schema/types.d.ts +4 -4
- package/dist/document-models/invoice/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/schema/zod.js +4 -4
- package/dist/document-models/invoice/gen/utils.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/utils.js +17 -123
- package/dist/document-models/invoice/src/reducers/general.d.ts.map +1 -1
- package/dist/document-models/invoice/src/reducers/general.js +34 -10
- package/dist/document-models/invoice/src/reducers/items.d.ts.map +1 -1
- package/dist/document-models/invoice/src/reducers/items.js +7 -7
- package/dist/document-models/invoice/src/reducers/parties.d.ts.map +1 -1
- package/dist/document-models/invoice/src/reducers/parties.js +96 -50
- package/dist/document-models/invoice/src/reducers/transitions.d.ts.map +1 -1
- package/dist/document-models/invoice/src/reducers/transitions.js +69 -53
- package/dist/document-models/invoice/src/tests/document-model.test.d.ts +4 -0
- package/dist/document-models/invoice/src/tests/document-model.test.d.ts.map +1 -1
- package/dist/document-models/invoice/src/tests/document-model.test.js +91 -4
- package/dist/document-models/invoice/src/tests/general.test.js +24 -26
- package/dist/document-models/invoice/src/tests/items.test.js +37 -17
- package/dist/document-models/invoice/src/tests/parties.test.js +32 -26
- package/dist/document-models/invoice/src/tests/transitions.test.js +52 -500
- package/dist/document-models/invoice/utils/statusTransitions.d.ts.map +1 -1
- package/dist/document-models/invoice/utils/statusTransitions.js +10 -10
- package/dist/editors/billing-statement/components/lineItemsTable.d.ts.map +1 -1
- package/dist/editors/billing-statement/components/lineItemsTable.js +32 -23
- package/dist/editors/billing-statement/components/objectSetTable.d.ts.map +1 -1
- package/dist/editors/billing-statement/components/objectSetTable.js +1 -2
- package/dist/editors/billing-statement/editor.d.ts +4 -0
- package/dist/editors/billing-statement/editor.d.ts.map +1 -1
- package/dist/editors/billing-statement/editor.js +34 -16
- package/dist/editors/billing-statement/lineItemTags/lineItemTags.d.ts.map +1 -1
- package/dist/editors/billing-statement/lineItemTags/lineItemTags.js +36 -37
- package/dist/editors/billing-statement/lineItemTags/tagMapping.d.ts.map +1 -1
- package/dist/editors/billing-statement/lineItemTags/tagMapping.js +28 -10
- package/dist/editors/clean-new-editor/components/CreateDocument.d.ts +6 -0
- package/dist/editors/clean-new-editor/components/CreateDocument.d.ts.map +1 -0
- package/dist/editors/clean-new-editor/components/CreateDocument.js +18 -0
- package/dist/editors/clean-new-editor/components/DriveContents.d.ts +3 -0
- package/dist/editors/clean-new-editor/components/DriveContents.d.ts.map +1 -0
- package/dist/editors/clean-new-editor/components/DriveContents.js +10 -0
- package/dist/editors/clean-new-editor/components/DriveExplorer.d.ts +7 -0
- package/dist/editors/clean-new-editor/components/DriveExplorer.d.ts.map +1 -0
- package/dist/editors/clean-new-editor/components/DriveExplorer.js +16 -0
- package/dist/editors/clean-new-editor/components/EmptyState.d.ts +3 -0
- package/dist/editors/clean-new-editor/components/EmptyState.d.ts.map +1 -0
- package/dist/editors/clean-new-editor/components/EmptyState.js +10 -0
- package/dist/editors/clean-new-editor/components/Files.d.ts +3 -0
- package/dist/editors/clean-new-editor/components/Files.d.ts.map +1 -0
- package/dist/editors/clean-new-editor/components/Files.js +12 -0
- package/dist/editors/clean-new-editor/components/FolderTree.d.ts +6 -0
- package/dist/editors/clean-new-editor/components/FolderTree.d.ts.map +1 -0
- package/dist/editors/clean-new-editor/components/FolderTree.js +65 -0
- package/dist/editors/clean-new-editor/components/Folders.d.ts +3 -0
- package/dist/editors/clean-new-editor/components/Folders.d.ts.map +1 -0
- package/dist/editors/clean-new-editor/components/Folders.js +12 -0
- package/dist/editors/clean-new-editor/components/NavigationBreadcrumbs.d.ts +3 -0
- package/dist/editors/clean-new-editor/components/NavigationBreadcrumbs.d.ts.map +1 -0
- package/dist/editors/clean-new-editor/components/NavigationBreadcrumbs.js +6 -0
- package/dist/editors/clean-new-editor/config.d.ts +4 -0
- package/dist/editors/clean-new-editor/config.d.ts.map +1 -0
- package/dist/editors/clean-new-editor/config.js +5 -0
- package/dist/editors/clean-new-editor/editor.d.ts +4 -0
- package/dist/editors/clean-new-editor/editor.d.ts.map +1 -0
- package/dist/editors/clean-new-editor/editor.js +11 -0
- package/dist/editors/clean-new-editor/module.d.ts +3 -0
- package/dist/editors/clean-new-editor/module.d.ts.map +1 -0
- package/dist/editors/clean-new-editor/module.js +10 -0
- package/dist/editors/contributor-billing/components/ConfirmationModal.d.ts +14 -0
- package/dist/editors/contributor-billing/components/ConfirmationModal.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/ConfirmationModal.js +6 -0
- package/dist/editors/contributor-billing/components/CreateDocument.d.ts +6 -0
- package/dist/editors/contributor-billing/components/CreateDocument.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/CreateDocument.js +18 -0
- package/dist/editors/contributor-billing/components/DriveContents.d.ts +3 -0
- package/dist/editors/contributor-billing/components/DriveContents.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/DriveContents.js +10 -0
- package/dist/editors/contributor-billing/components/DriveExplorer.d.ts +3 -3
- package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/DriveExplorer.js +13 -180
- package/dist/editors/contributor-billing/components/EmptyState.d.ts +3 -0
- package/dist/editors/contributor-billing/components/EmptyState.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/EmptyState.js +10 -0
- package/dist/editors/contributor-billing/components/Files.d.ts +3 -0
- package/dist/editors/contributor-billing/components/Files.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/Files.js +12 -0
- package/dist/editors/contributor-billing/components/FolderTree.d.ts +6 -0
- package/dist/editors/contributor-billing/components/FolderTree.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/FolderTree.js +65 -0
- package/dist/editors/contributor-billing/components/Folders.d.ts +3 -0
- package/dist/editors/contributor-billing/components/Folders.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/Folders.js +12 -0
- package/dist/editors/contributor-billing/components/HeaderControls.d.ts +38 -0
- package/dist/editors/contributor-billing/components/HeaderControls.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/HeaderControls.js +124 -0
- package/dist/editors/contributor-billing/components/HeaderStats.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/{InvoiceTable/HeaderStats.js → HeaderStats.js} +1 -1
- package/dist/editors/contributor-billing/components/InvoiceTable.d.ts +22 -0
- package/dist/editors/contributor-billing/components/InvoiceTable.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTable.js +399 -0
- package/dist/editors/contributor-billing/components/InvoiceTableContainer.d.ts +6 -0
- package/dist/editors/contributor-billing/components/InvoiceTableContainer.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTableContainer.js +111 -0
- package/dist/editors/contributor-billing/components/InvoiceTableRow.d.ts +32 -0
- package/dist/editors/contributor-billing/components/InvoiceTableRow.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTableRow.js +55 -0
- package/dist/editors/contributor-billing/components/InvoiceTableSection.d.ts +13 -0
- package/dist/editors/contributor-billing/components/InvoiceTableSection.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTableSection.js +16 -0
- package/dist/editors/contributor-billing/components/NavigationBreadcrumbs.d.ts +3 -0
- package/dist/editors/contributor-billing/components/NavigationBreadcrumbs.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/NavigationBreadcrumbs.js +6 -0
- package/dist/editors/contributor-billing/config.d.ts +1 -0
- package/dist/editors/contributor-billing/config.d.ts.map +1 -1
- package/dist/editors/contributor-billing/config.js +4 -1
- package/dist/editors/contributor-billing/editor.d.ts +1 -0
- package/dist/editors/contributor-billing/editor.d.ts.map +1 -1
- package/dist/editors/contributor-billing/editor.js +4 -1
- package/dist/editors/contributor-billing/module.d.ts +1 -1
- package/dist/editors/contributor-billing/module.d.ts.map +1 -1
- package/dist/editors/contributor-billing/module.js +3 -2
- package/dist/editors/contributor-billing/utils/exchangeRate.d.ts +15 -0
- package/dist/editors/contributor-billing/utils/exchangeRate.d.ts.map +1 -0
- package/dist/editors/contributor-billing/utils/exchangeRate.js +122 -0
- package/dist/editors/editors.js +2 -2
- package/dist/editors/expense-report/components/AddBillingStatementModal.d.ts.map +1 -1
- package/dist/editors/expense-report/editor.js +8 -8
- package/dist/editors/index.d.ts +2 -2
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +2 -2
- package/dist/editors/integrations/components/EditName.d.ts +3 -0
- package/dist/editors/integrations/components/EditName.d.ts.map +1 -0
- package/dist/editors/integrations/components/EditName.js +31 -0
- package/dist/editors/integrations/editor.d.ts +2 -4
- package/dist/editors/integrations/editor.d.ts.map +1 -1
- package/dist/editors/integrations/editor.js +5 -132
- package/dist/editors/integrations/module.d.ts +1 -0
- package/dist/editors/integrations/module.d.ts.map +1 -1
- package/dist/editors/integrations/module.js +3 -2
- package/dist/editors/invoice/components/confirmationModal.js +1 -1
- package/dist/editors/invoice/components/countryForm.d.ts.map +1 -1
- package/dist/editors/invoice/components/countryForm.js +1 -1
- package/dist/editors/invoice/components/currencyForm.d.ts.map +1 -1
- package/dist/editors/invoice/components/currencyForm.js +1 -1
- package/dist/editors/invoice/components/datePicker.d.ts +1 -1
- package/dist/editors/invoice/components/datePicker.d.ts.map +1 -1
- package/dist/editors/invoice/components/datePicker.js +1 -1
- package/dist/editors/invoice/components/inputField.d.ts.map +1 -1
- package/dist/editors/invoice/components/inputField.js +3 -2
- package/dist/editors/invoice/components/lineItemMobileModal.d.ts.map +1 -1
- package/dist/editors/invoice/components/lineItemMobileModal.js +1 -1
- package/dist/editors/invoice/components/numberForm.d.ts.map +1 -1
- package/dist/editors/invoice/components/selectField.js +7 -7
- package/dist/editors/invoice/components/statusModalComponents.d.ts.map +1 -1
- package/dist/editors/invoice/components/statusModalComponents.js +27 -3
- package/dist/editors/invoice/editor.d.ts +1 -4
- package/dist/editors/invoice/editor.d.ts.map +1 -1
- package/dist/editors/invoice/editor.js +102 -40
- package/dist/editors/invoice/exportUBL.d.ts.map +1 -1
- package/dist/editors/invoice/exportUBL.js +35 -18
- package/dist/editors/invoice/ingestPDF.d.ts.map +1 -1
- package/dist/editors/invoice/ingestPDF.js +15 -9
- package/dist/editors/invoice/invoiceToGnosis.js +2 -2
- package/dist/editors/invoice/legalEntity/bankSection.d.ts.map +1 -1
- package/dist/editors/invoice/legalEntity/legalEntity.d.ts.map +1 -1
- package/dist/editors/invoice/legalEntity/walletSection.d.ts.map +1 -1
- package/dist/editors/invoice/legalEntity/walletSection.js +3 -3
- package/dist/editors/invoice/lineItemTags/lineItemTags.d.ts.map +1 -1
- package/dist/editors/invoice/lineItemTags/lineItemTags.js +1 -1
- package/dist/editors/invoice/lineItemTags/tagMobileModal.d.ts.map +1 -1
- package/dist/editors/invoice/lineItemTags/tagMobileModal.js +4 -3
- package/dist/editors/invoice/lineItems.d.ts.map +1 -1
- package/dist/editors/invoice/module.d.ts +1 -0
- package/dist/editors/invoice/module.d.ts.map +1 -1
- package/dist/editors/invoice/module.js +2 -1
- package/dist/editors/invoice/requestFinance.js +3 -3
- package/dist/editors/invoice/uploadPdfChunked.d.ts.map +1 -1
- package/dist/editors/invoice/uploadPdfChunked.js +4 -3
- package/dist/editors/invoice/utils/utils.d.ts.map +1 -1
- package/dist/editors/invoice/utils/utils.js +5 -4
- package/dist/editors/invoice/validation/validationHandler.d.ts.map +1 -1
- package/dist/editors/invoice/validation/validationHandler.js +11 -5
- package/dist/editors/invoice/validation/validationManager.d.ts +2 -2
- package/dist/editors/invoice/validation/validationManager.d.ts.map +1 -1
- package/dist/editors/invoice/validation/validationManager.js +5 -5
- package/dist/editors/invoice/validation/validationRules.d.ts.map +1 -1
- package/dist/editors/invoice/validation/validationRules.js +178 -178
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/old-contributor-billing/components/DriveExplorer.d.ts +7 -0
- package/dist/old-contributor-billing/components/DriveExplorer.d.ts.map +1 -0
- package/dist/old-contributor-billing/components/DriveExplorer.js +184 -0
- package/dist/old-contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +1 -0
- package/dist/old-contributor-billing/components/InvoiceTable/HeaderStats.d.ts +2 -0
- package/dist/old-contributor-billing/components/InvoiceTable/HeaderStats.d.ts.map +1 -0
- package/dist/old-contributor-billing/components/InvoiceTable/HeaderStats.js +73 -0
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +1 -0
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +1 -0
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts.map +1 -0
- package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTableSection.js +1 -1
- package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/RowActionMenu.d.ts +1 -1
- package/dist/old-contributor-billing/components/InvoiceTable/RowActionMenu.d.ts.map +1 -0
- package/dist/old-contributor-billing/components/InvoiceTable/RowActionMenu.js +2 -0
- package/dist/old-contributor-billing/config.d.ts +3 -0
- package/dist/old-contributor-billing/config.d.ts.map +1 -0
- package/dist/old-contributor-billing/config.js +4 -0
- package/dist/old-contributor-billing/editor.d.ts +3 -0
- package/dist/old-contributor-billing/editor.d.ts.map +1 -0
- package/dist/old-contributor-billing/editor.js +8 -0
- package/dist/old-contributor-billing/module.d.ts +3 -0
- package/dist/old-contributor-billing/module.d.ts.map +1 -0
- package/dist/old-contributor-billing/module.js +9 -0
- package/dist/old-contributor-billing/util.d.ts.map +1 -0
- package/dist/{editors/contributor-billing → old-contributor-billing}/util.js +11 -9
- package/dist/powerhouse.manifest.json +6 -41
- package/dist/processors/index.d.ts +1 -6
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +1 -18
- package/dist/scripts/contributor-billing/createExpenseReportCsv.d.ts.map +1 -1
- package/dist/scripts/contributor-billing/createExpenseReportCsv.js +24 -24
- package/dist/scripts/contributor-billing/createXeroCsv.d.ts.map +1 -1
- package/dist/scripts/contributor-billing/createXeroCsv.js +52 -46
- package/dist/scripts/invoice/autoTagging.d.ts +1 -1
- package/dist/scripts/invoice/autoTagging.d.ts.map +1 -1
- package/dist/scripts/invoice/autoTagging.js +168 -138
- package/dist/scripts/invoice/exampleBatchTxn.js +16 -16
- package/dist/scripts/invoice/gnosisTransactionBuilder.d.ts.map +1 -1
- package/dist/scripts/invoice/gnosisTransactionBuilder.js +32 -25
- package/dist/scripts/invoice/pdfToClaudeAI.d.ts.map +1 -1
- package/dist/scripts/invoice/pdfToClaudeAI.js +36 -30
- package/dist/scripts/invoice/requestFinance.d.ts.map +1 -1
- package/dist/scripts/invoice/requestFinance.js +13 -13
- package/dist/style.css +407 -13659
- package/dist/subgraphs/billing-statement/resolvers.d.ts +1 -1
- package/dist/subgraphs/billing-statement/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/billing-statement/resolvers.js +16 -5
- package/dist/subgraphs/billing-statement/schema.d.ts.map +1 -1
- package/dist/subgraphs/billing-statement/schema.js +12 -67
- package/dist/subgraphs/expense-report/resolvers.d.ts +1 -1
- package/dist/subgraphs/expense-report/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/expense-report/resolvers.js +4 -5
- package/dist/subgraphs/expense-report/schema.d.ts.map +1 -1
- package/dist/subgraphs/expense-report/schema.js +5 -48
- package/dist/subgraphs/index.d.ts +1 -0
- package/dist/subgraphs/index.d.ts.map +1 -1
- package/dist/subgraphs/index.js +1 -0
- package/dist/subgraphs/integrations/resolvers.d.ts +1 -1
- package/dist/subgraphs/integrations/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/integrations/resolvers.js +4 -5
- package/dist/subgraphs/integrations/schema.d.ts.map +1 -1
- package/dist/subgraphs/integrations/schema.js +3 -43
- package/dist/subgraphs/invoice/index.d.ts.map +1 -1
- package/dist/subgraphs/invoice/index.js +1 -20
- package/dist/subgraphs/invoice/resolvers.d.ts +1 -1
- package/dist/subgraphs/invoice/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/invoice/resolvers.js +4 -9
- package/dist/subgraphs/invoice/schema.d.ts.map +1 -1
- package/dist/subgraphs/invoice/schema.js +14 -232
- package/dist/subgraphs/{invoice → invoice-addon}/customResolvers.d.ts +1 -1
- package/dist/subgraphs/invoice-addon/customResolvers.d.ts.map +1 -0
- package/dist/subgraphs/{invoice → invoice-addon}/customResolvers.js +38 -34
- package/dist/subgraphs/invoice-addon/index.d.ts +11 -0
- package/dist/subgraphs/invoice-addon/index.d.ts.map +1 -0
- package/dist/subgraphs/invoice-addon/index.js +11 -0
- package/dist/subgraphs/invoice-addon/resolvers.d.ts +3 -0
- package/dist/subgraphs/invoice-addon/resolvers.d.ts.map +1 -0
- package/dist/subgraphs/invoice-addon/resolvers.js +12 -0
- package/dist/subgraphs/invoice-addon/schema.d.ts +3 -0
- package/dist/subgraphs/invoice-addon/schema.d.ts.map +1 -0
- package/dist/subgraphs/invoice-addon/schema.js +52 -0
- package/package.json +9 -21
- package/dist/document-models/expense-report/gen/expense-report/actions.d.ts +0 -8
- package/dist/document-models/expense-report/gen/expense-report/actions.d.ts.map +0 -1
- package/dist/document-models/expense-report/gen/expense-report/actions.js +0 -1
- package/dist/document-models/expense-report/gen/expense-report/creators.d.ts +0 -4
- package/dist/document-models/expense-report/gen/expense-report/creators.d.ts.map +0 -1
- package/dist/document-models/expense-report/gen/expense-report/creators.js +0 -3
- package/dist/document-models/expense-report/gen/expense-report/error.d.ts +0 -2
- package/dist/document-models/expense-report/gen/expense-report/error.d.ts.map +0 -1
- package/dist/document-models/expense-report/gen/expense-report/error.js +0 -1
- package/dist/document-models/expense-report/gen/expense-report/operations.d.ts +0 -7
- package/dist/document-models/expense-report/gen/expense-report/operations.d.ts.map +0 -1
- package/dist/document-models/expense-report/gen/expense-report/operations.js +0 -3
- package/dist/document-models/expense-report/src/tests/expense-report.test.d.ts +0 -6
- package/dist/document-models/expense-report/src/tests/expense-report.test.d.ts.map +0 -1
- package/dist/document-models/expense-report/src/tests/expense-report.test.js +0 -24
- package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/InvoiceTable/HeaderStats.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/InvoiceTable/RowActionMenu.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/InvoiceTable/RowActionMenu.js +0 -2
- package/dist/editors/contributor-billing/util.d.ts.map +0 -1
- package/dist/editors/hooks/useBillingStatementDocument.d.ts +0 -4
- package/dist/editors/hooks/useBillingStatementDocument.d.ts.map +0 -1
- package/dist/editors/hooks/useBillingStatementDocument.js +0 -8
- package/dist/editors/hooks/useExpenseReportDocument.d.ts +0 -4
- package/dist/editors/hooks/useExpenseReportDocument.d.ts.map +0 -1
- package/dist/editors/hooks/useExpenseReportDocument.js +0 -8
- package/dist/editors/hooks/useIntegrationsDocument.d.ts +0 -4
- package/dist/editors/hooks/useIntegrationsDocument.d.ts.map +0 -1
- package/dist/editors/hooks/useIntegrationsDocument.js +0 -8
- package/dist/editors/hooks/useInvoiceDocument.d.ts +0 -4
- package/dist/editors/hooks/useInvoiceDocument.d.ts.map +0 -1
- package/dist/editors/hooks/useInvoiceDocument.js +0 -8
- package/dist/editors/integrations/config.d.ts +0 -3
- package/dist/editors/integrations/config.d.ts.map +0 -1
- package/dist/editors/integrations/config.js +0 -3
- package/dist/editors/invoice/exportSAFTPT.d.ts +0 -184
- package/dist/editors/invoice/exportSAFTPT.d.ts.map +0 -1
- package/dist/editors/invoice/exportSAFTPT.js +0 -548
- package/dist/processors/line-item-processor/index.d.ts +0 -11
- package/dist/processors/line-item-processor/index.d.ts.map +0 -1
- package/dist/processors/line-item-processor/index.js +0 -36
- package/dist/subgraphs/invoice/customResolvers.d.ts.map +0 -1
- package/editors/invoice/assets/custom.d.ts +0 -4
- package/editors/invoice/assets/powerhouseLogo.png +0 -0
- /package/dist/editors/contributor-billing/components/{InvoiceTable/HeaderStats.d.ts → HeaderStats.d.ts} +0 -0
- /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/HeaderControls.d.ts +0 -0
- /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/HeaderControls.js +0 -0
- /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTable.d.ts +0 -0
- /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTable.js +0 -0
- /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTableRow.d.ts +0 -0
- /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTableRow.js +0 -0
- /package/dist/{editors/contributor-billing → old-contributor-billing}/components/InvoiceTable/InvoiceTableSection.d.ts +0 -0
- /package/dist/{editors/contributor-billing → old-contributor-billing}/util.d.ts +0 -0
|
@@ -4,7 +4,7 @@ export const documentModel = {
|
|
|
4
4
|
website: "https://powerhouse.inc",
|
|
5
5
|
},
|
|
6
6
|
description: "The Invoice document model that allows a contributor to request compensation based on their contributions",
|
|
7
|
-
extension: "
|
|
7
|
+
extension: "",
|
|
8
8
|
id: "powerhouse/invoice",
|
|
9
9
|
name: "Invoice",
|
|
10
10
|
specifications: [
|
|
@@ -12,338 +12,338 @@ export const documentModel = {
|
|
|
12
12
|
changeLog: [],
|
|
13
13
|
modules: [
|
|
14
14
|
{
|
|
15
|
+
description: "",
|
|
15
16
|
id: "WDJ7NWCy8TEDk1TWvr0F+VXvIqc=",
|
|
16
17
|
name: "general",
|
|
17
|
-
description: "",
|
|
18
18
|
operations: [
|
|
19
19
|
{
|
|
20
|
-
id: "8Ld7B60Upub1CNmVrx3TMzmyl54=",
|
|
21
|
-
name: "EDIT_INVOICE",
|
|
22
20
|
description: "",
|
|
23
|
-
schema: "input EditInvoiceInput {\n invoiceNo: String\n dateIssued: String\n dateDue: String\n currency: String\n notes: String\n}",
|
|
24
|
-
template: "",
|
|
25
|
-
reducer: "",
|
|
26
21
|
errors: [],
|
|
27
22
|
examples: [],
|
|
23
|
+
id: "8Ld7B60Upub1CNmVrx3TMzmyl54=",
|
|
24
|
+
name: "EDIT_INVOICE",
|
|
25
|
+
reducer: "",
|
|
26
|
+
schema: "input EditInvoiceInput {\n invoiceNo: String\n dateIssued: String\n dateDelivered: String\n dateDue: String\n currency: String\n notes: String\n}",
|
|
28
27
|
scope: "global",
|
|
28
|
+
template: "",
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
id: "cCXTmSu1J8VoyDQAk9l/ub3SjWw=",
|
|
32
|
-
name: "EDIT_STATUS",
|
|
33
31
|
description: "",
|
|
34
|
-
schema: "input EditStatusInput {\n status: Status!\n}",
|
|
35
|
-
template: "",
|
|
36
|
-
reducer: "",
|
|
37
32
|
errors: [],
|
|
38
33
|
examples: [],
|
|
34
|
+
id: "cCXTmSu1J8VoyDQAk9l/ub3SjWw=",
|
|
35
|
+
name: "EDIT_STATUS",
|
|
36
|
+
reducer: "",
|
|
37
|
+
schema: "input EditStatusInput {\n status: Status!\n}",
|
|
39
38
|
scope: "global",
|
|
39
|
+
template: "",
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
id: "a++9qKPt5DBpAB/T6dHeJLFLUnA=",
|
|
43
|
-
name: "EDIT_PAYMENT_DATA",
|
|
44
42
|
description: "",
|
|
45
|
-
schema: "input EditPaymentDataInput {\n id: OID!\n processorRef: String\n paymentDate: DateTime\n txnRef: String\n confirmed: Boolean!\n issue: String\n}",
|
|
46
|
-
template: "",
|
|
47
|
-
reducer: "",
|
|
48
43
|
errors: [],
|
|
49
44
|
examples: [],
|
|
45
|
+
id: "a++9qKPt5DBpAB/T6dHeJLFLUnA=",
|
|
46
|
+
name: "EDIT_PAYMENT_DATA",
|
|
47
|
+
reducer: "",
|
|
48
|
+
schema: "input EditPaymentDataInput {\n id: OID!\n processorRef: String\n paymentDate: DateTime\n txnRef: String\n confirmed: Boolean!\n issue: String\n}",
|
|
50
49
|
scope: "global",
|
|
50
|
+
template: "",
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
id: "GcKc8GFnD3w7M1fdwxBXrGBwCRM=",
|
|
54
|
-
name: "SET_EXPORTED_DATA",
|
|
55
53
|
description: "Set exported line items in CSV format with timestamp to track exports",
|
|
56
|
-
schema: "input SetExportedDataInput {\n timestamp: DateTime!\n exportedLineItems: [[String!]!]! \n}",
|
|
57
|
-
template: "",
|
|
58
|
-
reducer: "",
|
|
59
54
|
errors: [],
|
|
60
55
|
examples: [],
|
|
56
|
+
id: "GcKc8GFnD3w7M1fdwxBXrGBwCRM=",
|
|
57
|
+
name: "SET_EXPORTED_DATA",
|
|
58
|
+
reducer: "",
|
|
59
|
+
schema: "input SetExportedDataInput {\n timestamp: DateTime!\n exportedLineItems: [[String!]!]! \n}",
|
|
61
60
|
scope: "global",
|
|
61
|
+
template: "",
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
id: "1bd3e06e-2be9-4655-88cb-81f02547f9bf",
|
|
65
|
-
name: "ADD_PAYMENT",
|
|
66
64
|
description: "",
|
|
67
|
-
schema: "input AddPaymentInput {\n id: OID!\n processorRef: String\n paymentDate: DateTime\n txnRef: String\n confirmed: Boolean!\n issue: String\n}",
|
|
68
|
-
template: "",
|
|
69
|
-
reducer: "",
|
|
70
65
|
errors: [],
|
|
71
66
|
examples: [],
|
|
67
|
+
id: "1bd3e06e-2be9-4655-88cb-81f02547f9bf",
|
|
68
|
+
name: "ADD_PAYMENT",
|
|
69
|
+
reducer: "",
|
|
70
|
+
schema: "input AddPaymentInput {\n id: OID!\n processorRef: String\n paymentDate: DateTime\n txnRef: String\n confirmed: Boolean!\n issue: String\n}",
|
|
72
71
|
scope: "global",
|
|
72
|
+
template: "",
|
|
73
73
|
},
|
|
74
74
|
],
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
|
+
description: "",
|
|
77
78
|
id: "M8OqnRBEHn6EHQTyrx826u5xAJg=",
|
|
78
79
|
name: "parties",
|
|
79
|
-
description: "",
|
|
80
80
|
operations: [
|
|
81
81
|
{
|
|
82
|
-
id: "HSnSU0WWJ8ytXGtuYqKPy8mccB4=",
|
|
83
|
-
name: "EDIT_ISSUER",
|
|
84
82
|
description: "",
|
|
85
|
-
schema: "input EditIssuerInput {\n id: String\n name: String\n streetAddress: String\n extendedAddress: String\n city: String\n postalCode: String\n country: String\n stateProvince: String\n tel: String\n email: String\n}",
|
|
86
|
-
template: "",
|
|
87
|
-
reducer: "",
|
|
88
83
|
errors: [],
|
|
89
84
|
examples: [],
|
|
85
|
+
id: "HSnSU0WWJ8ytXGtuYqKPy8mccB4=",
|
|
86
|
+
name: "EDIT_ISSUER",
|
|
87
|
+
reducer: "",
|
|
88
|
+
schema: "input EditIssuerInput {\n id: String\n name: String\n streetAddress: String\n extendedAddress: String\n city: String\n postalCode: String\n country: String\n stateProvince: String\n tel: String\n email: String\n}",
|
|
90
89
|
scope: "global",
|
|
90
|
+
template: "",
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
id: "nq2GFV2bmGet6sNlA2XytS7cPA0=",
|
|
94
|
-
name: "EDIT_ISSUER_BANK",
|
|
95
93
|
description: "",
|
|
96
|
-
schema: "input EditIssuerBankInput {\n name: String\n streetAddress: String\n extendedAddress: String\n city: String\n postalCode: String\n country: String\n stateProvince: String\n ABA: String\n BIC: String\n SWIFT: String\n accountNum: String\n accountType: InvoiceAccountTypeInput\n beneficiary: String\n memo: String\n # intermediaryBank\n nameIntermediary: String\n streetAddressIntermediary: String\n extendedAddressIntermediary: String\n cityIntermediary: String\n postalCodeIntermediary: String\n countryIntermediary: String\n stateProvinceIntermediary: String\n ABAIntermediary: String\n BICIntermediary: String\n SWIFTIntermediary: String\n accountNumIntermediary: String\n accountTypeIntermediary: InvoiceAccountTypeInput\n beneficiaryIntermediary: String\n memoIntermediary: String\n}",
|
|
97
|
-
template: "",
|
|
98
|
-
reducer: "",
|
|
99
94
|
errors: [],
|
|
100
95
|
examples: [],
|
|
96
|
+
id: "nq2GFV2bmGet6sNlA2XytS7cPA0=",
|
|
97
|
+
name: "EDIT_ISSUER_BANK",
|
|
98
|
+
reducer: "",
|
|
99
|
+
schema: "input EditIssuerBankInput {\n name: String\n streetAddress: String\n extendedAddress: String\n city: String\n postalCode: String\n country: String\n stateProvince: String\n ABA: String\n BIC: String\n SWIFT: String\n accountNum: String\n accountType: InvoiceAccountTypeInput\n beneficiary: String\n memo: String\n # intermediaryBank\n nameIntermediary: String\n streetAddressIntermediary: String\n extendedAddressIntermediary: String\n cityIntermediary: String\n postalCodeIntermediary: String\n countryIntermediary: String\n stateProvinceIntermediary: String\n ABAIntermediary: String\n BICIntermediary: String\n SWIFTIntermediary: String\n accountNumIntermediary: String\n accountTypeIntermediary: InvoiceAccountTypeInput\n beneficiaryIntermediary: String\n memoIntermediary: String\n}",
|
|
101
100
|
scope: "global",
|
|
101
|
+
template: "",
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
id: "XtXz6W0lScsBwPkaWofR9LtWjm0=",
|
|
105
|
-
name: "EDIT_ISSUER_WALLET",
|
|
106
104
|
description: "",
|
|
107
|
-
schema: "input EditIssuerWalletInput {\n rpc: String\n chainName: String\n chainId: String\n address: String\n}\n\n",
|
|
108
|
-
template: "",
|
|
109
|
-
reducer: "",
|
|
110
105
|
errors: [],
|
|
111
106
|
examples: [],
|
|
107
|
+
id: "XtXz6W0lScsBwPkaWofR9LtWjm0=",
|
|
108
|
+
name: "EDIT_ISSUER_WALLET",
|
|
109
|
+
reducer: "",
|
|
110
|
+
schema: "input EditIssuerWalletInput {\n rpc: String\n chainName: String\n chainId: String\n address: String\n}\n\n",
|
|
112
111
|
scope: "global",
|
|
112
|
+
template: "",
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
|
-
id: "Lt7r5VNsfyWZhAlm/g3VY0buEhM=",
|
|
116
|
-
name: "EDIT_PAYER",
|
|
117
115
|
description: "",
|
|
118
|
-
schema: "input EditPayerInput {\n id: String\n name: String\n streetAddress: String\n extendedAddress: String\n city: String\n postalCode: String\n country: String\n stateProvince: String\n tel: String\n email: String\n}",
|
|
119
|
-
template: "",
|
|
120
|
-
reducer: "",
|
|
121
116
|
errors: [],
|
|
122
117
|
examples: [],
|
|
118
|
+
id: "Lt7r5VNsfyWZhAlm/g3VY0buEhM=",
|
|
119
|
+
name: "EDIT_PAYER",
|
|
120
|
+
reducer: "",
|
|
121
|
+
schema: "input EditPayerInput {\n id: String\n name: String\n streetAddress: String\n extendedAddress: String\n city: String\n postalCode: String\n country: String\n stateProvince: String\n tel: String\n email: String\n}",
|
|
123
122
|
scope: "global",
|
|
123
|
+
template: "",
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
id: "Ibn3ArEEpicKLmrfE37zsq78Qeg=",
|
|
127
|
-
name: "EDIT_PAYER_BANK",
|
|
128
126
|
description: "",
|
|
129
|
-
schema: "input EditPayerBankInput {\n name: String\n streetAddress: String\n extendedAddress: String\n city: String\n postalCode: String\n country: String\n stateProvince: String\n ABA: String\n BIC: String\n SWIFT: String\n accountNum: String\n accountType: InvoiceAccountTypeInput\n beneficiary: String\n memo: String\n # intermediaryBank\n nameIntermediary: String\n streetAddressIntermediary: String\n extendedAddressIntermediary: String\n cityIntermediary: String\n postalCodeIntermediary: String\n countryIntermediary: String\n stateProvinceIntermediary: String\n ABAIntermediary: String\n BICIntermediary: String\n SWIFTIntermediary: String\n accountNumIntermediary: String\n accountTypeIntermediary: InvoiceAccountTypeInput\n beneficiaryIntermediary: String\n memoIntermediary: String\n}",
|
|
130
|
-
template: "",
|
|
131
|
-
reducer: "",
|
|
132
127
|
errors: [],
|
|
133
128
|
examples: [],
|
|
129
|
+
id: "Ibn3ArEEpicKLmrfE37zsq78Qeg=",
|
|
130
|
+
name: "EDIT_PAYER_BANK",
|
|
131
|
+
reducer: "",
|
|
132
|
+
schema: "input EditPayerBankInput {\n name: String\n streetAddress: String\n extendedAddress: String\n city: String\n postalCode: String\n country: String\n stateProvince: String\n ABA: String\n BIC: String\n SWIFT: String\n accountNum: String\n accountType: InvoiceAccountTypeInput\n beneficiary: String\n memo: String\n # intermediaryBank\n nameIntermediary: String\n streetAddressIntermediary: String\n extendedAddressIntermediary: String\n cityIntermediary: String\n postalCodeIntermediary: String\n countryIntermediary: String\n stateProvinceIntermediary: String\n ABAIntermediary: String\n BICIntermediary: String\n SWIFTIntermediary: String\n accountNumIntermediary: String\n accountTypeIntermediary: InvoiceAccountTypeInput\n beneficiaryIntermediary: String\n memoIntermediary: String\n}",
|
|
134
133
|
scope: "global",
|
|
134
|
+
template: "",
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
|
-
id: "uEdf8IAGEgC8tiZRKn9WI4O/7KY=",
|
|
138
|
-
name: "EDIT_PAYER_WALLET",
|
|
139
137
|
description: "",
|
|
140
|
-
schema: "input EditPayerWalletInput {\n rpc: String\n chainName: String\n chainId: String\n address: String\n}",
|
|
141
|
-
template: "",
|
|
142
|
-
reducer: "",
|
|
143
138
|
errors: [],
|
|
144
139
|
examples: [],
|
|
140
|
+
id: "uEdf8IAGEgC8tiZRKn9WI4O/7KY=",
|
|
141
|
+
name: "EDIT_PAYER_WALLET",
|
|
142
|
+
reducer: "",
|
|
143
|
+
schema: "input EditPayerWalletInput {\n rpc: String\n chainName: String\n chainId: String\n address: String\n}",
|
|
145
144
|
scope: "global",
|
|
145
|
+
template: "",
|
|
146
146
|
},
|
|
147
147
|
],
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
|
+
description: "",
|
|
150
151
|
id: "V6qGoeW+8RP3CHE0XQiBYOy4EKI=",
|
|
151
152
|
name: "items",
|
|
152
|
-
description: "",
|
|
153
153
|
operations: [
|
|
154
154
|
{
|
|
155
|
-
id: "+Y7o2f0Ht0lsDpoR9FlQwEwzaFU=",
|
|
156
|
-
name: "ADD_LINE_ITEM",
|
|
157
155
|
description: "",
|
|
158
|
-
schema: "input AddLineItemInput {\n id: OID!\n description: String!\n taxPercent: Float!\n quantity: Float!\n currency: String! # Default can be USD\n unitPriceTaxExcl: Float!\n unitPriceTaxIncl: Float!\n totalPriceTaxExcl: Float!\n totalPriceTaxIncl: Float!\n}",
|
|
159
|
-
template: "",
|
|
160
|
-
reducer: "",
|
|
161
156
|
errors: [],
|
|
162
157
|
examples: [],
|
|
158
|
+
id: "+Y7o2f0Ht0lsDpoR9FlQwEwzaFU=",
|
|
159
|
+
name: "ADD_LINE_ITEM",
|
|
160
|
+
reducer: "",
|
|
161
|
+
schema: "input AddLineItemInput {\n id: OID!\n description: String!\n taxPercent: Float!\n quantity: Float!\n currency: String! # Default can be USD\n unitPriceTaxExcl: Float!\n unitPriceTaxIncl: Float!\n totalPriceTaxExcl: Float!\n totalPriceTaxIncl: Float!\n}",
|
|
163
162
|
scope: "global",
|
|
163
|
+
template: "",
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
|
-
id: "PCi10xZY1UKyAAsV/etTfQSULa0=",
|
|
167
|
-
name: "EDIT_LINE_ITEM",
|
|
168
166
|
description: "",
|
|
169
|
-
schema: "input EditLineItemInput {\n id: OID!\n description: String\n taxPercent: Float\n quantity: Float\n currency: String\n unitPriceTaxExcl: Float\n unitPriceTaxIncl: Float\n totalPriceTaxExcl: Float\n totalPriceTaxIncl: Float\n}",
|
|
170
|
-
template: "",
|
|
171
|
-
reducer: "",
|
|
172
167
|
errors: [],
|
|
173
168
|
examples: [],
|
|
169
|
+
id: "PCi10xZY1UKyAAsV/etTfQSULa0=",
|
|
170
|
+
name: "EDIT_LINE_ITEM",
|
|
171
|
+
reducer: "",
|
|
172
|
+
schema: "input EditLineItemInput {\n id: OID!\n description: String\n taxPercent: Float\n quantity: Float\n currency: String\n unitPriceTaxExcl: Float\n unitPriceTaxIncl: Float\n totalPriceTaxExcl: Float\n totalPriceTaxIncl: Float\n}",
|
|
174
173
|
scope: "global",
|
|
174
|
+
template: "",
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
|
-
id: "E9/QRfqZQuNXj/f2sO2HeEjojUI=",
|
|
178
|
-
name: "DELETE_LINE_ITEM",
|
|
179
177
|
description: "",
|
|
180
|
-
schema: "input DeleteLineItemInput {\n id: OID!\n}",
|
|
181
|
-
template: "",
|
|
182
|
-
reducer: "",
|
|
183
178
|
errors: [],
|
|
184
179
|
examples: [],
|
|
180
|
+
id: "E9/QRfqZQuNXj/f2sO2HeEjojUI=",
|
|
181
|
+
name: "DELETE_LINE_ITEM",
|
|
182
|
+
reducer: "",
|
|
183
|
+
schema: "input DeleteLineItemInput {\n id: OID!\n}",
|
|
185
184
|
scope: "global",
|
|
185
|
+
template: "",
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
|
-
id: "eb020c14-9c7c-4858-8469-fd25059d532f",
|
|
189
|
-
name: "SET_LINE_ITEM_TAG",
|
|
190
188
|
description: "",
|
|
191
|
-
schema: "input SetLineItemTagInput {\n lineItemId: OID!\n dimension: String!\n value: String!\n label: String\n}",
|
|
192
|
-
template: "",
|
|
193
|
-
reducer: "",
|
|
194
189
|
errors: [],
|
|
195
190
|
examples: [],
|
|
191
|
+
id: "eb020c14-9c7c-4858-8469-fd25059d532f",
|
|
192
|
+
name: "SET_LINE_ITEM_TAG",
|
|
193
|
+
reducer: "",
|
|
194
|
+
schema: "input SetLineItemTagInput {\n lineItemId: OID!\n dimension: String!\n value: String!\n label: String\n}",
|
|
196
195
|
scope: "global",
|
|
196
|
+
template: "",
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
|
-
id: "5ch1tXNyQn0zt2NCITjSqL6Kmso=",
|
|
200
|
-
name: "SET_INVOICE_TAG",
|
|
201
199
|
description: "",
|
|
202
|
-
schema: "input SetInvoiceTagInput {\n dimension: String!\n value: String!\n label: String\n}",
|
|
203
|
-
template: "",
|
|
204
|
-
reducer: "",
|
|
205
200
|
errors: [],
|
|
206
201
|
examples: [],
|
|
202
|
+
id: "5ch1tXNyQn0zt2NCITjSqL6Kmso=",
|
|
203
|
+
name: "SET_INVOICE_TAG",
|
|
204
|
+
reducer: "",
|
|
205
|
+
schema: "input SetInvoiceTagInput {\n dimension: String!\n value: String!\n label: String\n}",
|
|
207
206
|
scope: "global",
|
|
207
|
+
template: "",
|
|
208
208
|
},
|
|
209
209
|
],
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
|
+
description: "",
|
|
212
213
|
id: "0af3e43f-8233-4d95-862f-70f1d54fe1dd",
|
|
213
214
|
name: "transitions",
|
|
214
|
-
description: "",
|
|
215
215
|
operations: [
|
|
216
216
|
{
|
|
217
|
-
id: "f516b9e3-4b47-4b49-955c-6e907778e186",
|
|
218
|
-
name: "CANCEL",
|
|
219
217
|
description: "",
|
|
220
|
-
schema: 'input CancelInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
221
|
-
template: "",
|
|
222
|
-
reducer: "",
|
|
223
218
|
errors: [],
|
|
224
219
|
examples: [],
|
|
220
|
+
id: "f516b9e3-4b47-4b49-955c-6e907778e186",
|
|
221
|
+
name: "CANCEL",
|
|
222
|
+
reducer: "",
|
|
223
|
+
schema: 'input CancelInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
225
224
|
scope: "global",
|
|
225
|
+
template: "",
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
|
-
id: "261d8f6d-6d70-4c99-99aa-7717d22d08c3",
|
|
229
|
-
name: "ISSUE",
|
|
230
228
|
description: "",
|
|
231
|
-
schema: "input IssueInput {\n invoiceNo: String!\n dateIssued: String!\n}",
|
|
232
|
-
template: "",
|
|
233
|
-
reducer: "",
|
|
234
229
|
errors: [],
|
|
235
230
|
examples: [],
|
|
231
|
+
id: "261d8f6d-6d70-4c99-99aa-7717d22d08c3",
|
|
232
|
+
name: "ISSUE",
|
|
233
|
+
reducer: "",
|
|
234
|
+
schema: "input IssueInput {\n invoiceNo: String!\n dateIssued: String!\n}",
|
|
236
235
|
scope: "global",
|
|
236
|
+
template: "",
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
|
-
id: "05bf4cc9-7772-481a-8d0f-1471ffaa4287",
|
|
240
|
-
name: "RESET",
|
|
241
239
|
description: "",
|
|
242
|
-
schema: 'input ResetInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
243
|
-
template: "",
|
|
244
|
-
reducer: "",
|
|
245
240
|
errors: [],
|
|
246
241
|
examples: [],
|
|
242
|
+
id: "05bf4cc9-7772-481a-8d0f-1471ffaa4287",
|
|
243
|
+
name: "RESET",
|
|
244
|
+
reducer: "",
|
|
245
|
+
schema: 'input ResetInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
247
246
|
scope: "global",
|
|
247
|
+
template: "",
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
|
-
id: "0ae43a1e-e4a8-4a2e-aedc-e5e10a426de5",
|
|
251
|
-
name: "REJECT",
|
|
252
250
|
description: "",
|
|
253
|
-
schema: "input RejectInput {\n id: OID! # New Rejection ID\n reason: String!\n final: Boolean!\n}",
|
|
254
|
-
template: "",
|
|
255
|
-
reducer: "",
|
|
256
251
|
errors: [],
|
|
257
252
|
examples: [],
|
|
253
|
+
id: "0ae43a1e-e4a8-4a2e-aedc-e5e10a426de5",
|
|
254
|
+
name: "REJECT",
|
|
255
|
+
reducer: "",
|
|
256
|
+
schema: "input RejectInput {\n id: OID! # New Rejection ID\n reason: String!\n final: Boolean!\n}",
|
|
258
257
|
scope: "global",
|
|
258
|
+
template: "",
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
|
-
id: "54a3fd38-abac-48d7-9cd1-2def01a15f93",
|
|
262
|
-
name: "ACCEPT",
|
|
263
261
|
description: "",
|
|
264
|
-
schema: "input AcceptInput {\n payAfter: DateTime\n}",
|
|
265
|
-
template: "",
|
|
266
|
-
reducer: "",
|
|
267
262
|
errors: [],
|
|
268
263
|
examples: [],
|
|
264
|
+
id: "54a3fd38-abac-48d7-9cd1-2def01a15f93",
|
|
265
|
+
name: "ACCEPT",
|
|
266
|
+
reducer: "",
|
|
267
|
+
schema: "input AcceptInput {\n payAfter: DateTime\n}",
|
|
269
268
|
scope: "global",
|
|
269
|
+
template: "",
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
|
-
id: "14566620-08db-4f56-84e7-96c30049dd33",
|
|
273
|
-
name: "REINSTATE",
|
|
274
272
|
description: "",
|
|
275
|
-
schema: 'input ReinstateInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
276
|
-
template: "",
|
|
277
|
-
reducer: "",
|
|
278
273
|
errors: [],
|
|
279
274
|
examples: [],
|
|
275
|
+
id: "14566620-08db-4f56-84e7-96c30049dd33",
|
|
276
|
+
name: "REINSTATE",
|
|
277
|
+
reducer: "",
|
|
278
|
+
schema: 'input ReinstateInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
280
279
|
scope: "global",
|
|
280
|
+
template: "",
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
|
-
id: "e5df6e79-1398-4e9b-baeb-11957882f47d",
|
|
284
|
-
name: "SCHEDULE_PAYMENT",
|
|
285
283
|
description: "",
|
|
286
|
-
schema: "input SchedulePaymentInput {\n id: OID! # New Payment ID\n processorRef: String!\n}",
|
|
287
|
-
template: "",
|
|
288
|
-
reducer: "",
|
|
289
284
|
errors: [],
|
|
290
285
|
examples: [],
|
|
286
|
+
id: "e5df6e79-1398-4e9b-baeb-11957882f47d",
|
|
287
|
+
name: "SCHEDULE_PAYMENT",
|
|
288
|
+
reducer: "",
|
|
289
|
+
schema: "input SchedulePaymentInput {\n id: OID! # New Payment ID\n processorRef: String!\n}",
|
|
291
290
|
scope: "global",
|
|
291
|
+
template: "",
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
|
-
id: "96849e73-c8ed-4726-b523-29e03cd3fd29",
|
|
295
|
-
name: "REAPPROVE_PAYMENT",
|
|
296
294
|
description: "",
|
|
297
|
-
schema: 'input ReapprovePaymentInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
298
|
-
template: "",
|
|
299
|
-
reducer: "",
|
|
300
295
|
errors: [],
|
|
301
296
|
examples: [],
|
|
297
|
+
id: "96849e73-c8ed-4726-b523-29e03cd3fd29",
|
|
298
|
+
name: "REAPPROVE_PAYMENT",
|
|
299
|
+
reducer: "",
|
|
300
|
+
schema: 'input ReapprovePaymentInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
302
301
|
scope: "global",
|
|
302
|
+
template: "",
|
|
303
303
|
},
|
|
304
304
|
{
|
|
305
|
-
id: "f5dabccc-4055-4c0a-b650-c5b2e7f37ac5",
|
|
306
|
-
name: "REGISTER_PAYMENT_TX",
|
|
307
305
|
description: "",
|
|
308
|
-
schema: "input RegisterPaymentTxInput {\n id: OID! # Payment ID\n timestamp: DateTime!\n txRef: String!\n}",
|
|
309
|
-
template: "",
|
|
310
|
-
reducer: "",
|
|
311
306
|
errors: [],
|
|
312
307
|
examples: [],
|
|
308
|
+
id: "f5dabccc-4055-4c0a-b650-c5b2e7f37ac5",
|
|
309
|
+
name: "REGISTER_PAYMENT_TX",
|
|
310
|
+
reducer: "",
|
|
311
|
+
schema: "input RegisterPaymentTxInput {\n id: OID! # Payment ID\n timestamp: DateTime!\n txRef: String!\n}",
|
|
313
312
|
scope: "global",
|
|
313
|
+
template: "",
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
|
-
id: "562df495-9d22-4293-be78-e5258713d620",
|
|
317
|
-
name: "REPORT_PAYMENT_ISSUE",
|
|
318
316
|
description: "",
|
|
319
|
-
schema: "input ReportPaymentIssueInput {\n id: OID! # Payment ID\n issue: String!\n}",
|
|
320
|
-
template: "",
|
|
321
|
-
reducer: "",
|
|
322
317
|
errors: [],
|
|
323
318
|
examples: [],
|
|
319
|
+
id: "562df495-9d22-4293-be78-e5258713d620",
|
|
320
|
+
name: "REPORT_PAYMENT_ISSUE",
|
|
321
|
+
reducer: "",
|
|
322
|
+
schema: "input ReportPaymentIssueInput {\n id: OID! # Payment ID\n issue: String!\n}",
|
|
324
323
|
scope: "global",
|
|
324
|
+
template: "",
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
|
-
id: "8f374198-3588-487d-8833-b29790caeab0",
|
|
328
|
-
name: "CONFIRM_PAYMENT",
|
|
329
327
|
description: "",
|
|
330
|
-
schema: "input ConfirmPaymentInput {\n id: OID! # Payment ID\n amount: Float!\n}",
|
|
331
|
-
template: "",
|
|
332
|
-
reducer: "",
|
|
333
328
|
errors: [],
|
|
334
329
|
examples: [],
|
|
330
|
+
id: "8f374198-3588-487d-8833-b29790caeab0",
|
|
331
|
+
name: "CONFIRM_PAYMENT",
|
|
332
|
+
reducer: "",
|
|
333
|
+
schema: "input ConfirmPaymentInput {\n id: OID! # Payment ID\n amount: Float!\n}",
|
|
335
334
|
scope: "global",
|
|
335
|
+
template: "",
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
|
-
id: "13d337eb-8a4f-44e4-b5f5-83c5287e7360",
|
|
339
|
-
name: "CLOSE_PAYMENT",
|
|
340
338
|
description: "",
|
|
341
|
-
schema: "input ClosePaymentInput {\n closureReason: ClosureReasonInput\n}\n\nenum ClosureReasonInput {\n UNDERPAID\n OVERPAID\n CANCELLED\n}",
|
|
342
|
-
template: "",
|
|
343
|
-
reducer: "",
|
|
344
339
|
errors: [],
|
|
345
340
|
examples: [],
|
|
341
|
+
id: "13d337eb-8a4f-44e4-b5f5-83c5287e7360",
|
|
342
|
+
name: "CLOSE_PAYMENT",
|
|
343
|
+
reducer: "",
|
|
344
|
+
schema: "input ClosePaymentInput {\n closureReason: ClosureReasonInput\n}\n\nenum ClosureReasonInput {\n UNDERPAID\n OVERPAID\n CANCELLED\n}",
|
|
346
345
|
scope: "global",
|
|
346
|
+
template: "",
|
|
347
347
|
},
|
|
348
348
|
],
|
|
349
349
|
},
|
|
@@ -351,8 +351,8 @@ export const documentModel = {
|
|
|
351
351
|
state: {
|
|
352
352
|
global: {
|
|
353
353
|
examples: [],
|
|
354
|
-
initialValue: '"{\\n \\"
|
|
355
|
-
schema: 'type InvoiceState {\n status: Status!\n invoiceNo: String!\n dateIssued: Date
|
|
354
|
+
initialValue: '"{\\n \\"status\\": \\"DRAFT\\",\\n \\"invoiceNo\\": \\"\\",\\n \\"dateIssued\\": null,\\n \\"dateDue\\": null,\\n \\"dateDelivered\\": null,\\n \\"issuer\\": {\\n \\"id\\": null,\\n \\"name\\": null,\\n \\"address\\": null,\\n \\"contactInfo\\": null,\\n \\"country\\": null,\\n \\"paymentRouting\\": null\\n },\\n \\"payer\\": {\\n \\"id\\": null,\\n \\"name\\": null,\\n \\"address\\": null,\\n \\"contactInfo\\": null,\\n \\"country\\": null,\\n \\"paymentRouting\\": null\\n },\\n \\"currency\\": \\"\\",\\n \\"lineItems\\": [],\\n \\"totalPriceTaxExcl\\": 0,\\n \\"totalPriceTaxIncl\\": 0,\\n \\"notes\\": null,\\n \\"rejections\\": [],\\n \\"payments\\": [],\\n \\"payAfter\\": null,\\n \\"invoiceTags\\": [],\\n \\"exported\\": {\\n \\"timestamp\\": null,\\n \\"exportedLineItems\\": []\\n },\\n \\"closureReason\\": null\\n}"',
|
|
355
|
+
schema: 'type InvoiceState {\n status: Status!\n invoiceNo: String!\n dateIssued: Date\n dateDue: Date\n dateDelivered: Date\n issuer: LegalEntity!\n payer: LegalEntity!\n currency: String!\n lineItems: [InvoiceLineItem!]!\n totalPriceTaxExcl: Float!\n totalPriceTaxIncl: Float!\n notes: String\n rejections: [Rejection!]!\n payments: [Payment!]!\n payAfter: DateTime\n invoiceTags: [InvoiceTag!]! # e.g. {\'xero-payment-account\', \'090\', \'PowerhouseUSD\'}\n exported: ExportedData!\n closureReason: ClosureReason\n}\n\nenum ClosureReason {\n UNDERPAID\n OVERPAID\n CANCELLED\n}\n\ntype Rejection {\n id: OID!\n reason: String!\n final: Boolean!\n}\n\ntype ExportedData {\n timestamp: DateTime # ISO 8601 timestamp of the export\n exportedLineItems: [[String!]!]! # CSV Format\n}\n\ntype Payment {\n id: OID!\n processorRef: String\n paymentDate: DateTime\n txnRef: String\n confirmed: Boolean!\n issue: String\n amount: Float\n}\n\ntype Token {\n evmAddress: String\n symbol: String\n chainName: String\n chainId: String\n rpc: String\n}\n\ntype LegalEntity {\n id: LegalEntityId\n name: String\n address: Address\n contactInfo: ContactInfo\n country: String\n paymentRouting: PaymentRouting\n}\n\ntype Address {\n streetAddress: String\n extendedAddress: String\n city: String\n postalCode: String\n country: String\n stateProvince: String\n}\n\ntype ContactInfo {\n tel: String\n email: String\n}\n\ntype PaymentRouting {\n bank: Bank\n wallet: InvoiceWallet\n}\n\ntype Bank {\n name: String!\n address: Address!\n ABA: String\n BIC: String\n SWIFT: String\n accountNum: String!\n accountType: InvoiceAccountType\n beneficiary: String\n intermediaryBank: IntermediaryBank\n memo: String\n}\n\ntype IntermediaryBank {\n name: String!\n address: Address!\n ABA: String\n BIC: String\n SWIFT: String\n accountNum: String!\n accountType: InvoiceAccountType\n beneficiary: String\n memo: String\n}\n\ntype InvoiceWallet {\n rpc: String\n chainName: String\n chainId: String\n address: String\n}\n\ntype InvoiceLineItem {\n id: OID!\n description: String!\n taxPercent: Float!\n quantity: Float!\n currency: String!\n unitPriceTaxExcl: Float!\n unitPriceTaxIncl: Float!\n totalPriceTaxExcl: Float!\n totalPriceTaxIncl: Float!\n lineItemTag: [InvoiceTag!]\n}\n\ntype InvoiceTag {\n dimension: String! # "xero-expense-account", "xero-payment-account", "accounting-period", ...\n value: String! # "627", ..., "090", ..., "2025/05", "2025/Q1", ...\n label: String # "Marketing", ..., "Business Bank", ..., "May 2025"\n}\n\nunion LegalEntityId = LegalEntityTaxId | LegalEntityCorporateRegistrationId\n\ntype LegalEntityTaxId {\n taxId: String!\n}\n\ntype LegalEntityCorporateRegistrationId {\n corpRegId: String!\n}\n\nenum Status {\n DRAFT\n ISSUED\n CANCELLED\n ACCEPTED\n REJECTED\n PAYMENTSCHEDULED\n PAYMENTSENT\n PAYMENTISSUE\n PAYMENTRECEIVED\n PAYMENTCLOSED\n}\n\nenum InvoiceAccountType {\n CHECKING\n SAVINGS\n TRUST\n WALLET\n}\n\nenum InvoiceAccountTypeInput {\n CHECKING\n SAVINGS\n TRUST\n WALLET\n}',
|
|
356
356
|
},
|
|
357
357
|
local: {
|
|
358
358
|
examples: [],
|