@powerhousedao/contributor-billing 0.0.21 → 0.0.22
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/document-models/invoice/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/document-model.js +2 -24
- package/dist/document-models/invoice/gen/general/actions.d.ts +2 -4
- package/dist/document-models/invoice/gen/general/actions.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/general/creators.d.ts +2 -4
- package/dist/document-models/invoice/gen/general/creators.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/general/creators.js +0 -2
- package/dist/document-models/invoice/gen/general/object.d.ts +1 -3
- package/dist/document-models/invoice/gen/general/object.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/general/object.js +1 -7
- package/dist/document-models/invoice/gen/general/operations.d.ts +1 -3
- package/dist/document-models/invoice/gen/general/operations.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/reducer.js +0 -8
- package/dist/document-models/invoice/gen/schema/types.d.ts +0 -10
- package/dist/document-models/invoice/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/schema/zod.d.ts +1 -3
- package/dist/document-models/invoice/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/schema/zod.js +0 -14
- package/dist/document-models/invoice/gen/utils.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/utils.js +0 -3
- package/dist/document-models/invoice/index.d.ts +0 -2
- package/dist/document-models/invoice/index.d.ts.map +1 -1
- package/dist/document-models/invoice/src/reducers/general.d.ts.map +1 -1
- package/dist/document-models/invoice/src/reducers/general.js +0 -19
- package/dist/document-models/invoice/src/tests/general.test.js +0 -17
- package/dist/editors/billing-statement/editor.js +2 -2
- package/dist/editors/billing-statement/lineItemTags/lineItemTags.js +4 -5
- package/dist/editors/billing-statement/lineItemTags/tagMapping.d.ts +0 -2
- package/dist/editors/billing-statement/lineItemTags/tagMapping.d.ts.map +1 -1
- package/dist/editors/billing-statement/lineItemTags/tagMapping.js +26 -105
- package/dist/editors/contributor-billing/components/DriveExplorer.d.ts +1 -1
- package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/DriveExplorer.js +8 -5
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts +1 -9
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.js +3 -128
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts +1 -10
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.js +8 -7
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts +1 -4
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.js +2 -5
- package/dist/editors/invoice/editor.js +1 -1
- package/dist/editors/invoice/ingestPDF.js +1 -1
- package/dist/editors/invoice/invoiceToGnosis.d.ts.map +1 -1
- package/dist/editors/invoice/invoiceToGnosis.js +2 -5
- 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/tagMapping.d.ts.map +1 -1
- package/dist/editors/invoice/lineItemTags/tagMapping.js +1 -5
- package/dist/editors/invoice/requestFinance.js +1 -1
- package/dist/editors/invoice/uploadPdfChunked.js +1 -1
- package/dist/scripts/invoice/gnosisTransactionBuilder.js +1 -1
- package/dist/style.css +8 -14
- package/dist/subgraphs/invoice/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/invoice/resolvers.js +0 -14
- package/dist/subgraphs/invoice/schema.d.ts.map +1 -1
- package/dist/subgraphs/invoice/schema.js +0 -20
- package/package.json +2 -2
|
@@ -36,7 +36,7 @@ export function LineItemTagsTable({ lineItems, onClose, dispatch, paymentAccount
|
|
|
36
36
|
id: item.id,
|
|
37
37
|
description: e.target.value,
|
|
38
38
|
}));
|
|
39
|
-
} }) }), _jsx("td", { className: "border-b border-gray-200
|
|
39
|
+
}, className: "w-full" }) }), _jsx("td", { className: "border-b border-gray-200 p-3", style: { width: "100px" }, children: _jsx(DatePicker, { name: "period", dateFormat: "YYYY-MM-DD", autoClose: true, placeholder: "Select Period", value: item.lineItemTag.find((tag) => tag.dimension === "accounting-period")?.label || "", onChange: (e) => dispatch(actions.setLineItemTag({
|
|
40
40
|
lineItemId: item.id,
|
|
41
41
|
dimension: "accounting-period",
|
|
42
42
|
value: new Date(e.target.value)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tagMapping.d.ts","sourceRoot":"","sources":["../../../../editors/invoice/lineItemTags/tagMapping.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAEtE,eAAO,MAAM,qBAAqB,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"tagMapping.d.ts","sourceRoot":"","sources":["../../../../editors/invoice/lineItemTags/tagMapping.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAEtE,eAAO,MAAM,qBAAqB,EAAE,YAAY,EA6D/C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAAY,EAc/C,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export const expenseAccountOptions = [
|
|
2
2
|
{ label: "Grants from Maker DAO", value: "200" },
|
|
3
|
-
{ label: "Clearing Account", value: "2001" },
|
|
4
3
|
{ label: "Request Finance IC account", value: "2222" },
|
|
5
4
|
{ label: "Interest Income", value: "270" },
|
|
6
5
|
{ label: "Activities and Events", value: "3000" },
|
|
@@ -8,13 +7,12 @@ export const expenseAccountOptions = [
|
|
|
8
7
|
{ label: "Airfare", value: "3002" },
|
|
9
8
|
{ label: "Hotels", value: "3003" },
|
|
10
9
|
{ label: "Transportation (Uber, Taxi etc)", value: "3004" },
|
|
11
|
-
{ label: "Other travel cost", value: "3005" },
|
|
12
10
|
{ label: "Cost of Goods Sold", value: "310" },
|
|
13
11
|
{ label: "Advertising", value: "400" },
|
|
14
12
|
{ label: "Legal Fees Abroad", value: "4001" },
|
|
15
13
|
{ label: "Legal Fees Switzerland", value: "4002" },
|
|
16
14
|
{ label: "Finance Team Fees Abroad", value: "4003" },
|
|
17
|
-
{ label: "
|
|
15
|
+
{ label: "Fnance and Accounting Fees Switzerland", value: "4004" },
|
|
18
16
|
{ label: "Software Development Team Fees", value: "4005" },
|
|
19
17
|
{ label: "Research Team Fees", value: "4006" },
|
|
20
18
|
{ label: "Marketing Team Fees", value: "4007" },
|
|
@@ -38,7 +36,6 @@ export const expenseAccountOptions = [
|
|
|
38
36
|
{ label: "Prepayments", value: "620" },
|
|
39
37
|
{ label: "Inventory", value: "630" },
|
|
40
38
|
{ label: "Software/IT Subscriptions", value: "701" },
|
|
41
|
-
{ label: "Telephone and Internet Charges", value: "702" },
|
|
42
39
|
{ label: "Office Equipment", value: "710" },
|
|
43
40
|
{ label: "Less Accumulated Depreciation on Office Equipment", value: "711" },
|
|
44
41
|
{ label: "Computer Equipment", value: "720" },
|
|
@@ -48,7 +45,6 @@ export const expenseAccountOptions = [
|
|
|
48
45
|
{ label: "Gas Fees", value: "8001" },
|
|
49
46
|
{ label: "Exchange Fees", value: "8003" },
|
|
50
47
|
{ label: "Unpaid Expense Claims", value: "801" },
|
|
51
|
-
{ label: "Accrued Expenses", value: "802" },
|
|
52
48
|
{ label: "Wages Payable", value: "803" },
|
|
53
49
|
{ label: "Sales Tax", value: "820" },
|
|
54
50
|
{ label: "Employee Tax Payable", value: "825" },
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
let GRAPHQL_URL = 'http://localhost:4001/graphql/invoice';
|
|
4
4
|
if (window.document.baseURI !== 'http://localhost:3000/') {
|
|
5
|
-
GRAPHQL_URL = 'https://switchboard
|
|
5
|
+
GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql/invoice';
|
|
6
6
|
}
|
|
7
7
|
const RequestFinance = ({ docState }) => {
|
|
8
8
|
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 !== 'http://localhost:3000/') {
|
|
10
|
-
GRAPHQL_URL = 'https://switchboard
|
|
10
|
+
GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql/invoice';
|
|
11
11
|
}
|
|
12
12
|
export async function uploadPdfChunked(pdfData, endpoint = GRAPHQL_URL, chunkSize = 500 * 1024, // 500KB chunks
|
|
13
13
|
onProgress) {
|
|
@@ -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.PRODUCTION_SAFE_ADDRESS;
|
|
8
8
|
if (!safeAddress) {
|
|
9
9
|
throw new Error('Missing SAFE_ADDRESS in .env');
|
|
10
10
|
}
|
package/dist/style.css
CHANGED
|
@@ -400,6 +400,9 @@
|
|
|
400
400
|
.h-full {
|
|
401
401
|
height: 100%;
|
|
402
402
|
}
|
|
403
|
+
.max-h-\[500px\] {
|
|
404
|
+
max-height: 500px;
|
|
405
|
+
}
|
|
403
406
|
.w-4 {
|
|
404
407
|
width: calc(var(--spacing) * 4);
|
|
405
408
|
}
|
|
@@ -421,9 +424,6 @@
|
|
|
421
424
|
.w-48 {
|
|
422
425
|
width: calc(var(--spacing) * 48);
|
|
423
426
|
}
|
|
424
|
-
.w-50 {
|
|
425
|
-
width: calc(var(--spacing) * 50);
|
|
426
|
-
}
|
|
427
427
|
.w-64 {
|
|
428
428
|
width: calc(var(--spacing) * 64);
|
|
429
429
|
}
|
|
@@ -544,9 +544,6 @@
|
|
|
544
544
|
margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
.justify-self-end {
|
|
548
|
-
justify-self: flex-end;
|
|
549
|
-
}
|
|
550
547
|
.overflow-hidden {
|
|
551
548
|
overflow: hidden;
|
|
552
549
|
}
|
|
@@ -787,9 +784,6 @@
|
|
|
787
784
|
.text-gray-900 {
|
|
788
785
|
color: var(--color-gray-900);
|
|
789
786
|
}
|
|
790
|
-
.text-green-500 {
|
|
791
|
-
color: var(--color-green-500);
|
|
792
|
-
}
|
|
793
787
|
.text-green-600 {
|
|
794
788
|
color: var(--color-green-600);
|
|
795
789
|
}
|
|
@@ -976,11 +970,6 @@
|
|
|
976
970
|
padding: calc(var(--spacing) * 0);
|
|
977
971
|
}
|
|
978
972
|
}
|
|
979
|
-
.sm\:mt-6 {
|
|
980
|
-
@media (width >= 40rem) {
|
|
981
|
-
margin-top: calc(var(--spacing) * 6);
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
973
|
.sm\:grid-cols-2 {
|
|
985
974
|
@media (width >= 40rem) {
|
|
986
975
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -6366,6 +6355,11 @@ input[type="number"] {
|
|
|
6366
6355
|
transform: none;
|
|
6367
6356
|
}
|
|
6368
6357
|
}
|
|
6358
|
+
@media (min-width: 640px) {
|
|
6359
|
+
.two-column-grid {
|
|
6360
|
+
grid-template-columns: 1fr 1fr;
|
|
6361
|
+
}
|
|
6362
|
+
}
|
|
6369
6363
|
@property --tw-border-spacing-x {
|
|
6370
6364
|
syntax: "<length>";
|
|
6371
6365
|
inherits: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/invoice/resolvers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAQ3D,eAAO,MAAM,YAAY,GAAI,UAAU,QAAQ,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/invoice/resolvers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAQ3D,eAAO,MAAM,YAAY,GAAI,UAAU,QAAQ,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CA8SnE,CAAC"}
|
|
@@ -99,20 +99,6 @@ export const getResolvers = (subgraph) => {
|
|
|
99
99
|
await reactor.addAction(driveId, docId, actions.deleteRef({ ...args.input }));
|
|
100
100
|
return doc.revision.global + 1;
|
|
101
101
|
},
|
|
102
|
-
Invoice_editPaymentData: async (_, args) => {
|
|
103
|
-
const driveId = args.driveId || DEFAULT_DRIVE_ID;
|
|
104
|
-
const docId = args.docId || "";
|
|
105
|
-
const doc = await reactor.getDocument(driveId, docId);
|
|
106
|
-
await reactor.addAction(driveId, docId, actions.editPaymentData({ ...args.input }));
|
|
107
|
-
return doc.revision.global + 1;
|
|
108
|
-
},
|
|
109
|
-
Invoice_setExported: async (_, args) => {
|
|
110
|
-
const driveId = args.driveId || DEFAULT_DRIVE_ID;
|
|
111
|
-
const docId = args.docId || "";
|
|
112
|
-
const doc = await reactor.getDocument(driveId, docId);
|
|
113
|
-
await reactor.addAction(driveId, docId, actions.setExported({ ...args.input }));
|
|
114
|
-
return doc.revision.global + 1;
|
|
115
|
-
},
|
|
116
102
|
Invoice_editIssuer: async (_, args) => {
|
|
117
103
|
const driveId = args.driveId || DEFAULT_DRIVE_ID;
|
|
118
104
|
const docId = args.docId || "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/invoice/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/invoice/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,YA8cpB,CAAC"}
|
|
@@ -18,9 +18,6 @@ export const schema = gql `
|
|
|
18
18
|
totalPriceTaxIncl: Float!
|
|
19
19
|
invoiceTags: [InvoiceTag!]! # e.g. {'xero-payment-account', '090', 'PowerhouseUSD'}
|
|
20
20
|
notes: String
|
|
21
|
-
paymentDate: String
|
|
22
|
-
txnHash: String
|
|
23
|
-
exported: Boolean
|
|
24
21
|
}
|
|
25
22
|
|
|
26
23
|
type Ref {
|
|
@@ -195,16 +192,6 @@ export const schema = gql `
|
|
|
195
192
|
docId: PHID
|
|
196
193
|
input: Invoice_DeleteRefInput
|
|
197
194
|
): Int
|
|
198
|
-
Invoice_editPaymentData(
|
|
199
|
-
driveId: String
|
|
200
|
-
docId: PHID
|
|
201
|
-
input: Invoice_EditPaymentDataInput
|
|
202
|
-
): Int
|
|
203
|
-
Invoice_setExported(
|
|
204
|
-
driveId: String
|
|
205
|
-
docId: PHID
|
|
206
|
-
input: Invoice_SetExportedInput
|
|
207
|
-
): Int
|
|
208
195
|
Invoice_editIssuer(
|
|
209
196
|
driveId: String
|
|
210
197
|
docId: PHID
|
|
@@ -331,13 +318,6 @@ export const schema = gql `
|
|
|
331
318
|
input Invoice_DeleteRefInput {
|
|
332
319
|
id: OID!
|
|
333
320
|
}
|
|
334
|
-
input Invoice_EditPaymentDataInput {
|
|
335
|
-
paymentDate: String
|
|
336
|
-
txnHash: String
|
|
337
|
-
}
|
|
338
|
-
input Invoice_SetExportedInput {
|
|
339
|
-
exported: Boolean
|
|
340
|
-
}
|
|
341
321
|
|
|
342
322
|
"""
|
|
343
323
|
Module: Parties
|
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.22",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@powerhousedao/builder-tools": "^0.10.2",
|
|
61
61
|
"@powerhousedao/common": "^1.11.2",
|
|
62
62
|
"@powerhousedao/design-system": "^1.40.2",
|
|
63
|
-
"@powerhousedao/document-engineering": "^1.
|
|
63
|
+
"@powerhousedao/document-engineering": "^1.12.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",
|