@capxul/sdk 0.2.0-alpha.3 → 0.2.0-alpha.4
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/CHANGELOG.md +18 -0
- package/README.md +64 -22
- package/dist/{client-pMBRFcsz.d.ts → client-CbUeJoM9.d.ts} +41 -190
- package/dist/{client-B_Z3ThFO.d.cts → client-UEm2oZbZ.d.cts} +41 -190
- package/dist/client.cjs +362 -644
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +363 -645
- package/dist/index.cjs +363 -716
- package/dist/index.d.cts +32 -142
- package/dist/index.d.ts +32 -142
- package/dist/index.js +365 -716
- package/dist/{types-V_D7qjxY.d.ts → types-BD4VAQb5.d.ts} +14 -0
- package/dist/{types-Brucpq0Z.d.cts → types-HlwCIjgQ.d.cts} +14 -0
- package/dist/webhooks.d.cts +1 -1
- package/dist/webhooks.d.ts +1 -1
- package/package.json +2 -3
|
@@ -731,11 +731,24 @@ type InvoiceDocument$1 = {
|
|
|
731
731
|
recipient: UserIdentifier$1;
|
|
732
732
|
amount: Money$1;
|
|
733
733
|
reference?: string;
|
|
734
|
+
lineItems: Array<InvoiceLineItem>;
|
|
735
|
+
/**
|
|
736
|
+
* Canonical private invoice payload hash committed on-chain as documentHash.
|
|
737
|
+
*/
|
|
738
|
+
invoiceHash: string;
|
|
734
739
|
dueAt?: TimestampIso$1;
|
|
735
740
|
status: "draft" | "open" | "paid" | "canceled" | "expired";
|
|
736
741
|
fulfilledBy?: PaymentId;
|
|
737
742
|
createdAt: TimestampIso$1;
|
|
738
743
|
};
|
|
744
|
+
type InvoiceLineItem = {
|
|
745
|
+
description: string;
|
|
746
|
+
quantity: number;
|
|
747
|
+
unitPrice: string;
|
|
748
|
+
currency: string;
|
|
749
|
+
taxRate?: string;
|
|
750
|
+
category?: string;
|
|
751
|
+
};
|
|
739
752
|
/**
|
|
740
753
|
* `type = payroll_run` — per-execution payroll artifact. Shape
|
|
741
754
|
* detail deferred (payroll schedule vs run
|
|
@@ -844,6 +857,7 @@ type CreateDocumentRequest = {
|
|
|
844
857
|
recipient: UserIdentifier$1;
|
|
845
858
|
amount: Money$1;
|
|
846
859
|
reference?: string;
|
|
860
|
+
lineItems: Array<InvoiceLineItem>;
|
|
847
861
|
dueAt?: TimestampIso$1;
|
|
848
862
|
include?: Array<string>;
|
|
849
863
|
} | {
|
|
@@ -731,11 +731,24 @@ type InvoiceDocument$1 = {
|
|
|
731
731
|
recipient: UserIdentifier$1;
|
|
732
732
|
amount: Money$1;
|
|
733
733
|
reference?: string;
|
|
734
|
+
lineItems: Array<InvoiceLineItem>;
|
|
735
|
+
/**
|
|
736
|
+
* Canonical private invoice payload hash committed on-chain as documentHash.
|
|
737
|
+
*/
|
|
738
|
+
invoiceHash: string;
|
|
734
739
|
dueAt?: TimestampIso$1;
|
|
735
740
|
status: "draft" | "open" | "paid" | "canceled" | "expired";
|
|
736
741
|
fulfilledBy?: PaymentId;
|
|
737
742
|
createdAt: TimestampIso$1;
|
|
738
743
|
};
|
|
744
|
+
type InvoiceLineItem = {
|
|
745
|
+
description: string;
|
|
746
|
+
quantity: number;
|
|
747
|
+
unitPrice: string;
|
|
748
|
+
currency: string;
|
|
749
|
+
taxRate?: string;
|
|
750
|
+
category?: string;
|
|
751
|
+
};
|
|
739
752
|
/**
|
|
740
753
|
* `type = payroll_run` — per-execution payroll artifact. Shape
|
|
741
754
|
* detail deferred (payroll schedule vs run
|
|
@@ -844,6 +857,7 @@ type CreateDocumentRequest = {
|
|
|
844
857
|
recipient: UserIdentifier$1;
|
|
845
858
|
amount: Money$1;
|
|
846
859
|
reference?: string;
|
|
860
|
+
lineItems: Array<InvoiceLineItem>;
|
|
847
861
|
dueAt?: TimestampIso$1;
|
|
848
862
|
include?: Array<string>;
|
|
849
863
|
} | {
|
package/dist/webhooks.d.cts
CHANGED
package/dist/webhooks.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/sdk",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.4",
|
|
4
4
|
"description": "Headless TypeScript client for Capxul's /v1/* HTTP contract.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
@@ -59,8 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"xstate": "^5",
|
|
62
|
-
"convex": ">=1.0.0"
|
|
63
|
-
"@repo/safe-derive": "0.0.1-alpha.0"
|
|
62
|
+
"convex": ">=1.0.0"
|
|
64
63
|
},
|
|
65
64
|
"peerDependencies": {
|
|
66
65
|
"permissionless": ">=0.3.4 <0.4.0",
|