@powerhousedao/contributor-billing 0.0.57 → 0.0.59
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/dist/editors/integrations/index.js +1 -1
- package/dist/editors/invoice/ingestPDF.js +1 -1
- package/dist/editors/invoice/invoiceToGnosis.js +2 -2
- package/dist/editors/invoice/requestFinance.js +1 -1
- package/dist/editors/invoice/uploadPdfChunked.js +1 -1
- package/dist/powerhouse.manifest.json +17 -2
- package/dist/scripts/invoice/gnosisTransactionBuilder.js +1 -1
- package/package.json +18 -18
|
@@ -6,7 +6,7 @@ import { uploadPdfChunked } from "./uploadPdfChunked.js";
|
|
|
6
6
|
import { getCountryCodeFromName } from "./utils/utils.js";
|
|
7
7
|
let GRAPHQL_URL = 'http://localhost:4001/graphql/invoice';
|
|
8
8
|
if (!window.document.baseURI.includes('localhost')) {
|
|
9
|
-
GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql/invoice';
|
|
9
|
+
GRAPHQL_URL = 'https://switchboard-dev.powerhouse.xyz/graphql/invoice';
|
|
10
10
|
}
|
|
11
11
|
export async function loadPDFFile({ file, dispatch, }) {
|
|
12
12
|
if (!file)
|
|
@@ -4,7 +4,7 @@ import { actions, } from "../../document-models/invoice/index.js";
|
|
|
4
4
|
import { generateId } from "document-model";
|
|
5
5
|
let GRAPHQL_URL = "http://localhost:4001/graphql/invoice";
|
|
6
6
|
if (!window.document.baseURI.includes('localhost')) {
|
|
7
|
-
GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql/invoice';
|
|
7
|
+
GRAPHQL_URL = 'https://switchboard-dev.powerhouse.xyz/graphql/invoice';
|
|
8
8
|
}
|
|
9
9
|
const InvoiceToGnosis = ({ docState, dispatch }) => {
|
|
10
10
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -131,6 +131,6 @@ const InvoiceToGnosis = ({ docState, dispatch }) => {
|
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
const urlChainName = parseChainName(chainName);
|
|
134
|
-
return (_jsxs("div", { className: "space-y-4", children: [currency && chainName && currency !== "" && chainName !== "" && (_jsx("button", { className: "bg-blue-500 text-black px-4 py-2 rounded-md hover:bg-blue-600", onClick: handleInvoiceToGnosis, disabled: isLoading, children: isLoading ? "Processing..." : "Send Payment to Gnosis >" })), error && (_jsx("div", { className: "text-red-500 bg-red-50 p-3 rounded-md", children: error })), safeTxHash && (_jsxs("div", { className: "bg-gray-50 p-4 rounded-md space-y-2", children: [_jsxs("p", { className: "font-medium", children: ["Safe Transaction Hash:", _jsx("span", { className: "font-mono text-sm ml-2 break-all", children: safeTxHash })] }), _jsx("a", { href: `https://app.safe.global/transactions/queue?safe=${urlChainName}:
|
|
134
|
+
return (_jsxs("div", { className: "space-y-4", children: [currency && chainName && currency !== "" && chainName !== "" && (_jsx("button", { className: "bg-blue-500 text-black px-4 py-2 rounded-md hover:bg-blue-600", onClick: handleInvoiceToGnosis, disabled: isLoading, children: isLoading ? "Processing..." : "Send Payment to Gnosis >" })), error && (_jsx("div", { className: "text-red-500 bg-red-50 p-3 rounded-md", children: error })), safeTxHash && (_jsxs("div", { className: "bg-gray-50 p-4 rounded-md space-y-2", children: [_jsxs("p", { className: "font-medium", children: ["Safe Transaction Hash:", _jsx("span", { className: "font-mono text-sm ml-2 break-all", children: safeTxHash })] }), _jsx("a", { href: `https://app.safe.global/transactions/queue?safe=${urlChainName}:0x1FB6bEF04230d67aF0e3455B997a28AFcCe1F45e`, target: "_blank", rel: "noopener noreferrer", className: "text-blue-500 hover:text-blue-600 underline block", children: "View Transaction" })] })), invoiceStatusResponse && (_jsxs("div", { className: "bg-gray-50 p-4 rounded-md", children: [_jsx("p", { className: "font-medium", children: "Payment Details:" }), _jsx("p", { className: "text-gray-700", children: invoiceStatusResponse })] }))] }));
|
|
135
135
|
};
|
|
136
136
|
export default InvoiceToGnosis;
|
|
@@ -4,7 +4,7 @@ import { actions, } from "../../document-models/invoice/index.js";
|
|
|
4
4
|
import { generateId } from "document-model";
|
|
5
5
|
let GRAPHQL_URL = 'http://localhost:4001/graphql/invoice';
|
|
6
6
|
if (!window.document.baseURI.includes('localhost')) {
|
|
7
|
-
GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql/invoice';
|
|
7
|
+
GRAPHQL_URL = 'https://switchboard-dev.powerhouse.xyz/graphql/invoice';
|
|
8
8
|
}
|
|
9
9
|
const RequestFinance = ({ docState, dispatch }) => {
|
|
10
10
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
let GRAPHQL_URL = 'http://localhost:4001/graphql/invoice';
|
|
9
9
|
if (!window.document.baseURI.includes('localhost')) {
|
|
10
|
-
GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql/invoice';
|
|
10
|
+
GRAPHQL_URL = 'https://switchboard-dev.powerhouse.xyz/graphql/invoice';
|
|
11
11
|
}
|
|
12
12
|
export async function uploadPdfChunked(pdfData, endpoint = GRAPHQL_URL, chunkSize = 500 * 1024, // 500KB chunks
|
|
13
13
|
onProgress) {
|
|
@@ -10,22 +10,37 @@
|
|
|
10
10
|
{
|
|
11
11
|
"id": "powerhouse/invoice",
|
|
12
12
|
"name": "Invoice"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "powerhouse/integrations",
|
|
16
|
+
"name": "Integrations"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "powerhouse/billing-statement",
|
|
20
|
+
"name": "Billing Statement"
|
|
13
21
|
}
|
|
14
22
|
],
|
|
15
23
|
"editors": [
|
|
16
24
|
{
|
|
17
|
-
"id": "powerhouse
|
|
25
|
+
"id": "powerhouse-invoice-editor",
|
|
18
26
|
"name": "Invoice",
|
|
19
27
|
"documentTypes": [
|
|
20
28
|
"powerhouse/invoice"
|
|
21
29
|
]
|
|
22
30
|
},
|
|
23
31
|
{
|
|
24
|
-
"id": "powerhouse
|
|
32
|
+
"id": "powerhouse-billing-statement-editor",
|
|
25
33
|
"name": "Billing Statement",
|
|
26
34
|
"documentTypes": [
|
|
27
35
|
"powerhouse/billing-statement"
|
|
28
36
|
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "integrations-editor",
|
|
40
|
+
"name": "Integrations",
|
|
41
|
+
"documentTypes": [
|
|
42
|
+
"powerhouse/integrations"
|
|
43
|
+
]
|
|
29
44
|
}
|
|
30
45
|
],
|
|
31
46
|
"apps": [
|
|
@@ -4,7 +4,7 @@ import { OperationType } from '@safe-global/types-kit';
|
|
|
4
4
|
import { ethers, AbiCoder } from 'ethers';
|
|
5
5
|
import dotenv from 'dotenv';
|
|
6
6
|
dotenv.config();
|
|
7
|
-
const safeAddress = process.env.
|
|
7
|
+
const safeAddress = process.env.DEV_STAGING_SAFE_ADDRESS;
|
|
8
8
|
if (!safeAddress) {
|
|
9
9
|
throw new Error('Missing SAFE_ADDRESS in .env');
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/contributor-billing",
|
|
3
3
|
"description": "Document models that help contributors of open organisations get paid anonymously for their work on a monthly basis.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.59",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -60,13 +60,12 @@
|
|
|
60
60
|
"@powerhousedao/builder-tools": "^4.0.4",
|
|
61
61
|
"@powerhousedao/common": "^4.0.4",
|
|
62
62
|
"@powerhousedao/design-system": "^4.0.4",
|
|
63
|
-
"@powerhousedao/document-engineering": "^1.
|
|
63
|
+
"@powerhousedao/document-engineering": "^1.27.0",
|
|
64
64
|
"@react-pdf/renderer": "^4.3.0",
|
|
65
65
|
"@safe-global/api-kit": "^3.0.1",
|
|
66
66
|
"@safe-global/protocol-kit": "^6.0.3",
|
|
67
67
|
"@safe-global/sdk-starter-kit": "^2.0.2",
|
|
68
68
|
"@safe-global/types-kit": "^2.0.1",
|
|
69
|
-
"@testing-library/react": "^16.3.0",
|
|
70
69
|
"@types/cors": "^2.8.17",
|
|
71
70
|
"axios": "^1.9.0",
|
|
72
71
|
"cors": "^2.8.5",
|
|
@@ -83,30 +82,31 @@
|
|
|
83
82
|
"zod": "^3.24.2"
|
|
84
83
|
},
|
|
85
84
|
"devDependencies": {
|
|
85
|
+
"@electric-sql/pglite": "^0.2.12",
|
|
86
86
|
"@eslint/js": "^9.25.0",
|
|
87
87
|
"@powerhousedao/analytics-engine-core": "^0.5.0",
|
|
88
|
-
"@powerhousedao/codegen": "
|
|
89
|
-
"@powerhousedao/ph-cli": "
|
|
90
|
-
"@powerhousedao/reactor-api": "
|
|
91
|
-
"@powerhousedao/reactor-browser": "
|
|
92
|
-
"@powerhousedao/reactor-local": "
|
|
93
|
-
"@powerhousedao/scalars": "
|
|
94
|
-
"@
|
|
95
|
-
"@
|
|
96
|
-
"@
|
|
88
|
+
"@powerhousedao/codegen": "latest",
|
|
89
|
+
"@powerhousedao/ph-cli": "latest",
|
|
90
|
+
"@powerhousedao/reactor-api": "latest",
|
|
91
|
+
"@powerhousedao/reactor-browser": "latest",
|
|
92
|
+
"@powerhousedao/reactor-local": "latest",
|
|
93
|
+
"@powerhousedao/scalars": "latest",
|
|
94
|
+
"@powerhousedao/switchboard": "latest",
|
|
95
|
+
"@tailwindcss/cli": "^4.1.4",
|
|
96
|
+
"@testing-library/react": "^16.3.0",
|
|
97
|
+
"@types/node": "^22.14.1",
|
|
98
|
+
"@types/react": "^18.3.20",
|
|
97
99
|
"@vitejs/plugin-react": "^4.4.1",
|
|
98
|
-
"
|
|
99
|
-
"document-drive": "^4.0.4",
|
|
100
|
+
"document-drive": "latest",
|
|
100
101
|
"eslint": "^9.25.0",
|
|
101
102
|
"eslint-plugin-react": "^7.37.5",
|
|
102
103
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
103
104
|
"globals": "^16.0.0",
|
|
104
105
|
"package-manager-detector": "^0.2.8",
|
|
105
106
|
"pm2": "^5.4.3",
|
|
106
|
-
"react": "^
|
|
107
|
-
"react-dom": "^
|
|
108
|
-
"tailwindcss": "^4.1.
|
|
109
|
-
"ts-node": "^10.9.2",
|
|
107
|
+
"react": "^18.3.1",
|
|
108
|
+
"react-dom": "^18.3.1",
|
|
109
|
+
"tailwindcss": "^4.1.4",
|
|
110
110
|
"typescript": "^5.8.3",
|
|
111
111
|
"typescript-eslint": "^8.30.1",
|
|
112
112
|
"vite": "^6.2.3",
|