@capxul/sandbox 4.20.0-beta.20 → 4.20.0-beta.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/main.mjs +54 -2
- package/package.json +2 -2
package/dist/main.mjs
CHANGED
|
@@ -17946,6 +17946,7 @@ const PreparedOfferCheckoutExecutionSchema = Struct({
|
|
|
17946
17946
|
});
|
|
17947
17947
|
/** Link holders receive payment terms, not the private Invoice document. */
|
|
17948
17948
|
const InvoiceCheckoutSummarySchema = Struct({
|
|
17949
|
+
documentKind: optional(Literals(["memo", "invoice"])),
|
|
17949
17950
|
linkToken: text$2(128),
|
|
17950
17951
|
issuerLabel: text$2(256),
|
|
17951
17952
|
dueAt: InvoiceDraftSchema.fields.dueAt,
|
|
@@ -17967,7 +17968,7 @@ const InvoiceCheckoutSummarySchema = Struct({
|
|
|
17967
17968
|
"unavailable"
|
|
17968
17969
|
])
|
|
17969
17970
|
});
|
|
17970
|
-
Struct({
|
|
17971
|
+
const InvoiceCheckoutPreparationSchema = Struct({
|
|
17971
17972
|
invoice: InvoiceCheckoutSummarySchema,
|
|
17972
17973
|
sourceWallet: AddressSchema$1,
|
|
17973
17974
|
allowance: OfferCheckoutPreparationSchema.fields.allowance,
|
|
@@ -18007,6 +18008,44 @@ Struct({
|
|
|
18007
18008
|
...registeredCheckoutExecutionFields,
|
|
18008
18009
|
invoice: InvoiceCheckoutSummarySchema
|
|
18009
18010
|
});
|
|
18011
|
+
/** Generic request checkout uses the same fixed obligation and receipt contract. */
|
|
18012
|
+
const RequestCheckoutSummarySchema = Struct({
|
|
18013
|
+
...InvoiceCheckoutSummarySchema.fields,
|
|
18014
|
+
documentKind: Literals(["memo", "invoice"])
|
|
18015
|
+
});
|
|
18016
|
+
Struct({
|
|
18017
|
+
request: RequestCheckoutSummarySchema,
|
|
18018
|
+
sourceWallet: InvoiceCheckoutPreparationSchema.fields.sourceWallet,
|
|
18019
|
+
allowance: InvoiceCheckoutPreparationSchema.fields.allowance,
|
|
18020
|
+
approval: InvoiceCheckoutPreparationSchema.fields.approval,
|
|
18021
|
+
payment: InvoiceCheckoutPreparationSchema.fields.payment
|
|
18022
|
+
});
|
|
18023
|
+
const RequestCheckoutStateSchema = Struct({
|
|
18024
|
+
request: RequestCheckoutSummarySchema,
|
|
18025
|
+
verification: InvoiceCheckoutStateSchema.fields.verification,
|
|
18026
|
+
receipt: InvoiceCheckoutStateSchema.fields.receipt,
|
|
18027
|
+
latePayment: InvoiceCheckoutStateSchema.fields.latePayment
|
|
18028
|
+
});
|
|
18029
|
+
Union([
|
|
18030
|
+
Struct({
|
|
18031
|
+
status: Literal("verified"),
|
|
18032
|
+
receipt: CheckoutReceiptSchema,
|
|
18033
|
+
state: RequestCheckoutStateSchema
|
|
18034
|
+
}),
|
|
18035
|
+
Struct({
|
|
18036
|
+
status: Literals(["pending", "provider_failure"]),
|
|
18037
|
+
state: RequestCheckoutStateSchema
|
|
18038
|
+
}),
|
|
18039
|
+
Struct({
|
|
18040
|
+
status: Literal("mismatch"),
|
|
18041
|
+
code: String$1,
|
|
18042
|
+
state: RequestCheckoutStateSchema
|
|
18043
|
+
})
|
|
18044
|
+
]);
|
|
18045
|
+
Struct({
|
|
18046
|
+
...registeredCheckoutExecutionFields,
|
|
18047
|
+
request: RequestCheckoutSummarySchema
|
|
18048
|
+
});
|
|
18010
18049
|
//#endregion
|
|
18011
18050
|
//#region ../../packages/wire/src/bootstrap.ts
|
|
18012
18051
|
const PUBLIC_POSTHOG_PROJECT_TOKEN = /^phc_[A-Za-z0-9_-]{1,191}$/u;
|
|
@@ -18112,6 +18151,13 @@ const CAPXUL_FUNCTIONS = {
|
|
|
18112
18151
|
state: "financialOps/offerCheckoutSettlement:state",
|
|
18113
18152
|
reconcile: "financialOps/offerCheckoutSettlement:reconcile"
|
|
18114
18153
|
},
|
|
18154
|
+
"financialOps/requestCheckouts": {
|
|
18155
|
+
summary: "financialOps/requestCheckouts:summary",
|
|
18156
|
+
prepare: "financialOps/requestCheckouts:prepare",
|
|
18157
|
+
state: "financialOps/requestCheckouts:state",
|
|
18158
|
+
reconcile: "financialOps/requestCheckouts:reconcile",
|
|
18159
|
+
prepareRegistered: "financialOps/requestCheckouts:prepareRegistered"
|
|
18160
|
+
},
|
|
18115
18161
|
"financialOps/invoiceCheckouts": {
|
|
18116
18162
|
summary: "financialOps/invoiceCheckouts:summary",
|
|
18117
18163
|
prepare: "financialOps/invoiceCheckouts:prepare",
|
|
@@ -19397,6 +19443,11 @@ const CAPXUL_OPERATIONS = {
|
|
|
19397
19443
|
deactivate: "offers.deactivate"
|
|
19398
19444
|
},
|
|
19399
19445
|
checkouts: {
|
|
19446
|
+
request: "checkouts.request",
|
|
19447
|
+
prepareRequest: "checkouts.prepareRequest",
|
|
19448
|
+
requestState: "checkouts.requestState",
|
|
19449
|
+
reconcileRequest: "checkouts.reconcileRequest",
|
|
19450
|
+
prepareRequestRegistered: "checkouts.prepareRequestRegistered",
|
|
19400
19451
|
invoice: "checkouts.invoice",
|
|
19401
19452
|
prepareInvoice: "checkouts.prepareInvoice",
|
|
19402
19453
|
invoiceState: "checkouts.invoiceState",
|
|
@@ -30454,8 +30505,9 @@ gen$1(function* () {
|
|
|
30454
30505
|
//#region ../../packages/sdk/src/contract/checkouts.ts
|
|
30455
30506
|
const fns = CAPXUL_FUNCTIONS["financialOps/offerCheckouts"];
|
|
30456
30507
|
const settlement = CAPXUL_FUNCTIONS["financialOps/offerCheckoutSettlement"];
|
|
30508
|
+
const requests = CAPXUL_FUNCTIONS["financialOps/requestCheckouts"];
|
|
30457
30509
|
const invoices = CAPXUL_FUNCTIONS["financialOps/invoiceCheckouts"];
|
|
30458
|
-
makeFunctionReference(invoices.summary), makeFunctionReference(invoices.prepare), makeFunctionReference(invoices.state), makeFunctionReference(invoices.reconcile), makeFunctionReference(CAPXUL_FUNCTIONS["moneyExecution/paymentCommandActions"].prepareInvoiceCheckoutExecution), makeFunctionReference(CAPXUL_FUNCTIONS["moneyExecution/paymentCommandActions"].prepareOfferCheckoutExecution), makeFunctionReference(settlement.state), makeFunctionReference(settlement.reconcile), makeFunctionReference(fns.prepare), makeFunctionReference(fns.offer), makeFunctionReference(fns.create), makeFunctionReference(fns.get);
|
|
30510
|
+
makeFunctionReference(requests.summary), makeFunctionReference(requests.prepare), makeFunctionReference(requests.state), makeFunctionReference(requests.reconcile), makeFunctionReference(requests.prepareRegistered), makeFunctionReference(invoices.summary), makeFunctionReference(invoices.prepare), makeFunctionReference(invoices.state), makeFunctionReference(invoices.reconcile), makeFunctionReference(CAPXUL_FUNCTIONS["moneyExecution/paymentCommandActions"].prepareInvoiceCheckoutExecution), makeFunctionReference(CAPXUL_FUNCTIONS["moneyExecution/paymentCommandActions"].prepareOfferCheckoutExecution), makeFunctionReference(settlement.state), makeFunctionReference(settlement.reconcile), makeFunctionReference(fns.prepare), makeFunctionReference(fns.offer), makeFunctionReference(fns.create), makeFunctionReference(fns.get);
|
|
30459
30511
|
//#endregion
|
|
30460
30512
|
//#region ../../packages/sdk/src/surface/accounts-deps.ts
|
|
30461
30513
|
var AccountsDepsTag = class extends Service()("@capxul/sdk/AccountsDeps") {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/sandbox",
|
|
3
|
-
"version": "4.20.0-beta.
|
|
3
|
+
"version": "4.20.0-beta.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Capxul sandbox CLI for canonical quickstart keys and testnet faucet funds.",
|
|
6
6
|
"keywords": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
43
43
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
44
44
|
"vite-plus": "0.3.0",
|
|
45
|
-
"@capxul/sdk": "4.20.0-beta.
|
|
45
|
+
"@capxul/sdk": "4.20.0-beta.22",
|
|
46
46
|
"@capxul/typescript-config": "0.0.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|