@powerhousedao/contributor-billing 0.0.3 → 0.0.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"InvoicePDF.d.ts","sourceRoot":"","sources":["../../../editors/invoice/InvoicePDF.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAA+D,MAAM,wCAAwC,CAAC;AAsSnI,UAAU,eAAe;IACvB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyRhD,CAAC"}
1
+ {"version":3,"file":"InvoicePDF.d.ts","sourceRoot":"","sources":["../../../editors/invoice/InvoicePDF.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,YAAY,EAIb,MAAM,wCAAwC,CAAC;AA4ShD,UAAU,eAAe;IACvB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoThD,CAAC"}
@@ -46,7 +46,7 @@ const styles = StyleSheet.create({
46
46
  },
47
47
  sectionTitle: {
48
48
  marginBottom: 5,
49
- fontSize: 14,
49
+ fontSize: 12,
50
50
  marginRight: 4,
51
51
  fontFamily: "Helvetica",
52
52
  color: "#9ea0a2",
@@ -54,7 +54,7 @@ const styles = StyleSheet.create({
54
54
  },
55
55
  row: {
56
56
  flexDirection: "row",
57
- marginBottom: 8,
57
+ marginBottom: 0,
58
58
  },
59
59
  label: {
60
60
  width: 70,
@@ -97,12 +97,12 @@ const styles = StyleSheet.create({
97
97
  },
98
98
  itemName: {
99
99
  fontWeight: "bold",
100
- fontSize: 12,
100
+ fontSize: 10,
101
101
  color: "#374151",
102
102
  marginBottom: 2,
103
103
  },
104
104
  itemDescription: {
105
- fontSize: 12,
105
+ fontSize: 10,
106
106
  color: "#6B7280",
107
107
  fontWeight: "normal",
108
108
  },
@@ -129,7 +129,7 @@ const styles = StyleSheet.create({
129
129
  totalLabel: {
130
130
  marginRight: 8,
131
131
  color: "#6B7280",
132
- fontSize: 16,
132
+ fontSize: 14,
133
133
  fontWeight: "normal",
134
134
  width: 120,
135
135
  textAlign: "right",
@@ -137,7 +137,7 @@ const styles = StyleSheet.create({
137
137
  totalValue: {
138
138
  minWidth: 100,
139
139
  textAlign: "right",
140
- fontSize: 16,
140
+ fontSize: 14,
141
141
  fontWeight: "normal",
142
142
  color: "#374151",
143
143
  },
@@ -153,7 +153,7 @@ const styles = StyleSheet.create({
153
153
  totalLabelBold: {
154
154
  marginRight: 8,
155
155
  color: "#000",
156
- fontSize: 18,
156
+ fontSize: 16,
157
157
  fontWeight: "bold",
158
158
  width: 120,
159
159
  textAlign: "right",
@@ -161,7 +161,7 @@ const styles = StyleSheet.create({
161
161
  totalValueBold: {
162
162
  minWidth: 100,
163
163
  textAlign: "right",
164
- fontSize: 18,
164
+ fontSize: 16,
165
165
  fontWeight: "bold",
166
166
  color: "#000",
167
167
  },
@@ -172,14 +172,14 @@ const styles = StyleSheet.create({
172
172
  marginLeft: 4,
173
173
  },
174
174
  totalAmount: {
175
- fontSize: 25,
175
+ fontSize: 20,
176
176
  paddingTop: 7,
177
177
  fontWeight: "bold",
178
178
  color: "#black",
179
179
  },
180
180
  paymentSection: {
181
- marginTop: 20,
182
- marginBottom: 20,
181
+ marginTop: 10,
182
+ marginBottom: 10,
183
183
  },
184
184
  paymentTitle: {
185
185
  fontSize: 12,
@@ -213,12 +213,18 @@ const styles = StyleSheet.create({
213
213
  fontWeight: "normal",
214
214
  },
215
215
  companyInfo: {
216
- fontSize: 12,
216
+ fontSize: 9,
217
217
  color: "#4B5563",
218
218
  marginBottom: 4,
219
219
  },
220
+ companyInfoLabel: {
221
+ color: "#9ea0a2",
222
+ fontSize: 9,
223
+ marginRight: 5,
224
+ minWidth: 50,
225
+ },
220
226
  companyName: {
221
- fontSize: 12,
227
+ fontSize: 9,
222
228
  fontWeight: "bold",
223
229
  marginBottom: 4,
224
230
  },
@@ -284,55 +290,46 @@ export const InvoicePDF = ({ invoice, fiatMode, }) => {
284
290
  alignItems: "flex-start",
285
291
  }, children: [_jsxs(View, { style: { flexDirection: "column", alignItems: "flex-start" }, children: [_jsx(Image, { style: styles.logo, src: powerhouseLogo }), _jsxs(View, { children: [_jsx(Text, { style: styles.invoiceLabel, children: "Invoice number" }), _jsx(Text, { style: styles.invoiceNumber, children: invoice.invoiceNo })] })] }), _jsxs(View, { style: { alignItems: "flex-end" }, children: [_jsxs(Text, { style: styles.invoiceLabel, children: ["Invoice of (", invoice.currency, ")"] }), _jsx(Text, { style: [
286
292
  styles.invoiceNumber,
287
- { fontSize: 24, fontWeight: "bold" },
293
+ { fontSize: 18, fontWeight: "bold" },
288
294
  ], children: formatNumber(invoice.totalPriceTaxIncl) })] })] }), _jsxs(View, { style: {
289
295
  flexDirection: "row",
290
296
  justifyContent: "space-between",
291
- marginTop: 40,
292
- }, children: [_jsxs(View, { style: { width: "45%" }, children: [_jsx(Text, { style: styles.sectionTitle, children: "Issuer" }), _jsx(Text, { style: styles.companyName, children: invoice.issuer.name }), _jsxs(Text, { style: styles.companyInfo, children: ["Tax/Corp ID:", " ", invoice.issuer.id?.taxId ||
293
- invoice.issuer.id?.corpRegId || ""] }), _jsx(Text, { style: styles.companyInfo, children: invoice.issuer.address?.streetAddress || "" }), invoice.issuer.address?.extendedAddress && (_jsx(Text, { style: styles.companyInfo, children: invoice.issuer.address?.extendedAddress || "" })), _jsxs(Text, { style: styles.companyInfo, children: [invoice.issuer.address?.city || "", ",", " ", getCountryName(invoice.issuer.address?.country || "") || "", " -", " ", invoice.issuer.address?.postalCode || "00000"] }), invoice.issuer.contactInfo?.email && (_jsx(Text, { style: styles.companyInfo, children: invoice.issuer.contactInfo.email }))] }), _jsxs(View, { style: { width: "45%" }, children: [_jsx(Text, { style: styles.sectionTitle, children: "Payer" }), _jsx(Text, { style: styles.companyName, children: invoice.payer.name }), _jsxs(Text, { style: styles.companyInfo, children: ["Tax/Corp ID:", " ", invoice.payer.id?.taxId ||
294
- invoice.payer.id?.corpRegId || ""] }), _jsx(Text, { style: styles.companyInfo, children: invoice.payer.address?.streetAddress || "" }), invoice.payer.address?.extendedAddress && (_jsx(Text, { style: styles.companyInfo, children: invoice.payer.address?.extendedAddress || "" })), _jsxs(Text, { style: styles.companyInfo, children: [invoice.payer.address?.city || "", ",", " ", getCountryName(invoice.payer.address?.country || "") || "", " -", " ", invoice.payer.address?.postalCode || "00000"] }), invoice.payer.contactInfo?.email && (_jsx(Text, { style: styles.companyInfo, children: invoice.payer.contactInfo.email }))] }), _jsxs(View, { style: {
297
+ marginTop: 20,
298
+ }, children: [_jsxs(View, { style: { width: "45%" }, children: [_jsx(Text, { style: styles.sectionTitle, children: "Issuer" }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Name:" }), _jsx(Text, { style: styles.companyInfo, children: invoice.issuer.name })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Tax/Corp ID:" }), _jsx(Text, { style: styles.companyInfo, children: invoice.issuer.id?.taxId ||
299
+ invoice.issuer
300
+ .id?.corpRegId ||
301
+ "" })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Address:" }), _jsx(Text, { style: styles.companyInfo, children: invoice.issuer.address?.streetAddress || "" })] }), invoice.issuer.address?.extendedAddress && (_jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel }), _jsx(Text, { style: styles.companyInfo, children: invoice.issuer.address?.extendedAddress || "" })] })), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel }), _jsxs(Text, { style: styles.companyInfo, children: [invoice.issuer.address?.city || "", ",", " ", getCountryName(invoice.issuer.address?.country || "") || ""] })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Postcode:" }), _jsx(Text, { style: styles.companyInfo, children: invoice.issuer.address?.postalCode || "00000" })] }), invoice.issuer.contactInfo?.email && (_jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Email:" }), _jsx(Text, { style: styles.companyInfo, children: invoice.issuer.contactInfo.email })] }))] }), _jsxs(View, { style: { width: "45%" }, children: [_jsx(Text, { style: styles.sectionTitle, children: "Payer" }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Name:" }), _jsx(Text, { style: styles.companyInfo, children: invoice.payer.name })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Tax/Corp ID:" }), _jsx(Text, { style: styles.companyInfo, children: invoice.payer.id?.taxId ||
302
+ invoice.payer
303
+ .id?.corpRegId ||
304
+ "" })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Address:" }), _jsx(Text, { style: styles.companyInfo, children: invoice.payer.address?.streetAddress || "" })] }), invoice.payer.address?.extendedAddress && (_jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel }), _jsx(Text, { style: styles.companyInfo, children: invoice.payer.address?.extendedAddress || "" })] })), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel }), _jsxs(Text, { style: styles.companyInfo, children: [invoice.payer.address?.city || "", ",", " ", getCountryName(invoice.payer.address?.country || "") || ""] })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Postcode:" }), _jsx(Text, { style: styles.companyInfo, children: invoice.payer.address?.postalCode || "00000" })] }), invoice.payer.contactInfo?.email && (_jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Email:" }), _jsx(Text, { style: styles.companyInfo, children: invoice.payer.contactInfo.email })] }))] }), _jsxs(View, { style: {
295
305
  width: "30%",
296
306
  alignItems: "flex-end",
297
307
  textAlign: "right",
298
308
  }, children: [_jsxs(View, { style: { marginBottom: 18, width: "100%" }, children: [_jsx(Text, { style: {
299
309
  color: "#9ea0a2",
300
- fontSize: 14,
310
+ fontSize: 12,
301
311
  textAlign: "right",
302
312
  fontFamily: "Helvetica",
303
313
  fontWeight: "normal",
304
314
  }, children: "Invoice date" }), _jsx(Text, { style: {
305
315
  fontWeight: 4,
306
- fontSize: 14,
316
+ fontSize: 12,
307
317
  textAlign: "right",
308
318
  color: "#000",
309
319
  fontFamily: "Helvetica",
310
320
  }, children: formatDate(invoice.dateIssued) })] }), _jsxs(View, { style: { marginBottom: 18, width: "100%" }, children: [_jsx(Text, { style: {
311
321
  color: "#9ea0a2",
312
- fontSize: 14,
322
+ fontSize: 12,
313
323
  textAlign: "right",
314
324
  fontFamily: "Helvetica",
315
325
  fontWeight: "normal",
316
326
  }, children: "Due date" }), _jsx(Text, { style: {
317
327
  fontWeight: 4,
318
- fontSize: 14,
319
- textAlign: "right",
320
- color: "#000",
321
- fontFamily: "Helvetica",
322
- }, children: formatDate(invoice.dateDue) })] }), fiatMode && (_jsxs(View, { style: { marginBottom: 18, width: "100%" }, children: [_jsx(Text, { style: {
323
- color: "#9ea0a2",
324
- fontSize: 14,
325
- textAlign: "right",
326
- fontFamily: "Helvetica",
327
- fontWeight: "normal",
328
- }, children: "Account Type:" }), _jsx(Text, { style: {
329
- fontWeight: 4,
330
- fontSize: 14,
328
+ fontSize: 12,
331
329
  textAlign: "right",
332
330
  color: "#000",
333
331
  fontFamily: "Helvetica",
334
- }, children: invoice.issuer.paymentRouting?.bank?.accountType ||
335
- "CHECKING" })] }))] })] }), _jsxs(View, { style: styles.paymentSection, children: [_jsx(Text, { style: styles.sectionTitle, children: "Payment Information" }), fiatMode ? (_jsxs("div", { children: [_jsx(PaymentSectionFiat, { paymentRouting: invoice.issuer.paymentRouting }), invoice.issuer.paymentRouting?.bank?.memo && (_jsxs(Text, { style: styles.companyInfo, children: ["Memo: ", invoice.issuer.paymentRouting?.bank?.memo || "", " "] }))] })) : (_jsx(PaymentSectionCrypto, { paymentRouting: invoice.issuer.paymentRouting }))] }), _jsxs(View, { style: styles.table, children: [_jsxs(View, { style: styles.tableHeader, children: [_jsx(Text, { style: styles.tableCol40, children: "Description" }), _jsx(Text, { style: styles.tableCol15, children: "Quantity" }), _jsx(Text, { style: styles.tableCol15, children: "Unit Price" }), _jsx(Text, { style: styles.tableCol15, children: "Tax" }), _jsx(Text, { style: styles.tableCol15, children: "Total" })] }), invoice.lineItems.map((item, index) => (_jsx(InvoiceLineItem, { item: item, currency: invoice.currency }, index)))] }), _jsxs(View, { style: styles.totals, children: [_jsxs(View, { style: styles.totalRow, children: [_jsx(Text, { style: styles.totalLabel, children: "Subtotal" }), _jsx(Text, { style: styles.totalValue, children: formatCurrency(invoice.lineItems.reduce((sum, item) => sum + item.quantity * item.unitPriceTaxExcl, 0), invoice.currency) })] }), _jsxs(View, { style: styles.totalRow, children: [_jsx(Text, { style: styles.totalLabel, children: "Tax" }), _jsx(Text, { style: styles.totalValue, children: formatCurrency(invoice.lineItems.reduce((sum, item) => sum +
332
+ }, children: formatDate(invoice.dateDue) })] })] })] }), _jsxs(View, { style: [styles.paymentSection, { marginLeft: 0 }], children: [_jsx(Text, { style: styles.sectionTitle, children: "Payment Information" }), fiatMode ? (_jsxs("div", { children: [_jsx(PaymentSectionFiat, { paymentRouting: invoice.issuer.paymentRouting }), invoice.issuer.paymentRouting?.bank?.memo && (_jsxs(Text, { style: [styles.companyInfo, { marginTop: 20 }], children: ["Memo: ", invoice.issuer.paymentRouting?.bank?.memo || "", " "] }))] })) : (_jsx(PaymentSectionCrypto, { paymentRouting: invoice.issuer.paymentRouting }))] }), _jsxs(View, { style: styles.table, children: [_jsxs(View, { style: styles.tableHeader, children: [_jsx(Text, { style: styles.tableCol40, children: "Description" }), _jsx(Text, { style: styles.tableCol15, children: "Quantity" }), _jsx(Text, { style: styles.tableCol15, children: "Unit Price" }), _jsx(Text, { style: styles.tableCol15, children: "Tax" }), _jsx(Text, { style: styles.tableCol15, children: "Total" })] }), invoice.lineItems.map((item, index) => (_jsx(InvoiceLineItem, { item: item, currency: invoice.currency }, index)))] }), _jsxs(View, { style: styles.totals, children: [_jsxs(View, { style: styles.totalRow, children: [_jsx(Text, { style: styles.totalLabel, children: "Subtotal" }), _jsx(Text, { style: styles.totalValue, children: formatCurrency(invoice.lineItems.reduce((sum, item) => sum + item.quantity * item.unitPriceTaxExcl, 0), invoice.currency) })] }), _jsxs(View, { style: styles.totalRow, children: [_jsx(Text, { style: styles.totalLabel, children: "Tax" }), _jsx(Text, { style: styles.totalValue, children: formatCurrency(invoice.lineItems.reduce((sum, item) => sum +
336
333
  item.quantity *
337
334
  (item.unitPriceTaxIncl - item.unitPriceTaxExcl), 0), invoice.currency) })] }), _jsxs(View, { style: styles.totalRowBold, children: [_jsx(Text, { style: styles.totalLabelBold, children: "Total" }), _jsx(Text, { style: styles.totalValueBold, children: formatCurrency(invoice.lineItems.reduce((sum, item) => sum + item.quantity * item.unitPriceTaxIncl, 0), invoice.currency) })] })] })] }), _jsxs(View, { style: { marginLeft: 40 }, children: [_jsx(Text, { style: styles.termsTitle, children: "Terms & Conditions" }), _jsx(Text, { style: styles.termsText, children: "Please pay within 30 days of receiving this invoice." })] })] }) }));
338
335
  };
@@ -345,14 +342,14 @@ const InvoiceField = ({ label, value, }) => value && (_jsx(View, { style: styles
345
342
  {
346
343
  /* New component for fiat payment section */
347
344
  }
348
- const PaymentSectionFiat = ({ paymentRouting, }) => (_jsxs(View, { style: [styles.gridContainer, { marginTop: 0 }], children: [_jsxs(View, { style: styles.gridColumn, children: [_jsx(Text, { style: styles.companyName, children: paymentRouting.bank?.name || "" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.address?.streetAddress || "" }), paymentRouting.bank?.address?.extendedAddress && (_jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.address?.extendedAddress })), _jsxs(Text, { style: styles.companyInfo, children: [paymentRouting.bank?.address?.city || "", ",", " ", getCountryName(paymentRouting.bank?.address?.country || "") || "", " -", " ", paymentRouting.bank?.address?.postalCode || ""] })] }), _jsxs(View, { style: styles.gridColumn, children: [_jsx(Text, { style: styles.companyName, children: paymentRouting.bank?.beneficiary || "" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.accountNum || "" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.accountType || "" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.BIC ||
349
- paymentRouting.bank?.SWIFT ||
350
- paymentRouting.bank?.ABA ||
351
- "" })] })] }));
345
+ const PaymentSectionFiat = ({ paymentRouting, }) => (_jsxs(View, { style: [styles.gridContainer, { marginTop: 0, marginLeft: 0 }], children: [_jsxs(View, { style: styles.gridColumn, children: [_jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Bank Name:" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.name || "" })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Address:" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.address?.streetAddress || "" })] }), paymentRouting.bank?.address?.extendedAddress && (_jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.address?.extendedAddress })] })), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel }), _jsxs(Text, { style: styles.companyInfo, children: [paymentRouting.bank?.address?.city || "", ",", " ", getCountryName(paymentRouting.bank?.address?.country || "") || ""] })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Postcode:" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.address?.postalCode || "00000" })] })] }), _jsxs(View, { style: [styles.gridColumn], children: [_jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Beneficiary:" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.beneficiary || "" })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Acct No:" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.accountNum || "" })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "BIC/SWIFT:" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.BIC ||
346
+ paymentRouting.bank?.SWIFT ||
347
+ paymentRouting.bank?.ABA ||
348
+ "" })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Acct Type:" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.bank?.accountType || "" })] })] })] }));
352
349
  {
353
350
  /* New component for crypto payment section */
354
351
  }
355
- const PaymentSectionCrypto = ({ paymentRouting, }) => (_jsx(View, { style: styles.row, children: _jsxs(View, { style: styles.gridColumn, children: [_jsx(InvoiceField, { label: "Chain", value: paymentRouting.wallet?.chainName || "" }), _jsx(InvoiceField, { label: "Address", value: paymentRouting.wallet?.address || "" })] }) }));
352
+ const PaymentSectionCrypto = ({ paymentRouting, }) => (_jsx(View, { style: styles.row, children: _jsxs(View, { style: styles.gridColumn, children: [_jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Chain:" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.wallet?.chainName || "" })] }), _jsxs(View, { style: styles.row, children: [_jsx(Text, { style: styles.companyInfoLabel, children: "Address:" }), _jsx(Text, { style: styles.companyInfo, children: paymentRouting.wallet?.address || "" })] })] }) }));
356
353
  {
357
354
  /* New component for line items */
358
355
  }
@@ -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 !== 'http://localhost:3000/') {
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)
@@ -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.powerhouse.xyz/graphql/invoice";
5
+ GRAPHQL_URL = "https://switchboard-dev.powerhouse.xyz/graphql/invoice";
6
6
  }
7
7
  const InvoiceToGnosis = ({ docState }) => {
8
8
  const [isLoading, setIsLoading] = useState(false);
@@ -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.powerhouse.xyz/graphql/invoice';
5
+ GRAPHQL_URL = 'https://switchboard-dev.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.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) {
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.3",
4
+ "version": "0.0.5",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
7
7
  "files": [