@fantastic.dev/better-stripe 0.35.0 → 0.37.1
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 +98 -0
- package/README.md +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +178 -0
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +89 -0
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +178 -0
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +89 -0
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/operationEvidence.d.ts +37 -0
- package/dist/client/operationEvidence.d.ts.map +1 -0
- package/dist/client/operationEvidence.js +44 -0
- package/dist/client/operationEvidence.js.map +1 -0
- package/dist/client/publicTypes.d.ts +1 -0
- package/dist/client/publicTypes.d.ts.map +1 -1
- package/dist/client/readContracts.d.ts +2 -0
- package/dist/client/readContracts.d.ts.map +1 -1
- package/dist/client/readContracts.js +4 -0
- package/dist/client/readContracts.js.map +1 -1
- package/dist/component/_generated/component.d.ts +181 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/earnings/pairedAdjustment.d.ts +12 -0
- package/dist/component/earnings/pairedAdjustment.d.ts.map +1 -0
- package/dist/component/earnings/pairedAdjustment.js +46 -0
- package/dist/component/earnings/pairedAdjustment.js.map +1 -0
- package/dist/component/earnings/triggers.d.ts +120 -0
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/earnings/triggers.js +10 -2
- package/dist/component/earnings/triggers.js.map +1 -1
- package/dist/component/operationEvidence/canonical.d.ts +4 -0
- package/dist/component/operationEvidence/canonical.d.ts.map +1 -0
- package/dist/component/operationEvidence/canonical.js +8 -0
- package/dist/component/operationEvidence/canonical.js.map +1 -0
- package/dist/component/operationEvidence/helpers.d.ts +87 -0
- package/dist/component/operationEvidence/helpers.d.ts.map +1 -0
- package/dist/component/operationEvidence/helpers.js +49 -0
- package/dist/component/operationEvidence/helpers.js.map +1 -0
- package/dist/component/operationEvidence/maintenance.d.ts +88 -0
- package/dist/component/operationEvidence/maintenance.d.ts.map +1 -0
- package/dist/component/operationEvidence/maintenance.js +59 -0
- package/dist/component/operationEvidence/maintenance.js.map +1 -0
- package/dist/component/operationEvidence/mutations.d.ts +97 -0
- package/dist/component/operationEvidence/mutations.d.ts.map +1 -0
- package/dist/component/operationEvidence/mutations.js +14 -0
- package/dist/component/operationEvidence/mutations.js.map +1 -0
- package/dist/component/operationEvidence/queries.d.ts +205 -0
- package/dist/component/operationEvidence/queries.d.ts.map +1 -0
- package/dist/component/operationEvidence/queries.js +75 -0
- package/dist/component/operationEvidence/queries.js.map +1 -0
- package/dist/component/operationEvidence/schema.d.ts +536 -0
- package/dist/component/operationEvidence/schema.d.ts.map +1 -0
- package/dist/component/operationEvidence/schema.js +53 -0
- package/dist/component/operationEvidence/schema.js.map +1 -0
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/refundHistory/commandEvidence.d.ts +1 -1
- package/dist/component/refundHistory/commandEvidence.d.ts.map +1 -1
- package/dist/component/refundHistory/commandEvidence.js +6 -2
- package/dist/component/refundHistory/commandEvidence.js.map +1 -1
- package/dist/component/refundHistory/originalSeller.d.ts +5 -0
- package/dist/component/refundHistory/originalSeller.d.ts.map +1 -0
- package/dist/component/refundHistory/originalSeller.js +35 -0
- package/dist/component/refundHistory/originalSeller.js.map +1 -0
- package/dist/component/refundHistory/queries.d.ts +1 -1
- package/dist/component/schema.d.ts +89 -0
- package/dist/component/schema.js +3 -0
- package/dist/component/schema.js.map +1 -1
- package/docs/financial-observations.md +85 -0
- package/docs/refund-command-evidence.md +6 -0
- package/package.json +1 -1
- package/src/client/operationEvidence.test.ts +110 -0
- package/src/client/operationEvidence.ts +92 -0
- package/src/client/publicTypes.ts +8 -0
- package/src/client/readContracts.ts +4 -0
- package/src/component/_generated/api.ts +10 -0
- package/src/component/_generated/component.ts +207 -0
- package/src/component/earnings/paired-adjustment.test.ts +258 -0
- package/src/component/earnings/pairedAdjustment.ts +77 -0
- package/src/component/earnings/triggers.ts +14 -10
- package/src/component/operationEvidence/canonical.ts +10 -0
- package/src/component/operationEvidence/helpers.ts +65 -0
- package/src/component/operationEvidence/integrity.test.ts +257 -0
- package/src/component/operationEvidence/maintenance.test.ts +152 -0
- package/src/component/operationEvidence/maintenance.ts +89 -0
- package/src/component/operationEvidence/mutations.ts +14 -0
- package/src/component/operationEvidence/queries.ts +108 -0
- package/src/component/operationEvidence/reads.test.ts +140 -0
- package/src/component/operationEvidence/schema.ts +62 -0
- package/src/component/refundHistory/commandEvidence.ts +7 -2
- package/src/component/refundHistory/original-seller-boundaries.test.ts +138 -0
- package/src/component/refundHistory/original-seller.test.ts +175 -0
- package/src/component/refundHistory/originalSeller.ts +48 -0
- package/src/component/schema.ts +6 -0
|
@@ -1,5 +1,94 @@
|
|
|
1
1
|
export declare function large(count?: number, amount?: number): Promise<{
|
|
2
2
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
3
|
+
operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4
|
+
commissionExposure?: {
|
|
5
|
+
chargeAmount: number;
|
|
6
|
+
disputeId?: string | undefined;
|
|
7
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
8
|
+
finalized: boolean;
|
|
9
|
+
kind: "dispute" | "refund";
|
|
10
|
+
principal: number;
|
|
11
|
+
refundId?: string | undefined;
|
|
12
|
+
refundedPrincipal?: number | undefined;
|
|
13
|
+
} | undefined;
|
|
14
|
+
operationId: string;
|
|
15
|
+
slices: {
|
|
16
|
+
from: number;
|
|
17
|
+
stripeTransferId: string;
|
|
18
|
+
to: number;
|
|
19
|
+
}[];
|
|
20
|
+
sourceChargeId: string;
|
|
21
|
+
}, {
|
|
22
|
+
operationId: import("convex/values").VString<string, "required">;
|
|
23
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
24
|
+
slices: import("convex/values").VArray<{
|
|
25
|
+
from: number;
|
|
26
|
+
stripeTransferId: string;
|
|
27
|
+
to: number;
|
|
28
|
+
}[], import("convex/values").VObject<{
|
|
29
|
+
from: number;
|
|
30
|
+
stripeTransferId: string;
|
|
31
|
+
to: number;
|
|
32
|
+
}, {
|
|
33
|
+
stripeTransferId: import("convex/values").VString<string, "required">;
|
|
34
|
+
from: import("convex/values").VFloat64<number, "required">;
|
|
35
|
+
to: import("convex/values").VFloat64<number, "required">;
|
|
36
|
+
}, "required", "from" | "stripeTransferId" | "to">, "required">;
|
|
37
|
+
commissionExposure: import("convex/values").VObject<{
|
|
38
|
+
chargeAmount: number;
|
|
39
|
+
disputeId?: string | undefined;
|
|
40
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
41
|
+
finalized: boolean;
|
|
42
|
+
kind: "dispute" | "refund";
|
|
43
|
+
principal: number;
|
|
44
|
+
refundId?: string | undefined;
|
|
45
|
+
refundedPrincipal?: number | undefined;
|
|
46
|
+
} | undefined, {
|
|
47
|
+
kind: import("convex/values").VUnion<"dispute" | "refund", [import("convex/values").VLiteral<"refund", "required">, import("convex/values").VLiteral<"dispute", "required">], "required", never>;
|
|
48
|
+
chargeAmount: import("convex/values").VFloat64<number, "required">;
|
|
49
|
+
principal: import("convex/values").VFloat64<number, "required">;
|
|
50
|
+
finalized: import("convex/values").VBoolean<boolean, "required">;
|
|
51
|
+
disputeState: import("convex/values").VUnion<"lost" | "open" | "won" | undefined, [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"lost", "required">, import("convex/values").VLiteral<"won", "required">], "optional", never>;
|
|
52
|
+
disputeId: import("convex/values").VString<string | undefined, "optional">;
|
|
53
|
+
refundedPrincipal: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
54
|
+
refundId: import("convex/values").VString<string | undefined, "optional">;
|
|
55
|
+
}, "optional", "chargeAmount" | "disputeId" | "disputeState" | "finalized" | "kind" | "principal" | "refundId" | "refundedPrincipal">;
|
|
56
|
+
}, "required", "commissionExposure" | "commissionExposure.chargeAmount" | "commissionExposure.disputeId" | "commissionExposure.disputeState" | "commissionExposure.finalized" | "commissionExposure.kind" | "commissionExposure.principal" | "commissionExposure.refundId" | "commissionExposure.refundedPrincipal" | "operationId" | "slices" | "sourceChargeId">, {}, {}, {}>;
|
|
57
|
+
operationEvidenceHeaders: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
58
|
+
firstObservedAt: number;
|
|
59
|
+
generation: number;
|
|
60
|
+
isContradictory: boolean;
|
|
61
|
+
latestFingerprint: string;
|
|
62
|
+
latestPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
63
|
+
operationDigest: string;
|
|
64
|
+
originalFingerprint: string;
|
|
65
|
+
originalIdentityFingerprint: string;
|
|
66
|
+
originalPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
67
|
+
producer: "trusted_host_maintenance";
|
|
68
|
+
producerVersion: 1;
|
|
69
|
+
sourceChargeDigest: string;
|
|
70
|
+
sourceCreatedAt: number;
|
|
71
|
+
sourceId: import("convex/values").GenericId<"transferReversalOps">;
|
|
72
|
+
}, {
|
|
73
|
+
sourceId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
|
|
74
|
+
originalPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
75
|
+
latestPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
76
|
+
producer: import("convex/values").VLiteral<"trusted_host_maintenance", "required">;
|
|
77
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
78
|
+
firstObservedAt: import("convex/values").VFloat64<number, "required">;
|
|
79
|
+
sourceCreatedAt: import("convex/values").VFloat64<number, "required">;
|
|
80
|
+
originalFingerprint: import("convex/values").VString<string, "required">;
|
|
81
|
+
latestFingerprint: import("convex/values").VString<string, "required">;
|
|
82
|
+
originalIdentityFingerprint: import("convex/values").VString<string, "required">;
|
|
83
|
+
operationDigest: import("convex/values").VString<string, "required">;
|
|
84
|
+
sourceChargeDigest: import("convex/values").VString<string, "required">;
|
|
85
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
86
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
87
|
+
}, "required", "firstObservedAt" | "generation" | "isContradictory" | "latestFingerprint" | "latestPayloadId" | "operationDigest" | "originalFingerprint" | "originalIdentityFingerprint" | "originalPayloadId" | "producer" | "producerVersion" | "sourceChargeDigest" | "sourceCreatedAt" | "sourceId">, {
|
|
88
|
+
by_operation_digest: ["operationDigest", "_creationTime"];
|
|
89
|
+
by_source_charge_digest: ["sourceChargeDigest", "_creationTime"];
|
|
90
|
+
by_source_id: ["sourceId", "_creationTime"];
|
|
91
|
+
}, {}, {}>;
|
|
3
92
|
financialTransferObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4
93
|
bucketKey: string;
|
|
5
94
|
fingerprint: string;
|
|
@@ -2125,6 +2214,95 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2125
2214
|
export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
2126
2215
|
s: {
|
|
2127
2216
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
2217
|
+
operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2218
|
+
commissionExposure?: {
|
|
2219
|
+
chargeAmount: number;
|
|
2220
|
+
disputeId?: string | undefined;
|
|
2221
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
2222
|
+
finalized: boolean;
|
|
2223
|
+
kind: "dispute" | "refund";
|
|
2224
|
+
principal: number;
|
|
2225
|
+
refundId?: string | undefined;
|
|
2226
|
+
refundedPrincipal?: number | undefined;
|
|
2227
|
+
} | undefined;
|
|
2228
|
+
operationId: string;
|
|
2229
|
+
slices: {
|
|
2230
|
+
from: number;
|
|
2231
|
+
stripeTransferId: string;
|
|
2232
|
+
to: number;
|
|
2233
|
+
}[];
|
|
2234
|
+
sourceChargeId: string;
|
|
2235
|
+
}, {
|
|
2236
|
+
operationId: import("convex/values").VString<string, "required">;
|
|
2237
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
2238
|
+
slices: import("convex/values").VArray<{
|
|
2239
|
+
from: number;
|
|
2240
|
+
stripeTransferId: string;
|
|
2241
|
+
to: number;
|
|
2242
|
+
}[], import("convex/values").VObject<{
|
|
2243
|
+
from: number;
|
|
2244
|
+
stripeTransferId: string;
|
|
2245
|
+
to: number;
|
|
2246
|
+
}, {
|
|
2247
|
+
stripeTransferId: import("convex/values").VString<string, "required">;
|
|
2248
|
+
from: import("convex/values").VFloat64<number, "required">;
|
|
2249
|
+
to: import("convex/values").VFloat64<number, "required">;
|
|
2250
|
+
}, "required", "from" | "stripeTransferId" | "to">, "required">;
|
|
2251
|
+
commissionExposure: import("convex/values").VObject<{
|
|
2252
|
+
chargeAmount: number;
|
|
2253
|
+
disputeId?: string | undefined;
|
|
2254
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
2255
|
+
finalized: boolean;
|
|
2256
|
+
kind: "dispute" | "refund";
|
|
2257
|
+
principal: number;
|
|
2258
|
+
refundId?: string | undefined;
|
|
2259
|
+
refundedPrincipal?: number | undefined;
|
|
2260
|
+
} | undefined, {
|
|
2261
|
+
kind: import("convex/values").VUnion<"dispute" | "refund", [import("convex/values").VLiteral<"refund", "required">, import("convex/values").VLiteral<"dispute", "required">], "required", never>;
|
|
2262
|
+
chargeAmount: import("convex/values").VFloat64<number, "required">;
|
|
2263
|
+
principal: import("convex/values").VFloat64<number, "required">;
|
|
2264
|
+
finalized: import("convex/values").VBoolean<boolean, "required">;
|
|
2265
|
+
disputeState: import("convex/values").VUnion<"lost" | "open" | "won" | undefined, [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"lost", "required">, import("convex/values").VLiteral<"won", "required">], "optional", never>;
|
|
2266
|
+
disputeId: import("convex/values").VString<string | undefined, "optional">;
|
|
2267
|
+
refundedPrincipal: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2268
|
+
refundId: import("convex/values").VString<string | undefined, "optional">;
|
|
2269
|
+
}, "optional", "chargeAmount" | "disputeId" | "disputeState" | "finalized" | "kind" | "principal" | "refundId" | "refundedPrincipal">;
|
|
2270
|
+
}, "required", "commissionExposure" | "commissionExposure.chargeAmount" | "commissionExposure.disputeId" | "commissionExposure.disputeState" | "commissionExposure.finalized" | "commissionExposure.kind" | "commissionExposure.principal" | "commissionExposure.refundId" | "commissionExposure.refundedPrincipal" | "operationId" | "slices" | "sourceChargeId">, {}, {}, {}>;
|
|
2271
|
+
operationEvidenceHeaders: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2272
|
+
firstObservedAt: number;
|
|
2273
|
+
generation: number;
|
|
2274
|
+
isContradictory: boolean;
|
|
2275
|
+
latestFingerprint: string;
|
|
2276
|
+
latestPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
2277
|
+
operationDigest: string;
|
|
2278
|
+
originalFingerprint: string;
|
|
2279
|
+
originalIdentityFingerprint: string;
|
|
2280
|
+
originalPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
2281
|
+
producer: "trusted_host_maintenance";
|
|
2282
|
+
producerVersion: 1;
|
|
2283
|
+
sourceChargeDigest: string;
|
|
2284
|
+
sourceCreatedAt: number;
|
|
2285
|
+
sourceId: import("convex/values").GenericId<"transferReversalOps">;
|
|
2286
|
+
}, {
|
|
2287
|
+
sourceId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
|
|
2288
|
+
originalPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
2289
|
+
latestPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
2290
|
+
producer: import("convex/values").VLiteral<"trusted_host_maintenance", "required">;
|
|
2291
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
2292
|
+
firstObservedAt: import("convex/values").VFloat64<number, "required">;
|
|
2293
|
+
sourceCreatedAt: import("convex/values").VFloat64<number, "required">;
|
|
2294
|
+
originalFingerprint: import("convex/values").VString<string, "required">;
|
|
2295
|
+
latestFingerprint: import("convex/values").VString<string, "required">;
|
|
2296
|
+
originalIdentityFingerprint: import("convex/values").VString<string, "required">;
|
|
2297
|
+
operationDigest: import("convex/values").VString<string, "required">;
|
|
2298
|
+
sourceChargeDigest: import("convex/values").VString<string, "required">;
|
|
2299
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
2300
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
2301
|
+
}, "required", "firstObservedAt" | "generation" | "isContradictory" | "latestFingerprint" | "latestPayloadId" | "operationDigest" | "originalFingerprint" | "originalIdentityFingerprint" | "originalPayloadId" | "producer" | "producerVersion" | "sourceChargeDigest" | "sourceCreatedAt" | "sourceId">, {
|
|
2302
|
+
by_operation_digest: ["operationDigest", "_creationTime"];
|
|
2303
|
+
by_source_charge_digest: ["sourceChargeDigest", "_creationTime"];
|
|
2304
|
+
by_source_id: ["sourceId", "_creationTime"];
|
|
2305
|
+
}, {}, {}>;
|
|
2128
2306
|
financialTransferObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2129
2307
|
bucketKey: string;
|
|
2130
2308
|
fingerprint: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutLargeAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutLargeAdoptionTestHelpers.ts"],"names":[],"mappings":"AAGA,wBAAsB,KAAK,CAAC,KAAK,SAAM,EAAE,MAAM,SAAK
|
|
1
|
+
{"version":3,"file":"payoutL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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGtC,MAAM;yBACT;gBAAE,gBAAgB,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,EAAE;;;GA2C9D"}
|
|
@@ -14,6 +14,95 @@ type Sync = (stripe: Stripe, component: Component, ctx: RunCtx, opts: {
|
|
|
14
14
|
export declare function operation(): Promise<Sync>;
|
|
15
15
|
export declare function setup(scope?: Scope): Promise<{
|
|
16
16
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
17
|
+
operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
18
|
+
commissionExposure?: {
|
|
19
|
+
chargeAmount: number;
|
|
20
|
+
disputeId?: string | undefined;
|
|
21
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
22
|
+
finalized: boolean;
|
|
23
|
+
kind: "dispute" | "refund";
|
|
24
|
+
principal: number;
|
|
25
|
+
refundId?: string | undefined;
|
|
26
|
+
refundedPrincipal?: number | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
operationId: string;
|
|
29
|
+
slices: {
|
|
30
|
+
from: number;
|
|
31
|
+
stripeTransferId: string;
|
|
32
|
+
to: number;
|
|
33
|
+
}[];
|
|
34
|
+
sourceChargeId: string;
|
|
35
|
+
}, {
|
|
36
|
+
operationId: import("convex/values").VString<string, "required">;
|
|
37
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
38
|
+
slices: import("convex/values").VArray<{
|
|
39
|
+
from: number;
|
|
40
|
+
stripeTransferId: string;
|
|
41
|
+
to: number;
|
|
42
|
+
}[], import("convex/values").VObject<{
|
|
43
|
+
from: number;
|
|
44
|
+
stripeTransferId: string;
|
|
45
|
+
to: number;
|
|
46
|
+
}, {
|
|
47
|
+
stripeTransferId: import("convex/values").VString<string, "required">;
|
|
48
|
+
from: import("convex/values").VFloat64<number, "required">;
|
|
49
|
+
to: import("convex/values").VFloat64<number, "required">;
|
|
50
|
+
}, "required", "from" | "stripeTransferId" | "to">, "required">;
|
|
51
|
+
commissionExposure: import("convex/values").VObject<{
|
|
52
|
+
chargeAmount: number;
|
|
53
|
+
disputeId?: string | undefined;
|
|
54
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
55
|
+
finalized: boolean;
|
|
56
|
+
kind: "dispute" | "refund";
|
|
57
|
+
principal: number;
|
|
58
|
+
refundId?: string | undefined;
|
|
59
|
+
refundedPrincipal?: number | undefined;
|
|
60
|
+
} | undefined, {
|
|
61
|
+
kind: import("convex/values").VUnion<"dispute" | "refund", [import("convex/values").VLiteral<"refund", "required">, import("convex/values").VLiteral<"dispute", "required">], "required", never>;
|
|
62
|
+
chargeAmount: import("convex/values").VFloat64<number, "required">;
|
|
63
|
+
principal: import("convex/values").VFloat64<number, "required">;
|
|
64
|
+
finalized: import("convex/values").VBoolean<boolean, "required">;
|
|
65
|
+
disputeState: import("convex/values").VUnion<"lost" | "open" | "won" | undefined, [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"lost", "required">, import("convex/values").VLiteral<"won", "required">], "optional", never>;
|
|
66
|
+
disputeId: import("convex/values").VString<string | undefined, "optional">;
|
|
67
|
+
refundedPrincipal: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
68
|
+
refundId: import("convex/values").VString<string | undefined, "optional">;
|
|
69
|
+
}, "optional", "chargeAmount" | "disputeId" | "disputeState" | "finalized" | "kind" | "principal" | "refundId" | "refundedPrincipal">;
|
|
70
|
+
}, "required", "commissionExposure" | "commissionExposure.chargeAmount" | "commissionExposure.disputeId" | "commissionExposure.disputeState" | "commissionExposure.finalized" | "commissionExposure.kind" | "commissionExposure.principal" | "commissionExposure.refundId" | "commissionExposure.refundedPrincipal" | "operationId" | "slices" | "sourceChargeId">, {}, {}, {}>;
|
|
71
|
+
operationEvidenceHeaders: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
72
|
+
firstObservedAt: number;
|
|
73
|
+
generation: number;
|
|
74
|
+
isContradictory: boolean;
|
|
75
|
+
latestFingerprint: string;
|
|
76
|
+
latestPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
77
|
+
operationDigest: string;
|
|
78
|
+
originalFingerprint: string;
|
|
79
|
+
originalIdentityFingerprint: string;
|
|
80
|
+
originalPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
81
|
+
producer: "trusted_host_maintenance";
|
|
82
|
+
producerVersion: 1;
|
|
83
|
+
sourceChargeDigest: string;
|
|
84
|
+
sourceCreatedAt: number;
|
|
85
|
+
sourceId: import("convex/values").GenericId<"transferReversalOps">;
|
|
86
|
+
}, {
|
|
87
|
+
sourceId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
|
|
88
|
+
originalPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
89
|
+
latestPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
90
|
+
producer: import("convex/values").VLiteral<"trusted_host_maintenance", "required">;
|
|
91
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
92
|
+
firstObservedAt: import("convex/values").VFloat64<number, "required">;
|
|
93
|
+
sourceCreatedAt: import("convex/values").VFloat64<number, "required">;
|
|
94
|
+
originalFingerprint: import("convex/values").VString<string, "required">;
|
|
95
|
+
latestFingerprint: import("convex/values").VString<string, "required">;
|
|
96
|
+
originalIdentityFingerprint: import("convex/values").VString<string, "required">;
|
|
97
|
+
operationDigest: import("convex/values").VString<string, "required">;
|
|
98
|
+
sourceChargeDigest: import("convex/values").VString<string, "required">;
|
|
99
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
100
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
101
|
+
}, "required", "firstObservedAt" | "generation" | "isContradictory" | "latestFingerprint" | "latestPayloadId" | "operationDigest" | "originalFingerprint" | "originalIdentityFingerprint" | "originalPayloadId" | "producer" | "producerVersion" | "sourceChargeDigest" | "sourceCreatedAt" | "sourceId">, {
|
|
102
|
+
by_operation_digest: ["operationDigest", "_creationTime"];
|
|
103
|
+
by_source_charge_digest: ["sourceChargeDigest", "_creationTime"];
|
|
104
|
+
by_source_id: ["sourceId", "_creationTime"];
|
|
105
|
+
}, {}, {}>;
|
|
17
106
|
financialTransferObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
18
107
|
bucketKey: string;
|
|
19
108
|
fingerprint: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutSyncTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutSyncTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,MAAM,MAAM,KAAK,GACf;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,MAAM,CAA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;;;;GAQtC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Infer } from "convex/values";
|
|
2
|
+
import type { PaginationOptions, PaginationResult } from "convex/server";
|
|
3
|
+
import type { captureResult, headerDoc, headerResult, payloadDoc, payloadResult } from "../component/operationEvidence/schema.js";
|
|
4
|
+
import { type Component, type RunCtx } from "./helpers.js";
|
|
5
|
+
export type OperationEvidenceHeader = Infer<typeof headerDoc>;
|
|
6
|
+
export type OperationEvidencePayload = Infer<typeof payloadDoc>;
|
|
7
|
+
export type OperationEvidenceHeaderResult = Infer<typeof headerResult>;
|
|
8
|
+
export type OperationEvidencePayloadResult = Infer<typeof payloadResult>;
|
|
9
|
+
export type OperationEvidenceCaptureResult = Infer<typeof captureResult>;
|
|
10
|
+
export type OperationEvidencePage = PaginationResult<OperationEvidenceHeader> & {
|
|
11
|
+
coverage: "unknown";
|
|
12
|
+
evidenceGeneration: number | null;
|
|
13
|
+
};
|
|
14
|
+
/** Trusted-host evidence maintenance/readers. No financial or provider operation. */
|
|
15
|
+
export declare class OperationEvidenceClient {
|
|
16
|
+
private component;
|
|
17
|
+
constructor(component: Component);
|
|
18
|
+
capture(ctx: RunCtx, input: {
|
|
19
|
+
sourceId: string;
|
|
20
|
+
}): Promise<OperationEvidenceCaptureResult>;
|
|
21
|
+
headers(ctx: RunCtx, input: {
|
|
22
|
+
paginationOpts: PaginationOptions & {
|
|
23
|
+
id?: number;
|
|
24
|
+
};
|
|
25
|
+
}): Promise<OperationEvidencePage>;
|
|
26
|
+
original(ctx: RunCtx, input: {
|
|
27
|
+
headerId: string;
|
|
28
|
+
}): Promise<OperationEvidencePayloadResult>;
|
|
29
|
+
latest(ctx: RunCtx, input: {
|
|
30
|
+
headerId: string;
|
|
31
|
+
}): Promise<OperationEvidencePayloadResult>;
|
|
32
|
+
resolve(ctx: RunCtx, input: {
|
|
33
|
+
selector: "operationId" | "sourceChargeId";
|
|
34
|
+
value: string;
|
|
35
|
+
}): Promise<OperationEvidenceHeaderResult>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=operationEvidence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationEvidence.d.ts","sourceRoot":"","sources":["../../src/client/operationEvidence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEzE,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,YAAY,EACZ,UAAU,EACV,aAAa,EACd,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAsB,KAAK,SAAS,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAI/E,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9D,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAChE,MAAM,MAAM,6BAA6B,GAAG,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACvE,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACzE,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAC/B,gBAAgB,CAAC,uBAAuB,CAAC,GAAG;IAC1C,QAAQ,EAAE,SAAS,CAAC;IACpB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC,CAAC;AAGJ,qFAAqF;AACrF,qBAAa,uBAAuB;IACtB,OAAO,CAAC,SAAS;IAA7B,YAAoB,SAAS,EAAE,SAAS,EAAI;IACtC,OAAO,CACX,GAAG,EAAE,MAAM,EACX,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAC1B,OAAO,CAAC,8BAA8B,CAAC,CAUzC;IACK,OAAO,CACX,GAAG,EAAE,MAAM,EACX,KAAK,EAAE;QAAE,cAAc,EAAE,iBAAiB,GAAG;YAAE,EAAE,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAC7D,OAAO,CAAC,qBAAqB,CAAC,CAShC;IACK,QAAQ,CACZ,GAAG,EAAE,MAAM,EACX,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAC1B,OAAO,CAAC,8BAA8B,CAAC,CAKzC;IACK,MAAM,CACV,GAAG,EAAE,MAAM,EACX,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAC1B,OAAO,CAAC,8BAA8B,CAAC,CAKzC;IACK,OAAO,CACX,GAAG,EAAE,MAAM,EACX,KAAK,EAAE;QAAE,QAAQ,EAAE,aAAa,GAAG,gBAAgB,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GACnE,OAAO,CAAC,6BAA6B,CAAC,CAaxC;CACF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { runMutationOrThrow } from "./helpers.js";
|
|
3
|
+
import { observationPagination } from "./observationPagination.js";
|
|
4
|
+
import { componentRef } from "./webhooks/helpers.js";
|
|
5
|
+
const headerInput = z.object({ headerId: z.string().min(1).max(256) }).strict();
|
|
6
|
+
/** Trusted-host evidence maintenance/readers. No financial or provider operation. */
|
|
7
|
+
export class OperationEvidenceClient {
|
|
8
|
+
component;
|
|
9
|
+
constructor(component) {
|
|
10
|
+
this.component = component;
|
|
11
|
+
}
|
|
12
|
+
async capture(ctx, input) {
|
|
13
|
+
const args = z
|
|
14
|
+
.object({ sourceId: z.string().min(1).max(256) })
|
|
15
|
+
.strict()
|
|
16
|
+
.parse(input);
|
|
17
|
+
return runMutationOrThrow(ctx, componentRef(this.component, "operationEvidence/mutations/capture"), args);
|
|
18
|
+
}
|
|
19
|
+
async headers(ctx, input) {
|
|
20
|
+
const args = z
|
|
21
|
+
.object({ paginationOpts: observationPagination })
|
|
22
|
+
.strict()
|
|
23
|
+
.parse(input);
|
|
24
|
+
return ctx.runQuery(componentRef(this.component, "operationEvidence/queries/headers"), args);
|
|
25
|
+
}
|
|
26
|
+
async original(ctx, input) {
|
|
27
|
+
return ctx.runQuery(componentRef(this.component, "operationEvidence/queries/original"), headerInput.parse(input));
|
|
28
|
+
}
|
|
29
|
+
async latest(ctx, input) {
|
|
30
|
+
return ctx.runQuery(componentRef(this.component, "operationEvidence/queries/latest"), headerInput.parse(input));
|
|
31
|
+
}
|
|
32
|
+
async resolve(ctx, input) {
|
|
33
|
+
// Financial selectors are schema-admitted strings, not bounded account/user IDs.
|
|
34
|
+
const args = z
|
|
35
|
+
.object({
|
|
36
|
+
selector: z.enum(["operationId", "sourceChargeId"]),
|
|
37
|
+
value: z.string(),
|
|
38
|
+
})
|
|
39
|
+
.strict()
|
|
40
|
+
.parse(input);
|
|
41
|
+
return ctx.runQuery(componentRef(this.component, "operationEvidence/queries/resolve"), args);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=operationEvidence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationEvidence.js","sourceRoot":"","sources":["../../src/client/operationEvidence.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,EAAE,kBAAkB,EAA+B,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAYrD,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAEhF,qFAAqF;AACrF,MAAM,OAAO,uBAAuB;IACd,SA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AG,CAAC;aACX,MAAM,CAAC;YACN,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;YACnD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;SAClB,CAAC;aACD,MAAM,EAAE;aACR,KAAK,CAAC,KAAK,CAAC,CAAC;QAChB,OAAO,GAAG,CAAC,QAAQ,CACjB,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,mCAAmC,CAAC,EACjE,IAAI,CACL,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -7,4 +7,5 @@ export type { FinancialSourceObservation, FinancialSourceLeg, FinancialSourceRes
|
|
|
7
7
|
export type { RefundCommandEvidence, RefundCommandEvidenceOptions, } from "./connect/refundCommandEvidence.js";
|
|
8
8
|
export type { FinancialTransferObservation, FinancialTransferBatch, FinancialTransferReadState, FinancialTransferResult, FinancialTransferPage, FinancialTransferBatchPage, FinancialTransferReference, FinancialTransferBatchResult, FinancialTransferReferencePage, } from "./transferObservations.js";
|
|
9
9
|
export type { RefundCommandNormalizationOptions, RefundCommandNormalizationResult, } from "./connect/refundCommandNormalization.js";
|
|
10
|
+
export type { OperationEvidenceHeader, OperationEvidencePayload, OperationEvidenceHeaderResult, OperationEvidencePayloadResult, OperationEvidenceCaptureResult, OperationEvidencePage, } from "./operationEvidence.js";
|
|
10
11
|
//# sourceMappingURL=publicTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publicTypes.d.ts","sourceRoot":"","sources":["../../src/client/publicTypes.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,YAAY,EACV,mBAAmB,EACnB,WAAW,EACX,OAAO,EACP,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,qBAAqB,EACrB,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,8BAA8B,EAC9B,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE/E,YAAY,EACV,uBAAuB,EACvB,8BAA8B,EAC9B,wBAAwB,EACxB,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5B,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACV,iCAAiC,EACjC,gCAAgC,GACjC,MAAM,yCAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"publicTypes.d.ts","sourceRoot":"","sources":["../../src/client/publicTypes.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,YAAY,EACV,mBAAmB,EACnB,WAAW,EACX,OAAO,EACP,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,qBAAqB,EACrB,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,8BAA8B,EAC9B,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE/E,YAAY,EACV,uBAAuB,EACvB,8BAA8B,EAC9B,wBAAwB,EACxB,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5B,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACV,iCAAiC,EACjC,gCAAgC,GACjC,MAAM,yCAAyC,CAAC;AACjD,YAAY,EACV,uBAAuB,EACvB,wBAAwB,EACxB,6BAA6B,EAC7B,8BAA8B,EAC9B,8BAA8B,EAC9B,qBAAqB,GACtB,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OperationEvidenceClient } from "./operationEvidence.js";
|
|
1
2
|
import { type RefundCommandNormalizationOptions } from "./connect/refundCommandNormalization.js";
|
|
2
3
|
import { type RefundCommandEvidenceOptions } from "./connect/refundCommandEvidence.js";
|
|
3
4
|
import type { ComponentApi } from "../component/_generated/component.js";
|
|
@@ -9,6 +10,7 @@ import type { StripeComponentCheckoutSession, StripeComponentPayout, StripeCompo
|
|
|
9
10
|
export declare class ReadContractClient {
|
|
10
11
|
component: Component;
|
|
11
12
|
constructor(component: Component);
|
|
13
|
+
get operationEvidence(): OperationEvidenceClient;
|
|
12
14
|
/** Trusted-host projection maintenance; never a financial or provider operation. */
|
|
13
15
|
normalizeRefundCommandBindings(ctx: RunCtx, opts: RefundCommandNormalizationOptions): Promise<import("./publicTypes.js").RefundCommandNormalizationResult>;
|
|
14
16
|
/** Exact component observation only; callers authorize and bind original commands. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readContracts.d.ts","sourceRoot":"","sources":["../../src/client/readContracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iCAAiC,EACvC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,oCAAoC,CAAC;AAI5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EACV,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAE9B,0DAA0D;AAC1D,qBAAa,kBAAkB;IACV,SAAS,EAAE,SAAS;IAAvC,YAAmB,SAAS,EAAE,SAAS,EAAI;
|
|
1
|
+
{"version":3,"file":"readContracts.d.ts","sourceRoot":"","sources":["../../src/client/readContracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAEL,KAAK,iCAAiC,EACvC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,oCAAoC,CA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AM,CAAC;YACZ,aAAa,EAAE,MAAM,CAAC;SACvB,EAAE,CAAC;QACJ,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,8BAA8B,CAAC,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,CAAC;KAC3G,CAAC,CAQD;IACK,2BAA2B,CAC/B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GACjD,OAAO,CAAC;QACT,MAAM,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACrE,OAAO,EAAE,qBAAqB,EAAE,CAAC;KAClC,CAAC,CAQD;CACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OperationEvidenceClient } from "./operationEvidence.js";
|
|
1
2
|
import { normalizeRefundCommandBindings, } from "./connect/refundCommandNormalization.js";
|
|
2
3
|
import { getRefundCommandEvidence, } from "./connect/refundCommandEvidence.js";
|
|
3
4
|
import * as checkoutImpl from "./billing/checkout.js";
|
|
@@ -10,6 +11,9 @@ export class ReadContractClient {
|
|
|
10
11
|
constructor(component) {
|
|
11
12
|
this.component = component;
|
|
12
13
|
}
|
|
14
|
+
get operationEvidence() {
|
|
15
|
+
return new OperationEvidenceClient(this.component);
|
|
16
|
+
}
|
|
13
17
|
/** Trusted-host projection maintenance; never a financial or provider operation. */
|
|
14
18
|
normalizeRefundCommandBindings(ctx, opts) {
|
|
15
19
|
return normalizeRefundCommandBindings(this.component, ctx, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readContracts.js","sourceRoot":"","sources":["../../src/client/readContracts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,GAE/B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,wBAAwB,GA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