@powerhousedao/contributor-billing 0.0.1
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/LICENSE +661 -0
- package/README.md +22 -0
- package/dist/document-models/index.d.ts +2 -0
- package/dist/document-models/index.d.ts.map +1 -0
- package/dist/document-models/index.js +1 -0
- package/dist/document-models/invoice/gen/actions.d.ts +8 -0
- package/dist/document-models/invoice/gen/actions.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/actions.js +3 -0
- package/dist/document-models/invoice/gen/creators.d.ts +4 -0
- package/dist/document-models/invoice/gen/creators.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/creators.js +3 -0
- package/dist/document-models/invoice/gen/document-model.d.ts +3 -0
- package/dist/document-models/invoice/gen/document-model.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/document-model.js +227 -0
- package/dist/document-models/invoice/gen/general/actions.d.ts +10 -0
- package/dist/document-models/invoice/gen/general/actions.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/general/actions.js +1 -0
- package/dist/document-models/invoice/gen/general/creators.d.ts +9 -0
- package/dist/document-models/invoice/gen/general/creators.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/general/creators.js +8 -0
- package/dist/document-models/invoice/gen/general/error.d.ts +2 -0
- package/dist/document-models/invoice/gen/general/error.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/general/error.js +1 -0
- package/dist/document-models/invoice/gen/general/object.d.ts +12 -0
- package/dist/document-models/invoice/gen/general/object.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/general/object.js +22 -0
- package/dist/document-models/invoice/gen/general/operations.d.ts +12 -0
- package/dist/document-models/invoice/gen/general/operations.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/general/operations.js +1 -0
- package/dist/document-models/invoice/gen/index.d.ts +6 -0
- package/dist/document-models/invoice/gen/index.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/index.js +5 -0
- package/dist/document-models/invoice/gen/items/actions.d.ts +8 -0
- package/dist/document-models/invoice/gen/items/actions.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/items/actions.js +1 -0
- package/dist/document-models/invoice/gen/items/creators.d.ts +7 -0
- package/dist/document-models/invoice/gen/items/creators.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/items/creators.js +6 -0
- package/dist/document-models/invoice/gen/items/error.d.ts +2 -0
- package/dist/document-models/invoice/gen/items/error.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/items/error.js +1 -0
- package/dist/document-models/invoice/gen/items/object.d.ts +10 -0
- package/dist/document-models/invoice/gen/items/object.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/items/object.js +16 -0
- package/dist/document-models/invoice/gen/items/operations.d.ts +10 -0
- package/dist/document-models/invoice/gen/items/operations.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/items/operations.js +1 -0
- package/dist/document-models/invoice/gen/object.d.ts +20 -0
- package/dist/document-models/invoice/gen/object.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/object.js +29 -0
- package/dist/document-models/invoice/gen/parties/actions.d.ts +10 -0
- package/dist/document-models/invoice/gen/parties/actions.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/parties/actions.js +1 -0
- package/dist/document-models/invoice/gen/parties/creators.d.ts +9 -0
- package/dist/document-models/invoice/gen/parties/creators.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/parties/creators.js +8 -0
- package/dist/document-models/invoice/gen/parties/error.d.ts +2 -0
- package/dist/document-models/invoice/gen/parties/error.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/parties/error.js +1 -0
- package/dist/document-models/invoice/gen/parties/object.d.ts +12 -0
- package/dist/document-models/invoice/gen/parties/object.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/parties/object.js +22 -0
- package/dist/document-models/invoice/gen/parties/operations.d.ts +12 -0
- package/dist/document-models/invoice/gen/parties/operations.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/parties/operations.js +1 -0
- package/dist/document-models/invoice/gen/reducer.d.ts +3 -0
- package/dist/document-models/invoice/gen/reducer.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/reducer.js +79 -0
- package/dist/document-models/invoice/gen/schema/index.d.ts +3 -0
- package/dist/document-models/invoice/gen/schema/index.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/schema/index.js +2 -0
- package/dist/document-models/invoice/gen/schema/types.d.ts +390 -0
- package/dist/document-models/invoice/gen/schema/types.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/schema/types.js +1 -0
- package/dist/document-models/invoice/gen/schema/zod.d.ts +56 -0
- package/dist/document-models/invoice/gen/schema/zod.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/schema/zod.js +362 -0
- package/dist/document-models/invoice/gen/types.d.ts +10 -0
- package/dist/document-models/invoice/gen/types.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/types.js +1 -0
- package/dist/document-models/invoice/gen/utils.d.ts +7 -0
- package/dist/document-models/invoice/gen/utils.d.ts.map +1 -0
- package/dist/document-models/invoice/gen/utils.js +166 -0
- package/dist/document-models/invoice/index.d.ts +41 -0
- package/dist/document-models/invoice/index.d.ts.map +1 -0
- package/dist/document-models/invoice/index.js +21 -0
- package/dist/document-models/invoice/src/reducers/general.d.ts +8 -0
- package/dist/document-models/invoice/src/reducers/general.d.ts.map +1 -0
- package/dist/document-models/invoice/src/reducers/general.js +79 -0
- package/dist/document-models/invoice/src/reducers/items.d.ts +8 -0
- package/dist/document-models/invoice/src/reducers/items.d.ts.map +1 -0
- package/dist/document-models/invoice/src/reducers/items.js +108 -0
- package/dist/document-models/invoice/src/reducers/parties.d.ts +8 -0
- package/dist/document-models/invoice/src/reducers/parties.d.ts.map +1 -0
- package/dist/document-models/invoice/src/reducers/parties.js +266 -0
- package/dist/document-models/invoice/src/tests/document-model.test.d.ts +6 -0
- package/dist/document-models/invoice/src/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/invoice/src/tests/document-model.test.js +17 -0
- package/dist/document-models/invoice/src/tests/general.test.d.ts +6 -0
- package/dist/document-models/invoice/src/tests/general.test.d.ts.map +1 -0
- package/dist/document-models/invoice/src/tests/general.test.js +75 -0
- package/dist/document-models/invoice/src/tests/items.test.d.ts +6 -0
- package/dist/document-models/invoice/src/tests/items.test.d.ts.map +1 -0
- package/dist/document-models/invoice/src/tests/items.test.js +45 -0
- package/dist/document-models/invoice/src/tests/parties.test.d.ts +6 -0
- package/dist/document-models/invoice/src/tests/parties.test.d.ts.map +1 -0
- package/dist/document-models/invoice/src/tests/parties.test.js +75 -0
- package/dist/document-models/invoice/src/utils.d.ts +2 -0
- package/dist/document-models/invoice/src/utils.d.ts.map +1 -0
- package/dist/document-models/invoice/src/utils.js +1 -0
- package/dist/editors/contributor-billing/components/CreateDocument.d.ts +8 -0
- package/dist/editors/contributor-billing/components/CreateDocument.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/CreateDocument.js +14 -0
- package/dist/editors/contributor-billing/components/DocumentDispatch.d.ts +12 -0
- package/dist/editors/contributor-billing/components/DocumentDispatch.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/DocumentDispatch.js +20 -0
- package/dist/editors/contributor-billing/components/DriveExplorer.d.ts +17 -0
- package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/DriveExplorer.js +112 -0
- package/dist/editors/contributor-billing/components/EditorContainer.d.ts +14 -0
- package/dist/editors/contributor-billing/components/EditorContainer.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/EditorContainer.js +28 -0
- package/dist/editors/contributor-billing/components/FileItemsGrid.d.ts +12 -0
- package/dist/editors/contributor-billing/components/FileItemsGrid.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/FileItemsGrid.js +7 -0
- package/dist/editors/contributor-billing/components/FolderItemsGrid.d.ts +17 -0
- package/dist/editors/contributor-billing/components/FolderItemsGrid.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/FolderItemsGrid.js +14 -0
- package/dist/editors/contributor-billing/components/FolderTree.d.ts +9 -0
- package/dist/editors/contributor-billing/components/FolderTree.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/FolderTree.js +31 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts +16 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.js +16 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts +21 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.js +45 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts +12 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.js +12 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts +7 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.js +7 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/RowActionMenu.d.ts +8 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/RowActionMenu.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/RowActionMenu.js +2 -0
- package/dist/editors/contributor-billing/editor.d.ts +6 -0
- package/dist/editors/contributor-billing/editor.d.ts.map +1 -0
- package/dist/editors/contributor-billing/editor.js +48 -0
- package/dist/editors/contributor-billing/hooks/useDispatchMap.d.ts +9 -0
- package/dist/editors/contributor-billing/hooks/useDispatchMap.d.ts.map +1 -0
- package/dist/editors/contributor-billing/hooks/useDispatchMap.js +21 -0
- package/dist/editors/contributor-billing/hooks/useDrop.d.ts +22 -0
- package/dist/editors/contributor-billing/hooks/useDrop.d.ts.map +1 -0
- package/dist/editors/contributor-billing/hooks/useDrop.js +57 -0
- package/dist/editors/contributor-billing/hooks/useSelectedFolderChildren.d.ts +8 -0
- package/dist/editors/contributor-billing/hooks/useSelectedFolderChildren.d.ts.map +1 -0
- package/dist/editors/contributor-billing/hooks/useSelectedFolderChildren.js +19 -0
- package/dist/editors/contributor-billing/hooks/useTransformedNodes.d.ts +4 -0
- package/dist/editors/contributor-billing/hooks/useTransformedNodes.d.ts.map +1 -0
- package/dist/editors/contributor-billing/hooks/useTransformedNodes.js +32 -0
- package/dist/editors/contributor-billing/index.d.ts +5 -0
- package/dist/editors/contributor-billing/index.d.ts.map +1 -0
- package/dist/editors/contributor-billing/index.js +12 -0
- package/dist/editors/index.d.ts +3 -0
- package/dist/editors/index.d.ts.map +1 -0
- package/dist/editors/index.js +2 -0
- package/dist/editors/invoice/InvoicePDF.d.ts +8 -0
- package/dist/editors/invoice/InvoicePDF.d.ts.map +1 -0
- package/dist/editors/invoice/InvoicePDF.js +359 -0
- package/dist/editors/invoice/assets/custom.d.ts +4 -0
- package/dist/editors/invoice/assets/powerhouseLogo.png +0 -0
- package/dist/editors/invoice/components/countryForm.d.ts +12 -0
- package/dist/editors/invoice/components/countryForm.d.ts.map +1 -0
- package/dist/editors/invoice/components/countryForm.js +28 -0
- package/dist/editors/invoice/components/currencyForm.d.ts +13 -0
- package/dist/editors/invoice/components/currencyForm.d.ts.map +1 -0
- package/dist/editors/invoice/components/currencyForm.js +26 -0
- package/dist/editors/invoice/components/datePicker.d.ts +11 -0
- package/dist/editors/invoice/components/datePicker.d.ts.map +1 -0
- package/dist/editors/invoice/components/datePicker.js +8 -0
- package/dist/editors/invoice/components/inputField.d.ts +14 -0
- package/dist/editors/invoice/components/inputField.d.ts.map +1 -0
- package/dist/editors/invoice/components/inputField.js +25 -0
- package/dist/editors/invoice/components/numberForm.d.ts +11 -0
- package/dist/editors/invoice/components/numberForm.d.ts.map +1 -0
- package/dist/editors/invoice/components/numberForm.js +7 -0
- package/dist/editors/invoice/components/selectField.d.ts +8 -0
- package/dist/editors/invoice/components/selectField.d.ts.map +1 -0
- package/dist/editors/invoice/components/selectField.js +323 -0
- package/dist/editors/invoice/editor.d.ts +5 -0
- package/dist/editors/invoice/editor.d.ts.map +1 -0
- package/dist/editors/invoice/editor.js +377 -0
- package/dist/editors/invoice/exportUBL.d.ts +85 -0
- package/dist/editors/invoice/exportUBL.d.ts.map +1 -0
- package/dist/editors/invoice/exportUBL.js +382 -0
- package/dist/editors/invoice/index.d.ts +5 -0
- package/dist/editors/invoice/index.d.ts.map +1 -0
- package/dist/editors/invoice/index.js +12 -0
- package/dist/editors/invoice/ingestPDF.d.ts +12 -0
- package/dist/editors/invoice/ingestPDF.d.ts.map +1 -0
- package/dist/editors/invoice/ingestPDF.js +193 -0
- package/dist/editors/invoice/ingestUBL.d.ts +21 -0
- package/dist/editors/invoice/ingestUBL.d.ts.map +1 -0
- package/dist/editors/invoice/ingestUBL.js +169 -0
- package/dist/editors/invoice/invoiceToGnosis.d.ts +7 -0
- package/dist/editors/invoice/invoiceToGnosis.d.ts.map +1 -0
- package/dist/editors/invoice/invoiceToGnosis.js +139 -0
- package/dist/editors/invoice/legalEntity/bankSection.d.ts +14 -0
- package/dist/editors/invoice/legalEntity/bankSection.d.ts.map +1 -0
- package/dist/editors/invoice/legalEntity/bankSection.js +156 -0
- package/dist/editors/invoice/legalEntity/common.d.ts +6 -0
- package/dist/editors/invoice/legalEntity/common.d.ts.map +1 -0
- package/dist/editors/invoice/legalEntity/common.js +6 -0
- package/dist/editors/invoice/legalEntity/legalEntity.d.ts +40 -0
- package/dist/editors/invoice/legalEntity/legalEntity.d.ts.map +1 -0
- package/dist/editors/invoice/legalEntity/legalEntity.js +63 -0
- package/dist/editors/invoice/legalEntity/walletSection.d.ts +13 -0
- package/dist/editors/invoice/legalEntity/walletSection.d.ts.map +1 -0
- package/dist/editors/invoice/legalEntity/walletSection.js +55 -0
- package/dist/editors/invoice/lineItems.d.ts +23 -0
- package/dist/editors/invoice/lineItems.d.ts.map +1 -0
- package/dist/editors/invoice/lineItems.js +157 -0
- package/dist/editors/invoice/requestFinance.d.ts +7 -0
- package/dist/editors/invoice/requestFinance.d.ts.map +1 -0
- package/dist/editors/invoice/requestFinance.js +155 -0
- package/dist/editors/invoice/uploadPdfChunked.d.ts +10 -0
- package/dist/editors/invoice/uploadPdfChunked.d.ts.map +1 -0
- package/dist/editors/invoice/uploadPdfChunked.js +79 -0
- package/dist/editors/invoice/utils/utils.d.ts +2 -0
- package/dist/editors/invoice/utils/utils.d.ts.map +1 -0
- package/dist/editors/invoice/utils/utils.js +54 -0
- package/dist/editors/invoice/validation/validationManager.d.ts +28 -0
- package/dist/editors/invoice/validation/validationManager.d.ts.map +1 -0
- package/dist/editors/invoice/validation/validationManager.js +65 -0
- package/dist/editors/invoice/validation/validationRules.d.ts +14 -0
- package/dist/editors/invoice/validation/validationRules.d.ts.map +1 -0
- package/dist/editors/invoice/validation/validationRules.js +334 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/powerhouse.manifest.json +31 -0
- package/dist/processors/index.d.ts +2 -0
- package/dist/processors/index.d.ts.map +1 -0
- package/dist/processors/index.js +1 -0
- package/dist/scripts/invoice/exampleBatchTxn.d.ts +2 -0
- package/dist/scripts/invoice/exampleBatchTxn.d.ts.map +1 -0
- package/dist/scripts/invoice/exampleBatchTxn.js +44 -0
- package/dist/scripts/invoice/gnosisTransactionBuilder.d.ts +28 -0
- package/dist/scripts/invoice/gnosisTransactionBuilder.d.ts.map +1 -0
- package/dist/scripts/invoice/gnosisTransactionBuilder.js +74 -0
- package/dist/scripts/invoice/pdfToDocumentAi.d.ts +5 -0
- package/dist/scripts/invoice/pdfToDocumentAi.d.ts.map +1 -0
- package/dist/scripts/invoice/pdfToDocumentAi.js +659 -0
- package/dist/scripts/invoice/requestFinance.d.ts +2 -0
- package/dist/scripts/invoice/requestFinance.d.ts.map +1 -0
- package/dist/scripts/invoice/requestFinance.js +38 -0
- package/dist/style.css +6463 -0
- package/dist/subgraphs/index.d.ts +2 -0
- package/dist/subgraphs/index.d.ts.map +1 -0
- package/dist/subgraphs/index.js +1 -0
- package/dist/subgraphs/invoice/customResolvers.d.ts +50 -0
- package/dist/subgraphs/invoice/customResolvers.d.ts.map +1 -0
- package/dist/subgraphs/invoice/customResolvers.js +327 -0
- package/dist/subgraphs/invoice/index.d.ts +10 -0
- package/dist/subgraphs/invoice/index.d.ts.map +1 -0
- package/dist/subgraphs/invoice/index.js +30 -0
- package/dist/subgraphs/invoice/resolvers.d.ts +3 -0
- package/dist/subgraphs/invoice/resolvers.d.ts.map +1 -0
- package/dist/subgraphs/invoice/resolvers.js +184 -0
- package/dist/subgraphs/invoice/schema.d.ts +3 -0
- package/dist/subgraphs/invoice/schema.d.ts.map +1 -0
- package/dist/subgraphs/invoice/schema.js +460 -0
- package/dist/tailwind.config.d.ts +13 -0
- package/dist/tailwind.config.d.ts.map +1 -0
- package/dist/tailwind.config.js +15 -0
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/vitest.config.js +8 -0
- package/editors/invoice/assets/custom.d.ts +4 -0
- package/editors/invoice/assets/powerhouseLogo.png +0 -0
- package/package.json +117 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../document-models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { module as Invoice } from "./invoice/index.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InvoiceGeneralAction } from "./general/actions.js";
|
|
2
|
+
import type { InvoicePartiesAction } from "./parties/actions.js";
|
|
3
|
+
import type { InvoiceItemsAction } from "./items/actions.js";
|
|
4
|
+
export * from "./general/actions.js";
|
|
5
|
+
export * from "./parties/actions.js";
|
|
6
|
+
export * from "./items/actions.js";
|
|
7
|
+
export type InvoiceAction = InvoiceGeneralAction | InvoicePartiesAction | InvoiceItemsAction;
|
|
8
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../document-models/invoice/gen/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,MAAM,MAAM,aAAa,GACrB,oBAAoB,GACpB,oBAAoB,GACpB,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../document-models/invoice/gen/creators.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../../document-models/invoice/gen/document-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,eAAO,MAAM,aAAa,EAAE,kBAkP3B,CAAC"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
export const documentModel = {
|
|
2
|
+
id: "powerhouse/invoice",
|
|
3
|
+
name: "Invoice",
|
|
4
|
+
extension: ".phdm",
|
|
5
|
+
description: "Invoice document model that allows a contributor to request compensations based on his contributions",
|
|
6
|
+
author: {
|
|
7
|
+
name: "Powerhouse",
|
|
8
|
+
website: "https://powerhouse.inc",
|
|
9
|
+
},
|
|
10
|
+
specifications: [
|
|
11
|
+
{
|
|
12
|
+
version: 1,
|
|
13
|
+
changeLog: [],
|
|
14
|
+
state: {
|
|
15
|
+
global: {
|
|
16
|
+
schema: "type InvoiceState {\n invoiceNo: String!\n dateIssued: String!\n dateDue: String!\n dateDelivered: String\n status: Status!\n refs: [Ref!]!\n issuer: LegalEntity!\n payer: LegalEntity!\n currency: String!\n lineItems: [InvoiceLineItem!]!\n totalPriceTaxExcl: Float!\n totalPriceTaxIncl: Float!\n paymentAccount: String\n}\n\ntype Ref {\n id: OID!\n value: String!\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: [InvoiceLineItemTag!]!\n}\n\ntype InvoiceLineItemTag {\n dimension: String!\n value: String!\n label: String\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 AWAITINGPAYMENT\n PAYMENTSCHEDULED\n PAYMENTSENT\n PAYMENTISSUE\n PAYMENTRECEIVED\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}\n",
|
|
17
|
+
initialValue: '"{\\n \\"invoiceNo\\": \\"\\",\\n \\"dateIssued\\": \\"\\",\\n \\"dateDue\\": \\"\\",\\n \\"dateDelivered\\": \\"\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"refs\\": [],\\n \\"issuer\\": {\\n \\"id\\": null,\\n \\"name\\": \\"\\",\\n \\"address\\": {\\n \\"streetAddress\\": \\"\\",\\n \\"extendedAddress\\": \\"\\",\\n \\"city\\": \\"\\",\\n \\"postalCode\\": \\"\\",\\n \\"country\\": \\"\\",\\n \\"stateProvince\\": \\"\\"\\n },\\n \\"contactInfo\\": {\\n \\"tel\\": \\"\\",\\n \\"email\\": \\"\\"\\n },\\n \\"country\\": \\"\\",\\n \\"paymentRouting\\": {\\n \\"bank\\": {\\n \\"name\\": \\"\\",\\n \\"address\\": {\\n \\"streetAddress\\": \\"\\",\\n \\"extendedAddress\\": \\"\\",\\n \\"city\\": \\"\\",\\n \\"postalCode\\": \\"\\",\\n \\"country\\": \\"\\",\\n \\"stateProvince\\": \\"\\"\\n },\\n \\"ABA\\": \\"\\",\\n \\"BIC\\": \\"\\",\\n \\"SWIFT\\": \\"\\",\\n \\"accountNum\\": \\"\\",\\n \\"accountType\\": \\"CHECKING\\",\\n \\"beneficiary\\": \\"\\",\\n \\"intermediaryBank\\": {\\n \\"name\\": \\"\\",\\n \\"address\\": {\\n \\"streetAddress\\": \\"\\",\\n \\"extendedAddress\\": \\"\\",\\n \\"city\\": \\"\\",\\n \\"postalCode\\": \\"\\",\\n \\"country\\": \\"\\",\\n \\"stateProvince\\": \\"\\"\\n },\\n \\"ABA\\": \\"\\",\\n \\"BIC\\": \\"\\",\\n \\"SWIFT\\": \\"\\",\\n \\"accountNum\\": \\"\\",\\n \\"accountType\\": \\"CHECKING\\",\\n \\"beneficiary\\": \\"\\",\\n \\"memo\\": \\"\\"\\n },\\n \\"memo\\": \\"\\"\\n },\\n \\"wallet\\": {\\n \\"rpc\\": \\"\\",\\n \\"chainName\\": \\"\\",\\n \\"chainId\\": \\"\\",\\n \\"address\\": \\"\\"\\n }\\n }\\n },\\n \\"payer\\": {\\n \\"id\\": null,\\n \\"name\\": \\"\\",\\n \\"address\\": {\\n \\"streetAddress\\": \\"\\",\\n \\"extendedAddress\\": \\"\\",\\n \\"city\\": \\"\\",\\n \\"postalCode\\": \\"\\",\\n \\"country\\": \\"\\",\\n \\"stateProvince\\": \\"\\"\\n },\\n \\"contactInfo\\": {\\n \\"tel\\": \\"\\",\\n \\"email\\": \\"\\"\\n },\\n \\"country\\": \\"\\",\\n \\"paymentRouting\\": {\\n \\"bank\\": {\\n \\"name\\": \\"\\",\\n \\"address\\": {\\n \\"streetAddress\\": \\"\\",\\n \\"extendedAddress\\": \\"\\",\\n \\"city\\": \\"\\",\\n \\"postalCode\\": \\"\\",\\n \\"country\\": \\"\\",\\n \\"stateProvince\\": \\"\\"\\n },\\n \\"ABA\\": \\"\\",\\n \\"BIC\\": \\"\\",\\n \\"SWIFT\\": \\"\\",\\n \\"accountNum\\": \\"\\",\\n \\"accountType\\": \\"CHECKING\\",\\n \\"beneficiary\\": \\"\\",\\n \\"intermediaryBank\\": {\\n \\"name\\": \\"\\",\\n \\"address\\": {\\n \\"streetAddress\\": \\"\\",\\n \\"extendedAddress\\": \\"\\",\\n \\"city\\": \\"\\",\\n \\"postalCode\\": \\"\\",\\n \\"country\\": \\"\\",\\n \\"stateProvince\\": \\"\\"\\n },\\n \\"ABA\\": \\"\\",\\n \\"BIC\\": \\"\\",\\n \\"SWIFT\\": \\"\\",\\n \\"accountNum\\": \\"\\",\\n \\"accountType\\": \\"CHECKING\\",\\n \\"beneficiary\\": \\"\\",\\n \\"memo\\": \\"\\"\\n },\\n \\"memo\\": \\"\\"\\n },\\n \\"wallet\\": {\\n \\"rpc\\": \\"\\",\\n \\"chainName\\": \\"\\",\\n \\"chainId\\": \\"\\",\\n \\"address\\": \\"\\"\\n }\\n }\\n },\\n \\"currency\\": \\"\\",\\n \\"lineItems\\": [],\\n \\"totalPriceTaxExcl\\": 0,\\n \\"totalPriceTaxIncl\\": 0\\n}"',
|
|
18
|
+
examples: [],
|
|
19
|
+
},
|
|
20
|
+
local: {
|
|
21
|
+
schema: "",
|
|
22
|
+
initialValue: '""',
|
|
23
|
+
examples: [],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
modules: [
|
|
27
|
+
{
|
|
28
|
+
id: "WDJ7NWCy8TEDk1TWvr0F+VXvIqc=",
|
|
29
|
+
name: "general",
|
|
30
|
+
description: "",
|
|
31
|
+
operations: [
|
|
32
|
+
{
|
|
33
|
+
id: "8Ld7B60Upub1CNmVrx3TMzmyl54=",
|
|
34
|
+
name: "EDIT_INVOICE",
|
|
35
|
+
description: "",
|
|
36
|
+
schema: "input EditInvoiceInput {\n invoiceNo: String\n dateIssued: String\n dateDue: String\n dateDelivered: String\n currency: String\n}",
|
|
37
|
+
template: "",
|
|
38
|
+
reducer: "",
|
|
39
|
+
errors: [],
|
|
40
|
+
examples: [],
|
|
41
|
+
scope: "global",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "cCXTmSu1J8VoyDQAk9l/ub3SjWw=",
|
|
45
|
+
name: "EDIT_STATUS",
|
|
46
|
+
description: "",
|
|
47
|
+
schema: "input EditStatusInput {\n status: Status!\n}",
|
|
48
|
+
template: "",
|
|
49
|
+
reducer: "",
|
|
50
|
+
errors: [],
|
|
51
|
+
examples: [],
|
|
52
|
+
scope: "global",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "1OkChgHSA5jIpjIGS6MVVxGyfM8=",
|
|
56
|
+
name: "ADD_REF",
|
|
57
|
+
description: "",
|
|
58
|
+
schema: "input AddRefInput {\n id: OID!\n value: String!\n}",
|
|
59
|
+
template: "",
|
|
60
|
+
reducer: "",
|
|
61
|
+
errors: [],
|
|
62
|
+
examples: [],
|
|
63
|
+
scope: "global",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "581o1DMt70KKGjJ2r71DvorNcXA=",
|
|
67
|
+
name: "EDIT_REF",
|
|
68
|
+
description: "",
|
|
69
|
+
schema: "input EditRefInput {\n id: OID!\n value: String!\n}",
|
|
70
|
+
template: "",
|
|
71
|
+
reducer: "",
|
|
72
|
+
errors: [],
|
|
73
|
+
examples: [],
|
|
74
|
+
scope: "global",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "1a8Gp073BABmS4Qg7ydVPhHQYoA=",
|
|
78
|
+
name: "DELETE_REF",
|
|
79
|
+
description: "",
|
|
80
|
+
schema: "input DeleteRefInput {\n id: OID!\n}",
|
|
81
|
+
template: "",
|
|
82
|
+
reducer: "",
|
|
83
|
+
errors: [],
|
|
84
|
+
examples: [],
|
|
85
|
+
scope: "global",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: "da3a0e75-d6d6-4dd8-b4e0-73a09ce3aa64",
|
|
89
|
+
name: "SET_PAYMENT_ACCOUNT",
|
|
90
|
+
description: "",
|
|
91
|
+
schema: "input SetPaymentAccountInput {\n paymentAccount: String!\n}",
|
|
92
|
+
template: "",
|
|
93
|
+
reducer: "",
|
|
94
|
+
errors: [],
|
|
95
|
+
examples: [],
|
|
96
|
+
scope: "global",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "M8OqnRBEHn6EHQTyrx826u5xAJg=",
|
|
102
|
+
name: "parties",
|
|
103
|
+
description: "",
|
|
104
|
+
operations: [
|
|
105
|
+
{
|
|
106
|
+
id: "HSnSU0WWJ8ytXGtuYqKPy8mccB4=",
|
|
107
|
+
name: "EDIT_ISSUER",
|
|
108
|
+
description: "",
|
|
109
|
+
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}",
|
|
110
|
+
template: "",
|
|
111
|
+
reducer: "",
|
|
112
|
+
errors: [],
|
|
113
|
+
examples: [],
|
|
114
|
+
scope: "global",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: "nq2GFV2bmGet6sNlA2XytS7cPA0=",
|
|
118
|
+
name: "EDIT_ISSUER_BANK",
|
|
119
|
+
description: "",
|
|
120
|
+
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}",
|
|
121
|
+
template: "",
|
|
122
|
+
reducer: "",
|
|
123
|
+
errors: [],
|
|
124
|
+
examples: [],
|
|
125
|
+
scope: "global",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: "XtXz6W0lScsBwPkaWofR9LtWjm0=",
|
|
129
|
+
name: "EDIT_ISSUER_WALLET",
|
|
130
|
+
description: "",
|
|
131
|
+
schema: "input EditIssuerWalletInput {\n rpc: String\n chainName: String\n chainId: String\n address: String\n}\n\n",
|
|
132
|
+
template: "",
|
|
133
|
+
reducer: "",
|
|
134
|
+
errors: [],
|
|
135
|
+
examples: [],
|
|
136
|
+
scope: "global",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: "Lt7r5VNsfyWZhAlm/g3VY0buEhM=",
|
|
140
|
+
name: "EDIT_PAYER",
|
|
141
|
+
description: "",
|
|
142
|
+
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}",
|
|
143
|
+
template: "",
|
|
144
|
+
reducer: "",
|
|
145
|
+
errors: [],
|
|
146
|
+
examples: [],
|
|
147
|
+
scope: "global",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
id: "Ibn3ArEEpicKLmrfE37zsq78Qeg=",
|
|
151
|
+
name: "EDIT_PAYER_BANK",
|
|
152
|
+
description: "",
|
|
153
|
+
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}",
|
|
154
|
+
template: "",
|
|
155
|
+
reducer: "",
|
|
156
|
+
errors: [],
|
|
157
|
+
examples: [],
|
|
158
|
+
scope: "global",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: "uEdf8IAGEgC8tiZRKn9WI4O/7KY=",
|
|
162
|
+
name: "EDIT_PAYER_WALLET",
|
|
163
|
+
description: "",
|
|
164
|
+
schema: "input EditPayerWalletInput {\n rpc: String\n chainName: String\n chainId: String\n address: String\n}",
|
|
165
|
+
template: "",
|
|
166
|
+
reducer: "",
|
|
167
|
+
errors: [],
|
|
168
|
+
examples: [],
|
|
169
|
+
scope: "global",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: "V6qGoeW+8RP3CHE0XQiBYOy4EKI=",
|
|
175
|
+
name: "items",
|
|
176
|
+
description: "",
|
|
177
|
+
operations: [
|
|
178
|
+
{
|
|
179
|
+
id: "+Y7o2f0Ht0lsDpoR9FlQwEwzaFU=",
|
|
180
|
+
name: "ADD_LINE_ITEM",
|
|
181
|
+
description: "",
|
|
182
|
+
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}",
|
|
183
|
+
template: "",
|
|
184
|
+
reducer: "",
|
|
185
|
+
errors: [],
|
|
186
|
+
examples: [],
|
|
187
|
+
scope: "global",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
id: "PCi10xZY1UKyAAsV/etTfQSULa0=",
|
|
191
|
+
name: "EDIT_LINE_ITEM",
|
|
192
|
+
description: "",
|
|
193
|
+
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}",
|
|
194
|
+
template: "",
|
|
195
|
+
reducer: "",
|
|
196
|
+
errors: [],
|
|
197
|
+
examples: [],
|
|
198
|
+
scope: "global",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: "E9/QRfqZQuNXj/f2sO2HeEjojUI=",
|
|
202
|
+
name: "DELETE_LINE_ITEM",
|
|
203
|
+
description: "",
|
|
204
|
+
schema: "input DeleteLineItemInput {\n id: OID!\n}",
|
|
205
|
+
template: "",
|
|
206
|
+
reducer: "",
|
|
207
|
+
errors: [],
|
|
208
|
+
examples: [],
|
|
209
|
+
scope: "global",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
id: "eb020c14-9c7c-4858-8469-fd25059d532f",
|
|
213
|
+
name: "SET_LINE_ITEM_TAG",
|
|
214
|
+
description: "",
|
|
215
|
+
schema: "input SetLineItemTagInput {\n id: OID!\n dimension: String!\n value: String!\n label: String\n}",
|
|
216
|
+
template: "",
|
|
217
|
+
reducer: "",
|
|
218
|
+
errors: [],
|
|
219
|
+
examples: [],
|
|
220
|
+
scope: "global",
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type BaseAction } from "document-model";
|
|
2
|
+
import type { EditInvoiceInput, EditStatusInput, AddRefInput, EditRefInput, DeleteRefInput, SetPaymentAccountInput } from "../types.js";
|
|
3
|
+
export type EditInvoiceAction = BaseAction<"EDIT_INVOICE", EditInvoiceInput, "global">;
|
|
4
|
+
export type EditStatusAction = BaseAction<"EDIT_STATUS", EditStatusInput, "global">;
|
|
5
|
+
export type AddRefAction = BaseAction<"ADD_REF", AddRefInput, "global">;
|
|
6
|
+
export type EditRefAction = BaseAction<"EDIT_REF", EditRefInput, "global">;
|
|
7
|
+
export type DeleteRefAction = BaseAction<"DELETE_REF", DeleteRefInput, "global">;
|
|
8
|
+
export type SetPaymentAccountAction = BaseAction<"SET_PAYMENT_ACCOUNT", SetPaymentAccountInput, "global">;
|
|
9
|
+
export type InvoiceGeneralAction = EditInvoiceAction | EditStatusAction | AddRefAction | EditRefAction | DeleteRefAction | SetPaymentAccountAction;
|
|
10
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/invoice/gen/general/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,iBAAiB,GAAG,UAAU,CACxC,cAAc,EACd,gBAAgB,EAChB,QAAQ,CACT,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,UAAU,CACvC,aAAa,EACb,eAAe,EACf,QAAQ,CACT,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;AACxE,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,UAAU,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;AAC3E,MAAM,MAAM,eAAe,GAAG,UAAU,CACtC,YAAY,EACZ,cAAc,EACd,QAAQ,CACT,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,qBAAqB,EACrB,sBAAsB,EACtB,QAAQ,CACT,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type EditInvoiceInput, type EditStatusInput, type AddRefInput, type EditRefInput, type DeleteRefInput, type SetPaymentAccountInput } from "../types.js";
|
|
2
|
+
import { type EditInvoiceAction, type EditStatusAction, type AddRefAction, type EditRefAction, type DeleteRefAction, type SetPaymentAccountAction } from "./actions.js";
|
|
3
|
+
export declare const editInvoice: (input: EditInvoiceInput) => EditInvoiceAction;
|
|
4
|
+
export declare const editStatus: (input: EditStatusInput) => EditStatusAction;
|
|
5
|
+
export declare const addRef: (input: AddRefInput) => AddRefAction;
|
|
6
|
+
export declare const editRef: (input: EditRefInput) => EditRefAction;
|
|
7
|
+
export declare const deleteRef: (input: DeleteRefInput) => DeleteRefAction;
|
|
8
|
+
export declare const setPaymentAccount: (input: SetPaymentAccountInput) => SetPaymentAccountAction;
|
|
9
|
+
//# sourceMappingURL=creators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/invoice/gen/general/creators.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC7B,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAOhD,CAAC;AAEJ,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,qBAO9C,CAAC;AAEJ,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,iBAOtC,CAAC;AAEJ,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,kBAOxC,CAAC;AAEJ,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,oBAO5C,CAAC;AAEJ,eAAO,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,4BAO5D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createAction } from "document-model";
|
|
2
|
+
import { z, } from "../types.js";
|
|
3
|
+
export const editInvoice = (input) => createAction("EDIT_INVOICE", { ...input }, undefined, z.EditInvoiceInputSchema, "global");
|
|
4
|
+
export const editStatus = (input) => createAction("EDIT_STATUS", { ...input }, undefined, z.EditStatusInputSchema, "global");
|
|
5
|
+
export const addRef = (input) => createAction("ADD_REF", { ...input }, undefined, z.AddRefInputSchema, "global");
|
|
6
|
+
export const editRef = (input) => createAction("EDIT_REF", { ...input }, undefined, z.EditRefInputSchema, "global");
|
|
7
|
+
export const deleteRef = (input) => createAction("DELETE_REF", { ...input }, undefined, z.DeleteRefInputSchema, "global");
|
|
8
|
+
export const setPaymentAccount = (input) => createAction("SET_PAYMENT_ACCOUNT", { ...input }, undefined, z.SetPaymentAccountInputSchema, "global");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../document-models/invoice/gen/general/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,IAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const errors = {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseDocumentClass } from "document-model";
|
|
2
|
+
import { type EditInvoiceInput, type EditStatusInput, type AddRefInput, type EditRefInput, type DeleteRefInput, type SetPaymentAccountInput, type InvoiceState, type InvoiceLocalState } from "../types.js";
|
|
3
|
+
import { type InvoiceAction } from "../actions.js";
|
|
4
|
+
export default class Invoice_General extends BaseDocumentClass<InvoiceState, InvoiceLocalState, InvoiceAction> {
|
|
5
|
+
editInvoice(input: EditInvoiceInput): this;
|
|
6
|
+
editStatus(input: EditStatusInput): this;
|
|
7
|
+
addRef(input: AddRefInput): this;
|
|
8
|
+
editRef(input: EditRefInput): this;
|
|
9
|
+
deleteRef(input: DeleteRefInput): this;
|
|
10
|
+
setPaymentAccount(input: SetPaymentAccountInput): this;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../document-models/invoice/gen/general/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACvB,MAAM,aAAa,CAAC;AASrB,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,iBAAiB,CAC5D,YAAY,EACZ,iBAAiB,EACjB,aAAa,CACd;IACQ,WAAW,CAAC,KAAK,EAAE,gBAAgB;IAInC,UAAU,CAAC,KAAK,EAAE,eAAe;IAIjC,MAAM,CAAC,KAAK,EAAE,WAAW;IAIzB,OAAO,CAAC,KAAK,EAAE,YAAY;IAI3B,SAAS,CAAC,KAAK,EAAE,cAAc;IAI/B,iBAAiB,CAAC,KAAK,EAAE,sBAAsB;CAGvD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseDocumentClass } from "document-model";
|
|
2
|
+
import { editInvoice, editStatus, addRef, editRef, deleteRef, setPaymentAccount, } from "./creators.js";
|
|
3
|
+
export default class Invoice_General extends BaseDocumentClass {
|
|
4
|
+
editInvoice(input) {
|
|
5
|
+
return this.dispatch(editInvoice(input));
|
|
6
|
+
}
|
|
7
|
+
editStatus(input) {
|
|
8
|
+
return this.dispatch(editStatus(input));
|
|
9
|
+
}
|
|
10
|
+
addRef(input) {
|
|
11
|
+
return this.dispatch(addRef(input));
|
|
12
|
+
}
|
|
13
|
+
editRef(input) {
|
|
14
|
+
return this.dispatch(editRef(input));
|
|
15
|
+
}
|
|
16
|
+
deleteRef(input) {
|
|
17
|
+
return this.dispatch(deleteRef(input));
|
|
18
|
+
}
|
|
19
|
+
setPaymentAccount(input) {
|
|
20
|
+
return this.dispatch(setPaymentAccount(input));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type SignalDispatch } from "document-model";
|
|
2
|
+
import { type EditInvoiceAction, type EditStatusAction, type AddRefAction, type EditRefAction, type DeleteRefAction, type SetPaymentAccountAction } from "./actions.js";
|
|
3
|
+
import { type InvoiceState } from "../types.js";
|
|
4
|
+
export interface InvoiceGeneralOperations {
|
|
5
|
+
editInvoiceOperation: (state: InvoiceState, action: EditInvoiceAction, dispatch?: SignalDispatch) => void;
|
|
6
|
+
editStatusOperation: (state: InvoiceState, action: EditStatusAction, dispatch?: SignalDispatch) => void;
|
|
7
|
+
addRefOperation: (state: InvoiceState, action: AddRefAction, dispatch?: SignalDispatch) => void;
|
|
8
|
+
editRefOperation: (state: InvoiceState, action: EditRefAction, dispatch?: SignalDispatch) => void;
|
|
9
|
+
deleteRefOperation: (state: InvoiceState, action: DeleteRefAction, dispatch?: SignalDispatch) => void;
|
|
10
|
+
setPaymentAccountOperation: (state: InvoiceState, action: SetPaymentAccountAction, dispatch?: SignalDispatch) => void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/invoice/gen/general/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,WAAW,wBAAwB;IACvC,oBAAoB,EAAE,CACpB,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,iBAAiB,EACzB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,mBAAmB,EAAE,CACnB,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,eAAe,EAAE,CACf,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,YAAY,EACpB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,gBAAgB,EAAE,CAChB,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,aAAa,EACrB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,kBAAkB,EAAE,CAClB,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,eAAe,EACvB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,0BAA0B,EAAE,CAC1B,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,uBAAuB,EAC/B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../document-models/invoice/gen/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type BaseAction } from "document-model";
|
|
2
|
+
import type { AddLineItemInput, EditLineItemInput, DeleteLineItemInput, SetLineItemTagInput } from "../types.js";
|
|
3
|
+
export type AddLineItemAction = BaseAction<"ADD_LINE_ITEM", AddLineItemInput, "global">;
|
|
4
|
+
export type EditLineItemAction = BaseAction<"EDIT_LINE_ITEM", EditLineItemInput, "global">;
|
|
5
|
+
export type DeleteLineItemAction = BaseAction<"DELETE_LINE_ITEM", DeleteLineItemInput, "global">;
|
|
6
|
+
export type SetLineItemTagAction = BaseAction<"SET_LINE_ITEM_TAG", SetLineItemTagInput, "global">;
|
|
7
|
+
export type InvoiceItemsAction = AddLineItemAction | EditLineItemAction | DeleteLineItemAction | SetLineItemTagAction;
|
|
8
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/invoice/gen/items/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,iBAAiB,GAAG,UAAU,CACxC,eAAe,EACf,gBAAgB,EAChB,QAAQ,CACT,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,UAAU,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,CACT,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,QAAQ,CACT,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAC3C,mBAAmB,EACnB,mBAAmB,EACnB,QAAQ,CACT,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,iBAAiB,GACjB,kBAAkB,GAClB,oBAAoB,GACpB,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type AddLineItemInput, type EditLineItemInput, type DeleteLineItemInput, type SetLineItemTagInput } from "../types.js";
|
|
2
|
+
import { type AddLineItemAction, type EditLineItemAction, type DeleteLineItemAction, type SetLineItemTagAction } from "./actions.js";
|
|
3
|
+
export declare const addLineItem: (input: AddLineItemInput) => AddLineItemAction;
|
|
4
|
+
export declare const editLineItem: (input: EditLineItemInput) => EditLineItemAction;
|
|
5
|
+
export declare const deleteLineItem: (input: DeleteLineItemInput) => DeleteLineItemAction;
|
|
6
|
+
export declare const setLineItemTag: (input: SetLineItemTagInput) => SetLineItemTagAction;
|
|
7
|
+
//# sourceMappingURL=creators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/invoice/gen/items/creators.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAOhD,CAAC;AAEJ,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,uBAOlD,CAAC;AAEJ,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,yBAOtD,CAAC;AAEJ,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,yBAOtD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createAction } from "document-model";
|
|
2
|
+
import { z, } from "../types.js";
|
|
3
|
+
export const addLineItem = (input) => createAction("ADD_LINE_ITEM", { ...input }, undefined, z.AddLineItemInputSchema, "global");
|
|
4
|
+
export const editLineItem = (input) => createAction("EDIT_LINE_ITEM", { ...input }, undefined, z.EditLineItemInputSchema, "global");
|
|
5
|
+
export const deleteLineItem = (input) => createAction("DELETE_LINE_ITEM", { ...input }, undefined, z.DeleteLineItemInputSchema, "global");
|
|
6
|
+
export const setLineItemTag = (input) => createAction("SET_LINE_ITEM_TAG", { ...input }, undefined, z.SetLineItemTagInputSchema, "global");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../document-models/invoice/gen/items/error.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,IAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const errors = {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseDocumentClass } from "document-model";
|
|
2
|
+
import { type AddLineItemInput, type EditLineItemInput, type DeleteLineItemInput, type SetLineItemTagInput, type InvoiceState, type InvoiceLocalState } from "../types.js";
|
|
3
|
+
import { type InvoiceAction } from "../actions.js";
|
|
4
|
+
export default class Invoice_Items extends BaseDocumentClass<InvoiceState, InvoiceLocalState, InvoiceAction> {
|
|
5
|
+
addLineItem(input: AddLineItemInput): this;
|
|
6
|
+
editLineItem(input: EditLineItemInput): this;
|
|
7
|
+
deleteLineItem(input: DeleteLineItemInput): this;
|
|
8
|
+
setLineItemTag(input: SetLineItemTagInput): this;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../document-models/invoice/gen/items/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACvB,MAAM,aAAa,CAAC;AAOrB,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,iBAAiB,CAC1D,YAAY,EACZ,iBAAiB,EACjB,aAAa,CACd;IACQ,WAAW,CAAC,KAAK,EAAE,gBAAgB;IAInC,YAAY,CAAC,KAAK,EAAE,iBAAiB;IAIrC,cAAc,CAAC,KAAK,EAAE,mBAAmB;IAIzC,cAAc,CAAC,KAAK,EAAE,mBAAmB;CAGjD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseDocumentClass } from "document-model";
|
|
2
|
+
import { addLineItem, editLineItem, deleteLineItem, setLineItemTag, } from "./creators.js";
|
|
3
|
+
export default class Invoice_Items extends BaseDocumentClass {
|
|
4
|
+
addLineItem(input) {
|
|
5
|
+
return this.dispatch(addLineItem(input));
|
|
6
|
+
}
|
|
7
|
+
editLineItem(input) {
|
|
8
|
+
return this.dispatch(editLineItem(input));
|
|
9
|
+
}
|
|
10
|
+
deleteLineItem(input) {
|
|
11
|
+
return this.dispatch(deleteLineItem(input));
|
|
12
|
+
}
|
|
13
|
+
setLineItemTag(input) {
|
|
14
|
+
return this.dispatch(setLineItemTag(input));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SignalDispatch } from "document-model";
|
|
2
|
+
import { type AddLineItemAction, type EditLineItemAction, type DeleteLineItemAction, type SetLineItemTagAction } from "./actions.js";
|
|
3
|
+
import { type InvoiceState } from "../types.js";
|
|
4
|
+
export interface InvoiceItemsOperations {
|
|
5
|
+
addLineItemOperation: (state: InvoiceState, action: AddLineItemAction, dispatch?: SignalDispatch) => void;
|
|
6
|
+
editLineItemOperation: (state: InvoiceState, action: EditLineItemAction, dispatch?: SignalDispatch) => void;
|
|
7
|
+
deleteLineItemOperation: (state: InvoiceState, action: DeleteLineItemAction, dispatch?: SignalDispatch) => void;
|
|
8
|
+
setLineItemTagOperation: (state: InvoiceState, action: SetLineItemTagAction, dispatch?: SignalDispatch) => void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/invoice/gen/items/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,WAAW,sBAAsB;IACrC,oBAAoB,EAAE,CACpB,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,iBAAiB,EACzB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,qBAAqB,EAAE,CACrB,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,uBAAuB,EAAE,CACvB,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,uBAAuB,EAAE,CACvB,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseDocumentClass, type ExtendedState, type PartialState, type SignalDispatch } from "document-model";
|
|
2
|
+
import { type InvoiceState, type InvoiceLocalState } from "./types.js";
|
|
3
|
+
import { type InvoiceAction } from "./actions.js";
|
|
4
|
+
import Invoice_General from "./general/object.js";
|
|
5
|
+
import Invoice_Parties from "./parties/object.js";
|
|
6
|
+
import Invoice_Items from "./items/object.js";
|
|
7
|
+
export * from "./general/object.js";
|
|
8
|
+
export * from "./parties/object.js";
|
|
9
|
+
export * from "./items/object.js";
|
|
10
|
+
interface Invoice extends Invoice_General, Invoice_Parties, Invoice_Items {
|
|
11
|
+
}
|
|
12
|
+
declare class Invoice extends BaseDocumentClass<InvoiceState, InvoiceLocalState, InvoiceAction> {
|
|
13
|
+
static fileExtension: string;
|
|
14
|
+
constructor(initialState?: Partial<ExtendedState<PartialState<InvoiceState>, PartialState<InvoiceLocalState>>>, dispatch?: SignalDispatch);
|
|
15
|
+
saveToFile(path: string, name?: string): Promise<string>;
|
|
16
|
+
loadFromFile(path: string): Promise<void>;
|
|
17
|
+
static fromFile(path: string): Promise<Invoice>;
|
|
18
|
+
}
|
|
19
|
+
export { Invoice };
|
|
20
|
+
//# sourceMappingURL=object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../document-models/invoice/gen/object.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,YAAY,EAEjB,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,eAAe,MAAM,qBAAqB,CAAC;AAClD,OAAO,eAAe,MAAM,qBAAqB,CAAC;AAClD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAE9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAGlC,UAAU,OAAQ,SAAQ,eAAe,EAAE,eAAe,EAAE,aAAa;CAAG;AAG5E,cAAM,OAAQ,SAAQ,iBAAiB,CACrC,YAAY,EACZ,iBAAiB,EACjB,aAAa,CACd;IACC,MAAM,CAAC,aAAa,SAAW;gBAG7B,YAAY,CAAC,EAAE,OAAO,CACpB,aAAa,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAC,CAC3E,EACD,QAAQ,CAAC,EAAE,cAAc;IAKpB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;IAItC,YAAY,CAAC,IAAI,EAAE,MAAM;WAInB,QAAQ,CAAC,IAAI,EAAE,MAAM;CAKnC;AAID,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseDocumentClass, applyMixins, } from "document-model";
|
|
2
|
+
import { reducer } from "./reducer.js";
|
|
3
|
+
import utils from "./utils.js";
|
|
4
|
+
import Invoice_General from "./general/object.js";
|
|
5
|
+
import Invoice_Parties from "./parties/object.js";
|
|
6
|
+
import Invoice_Items from "./items/object.js";
|
|
7
|
+
export * from "./general/object.js";
|
|
8
|
+
export * from "./parties/object.js";
|
|
9
|
+
export * from "./items/object.js";
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
|
11
|
+
class Invoice extends BaseDocumentClass {
|
|
12
|
+
static fileExtension = ".phdm";
|
|
13
|
+
constructor(initialState, dispatch) {
|
|
14
|
+
super(reducer, utils.createDocument(initialState), dispatch);
|
|
15
|
+
}
|
|
16
|
+
saveToFile(path, name) {
|
|
17
|
+
return super.saveToFile(path, Invoice.fileExtension, name);
|
|
18
|
+
}
|
|
19
|
+
loadFromFile(path) {
|
|
20
|
+
return super.loadFromFile(path);
|
|
21
|
+
}
|
|
22
|
+
static async fromFile(path) {
|
|
23
|
+
const document = new this();
|
|
24
|
+
await document.loadFromFile(path);
|
|
25
|
+
return document;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
applyMixins(Invoice, [Invoice_General, Invoice_Parties, Invoice_Items]);
|
|
29
|
+
export { Invoice };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type BaseAction } from "document-model";
|
|
2
|
+
import type { EditIssuerInput, EditIssuerBankInput, EditIssuerWalletInput, EditPayerInput, EditPayerBankInput, EditPayerWalletInput } from "../types.js";
|
|
3
|
+
export type EditIssuerAction = BaseAction<"EDIT_ISSUER", EditIssuerInput, "global">;
|
|
4
|
+
export type EditIssuerBankAction = BaseAction<"EDIT_ISSUER_BANK", EditIssuerBankInput, "global">;
|
|
5
|
+
export type EditIssuerWalletAction = BaseAction<"EDIT_ISSUER_WALLET", EditIssuerWalletInput, "global">;
|
|
6
|
+
export type EditPayerAction = BaseAction<"EDIT_PAYER", EditPayerInput, "global">;
|
|
7
|
+
export type EditPayerBankAction = BaseAction<"EDIT_PAYER_BANK", EditPayerBankInput, "global">;
|
|
8
|
+
export type EditPayerWalletAction = BaseAction<"EDIT_PAYER_WALLET", EditPayerWalletInput, "global">;
|
|
9
|
+
export type InvoicePartiesAction = EditIssuerAction | EditIssuerBankAction | EditIssuerWalletAction | EditPayerAction | EditPayerBankAction | EditPayerWalletAction;
|
|
10
|
+
//# sourceMappingURL=actions.d.ts.map
|