@fantastic.dev/better-stripe 0.34.0 → 0.37.0
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 +260 -0
- package/README.md +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +664 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +332 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +664 -2
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +332 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/refundCommandEvidence.d.ts +14 -0
- package/dist/client/connect/refundCommandEvidence.d.ts.map +1 -0
- package/dist/client/connect/refundCommandEvidence.js +20 -0
- package/dist/client/connect/refundCommandEvidence.js.map +1 -0
- package/dist/client/connect/refundCommandNormalization.d.ts +11 -0
- package/dist/client/connect/refundCommandNormalization.d.ts.map +1 -0
- package/dist/client/connect/refundCommandNormalization.js +12 -0
- package/dist/client/connect/refundCommandNormalization.js.map +1 -0
- package/dist/client/financialObservations.d.ts +42 -0
- package/dist/client/financialObservations.d.ts.map +1 -0
- package/dist/client/financialObservations.js +58 -0
- package/dist/client/financialObservations.js.map +1 -0
- package/dist/client/financialOwnership.d.ts +52 -0
- package/dist/client/financialOwnership.d.ts.map +1 -0
- package/dist/client/financialOwnership.js +72 -0
- package/dist/client/financialOwnership.js.map +1 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/observationPagination.d.ts +10 -0
- package/dist/client/observationPagination.d.ts.map +1 -0
- package/dist/client/observationPagination.js +12 -0
- package/dist/client/observationPagination.js.map +1 -0
- 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 +6 -0
- package/dist/client/publicTypes.d.ts.map +1 -1
- package/dist/client/readContracts.d.ts +31 -0
- package/dist/client/readContracts.d.ts.map +1 -1
- package/dist/client/readContracts.js +14 -0
- package/dist/client/readContracts.js.map +1 -1
- package/dist/client/transferObservations.d.ts +59 -0
- package/dist/client/transferObservations.d.ts.map +1 -0
- package/dist/client/transferObservations.js +82 -0
- package/dist/client/transferObservations.js.map +1 -0
- package/dist/component/_generated/component.d.ts +687 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/affiliateRecovery/mutations.d.ts.map +1 -1
- package/dist/component/affiliateRecovery/mutations.js +4 -1
- package/dist/component/affiliateRecovery/mutations.js.map +1 -1
- package/dist/component/connect/mutations.d.ts.map +1 -1
- package/dist/component/connect/mutations.js +18 -2
- package/dist/component/connect/mutations.js.map +1 -1
- package/dist/component/connect/queries.d.ts +8 -0
- package/dist/component/connect/queries.d.ts.map +1 -1
- package/dist/component/connect/reversalClaims.d.ts.map +1 -1
- package/dist/component/connect/reversalClaims.js +7 -1
- package/dist/component/connect/reversalClaims.js.map +1 -1
- package/dist/component/connect/reversalReceipts.d.ts.map +1 -1
- package/dist/component/connect/reversalReceipts.js +2 -0
- package/dist/component/connect/reversalReceipts.js.map +1 -1
- package/dist/component/connect/schema.d.ts +11 -1
- package/dist/component/connect/schema.d.ts.map +1 -1
- package/dist/component/connect/schema.js +9 -1
- package/dist/component/connect/schema.js.map +1 -1
- package/dist/component/connect/validators.d.ts +9 -1
- package/dist/component/connect/validators.d.ts.map +1 -1
- package/dist/component/connect/validators.js +2 -0
- package/dist/component/connect/validators.js.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 +546 -2
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/earnings/triggers.js +17 -3
- package/dist/component/earnings/triggers.js.map +1 -1
- package/dist/component/financialObservations/continuation.d.ts +7 -0
- package/dist/component/financialObservations/continuation.d.ts.map +1 -0
- package/dist/component/financialObservations/continuation.js +131 -0
- package/dist/component/financialObservations/continuation.js.map +1 -0
- package/dist/component/financialObservations/generations.d.ts +6 -0
- package/dist/component/financialObservations/generations.d.ts.map +1 -0
- package/dist/component/financialObservations/generations.js +46 -0
- package/dist/component/financialObservations/generations.js.map +1 -0
- package/dist/component/financialObservations/mutations.d.ts +62 -0
- package/dist/component/financialObservations/mutations.d.ts.map +1 -0
- package/dist/component/financialObservations/mutations.js +69 -0
- package/dist/component/financialObservations/mutations.js.map +1 -0
- package/dist/component/financialObservations/queries.d.ts +307 -0
- package/dist/component/financialObservations/queries.d.ts.map +1 -0
- package/dist/component/financialObservations/queries.js +219 -0
- package/dist/component/financialObservations/queries.js.map +1 -0
- package/dist/component/financialObservations/schema.d.ts +182 -0
- package/dist/component/financialObservations/schema.d.ts.map +1 -0
- package/dist/component/financialObservations/schema.js +53 -0
- package/dist/component/financialObservations/schema.js.map +1 -0
- package/dist/component/financialObservations/settlement.d.ts +7 -0
- package/dist/component/financialObservations/settlement.d.ts.map +1 -0
- package/dist/component/financialObservations/settlement.js +118 -0
- package/dist/component/financialObservations/settlement.js.map +1 -0
- package/dist/component/financialObservations/settlementHelpers.d.ts +46 -0
- package/dist/component/financialObservations/settlementHelpers.d.ts.map +1 -0
- package/dist/component/financialObservations/settlementHelpers.js +70 -0
- package/dist/component/financialObservations/settlementHelpers.js.map +1 -0
- package/dist/component/financialObservations/transferBatches.d.ts +12 -0
- package/dist/component/financialObservations/transferBatches.d.ts.map +1 -0
- package/dist/component/financialObservations/transferBatches.js +76 -0
- package/dist/component/financialObservations/transferBatches.js.map +1 -0
- package/dist/component/financialObservations/transferContinuation.d.ts +5 -0
- package/dist/component/financialObservations/transferContinuation.d.ts.map +1 -0
- package/dist/component/financialObservations/transferContinuation.js +35 -0
- package/dist/component/financialObservations/transferContinuation.js.map +1 -0
- package/dist/component/financialObservations/transferContinuationState.d.ts +8 -0
- package/dist/component/financialObservations/transferContinuationState.d.ts.map +1 -0
- package/dist/component/financialObservations/transferContinuationState.js +69 -0
- package/dist/component/financialObservations/transferContinuationState.js.map +1 -0
- package/dist/component/financialObservations/transferContinuationSteps.d.ts +5 -0
- package/dist/component/financialObservations/transferContinuationSteps.d.ts.map +1 -0
- package/dist/component/financialObservations/transferContinuationSteps.js +174 -0
- package/dist/component/financialObservations/transferContinuationSteps.js.map +1 -0
- package/dist/component/financialObservations/transferHelpers.d.ts +18 -0
- package/dist/component/financialObservations/transferHelpers.d.ts.map +1 -0
- package/dist/component/financialObservations/transferHelpers.js +37 -0
- package/dist/component/financialObservations/transferHelpers.js.map +1 -0
- package/dist/component/financialObservations/transferReferenceSchema.d.ts +56 -0
- package/dist/component/financialObservations/transferReferenceSchema.d.ts.map +1 -0
- package/dist/component/financialObservations/transferReferenceSchema.js +21 -0
- package/dist/component/financialObservations/transferReferenceSchema.js.map +1 -0
- package/dist/component/financialObservations/transferSchema.d.ts +237 -0
- package/dist/component/financialObservations/transferSchema.d.ts.map +1 -0
- package/dist/component/financialObservations/transferSchema.js +65 -0
- package/dist/component/financialObservations/transferSchema.js.map +1 -0
- package/dist/component/financialObservations/transfers.d.ts +7 -0
- package/dist/component/financialObservations/transfers.d.ts.map +1 -0
- package/dist/component/financialObservations/transfers.js +79 -0
- package/dist/component/financialObservations/transfers.js.map +1 -0
- package/dist/component/financialOwnership/helpers.d.ts +37 -0
- package/dist/component/financialOwnership/helpers.d.ts.map +1 -0
- package/dist/component/financialOwnership/helpers.js +76 -0
- package/dist/component/financialOwnership/helpers.js.map +1 -0
- package/dist/component/financialOwnership/mutations.d.ts +28 -0
- package/dist/component/financialOwnership/mutations.d.ts.map +1 -0
- package/dist/component/financialOwnership/mutations.js +74 -0
- package/dist/component/financialOwnership/mutations.js.map +1 -0
- package/dist/component/financialOwnership/queries.d.ts +57 -0
- package/dist/component/financialOwnership/queries.d.ts.map +1 -0
- package/dist/component/financialOwnership/queries.js +50 -0
- package/dist/component/financialOwnership/queries.js.map +1 -0
- package/dist/component/financialOwnership/schema.d.ts +140 -0
- package/dist/component/financialOwnership/schema.d.ts.map +1 -0
- package/dist/component/financialOwnership/schema.js +35 -0
- package/dist/component/financialOwnership/schema.js.map +1 -0
- 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/refundHistory/commandBinding.d.ts +17 -0
- package/dist/component/refundHistory/commandBinding.d.ts.map +1 -0
- package/dist/component/refundHistory/commandBinding.js +41 -0
- package/dist/component/refundHistory/commandBinding.js.map +1 -0
- package/dist/component/refundHistory/commandEvidence.d.ts +50 -0
- package/dist/component/refundHistory/commandEvidence.d.ts.map +1 -0
- package/dist/component/refundHistory/commandEvidence.js +58 -0
- package/dist/component/refundHistory/commandEvidence.js.map +1 -0
- package/dist/component/refundHistory/commandEvidenceValidator.d.ts +89 -0
- package/dist/component/refundHistory/commandEvidenceValidator.d.ts.map +1 -0
- package/dist/component/refundHistory/commandEvidenceValidator.js +8 -0
- package/dist/component/refundHistory/commandEvidenceValidator.js.map +1 -0
- package/dist/component/refundHistory/commandFields.d.ts +8 -0
- package/dist/component/refundHistory/commandFields.d.ts.map +1 -0
- package/dist/component/refundHistory/commandFields.js +9 -0
- package/dist/component/refundHistory/commandFields.js.map +1 -0
- package/dist/component/refundHistory/mutations.d.ts +8 -0
- package/dist/component/refundHistory/mutations.d.ts.map +1 -0
- package/dist/component/refundHistory/mutations.js +25 -0
- package/dist/component/refundHistory/mutations.js.map +1 -0
- 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 +51 -0
- package/dist/component/refundHistory/queries.d.ts.map +1 -1
- package/dist/component/refundHistory/queries.js +14 -0
- package/dist/component/refundHistory/queries.js.map +1 -1
- package/dist/component/schema.d.ts +332 -1
- package/dist/component/schema.js +15 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/settlement/mutations.d.ts.map +1 -1
- package/dist/component/settlement/mutations.js +5 -1
- package/dist/component/settlement/mutations.js.map +1 -1
- package/dist/shared/refundCommandScope.d.ts +10 -0
- package/dist/shared/refundCommandScope.d.ts.map +1 -0
- package/dist/shared/refundCommandScope.js +9 -0
- package/dist/shared/refundCommandScope.js.map +1 -0
- package/docs/financial-observations.md +244 -0
- package/docs/financial-ownership.md +54 -0
- package/docs/refund-command-evidence.md +55 -0
- package/package.json +5 -2
- package/src/client/connect/refundCommandEvidence.ts +41 -0
- package/src/client/connect/refundCommandNormalization.ts +28 -0
- package/src/client/financialObservations.test.ts +109 -0
- package/src/client/financialObservations.ts +106 -0
- package/src/client/financialOwnership.test.ts +80 -0
- package/src/client/financialOwnership.ts +116 -0
- package/src/client/index.ts +2 -2
- package/src/client/observationPagination.ts +11 -0
- package/src/client/operationEvidence.test.ts +110 -0
- package/src/client/operationEvidence.ts +92 -0
- package/src/client/publicTypes.ts +45 -0
- package/src/client/readContracts.ts +25 -0
- package/src/client/refund-command-evidence.test.ts +68 -0
- package/src/client/refund-command-normalization.test.ts +61 -0
- package/src/client/transferContinuation.test.ts +94 -0
- package/src/client/transferObservations.test.ts +98 -0
- package/src/client/transferObservations.ts +180 -0
- package/src/component/_generated/api.ts +54 -0
- package/src/component/_generated/component.ts +797 -0
- package/src/component/affiliateRecovery/mutations.ts +10 -1
- package/src/component/connect/mutations.ts +29 -2
- package/src/component/connect/reversalClaims.ts +19 -1
- package/src/component/connect/reversalReceipts.ts +2 -0
- package/src/component/connect/schema.ts +9 -1
- package/src/component/connect/validators.ts +2 -0
- package/src/component/core/reset.test.ts +8 -1
- package/src/component/earnings/earnings-totals.test.ts +14 -10
- package/src/component/earnings/paired-adjustment.test.ts +258 -0
- package/src/component/earnings/pairedAdjustment.ts +77 -0
- package/src/component/earnings/triggers.ts +23 -11
- package/src/component/financialObservations/continuation.test.ts +445 -0
- package/src/component/financialObservations/continuation.ts +159 -0
- package/src/component/financialObservations/generations.ts +53 -0
- package/src/component/financialObservations/mutations.ts +75 -0
- package/src/component/financialObservations/observation-boundaries.test.ts +466 -0
- package/src/component/financialObservations/queries.ts +246 -0
- package/src/component/financialObservations/schema.ts +68 -0
- package/src/component/financialObservations/settlement-observations.test.ts +86 -0
- package/src/component/financialObservations/settlement.ts +142 -0
- package/src/component/financialObservations/settlementHelpers.ts +92 -0
- package/src/component/financialObservations/transfer-batches.test.ts +61 -0
- package/src/component/financialObservations/transfer-boundaries.test.ts +116 -0
- package/src/component/financialObservations/transfer-continuation-guards.test.ts +428 -0
- package/src/component/financialObservations/transfer-continuation.test.ts +154 -0
- package/src/component/financialObservations/transfer-observations.test.ts +212 -0
- package/src/component/financialObservations/transfer-overflow.test.ts +181 -0
- package/src/component/financialObservations/transfer-writers.test.ts +162 -0
- package/src/component/financialObservations/transferBatches.ts +96 -0
- package/src/component/financialObservations/transferContinuation.ts +53 -0
- package/src/component/financialObservations/transferContinuationState.ts +85 -0
- package/src/component/financialObservations/transferContinuationSteps.ts +232 -0
- package/src/component/financialObservations/transferHelpers.ts +38 -0
- package/src/component/financialObservations/transferReferenceSchema.ts +20 -0
- package/src/component/financialObservations/transferSchema.ts +74 -0
- package/src/component/financialObservations/transfers.ts +99 -0
- package/src/component/financialOwnership/financial-ownership.test.ts +102 -0
- package/src/component/financialOwnership/helpers.ts +98 -0
- package/src/component/financialOwnership/mutations.ts +83 -0
- package/src/component/financialOwnership/ownership-boundaries.test.ts +308 -0
- package/src/component/financialOwnership/queries.ts +65 -0
- package/src/component/financialOwnership/schema.ts +35 -0
- 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/command-evidence.test.ts +288 -0
- package/src/component/refundHistory/command-normalization-resource.test.ts +77 -0
- package/src/component/refundHistory/command-normalization.test.ts +229 -0
- package/src/component/refundHistory/command-provenance.test.ts +59 -0
- package/src/component/refundHistory/commandBinding.ts +54 -0
- package/src/component/refundHistory/commandEvidence.ts +76 -0
- package/src/component/refundHistory/commandEvidenceValidator.ts +18 -0
- package/src/component/refundHistory/commandFields.ts +9 -0
- package/src/component/refundHistory/mutations.ts +33 -0
- 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/refundHistory/queries.ts +15 -0
- package/src/component/schema.ts +28 -0
- package/src/component/settlement/mutations.ts +5 -1
- package/src/shared/refundCommandScope.ts +19 -0
|
@@ -9,6 +9,327 @@ export declare const scope: {
|
|
|
9
9
|
};
|
|
10
10
|
export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
11
11
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
12
|
+
operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
13
|
+
commissionExposure?: {
|
|
14
|
+
chargeAmount: number;
|
|
15
|
+
disputeId?: string | undefined;
|
|
16
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
17
|
+
finalized: boolean;
|
|
18
|
+
kind: "dispute" | "refund";
|
|
19
|
+
principal: number;
|
|
20
|
+
refundId?: string | undefined;
|
|
21
|
+
refundedPrincipal?: number | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
operationId: string;
|
|
24
|
+
slices: {
|
|
25
|
+
from: number;
|
|
26
|
+
stripeTransferId: string;
|
|
27
|
+
to: number;
|
|
28
|
+
}[];
|
|
29
|
+
sourceChargeId: string;
|
|
30
|
+
}, {
|
|
31
|
+
operationId: import("convex/values").VString<string, "required">;
|
|
32
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
33
|
+
slices: import("convex/values").VArray<{
|
|
34
|
+
from: number;
|
|
35
|
+
stripeTransferId: string;
|
|
36
|
+
to: number;
|
|
37
|
+
}[], import("convex/values").VObject<{
|
|
38
|
+
from: number;
|
|
39
|
+
stripeTransferId: string;
|
|
40
|
+
to: number;
|
|
41
|
+
}, {
|
|
42
|
+
stripeTransferId: import("convex/values").VString<string, "required">;
|
|
43
|
+
from: import("convex/values").VFloat64<number, "required">;
|
|
44
|
+
to: import("convex/values").VFloat64<number, "required">;
|
|
45
|
+
}, "required", "from" | "stripeTransferId" | "to">, "required">;
|
|
46
|
+
commissionExposure: import("convex/values").VObject<{
|
|
47
|
+
chargeAmount: number;
|
|
48
|
+
disputeId?: string | undefined;
|
|
49
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
50
|
+
finalized: boolean;
|
|
51
|
+
kind: "dispute" | "refund";
|
|
52
|
+
principal: number;
|
|
53
|
+
refundId?: string | undefined;
|
|
54
|
+
refundedPrincipal?: number | undefined;
|
|
55
|
+
} | undefined, {
|
|
56
|
+
kind: import("convex/values").VUnion<"dispute" | "refund", [import("convex/values").VLiteral<"refund", "required">, import("convex/values").VLiteral<"dispute", "required">], "required", never>;
|
|
57
|
+
chargeAmount: import("convex/values").VFloat64<number, "required">;
|
|
58
|
+
principal: import("convex/values").VFloat64<number, "required">;
|
|
59
|
+
finalized: import("convex/values").VBoolean<boolean, "required">;
|
|
60
|
+
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>;
|
|
61
|
+
disputeId: import("convex/values").VString<string | undefined, "optional">;
|
|
62
|
+
refundedPrincipal: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
63
|
+
refundId: import("convex/values").VString<string | undefined, "optional">;
|
|
64
|
+
}, "optional", "chargeAmount" | "disputeId" | "disputeState" | "finalized" | "kind" | "principal" | "refundId" | "refundedPrincipal">;
|
|
65
|
+
}, "required", "commissionExposure" | "commissionExposure.chargeAmount" | "commissionExposure.disputeId" | "commissionExposure.disputeState" | "commissionExposure.finalized" | "commissionExposure.kind" | "commissionExposure.principal" | "commissionExposure.refundId" | "commissionExposure.refundedPrincipal" | "operationId" | "slices" | "sourceChargeId">, {}, {}, {}>;
|
|
66
|
+
operationEvidenceHeaders: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
67
|
+
firstObservedAt: number;
|
|
68
|
+
generation: number;
|
|
69
|
+
isContradictory: boolean;
|
|
70
|
+
latestFingerprint: string;
|
|
71
|
+
latestPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
72
|
+
operationDigest: string;
|
|
73
|
+
originalFingerprint: string;
|
|
74
|
+
originalIdentityFingerprint: string;
|
|
75
|
+
originalPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
76
|
+
producer: "trusted_host_maintenance";
|
|
77
|
+
producerVersion: 1;
|
|
78
|
+
sourceChargeDigest: string;
|
|
79
|
+
sourceCreatedAt: number;
|
|
80
|
+
sourceId: import("convex/values").GenericId<"transferReversalOps">;
|
|
81
|
+
}, {
|
|
82
|
+
sourceId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
|
|
83
|
+
originalPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
84
|
+
latestPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
85
|
+
producer: import("convex/values").VLiteral<"trusted_host_maintenance", "required">;
|
|
86
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
87
|
+
firstObservedAt: import("convex/values").VFloat64<number, "required">;
|
|
88
|
+
sourceCreatedAt: import("convex/values").VFloat64<number, "required">;
|
|
89
|
+
originalFingerprint: import("convex/values").VString<string, "required">;
|
|
90
|
+
latestFingerprint: import("convex/values").VString<string, "required">;
|
|
91
|
+
originalIdentityFingerprint: import("convex/values").VString<string, "required">;
|
|
92
|
+
operationDigest: import("convex/values").VString<string, "required">;
|
|
93
|
+
sourceChargeDigest: import("convex/values").VString<string, "required">;
|
|
94
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
95
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
96
|
+
}, "required", "firstObservedAt" | "generation" | "isContradictory" | "latestFingerprint" | "latestPayloadId" | "operationDigest" | "originalFingerprint" | "originalIdentityFingerprint" | "originalPayloadId" | "producer" | "producerVersion" | "sourceChargeDigest" | "sourceCreatedAt" | "sourceId">, {
|
|
97
|
+
by_operation_digest: ["operationDigest", "_creationTime"];
|
|
98
|
+
by_source_charge_digest: ["sourceChargeDigest", "_creationTime"];
|
|
99
|
+
by_source_id: ["sourceId", "_creationTime"];
|
|
100
|
+
}, {}, {}>;
|
|
101
|
+
financialTransferObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
102
|
+
bucketKey: string;
|
|
103
|
+
fingerprint: string;
|
|
104
|
+
generation: number;
|
|
105
|
+
isContradictory: boolean;
|
|
106
|
+
observedFingerprint: string;
|
|
107
|
+
orgId?: string | undefined;
|
|
108
|
+
ownershipFingerprint: string;
|
|
109
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
110
|
+
producer: "transfer_fact";
|
|
111
|
+
producerVersion: 1;
|
|
112
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
113
|
+
role?: "affiliate" | "other" | "store" | undefined;
|
|
114
|
+
sourceChargeId?: string | undefined;
|
|
115
|
+
sourceInvoiceId?: string | undefined;
|
|
116
|
+
stripeTransferId: string;
|
|
117
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
118
|
+
userId?: string | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
transferId: import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">;
|
|
121
|
+
stripeTransferId: import("convex/values").VString<string, "required">;
|
|
122
|
+
sourceChargeId: import("convex/values").VString<string | undefined, "optional">;
|
|
123
|
+
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
124
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
125
|
+
role: import("convex/values").VUnion<"affiliate" | "other" | "store" | undefined, [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "optional", never>;
|
|
126
|
+
registrationId: import("convex/values").VId<import("convex/values").GenericId<"financialOwnership"> | undefined, "optional">;
|
|
127
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
128
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
129
|
+
ownershipStatus: import("convex/values").VUnion<"ambiguous" | "contradictory" | "registered" | "unknown", [import("convex/values").VLiteral<"registered", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"ambiguous", "required">, import("convex/values").VLiteral<"contradictory", "required">], "required", never>;
|
|
130
|
+
producer: import("convex/values").VLiteral<"transfer_fact", "required">;
|
|
131
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
132
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
133
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
134
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
135
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
136
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
137
|
+
}, "required", "bucketKey" | "fingerprint" | "generation" | "isContradictory" | "observedFingerprint" | "orgId" | "ownershipFingerprint" | "ownershipStatus" | "producer" | "producerVersion" | "registrationId" | "role" | "sourceChargeId" | "sourceInvoiceId" | "stripeTransferId" | "transferId" | "userId">, {
|
|
138
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
139
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
140
|
+
by_transfer_id: ["transferId", "_creationTime"];
|
|
141
|
+
}, {}, {}>;
|
|
142
|
+
financialTransferBatches: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
143
|
+
continuation?: {
|
|
144
|
+
nextReference: number;
|
|
145
|
+
producerGeneration: number;
|
|
146
|
+
sourceFingerprint: string;
|
|
147
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
148
|
+
validatedReferences: number;
|
|
149
|
+
} | undefined;
|
|
150
|
+
fingerprint: string;
|
|
151
|
+
generation: number;
|
|
152
|
+
isContradictory: boolean;
|
|
153
|
+
isOverflow: true;
|
|
154
|
+
observedFingerprint: string;
|
|
155
|
+
operationId: string;
|
|
156
|
+
originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
|
|
157
|
+
producer: "transfer_frontier_claim" | "transfer_frontier_release";
|
|
158
|
+
producerVersion: 1;
|
|
159
|
+
referenceCount: number;
|
|
160
|
+
sourceChargeId: string;
|
|
161
|
+
state: "complete" | "pending";
|
|
162
|
+
transferIds: import("convex/values").GenericId<"transfers">[];
|
|
163
|
+
}, {
|
|
164
|
+
originalOperationId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
|
|
165
|
+
operationId: import("convex/values").VString<string, "required">;
|
|
166
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
167
|
+
producer: import("convex/values").VUnion<"transfer_frontier_claim" | "transfer_frontier_release", [import("convex/values").VLiteral<"transfer_frontier_release", "required">, import("convex/values").VLiteral<"transfer_frontier_claim", "required">], "required", never>;
|
|
168
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
169
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
170
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
171
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
172
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
173
|
+
referenceCount: import("convex/values").VFloat64<number, "required">;
|
|
174
|
+
transferIds: import("convex/values").VArray<import("convex/values").GenericId<"transfers">[], import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">, "required">;
|
|
175
|
+
isOverflow: import("convex/values").VLiteral<true, "required">;
|
|
176
|
+
state: import("convex/values").VUnion<"complete" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"complete", "required">], "required", never>;
|
|
177
|
+
continuation: import("convex/values").VObject<{
|
|
178
|
+
nextReference: number;
|
|
179
|
+
producerGeneration: number;
|
|
180
|
+
sourceFingerprint: string;
|
|
181
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
182
|
+
validatedReferences: number;
|
|
183
|
+
} | undefined, {
|
|
184
|
+
state: import("convex/values").VUnion<"complete" | "held" | "indexing" | "validating", [import("convex/values").VLiteral<"indexing", "required">, import("convex/values").VLiteral<"validating", "required">, import("convex/values").VLiteral<"complete", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
|
|
185
|
+
nextReference: import("convex/values").VFloat64<number, "required">;
|
|
186
|
+
validatedReferences: import("convex/values").VFloat64<number, "required">;
|
|
187
|
+
producerGeneration: import("convex/values").VFloat64<number, "required">;
|
|
188
|
+
sourceFingerprint: import("convex/values").VString<string, "required">;
|
|
189
|
+
}, "optional", "nextReference" | "producerGeneration" | "sourceFingerprint" | "state" | "validatedReferences">;
|
|
190
|
+
}, "required", "continuation" | "continuation.nextReference" | "continuation.producerGeneration" | "continuation.sourceFingerprint" | "continuation.state" | "continuation.validatedReferences" | "fingerprint" | "generation" | "isContradictory" | "isOverflow" | "observedFingerprint" | "operationId" | "originalOperationId" | "producer" | "producerVersion" | "referenceCount" | "sourceChargeId" | "state" | "transferIds">, {
|
|
191
|
+
by_operation_id: ["operationId", "_creationTime"];
|
|
192
|
+
by_original_operation_id: ["originalOperationId", "_creationTime"];
|
|
193
|
+
by_original_operation_producer: ["originalOperationId", "producer", "_creationTime"];
|
|
194
|
+
by_state: ["state", "_creationTime"];
|
|
195
|
+
}, {}, {}>;
|
|
196
|
+
financialTransferBatchReferences: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
197
|
+
batchId: import("convex/values").GenericId<"financialTransferBatches">;
|
|
198
|
+
observationGeneration: number;
|
|
199
|
+
observationId: import("convex/values").GenericId<"financialTransferObservations">;
|
|
200
|
+
observedFingerprint: string;
|
|
201
|
+
ownershipFingerprint: string;
|
|
202
|
+
position: number;
|
|
203
|
+
sourceFingerprint: string;
|
|
204
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
205
|
+
}, {
|
|
206
|
+
batchId: import("convex/values").VId<import("convex/values").GenericId<"financialTransferBatches">, "required">;
|
|
207
|
+
position: import("convex/values").VFloat64<number, "required">;
|
|
208
|
+
transferId: import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">;
|
|
209
|
+
observationId: import("convex/values").VId<import("convex/values").GenericId<"financialTransferObservations">, "required">;
|
|
210
|
+
observationGeneration: import("convex/values").VFloat64<number, "required">;
|
|
211
|
+
sourceFingerprint: import("convex/values").VString<string, "required">;
|
|
212
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
213
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
214
|
+
}, "required", "batchId" | "observationGeneration" | "observationId" | "observedFingerprint" | "ownershipFingerprint" | "position" | "sourceFingerprint" | "transferId">, {
|
|
215
|
+
by_batch_position: ["batchId", "position", "_creationTime"];
|
|
216
|
+
by_batch_transfer: ["batchId", "transferId", "_creationTime"];
|
|
217
|
+
}, {}, {}>;
|
|
218
|
+
financialSourceObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
219
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
220
|
+
continuation?: {
|
|
221
|
+
nextLeg: number;
|
|
222
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
223
|
+
validatedLegs: number;
|
|
224
|
+
} | undefined;
|
|
225
|
+
fingerprint: string;
|
|
226
|
+
generation: number;
|
|
227
|
+
indexedLegCount: number;
|
|
228
|
+
isContradictory: boolean;
|
|
229
|
+
isOverflow: boolean;
|
|
230
|
+
legCount: number;
|
|
231
|
+
observedFingerprint: string;
|
|
232
|
+
ownershipFingerprint: string;
|
|
233
|
+
producer: "settlement_allocation";
|
|
234
|
+
producerVersion: 1;
|
|
235
|
+
sourceChargeId: string;
|
|
236
|
+
}, {
|
|
237
|
+
allocationId: import("convex/values").VId<import("convex/values").GenericId<"settlementAllocations">, "required">;
|
|
238
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
239
|
+
producer: import("convex/values").VLiteral<"settlement_allocation", "required">;
|
|
240
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
241
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
242
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
243
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
244
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
245
|
+
legCount: import("convex/values").VFloat64<number, "required">;
|
|
246
|
+
indexedLegCount: import("convex/values").VFloat64<number, "required">;
|
|
247
|
+
isOverflow: import("convex/values").VBoolean<boolean, "required">;
|
|
248
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
249
|
+
continuation: import("convex/values").VObject<{
|
|
250
|
+
nextLeg: number;
|
|
251
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
252
|
+
validatedLegs: number;
|
|
253
|
+
} | undefined, {
|
|
254
|
+
state: import("convex/values").VUnion<"complete" | "held" | "indexing" | "validating", [import("convex/values").VLiteral<"indexing", "required">, import("convex/values").VLiteral<"validating", "required">, import("convex/values").VLiteral<"complete", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
|
|
255
|
+
nextLeg: import("convex/values").VFloat64<number, "required">;
|
|
256
|
+
validatedLegs: import("convex/values").VFloat64<number, "required">;
|
|
257
|
+
}, "optional", "nextLeg" | "state" | "validatedLegs">;
|
|
258
|
+
}, "required", "allocationId" | "continuation" | "continuation.nextLeg" | "continuation.state" | "continuation.validatedLegs" | "fingerprint" | "generation" | "indexedLegCount" | "isContradictory" | "isOverflow" | "legCount" | "observedFingerprint" | "ownershipFingerprint" | "producer" | "producerVersion" | "sourceChargeId">, {
|
|
259
|
+
by_allocation_id: ["allocationId", "_creationTime"];
|
|
260
|
+
}, {}, {}>;
|
|
261
|
+
financialSourceLegs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
262
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
263
|
+
bucketKey: string;
|
|
264
|
+
legIndex: number;
|
|
265
|
+
orgId?: string | undefined;
|
|
266
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
267
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
268
|
+
role: "affiliate" | "other" | "store";
|
|
269
|
+
sourceChargeId: string;
|
|
270
|
+
userId?: string | undefined;
|
|
271
|
+
}, {
|
|
272
|
+
allocationId: import("convex/values").VId<import("convex/values").GenericId<"settlementAllocations">, "required">;
|
|
273
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
274
|
+
legIndex: import("convex/values").VFloat64<number, "required">;
|
|
275
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
276
|
+
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
277
|
+
registrationId: import("convex/values").VId<import("convex/values").GenericId<"financialOwnership"> | undefined, "optional">;
|
|
278
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
279
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
280
|
+
ownershipStatus: import("convex/values").VUnion<"ambiguous" | "contradictory" | "registered" | "unknown", [import("convex/values").VLiteral<"registered", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"ambiguous", "required">, import("convex/values").VLiteral<"contradictory", "required">], "required", never>;
|
|
281
|
+
}, "required", "allocationId" | "bucketKey" | "legIndex" | "orgId" | "ownershipStatus" | "registrationId" | "role" | "sourceChargeId" | "userId">, {
|
|
282
|
+
by_allocation_id_and_leg_index: ["allocationId", "legIndex", "_creationTime"];
|
|
283
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
284
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
285
|
+
}, {}, {}>;
|
|
286
|
+
financialObservationGenerations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
287
|
+
generation: number;
|
|
288
|
+
scopeKey: string;
|
|
289
|
+
}, {
|
|
290
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
291
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
292
|
+
}, "required", "generation" | "scopeKey">, {
|
|
293
|
+
by_scope_key: ["scopeKey", "_creationTime"];
|
|
294
|
+
}, {}, {}>;
|
|
295
|
+
financialOwnership: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
296
|
+
bucketKey: string;
|
|
297
|
+
generation: number;
|
|
298
|
+
kind: "logical" | "stripe_account";
|
|
299
|
+
orgId?: string | undefined;
|
|
300
|
+
source: {
|
|
301
|
+
integration: string;
|
|
302
|
+
recordId: string;
|
|
303
|
+
};
|
|
304
|
+
userId: string;
|
|
305
|
+
}, {
|
|
306
|
+
userId: import("convex/values").VString<string, "required">;
|
|
307
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
308
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
309
|
+
kind: import("convex/values").VUnion<"logical" | "stripe_account", [import("convex/values").VLiteral<"stripe_account", "required">, import("convex/values").VLiteral<"logical", "required">], "required", never>;
|
|
310
|
+
source: import("convex/values").VObject<{
|
|
311
|
+
integration: string;
|
|
312
|
+
recordId: string;
|
|
313
|
+
}, {
|
|
314
|
+
integration: import("convex/values").VString<string, "required">;
|
|
315
|
+
recordId: import("convex/values").VString<string, "required">;
|
|
316
|
+
}, "required", "integration" | "recordId">;
|
|
317
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
318
|
+
}, "required", "bucketKey" | "generation" | "kind" | "orgId" | "source" | "source.integration" | "source.recordId" | "userId">, {
|
|
319
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
320
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
321
|
+
}, {}, {}>;
|
|
322
|
+
financialOwnershipGenerations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
323
|
+
generation: number;
|
|
324
|
+
orgId?: string | undefined;
|
|
325
|
+
userId: string;
|
|
326
|
+
}, {
|
|
327
|
+
userId: import("convex/values").VString<string, "required">;
|
|
328
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
329
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
330
|
+
}, "required", "generation" | "orgId" | "userId">, {
|
|
331
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
332
|
+
}, {}, {}>;
|
|
12
333
|
payoutWorkerJobs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
13
334
|
accountId: string;
|
|
14
335
|
cadenceMs: number;
|
|
@@ -1550,11 +1871,19 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1550
1871
|
failureReason?: string | undefined;
|
|
1551
1872
|
metadata?: any;
|
|
1552
1873
|
reason?: "duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined;
|
|
1874
|
+
refundCommandConflict?: boolean | undefined;
|
|
1875
|
+
refundCommandKey?: string | undefined;
|
|
1876
|
+
refundCommandNormalizationVersion?: 1 | undefined;
|
|
1877
|
+
refundCommandObservedAt?: number | undefined;
|
|
1553
1878
|
status: "canceled" | "failed" | "pending" | "requires_action" | "succeeded";
|
|
1554
1879
|
stripeChargeId?: string | undefined;
|
|
1555
1880
|
stripePaymentIntentId?: string | undefined;
|
|
1556
1881
|
stripeRefundId: string;
|
|
1557
1882
|
}, {
|
|
1883
|
+
refundCommandNormalizationVersion: import("convex/values").VLiteral<1 | undefined, "optional">;
|
|
1884
|
+
refundCommandKey: import("convex/values").VString<string | undefined, "optional">;
|
|
1885
|
+
refundCommandConflict: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1886
|
+
refundCommandObservedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1558
1887
|
stripeRefundId: import("convex/values").VString<string, "required">;
|
|
1559
1888
|
stripePaymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
1560
1889
|
stripeChargeId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -1565,12 +1894,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1565
1894
|
reason: import("convex/values").VUnion<"duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined, [import("convex/values").VLiteral<"duplicate", "required">, import("convex/values").VLiteral<"fraudulent", "required">, import("convex/values").VLiteral<"requested_by_customer", "required">, import("convex/values").VLiteral<"expired_uncaptured_charge", "required">], "optional", never>;
|
|
1566
1895
|
failureReason: import("convex/values").VString<string | undefined, "optional">;
|
|
1567
1896
|
metadata: import("convex/values").VAny<any, "optional", string>;
|
|
1568
|
-
}, "required", "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`>, {
|
|
1897
|
+
}, "required", "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "refundCommandConflict" | "refundCommandKey" | "refundCommandNormalizationVersion" | "refundCommandObservedAt" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`>, {
|
|
1569
1898
|
by_account_id: ["accountId", "_creationTime"];
|
|
1570
1899
|
by_account_id_and_status: ["accountId", "status", "_creationTime"];
|
|
1571
1900
|
by_account_id_and_stripe_payment_intent_id: ["accountId", "stripePaymentIntentId", "_creationTime"];
|
|
1572
1901
|
by_account_id_and_stripe_payment_intent_id_and_status: ["accountId", "stripePaymentIntentId", "status", "_creationTime"];
|
|
1573
1902
|
by_payment_intent_id_and_status: ["stripePaymentIntentId", "status", "_creationTime"];
|
|
1903
|
+
by_refund_command_key: ["refundCommandKey", "_creationTime"];
|
|
1904
|
+
by_refund_command_normalization_version: ["refundCommandNormalizationVersion", "_creationTime"];
|
|
1574
1905
|
by_status: ["status", "_creationTime"];
|
|
1575
1906
|
by_stripe_payment_intent_id: ["stripePaymentIntentId", "_creationTime"];
|
|
1576
1907
|
by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
|
|
@@ -1891,6 +2222,327 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1891
2222
|
}>;
|
|
1892
2223
|
export declare function historical(currency?: string): Promise<{
|
|
1893
2224
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
2225
|
+
operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2226
|
+
commissionExposure?: {
|
|
2227
|
+
chargeAmount: number;
|
|
2228
|
+
disputeId?: string | undefined;
|
|
2229
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
2230
|
+
finalized: boolean;
|
|
2231
|
+
kind: "dispute" | "refund";
|
|
2232
|
+
principal: number;
|
|
2233
|
+
refundId?: string | undefined;
|
|
2234
|
+
refundedPrincipal?: number | undefined;
|
|
2235
|
+
} | undefined;
|
|
2236
|
+
operationId: string;
|
|
2237
|
+
slices: {
|
|
2238
|
+
from: number;
|
|
2239
|
+
stripeTransferId: string;
|
|
2240
|
+
to: number;
|
|
2241
|
+
}[];
|
|
2242
|
+
sourceChargeId: string;
|
|
2243
|
+
}, {
|
|
2244
|
+
operationId: import("convex/values").VString<string, "required">;
|
|
2245
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
2246
|
+
slices: import("convex/values").VArray<{
|
|
2247
|
+
from: number;
|
|
2248
|
+
stripeTransferId: string;
|
|
2249
|
+
to: number;
|
|
2250
|
+
}[], import("convex/values").VObject<{
|
|
2251
|
+
from: number;
|
|
2252
|
+
stripeTransferId: string;
|
|
2253
|
+
to: number;
|
|
2254
|
+
}, {
|
|
2255
|
+
stripeTransferId: import("convex/values").VString<string, "required">;
|
|
2256
|
+
from: import("convex/values").VFloat64<number, "required">;
|
|
2257
|
+
to: import("convex/values").VFloat64<number, "required">;
|
|
2258
|
+
}, "required", "from" | "stripeTransferId" | "to">, "required">;
|
|
2259
|
+
commissionExposure: import("convex/values").VObject<{
|
|
2260
|
+
chargeAmount: number;
|
|
2261
|
+
disputeId?: string | undefined;
|
|
2262
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
2263
|
+
finalized: boolean;
|
|
2264
|
+
kind: "dispute" | "refund";
|
|
2265
|
+
principal: number;
|
|
2266
|
+
refundId?: string | undefined;
|
|
2267
|
+
refundedPrincipal?: number | undefined;
|
|
2268
|
+
} | undefined, {
|
|
2269
|
+
kind: import("convex/values").VUnion<"dispute" | "refund", [import("convex/values").VLiteral<"refund", "required">, import("convex/values").VLiteral<"dispute", "required">], "required", never>;
|
|
2270
|
+
chargeAmount: import("convex/values").VFloat64<number, "required">;
|
|
2271
|
+
principal: import("convex/values").VFloat64<number, "required">;
|
|
2272
|
+
finalized: import("convex/values").VBoolean<boolean, "required">;
|
|
2273
|
+
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>;
|
|
2274
|
+
disputeId: import("convex/values").VString<string | undefined, "optional">;
|
|
2275
|
+
refundedPrincipal: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2276
|
+
refundId: import("convex/values").VString<string | undefined, "optional">;
|
|
2277
|
+
}, "optional", "chargeAmount" | "disputeId" | "disputeState" | "finalized" | "kind" | "principal" | "refundId" | "refundedPrincipal">;
|
|
2278
|
+
}, "required", "commissionExposure" | "commissionExposure.chargeAmount" | "commissionExposure.disputeId" | "commissionExposure.disputeState" | "commissionExposure.finalized" | "commissionExposure.kind" | "commissionExposure.principal" | "commissionExposure.refundId" | "commissionExposure.refundedPrincipal" | "operationId" | "slices" | "sourceChargeId">, {}, {}, {}>;
|
|
2279
|
+
operationEvidenceHeaders: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2280
|
+
firstObservedAt: number;
|
|
2281
|
+
generation: number;
|
|
2282
|
+
isContradictory: boolean;
|
|
2283
|
+
latestFingerprint: string;
|
|
2284
|
+
latestPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
2285
|
+
operationDigest: string;
|
|
2286
|
+
originalFingerprint: string;
|
|
2287
|
+
originalIdentityFingerprint: string;
|
|
2288
|
+
originalPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
2289
|
+
producer: "trusted_host_maintenance";
|
|
2290
|
+
producerVersion: 1;
|
|
2291
|
+
sourceChargeDigest: string;
|
|
2292
|
+
sourceCreatedAt: number;
|
|
2293
|
+
sourceId: import("convex/values").GenericId<"transferReversalOps">;
|
|
2294
|
+
}, {
|
|
2295
|
+
sourceId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
|
|
2296
|
+
originalPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
2297
|
+
latestPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
2298
|
+
producer: import("convex/values").VLiteral<"trusted_host_maintenance", "required">;
|
|
2299
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
2300
|
+
firstObservedAt: import("convex/values").VFloat64<number, "required">;
|
|
2301
|
+
sourceCreatedAt: import("convex/values").VFloat64<number, "required">;
|
|
2302
|
+
originalFingerprint: import("convex/values").VString<string, "required">;
|
|
2303
|
+
latestFingerprint: import("convex/values").VString<string, "required">;
|
|
2304
|
+
originalIdentityFingerprint: import("convex/values").VString<string, "required">;
|
|
2305
|
+
operationDigest: import("convex/values").VString<string, "required">;
|
|
2306
|
+
sourceChargeDigest: import("convex/values").VString<string, "required">;
|
|
2307
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
2308
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
2309
|
+
}, "required", "firstObservedAt" | "generation" | "isContradictory" | "latestFingerprint" | "latestPayloadId" | "operationDigest" | "originalFingerprint" | "originalIdentityFingerprint" | "originalPayloadId" | "producer" | "producerVersion" | "sourceChargeDigest" | "sourceCreatedAt" | "sourceId">, {
|
|
2310
|
+
by_operation_digest: ["operationDigest", "_creationTime"];
|
|
2311
|
+
by_source_charge_digest: ["sourceChargeDigest", "_creationTime"];
|
|
2312
|
+
by_source_id: ["sourceId", "_creationTime"];
|
|
2313
|
+
}, {}, {}>;
|
|
2314
|
+
financialTransferObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2315
|
+
bucketKey: string;
|
|
2316
|
+
fingerprint: string;
|
|
2317
|
+
generation: number;
|
|
2318
|
+
isContradictory: boolean;
|
|
2319
|
+
observedFingerprint: string;
|
|
2320
|
+
orgId?: string | undefined;
|
|
2321
|
+
ownershipFingerprint: string;
|
|
2322
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
2323
|
+
producer: "transfer_fact";
|
|
2324
|
+
producerVersion: 1;
|
|
2325
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
2326
|
+
role?: "affiliate" | "other" | "store" | undefined;
|
|
2327
|
+
sourceChargeId?: string | undefined;
|
|
2328
|
+
sourceInvoiceId?: string | undefined;
|
|
2329
|
+
stripeTransferId: string;
|
|
2330
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
2331
|
+
userId?: string | undefined;
|
|
2332
|
+
}, {
|
|
2333
|
+
transferId: import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">;
|
|
2334
|
+
stripeTransferId: import("convex/values").VString<string, "required">;
|
|
2335
|
+
sourceChargeId: import("convex/values").VString<string | undefined, "optional">;
|
|
2336
|
+
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
2337
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
2338
|
+
role: import("convex/values").VUnion<"affiliate" | "other" | "store" | undefined, [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "optional", never>;
|
|
2339
|
+
registrationId: import("convex/values").VId<import("convex/values").GenericId<"financialOwnership"> | undefined, "optional">;
|
|
2340
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
2341
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
2342
|
+
ownershipStatus: import("convex/values").VUnion<"ambiguous" | "contradictory" | "registered" | "unknown", [import("convex/values").VLiteral<"registered", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"ambiguous", "required">, import("convex/values").VLiteral<"contradictory", "required">], "required", never>;
|
|
2343
|
+
producer: import("convex/values").VLiteral<"transfer_fact", "required">;
|
|
2344
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
2345
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
2346
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
2347
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
2348
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
2349
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
2350
|
+
}, "required", "bucketKey" | "fingerprint" | "generation" | "isContradictory" | "observedFingerprint" | "orgId" | "ownershipFingerprint" | "ownershipStatus" | "producer" | "producerVersion" | "registrationId" | "role" | "sourceChargeId" | "sourceInvoiceId" | "stripeTransferId" | "transferId" | "userId">, {
|
|
2351
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
2352
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
2353
|
+
by_transfer_id: ["transferId", "_creationTime"];
|
|
2354
|
+
}, {}, {}>;
|
|
2355
|
+
financialTransferBatches: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2356
|
+
continuation?: {
|
|
2357
|
+
nextReference: number;
|
|
2358
|
+
producerGeneration: number;
|
|
2359
|
+
sourceFingerprint: string;
|
|
2360
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
2361
|
+
validatedReferences: number;
|
|
2362
|
+
} | undefined;
|
|
2363
|
+
fingerprint: string;
|
|
2364
|
+
generation: number;
|
|
2365
|
+
isContradictory: boolean;
|
|
2366
|
+
isOverflow: true;
|
|
2367
|
+
observedFingerprint: string;
|
|
2368
|
+
operationId: string;
|
|
2369
|
+
originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
|
|
2370
|
+
producer: "transfer_frontier_claim" | "transfer_frontier_release";
|
|
2371
|
+
producerVersion: 1;
|
|
2372
|
+
referenceCount: number;
|
|
2373
|
+
sourceChargeId: string;
|
|
2374
|
+
state: "complete" | "pending";
|
|
2375
|
+
transferIds: import("convex/values").GenericId<"transfers">[];
|
|
2376
|
+
}, {
|
|
2377
|
+
originalOperationId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
|
|
2378
|
+
operationId: import("convex/values").VString<string, "required">;
|
|
2379
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
2380
|
+
producer: import("convex/values").VUnion<"transfer_frontier_claim" | "transfer_frontier_release", [import("convex/values").VLiteral<"transfer_frontier_release", "required">, import("convex/values").VLiteral<"transfer_frontier_claim", "required">], "required", never>;
|
|
2381
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
2382
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
2383
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
2384
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
2385
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
2386
|
+
referenceCount: import("convex/values").VFloat64<number, "required">;
|
|
2387
|
+
transferIds: import("convex/values").VArray<import("convex/values").GenericId<"transfers">[], import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">, "required">;
|
|
2388
|
+
isOverflow: import("convex/values").VLiteral<true, "required">;
|
|
2389
|
+
state: import("convex/values").VUnion<"complete" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"complete", "required">], "required", never>;
|
|
2390
|
+
continuation: import("convex/values").VObject<{
|
|
2391
|
+
nextReference: number;
|
|
2392
|
+
producerGeneration: number;
|
|
2393
|
+
sourceFingerprint: string;
|
|
2394
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
2395
|
+
validatedReferences: number;
|
|
2396
|
+
} | undefined, {
|
|
2397
|
+
state: import("convex/values").VUnion<"complete" | "held" | "indexing" | "validating", [import("convex/values").VLiteral<"indexing", "required">, import("convex/values").VLiteral<"validating", "required">, import("convex/values").VLiteral<"complete", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
|
|
2398
|
+
nextReference: import("convex/values").VFloat64<number, "required">;
|
|
2399
|
+
validatedReferences: import("convex/values").VFloat64<number, "required">;
|
|
2400
|
+
producerGeneration: import("convex/values").VFloat64<number, "required">;
|
|
2401
|
+
sourceFingerprint: import("convex/values").VString<string, "required">;
|
|
2402
|
+
}, "optional", "nextReference" | "producerGeneration" | "sourceFingerprint" | "state" | "validatedReferences">;
|
|
2403
|
+
}, "required", "continuation" | "continuation.nextReference" | "continuation.producerGeneration" | "continuation.sourceFingerprint" | "continuation.state" | "continuation.validatedReferences" | "fingerprint" | "generation" | "isContradictory" | "isOverflow" | "observedFingerprint" | "operationId" | "originalOperationId" | "producer" | "producerVersion" | "referenceCount" | "sourceChargeId" | "state" | "transferIds">, {
|
|
2404
|
+
by_operation_id: ["operationId", "_creationTime"];
|
|
2405
|
+
by_original_operation_id: ["originalOperationId", "_creationTime"];
|
|
2406
|
+
by_original_operation_producer: ["originalOperationId", "producer", "_creationTime"];
|
|
2407
|
+
by_state: ["state", "_creationTime"];
|
|
2408
|
+
}, {}, {}>;
|
|
2409
|
+
financialTransferBatchReferences: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2410
|
+
batchId: import("convex/values").GenericId<"financialTransferBatches">;
|
|
2411
|
+
observationGeneration: number;
|
|
2412
|
+
observationId: import("convex/values").GenericId<"financialTransferObservations">;
|
|
2413
|
+
observedFingerprint: string;
|
|
2414
|
+
ownershipFingerprint: string;
|
|
2415
|
+
position: number;
|
|
2416
|
+
sourceFingerprint: string;
|
|
2417
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
2418
|
+
}, {
|
|
2419
|
+
batchId: import("convex/values").VId<import("convex/values").GenericId<"financialTransferBatches">, "required">;
|
|
2420
|
+
position: import("convex/values").VFloat64<number, "required">;
|
|
2421
|
+
transferId: import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">;
|
|
2422
|
+
observationId: import("convex/values").VId<import("convex/values").GenericId<"financialTransferObservations">, "required">;
|
|
2423
|
+
observationGeneration: import("convex/values").VFloat64<number, "required">;
|
|
2424
|
+
sourceFingerprint: import("convex/values").VString<string, "required">;
|
|
2425
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
2426
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
2427
|
+
}, "required", "batchId" | "observationGeneration" | "observationId" | "observedFingerprint" | "ownershipFingerprint" | "position" | "sourceFingerprint" | "transferId">, {
|
|
2428
|
+
by_batch_position: ["batchId", "position", "_creationTime"];
|
|
2429
|
+
by_batch_transfer: ["batchId", "transferId", "_creationTime"];
|
|
2430
|
+
}, {}, {}>;
|
|
2431
|
+
financialSourceObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2432
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
2433
|
+
continuation?: {
|
|
2434
|
+
nextLeg: number;
|
|
2435
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
2436
|
+
validatedLegs: number;
|
|
2437
|
+
} | undefined;
|
|
2438
|
+
fingerprint: string;
|
|
2439
|
+
generation: number;
|
|
2440
|
+
indexedLegCount: number;
|
|
2441
|
+
isContradictory: boolean;
|
|
2442
|
+
isOverflow: boolean;
|
|
2443
|
+
legCount: number;
|
|
2444
|
+
observedFingerprint: string;
|
|
2445
|
+
ownershipFingerprint: string;
|
|
2446
|
+
producer: "settlement_allocation";
|
|
2447
|
+
producerVersion: 1;
|
|
2448
|
+
sourceChargeId: string;
|
|
2449
|
+
}, {
|
|
2450
|
+
allocationId: import("convex/values").VId<import("convex/values").GenericId<"settlementAllocations">, "required">;
|
|
2451
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
2452
|
+
producer: import("convex/values").VLiteral<"settlement_allocation", "required">;
|
|
2453
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
2454
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
2455
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
2456
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
2457
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
2458
|
+
legCount: import("convex/values").VFloat64<number, "required">;
|
|
2459
|
+
indexedLegCount: import("convex/values").VFloat64<number, "required">;
|
|
2460
|
+
isOverflow: import("convex/values").VBoolean<boolean, "required">;
|
|
2461
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
2462
|
+
continuation: import("convex/values").VObject<{
|
|
2463
|
+
nextLeg: number;
|
|
2464
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
2465
|
+
validatedLegs: number;
|
|
2466
|
+
} | undefined, {
|
|
2467
|
+
state: import("convex/values").VUnion<"complete" | "held" | "indexing" | "validating", [import("convex/values").VLiteral<"indexing", "required">, import("convex/values").VLiteral<"validating", "required">, import("convex/values").VLiteral<"complete", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
|
|
2468
|
+
nextLeg: import("convex/values").VFloat64<number, "required">;
|
|
2469
|
+
validatedLegs: import("convex/values").VFloat64<number, "required">;
|
|
2470
|
+
}, "optional", "nextLeg" | "state" | "validatedLegs">;
|
|
2471
|
+
}, "required", "allocationId" | "continuation" | "continuation.nextLeg" | "continuation.state" | "continuation.validatedLegs" | "fingerprint" | "generation" | "indexedLegCount" | "isContradictory" | "isOverflow" | "legCount" | "observedFingerprint" | "ownershipFingerprint" | "producer" | "producerVersion" | "sourceChargeId">, {
|
|
2472
|
+
by_allocation_id: ["allocationId", "_creationTime"];
|
|
2473
|
+
}, {}, {}>;
|
|
2474
|
+
financialSourceLegs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2475
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
2476
|
+
bucketKey: string;
|
|
2477
|
+
legIndex: number;
|
|
2478
|
+
orgId?: string | undefined;
|
|
2479
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
2480
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
2481
|
+
role: "affiliate" | "other" | "store";
|
|
2482
|
+
sourceChargeId: string;
|
|
2483
|
+
userId?: string | undefined;
|
|
2484
|
+
}, {
|
|
2485
|
+
allocationId: import("convex/values").VId<import("convex/values").GenericId<"settlementAllocations">, "required">;
|
|
2486
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
2487
|
+
legIndex: import("convex/values").VFloat64<number, "required">;
|
|
2488
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
2489
|
+
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
2490
|
+
registrationId: import("convex/values").VId<import("convex/values").GenericId<"financialOwnership"> | undefined, "optional">;
|
|
2491
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
2492
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
2493
|
+
ownershipStatus: import("convex/values").VUnion<"ambiguous" | "contradictory" | "registered" | "unknown", [import("convex/values").VLiteral<"registered", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"ambiguous", "required">, import("convex/values").VLiteral<"contradictory", "required">], "required", never>;
|
|
2494
|
+
}, "required", "allocationId" | "bucketKey" | "legIndex" | "orgId" | "ownershipStatus" | "registrationId" | "role" | "sourceChargeId" | "userId">, {
|
|
2495
|
+
by_allocation_id_and_leg_index: ["allocationId", "legIndex", "_creationTime"];
|
|
2496
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
2497
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
2498
|
+
}, {}, {}>;
|
|
2499
|
+
financialObservationGenerations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2500
|
+
generation: number;
|
|
2501
|
+
scopeKey: string;
|
|
2502
|
+
}, {
|
|
2503
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
2504
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
2505
|
+
}, "required", "generation" | "scopeKey">, {
|
|
2506
|
+
by_scope_key: ["scopeKey", "_creationTime"];
|
|
2507
|
+
}, {}, {}>;
|
|
2508
|
+
financialOwnership: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2509
|
+
bucketKey: string;
|
|
2510
|
+
generation: number;
|
|
2511
|
+
kind: "logical" | "stripe_account";
|
|
2512
|
+
orgId?: string | undefined;
|
|
2513
|
+
source: {
|
|
2514
|
+
integration: string;
|
|
2515
|
+
recordId: string;
|
|
2516
|
+
};
|
|
2517
|
+
userId: string;
|
|
2518
|
+
}, {
|
|
2519
|
+
userId: import("convex/values").VString<string, "required">;
|
|
2520
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
2521
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
2522
|
+
kind: import("convex/values").VUnion<"logical" | "stripe_account", [import("convex/values").VLiteral<"stripe_account", "required">, import("convex/values").VLiteral<"logical", "required">], "required", never>;
|
|
2523
|
+
source: import("convex/values").VObject<{
|
|
2524
|
+
integration: string;
|
|
2525
|
+
recordId: string;
|
|
2526
|
+
}, {
|
|
2527
|
+
integration: import("convex/values").VString<string, "required">;
|
|
2528
|
+
recordId: import("convex/values").VString<string, "required">;
|
|
2529
|
+
}, "required", "integration" | "recordId">;
|
|
2530
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
2531
|
+
}, "required", "bucketKey" | "generation" | "kind" | "orgId" | "source" | "source.integration" | "source.recordId" | "userId">, {
|
|
2532
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
2533
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
2534
|
+
}, {}, {}>;
|
|
2535
|
+
financialOwnershipGenerations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2536
|
+
generation: number;
|
|
2537
|
+
orgId?: string | undefined;
|
|
2538
|
+
userId: string;
|
|
2539
|
+
}, {
|
|
2540
|
+
userId: import("convex/values").VString<string, "required">;
|
|
2541
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
2542
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
2543
|
+
}, "required", "generation" | "orgId" | "userId">, {
|
|
2544
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
2545
|
+
}, {}, {}>;
|
|
1894
2546
|
payoutWorkerJobs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1895
2547
|
accountId: string;
|
|
1896
2548
|
cadenceMs: number;
|
|
@@ -3432,11 +4084,19 @@ export declare function historical(currency?: string): Promise<{
|
|
|
3432
4084
|
failureReason?: string | undefined;
|
|
3433
4085
|
metadata?: any;
|
|
3434
4086
|
reason?: "duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined;
|
|
4087
|
+
refundCommandConflict?: boolean | undefined;
|
|
4088
|
+
refundCommandKey?: string | undefined;
|
|
4089
|
+
refundCommandNormalizationVersion?: 1 | undefined;
|
|
4090
|
+
refundCommandObservedAt?: number | undefined;
|
|
3435
4091
|
status: "canceled" | "failed" | "pending" | "requires_action" | "succeeded";
|
|
3436
4092
|
stripeChargeId?: string | undefined;
|
|
3437
4093
|
stripePaymentIntentId?: string | undefined;
|
|
3438
4094
|
stripeRefundId: string;
|
|
3439
4095
|
}, {
|
|
4096
|
+
refundCommandNormalizationVersion: import("convex/values").VLiteral<1 | undefined, "optional">;
|
|
4097
|
+
refundCommandKey: import("convex/values").VString<string | undefined, "optional">;
|
|
4098
|
+
refundCommandConflict: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4099
|
+
refundCommandObservedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3440
4100
|
stripeRefundId: import("convex/values").VString<string, "required">;
|
|
3441
4101
|
stripePaymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
3442
4102
|
stripeChargeId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -3447,12 +4107,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
3447
4107
|
reason: import("convex/values").VUnion<"duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined, [import("convex/values").VLiteral<"duplicate", "required">, import("convex/values").VLiteral<"fraudulent", "required">, import("convex/values").VLiteral<"requested_by_customer", "required">, import("convex/values").VLiteral<"expired_uncaptured_charge", "required">], "optional", never>;
|
|
3448
4108
|
failureReason: import("convex/values").VString<string | undefined, "optional">;
|
|
3449
4109
|
metadata: import("convex/values").VAny<any, "optional", string>;
|
|
3450
|
-
}, "required", "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`>, {
|
|
4110
|
+
}, "required", "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "refundCommandConflict" | "refundCommandKey" | "refundCommandNormalizationVersion" | "refundCommandObservedAt" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`>, {
|
|
3451
4111
|
by_account_id: ["accountId", "_creationTime"];
|
|
3452
4112
|
by_account_id_and_status: ["accountId", "status", "_creationTime"];
|
|
3453
4113
|
by_account_id_and_stripe_payment_intent_id: ["accountId", "stripePaymentIntentId", "_creationTime"];
|
|
3454
4114
|
by_account_id_and_stripe_payment_intent_id_and_status: ["accountId", "stripePaymentIntentId", "status", "_creationTime"];
|
|
3455
4115
|
by_payment_intent_id_and_status: ["stripePaymentIntentId", "status", "_creationTime"];
|
|
4116
|
+
by_refund_command_key: ["refundCommandKey", "_creationTime"];
|
|
4117
|
+
by_refund_command_normalization_version: ["refundCommandNormalizationVersion", "_creationTime"];
|
|
3456
4118
|
by_status: ["status", "_creationTime"];
|
|
3457
4119
|
by_stripe_payment_intent_id: ["stripePaymentIntentId", "_creationTime"];
|
|
3458
4120
|
by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
|