@fantastic.dev/better-stripe 0.34.0 → 0.35.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 +35 -0
- package/README.md +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +486 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +243 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +486 -2
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +243 -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/publicTypes.d.ts +5 -0
- package/dist/client/publicTypes.d.ts.map +1 -1
- package/dist/client/readContracts.d.ts +29 -0
- package/dist/client/readContracts.d.ts.map +1 -1
- package/dist/client/readContracts.js +10 -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 +506 -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/triggers.d.ts +426 -2
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/earnings/triggers.js +7 -1
- 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/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- 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 +54 -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/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 +243 -1
- package/dist/component/schema.js +12 -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 +159 -0
- package/docs/financial-ownership.md +54 -0
- package/docs/refund-command-evidence.md +49 -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/publicTypes.ts +37 -0
- package/src/client/readContracts.ts +21 -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 +44 -0
- package/src/component/_generated/component.ts +590 -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/triggers.ts +9 -1
- 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/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 +71 -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/queries.ts +15 -0
- package/src/component/schema.ts +22 -0
- package/src/component/settlement/mutations.ts +5 -1
- package/src/shared/refundCommandScope.ts +19 -0
|
@@ -10,6 +10,238 @@ export declare const scope: {
|
|
|
10
10
|
};
|
|
11
11
|
export declare function setup(amounts?: number[]): Promise<{
|
|
12
12
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
13
|
+
financialTransferObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
14
|
+
bucketKey: string;
|
|
15
|
+
fingerprint: string;
|
|
16
|
+
generation: number;
|
|
17
|
+
isContradictory: boolean;
|
|
18
|
+
observedFingerprint: string;
|
|
19
|
+
orgId?: string | undefined;
|
|
20
|
+
ownershipFingerprint: string;
|
|
21
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
22
|
+
producer: "transfer_fact";
|
|
23
|
+
producerVersion: 1;
|
|
24
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
25
|
+
role?: "affiliate" | "other" | "store" | undefined;
|
|
26
|
+
sourceChargeId?: string | undefined;
|
|
27
|
+
sourceInvoiceId?: string | undefined;
|
|
28
|
+
stripeTransferId: string;
|
|
29
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
30
|
+
userId?: string | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
transferId: import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">;
|
|
33
|
+
stripeTransferId: import("convex/values").VString<string, "required">;
|
|
34
|
+
sourceChargeId: import("convex/values").VString<string | undefined, "optional">;
|
|
35
|
+
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
36
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
37
|
+
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>;
|
|
38
|
+
registrationId: import("convex/values").VId<import("convex/values").GenericId<"financialOwnership"> | undefined, "optional">;
|
|
39
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
40
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
41
|
+
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>;
|
|
42
|
+
producer: import("convex/values").VLiteral<"transfer_fact", "required">;
|
|
43
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
44
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
45
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
46
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
47
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
48
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
49
|
+
}, "required", "bucketKey" | "fingerprint" | "generation" | "isContradictory" | "observedFingerprint" | "orgId" | "ownershipFingerprint" | "ownershipStatus" | "producer" | "producerVersion" | "registrationId" | "role" | "sourceChargeId" | "sourceInvoiceId" | "stripeTransferId" | "transferId" | "userId">, {
|
|
50
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
51
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
52
|
+
by_transfer_id: ["transferId", "_creationTime"];
|
|
53
|
+
}, {}, {}>;
|
|
54
|
+
financialTransferBatches: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
55
|
+
continuation?: {
|
|
56
|
+
nextReference: number;
|
|
57
|
+
producerGeneration: number;
|
|
58
|
+
sourceFingerprint: string;
|
|
59
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
60
|
+
validatedReferences: number;
|
|
61
|
+
} | undefined;
|
|
62
|
+
fingerprint: string;
|
|
63
|
+
generation: number;
|
|
64
|
+
isContradictory: boolean;
|
|
65
|
+
isOverflow: true;
|
|
66
|
+
observedFingerprint: string;
|
|
67
|
+
operationId: string;
|
|
68
|
+
originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
|
|
69
|
+
producer: "transfer_frontier_claim" | "transfer_frontier_release";
|
|
70
|
+
producerVersion: 1;
|
|
71
|
+
referenceCount: number;
|
|
72
|
+
sourceChargeId: string;
|
|
73
|
+
state: "complete" | "pending";
|
|
74
|
+
transferIds: import("convex/values").GenericId<"transfers">[];
|
|
75
|
+
}, {
|
|
76
|
+
originalOperationId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
|
|
77
|
+
operationId: import("convex/values").VString<string, "required">;
|
|
78
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
79
|
+
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>;
|
|
80
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
81
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
82
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
83
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
84
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
85
|
+
referenceCount: import("convex/values").VFloat64<number, "required">;
|
|
86
|
+
transferIds: import("convex/values").VArray<import("convex/values").GenericId<"transfers">[], import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">, "required">;
|
|
87
|
+
isOverflow: import("convex/values").VLiteral<true, "required">;
|
|
88
|
+
state: import("convex/values").VUnion<"complete" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"complete", "required">], "required", never>;
|
|
89
|
+
continuation: import("convex/values").VObject<{
|
|
90
|
+
nextReference: number;
|
|
91
|
+
producerGeneration: number;
|
|
92
|
+
sourceFingerprint: string;
|
|
93
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
94
|
+
validatedReferences: number;
|
|
95
|
+
} | undefined, {
|
|
96
|
+
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>;
|
|
97
|
+
nextReference: import("convex/values").VFloat64<number, "required">;
|
|
98
|
+
validatedReferences: import("convex/values").VFloat64<number, "required">;
|
|
99
|
+
producerGeneration: import("convex/values").VFloat64<number, "required">;
|
|
100
|
+
sourceFingerprint: import("convex/values").VString<string, "required">;
|
|
101
|
+
}, "optional", "nextReference" | "producerGeneration" | "sourceFingerprint" | "state" | "validatedReferences">;
|
|
102
|
+
}, "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">, {
|
|
103
|
+
by_operation_id: ["operationId", "_creationTime"];
|
|
104
|
+
by_original_operation_id: ["originalOperationId", "_creationTime"];
|
|
105
|
+
by_original_operation_producer: ["originalOperationId", "producer", "_creationTime"];
|
|
106
|
+
by_state: ["state", "_creationTime"];
|
|
107
|
+
}, {}, {}>;
|
|
108
|
+
financialTransferBatchReferences: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
109
|
+
batchId: import("convex/values").GenericId<"financialTransferBatches">;
|
|
110
|
+
observationGeneration: number;
|
|
111
|
+
observationId: import("convex/values").GenericId<"financialTransferObservations">;
|
|
112
|
+
observedFingerprint: string;
|
|
113
|
+
ownershipFingerprint: string;
|
|
114
|
+
position: number;
|
|
115
|
+
sourceFingerprint: string;
|
|
116
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
117
|
+
}, {
|
|
118
|
+
batchId: import("convex/values").VId<import("convex/values").GenericId<"financialTransferBatches">, "required">;
|
|
119
|
+
position: import("convex/values").VFloat64<number, "required">;
|
|
120
|
+
transferId: import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">;
|
|
121
|
+
observationId: import("convex/values").VId<import("convex/values").GenericId<"financialTransferObservations">, "required">;
|
|
122
|
+
observationGeneration: import("convex/values").VFloat64<number, "required">;
|
|
123
|
+
sourceFingerprint: import("convex/values").VString<string, "required">;
|
|
124
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
125
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
126
|
+
}, "required", "batchId" | "observationGeneration" | "observationId" | "observedFingerprint" | "ownershipFingerprint" | "position" | "sourceFingerprint" | "transferId">, {
|
|
127
|
+
by_batch_position: ["batchId", "position", "_creationTime"];
|
|
128
|
+
by_batch_transfer: ["batchId", "transferId", "_creationTime"];
|
|
129
|
+
}, {}, {}>;
|
|
130
|
+
financialSourceObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
131
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
132
|
+
continuation?: {
|
|
133
|
+
nextLeg: number;
|
|
134
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
135
|
+
validatedLegs: number;
|
|
136
|
+
} | undefined;
|
|
137
|
+
fingerprint: string;
|
|
138
|
+
generation: number;
|
|
139
|
+
indexedLegCount: number;
|
|
140
|
+
isContradictory: boolean;
|
|
141
|
+
isOverflow: boolean;
|
|
142
|
+
legCount: number;
|
|
143
|
+
observedFingerprint: string;
|
|
144
|
+
ownershipFingerprint: string;
|
|
145
|
+
producer: "settlement_allocation";
|
|
146
|
+
producerVersion: 1;
|
|
147
|
+
sourceChargeId: string;
|
|
148
|
+
}, {
|
|
149
|
+
allocationId: import("convex/values").VId<import("convex/values").GenericId<"settlementAllocations">, "required">;
|
|
150
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
151
|
+
producer: import("convex/values").VLiteral<"settlement_allocation", "required">;
|
|
152
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
153
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
154
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
155
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
156
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
157
|
+
legCount: import("convex/values").VFloat64<number, "required">;
|
|
158
|
+
indexedLegCount: import("convex/values").VFloat64<number, "required">;
|
|
159
|
+
isOverflow: import("convex/values").VBoolean<boolean, "required">;
|
|
160
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
161
|
+
continuation: import("convex/values").VObject<{
|
|
162
|
+
nextLeg: number;
|
|
163
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
164
|
+
validatedLegs: number;
|
|
165
|
+
} | undefined, {
|
|
166
|
+
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>;
|
|
167
|
+
nextLeg: import("convex/values").VFloat64<number, "required">;
|
|
168
|
+
validatedLegs: import("convex/values").VFloat64<number, "required">;
|
|
169
|
+
}, "optional", "nextLeg" | "state" | "validatedLegs">;
|
|
170
|
+
}, "required", "allocationId" | "continuation" | "continuation.nextLeg" | "continuation.state" | "continuation.validatedLegs" | "fingerprint" | "generation" | "indexedLegCount" | "isContradictory" | "isOverflow" | "legCount" | "observedFingerprint" | "ownershipFingerprint" | "producer" | "producerVersion" | "sourceChargeId">, {
|
|
171
|
+
by_allocation_id: ["allocationId", "_creationTime"];
|
|
172
|
+
}, {}, {}>;
|
|
173
|
+
financialSourceLegs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
174
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
175
|
+
bucketKey: string;
|
|
176
|
+
legIndex: number;
|
|
177
|
+
orgId?: string | undefined;
|
|
178
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
179
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
180
|
+
role: "affiliate" | "other" | "store";
|
|
181
|
+
sourceChargeId: string;
|
|
182
|
+
userId?: string | undefined;
|
|
183
|
+
}, {
|
|
184
|
+
allocationId: import("convex/values").VId<import("convex/values").GenericId<"settlementAllocations">, "required">;
|
|
185
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
186
|
+
legIndex: import("convex/values").VFloat64<number, "required">;
|
|
187
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
188
|
+
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>;
|
|
189
|
+
registrationId: import("convex/values").VId<import("convex/values").GenericId<"financialOwnership"> | undefined, "optional">;
|
|
190
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
191
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
192
|
+
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>;
|
|
193
|
+
}, "required", "allocationId" | "bucketKey" | "legIndex" | "orgId" | "ownershipStatus" | "registrationId" | "role" | "sourceChargeId" | "userId">, {
|
|
194
|
+
by_allocation_id_and_leg_index: ["allocationId", "legIndex", "_creationTime"];
|
|
195
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
196
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
197
|
+
}, {}, {}>;
|
|
198
|
+
financialObservationGenerations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
199
|
+
generation: number;
|
|
200
|
+
scopeKey: string;
|
|
201
|
+
}, {
|
|
202
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
203
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
204
|
+
}, "required", "generation" | "scopeKey">, {
|
|
205
|
+
by_scope_key: ["scopeKey", "_creationTime"];
|
|
206
|
+
}, {}, {}>;
|
|
207
|
+
financialOwnership: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
208
|
+
bucketKey: string;
|
|
209
|
+
generation: number;
|
|
210
|
+
kind: "logical" | "stripe_account";
|
|
211
|
+
orgId?: string | undefined;
|
|
212
|
+
source: {
|
|
213
|
+
integration: string;
|
|
214
|
+
recordId: string;
|
|
215
|
+
};
|
|
216
|
+
userId: string;
|
|
217
|
+
}, {
|
|
218
|
+
userId: import("convex/values").VString<string, "required">;
|
|
219
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
220
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
221
|
+
kind: import("convex/values").VUnion<"logical" | "stripe_account", [import("convex/values").VLiteral<"stripe_account", "required">, import("convex/values").VLiteral<"logical", "required">], "required", never>;
|
|
222
|
+
source: import("convex/values").VObject<{
|
|
223
|
+
integration: string;
|
|
224
|
+
recordId: string;
|
|
225
|
+
}, {
|
|
226
|
+
integration: import("convex/values").VString<string, "required">;
|
|
227
|
+
recordId: import("convex/values").VString<string, "required">;
|
|
228
|
+
}, "required", "integration" | "recordId">;
|
|
229
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
230
|
+
}, "required", "bucketKey" | "generation" | "kind" | "orgId" | "source" | "source.integration" | "source.recordId" | "userId">, {
|
|
231
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
232
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
233
|
+
}, {}, {}>;
|
|
234
|
+
financialOwnershipGenerations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
235
|
+
generation: number;
|
|
236
|
+
orgId?: string | undefined;
|
|
237
|
+
userId: string;
|
|
238
|
+
}, {
|
|
239
|
+
userId: import("convex/values").VString<string, "required">;
|
|
240
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
241
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
242
|
+
}, "required", "generation" | "orgId" | "userId">, {
|
|
243
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
244
|
+
}, {}, {}>;
|
|
13
245
|
payoutWorkerJobs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
14
246
|
accountId: string;
|
|
15
247
|
cadenceMs: number;
|
|
@@ -1551,11 +1783,19 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1551
1783
|
failureReason?: string | undefined;
|
|
1552
1784
|
metadata?: any;
|
|
1553
1785
|
reason?: "duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined;
|
|
1786
|
+
refundCommandConflict?: boolean | undefined;
|
|
1787
|
+
refundCommandKey?: string | undefined;
|
|
1788
|
+
refundCommandNormalizationVersion?: 1 | undefined;
|
|
1789
|
+
refundCommandObservedAt?: number | undefined;
|
|
1554
1790
|
status: "canceled" | "failed" | "pending" | "requires_action" | "succeeded";
|
|
1555
1791
|
stripeChargeId?: string | undefined;
|
|
1556
1792
|
stripePaymentIntentId?: string | undefined;
|
|
1557
1793
|
stripeRefundId: string;
|
|
1558
1794
|
}, {
|
|
1795
|
+
refundCommandNormalizationVersion: import("convex/values").VLiteral<1 | undefined, "optional">;
|
|
1796
|
+
refundCommandKey: import("convex/values").VString<string | undefined, "optional">;
|
|
1797
|
+
refundCommandConflict: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1798
|
+
refundCommandObservedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1559
1799
|
stripeRefundId: import("convex/values").VString<string, "required">;
|
|
1560
1800
|
stripePaymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
1561
1801
|
stripeChargeId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -1566,12 +1806,14 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1566
1806
|
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>;
|
|
1567
1807
|
failureReason: import("convex/values").VString<string | undefined, "optional">;
|
|
1568
1808
|
metadata: import("convex/values").VAny<any, "optional", string>;
|
|
1569
|
-
}, "required", "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`>, {
|
|
1809
|
+
}, "required", "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "refundCommandConflict" | "refundCommandKey" | "refundCommandNormalizationVersion" | "refundCommandObservedAt" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`>, {
|
|
1570
1810
|
by_account_id: ["accountId", "_creationTime"];
|
|
1571
1811
|
by_account_id_and_status: ["accountId", "status", "_creationTime"];
|
|
1572
1812
|
by_account_id_and_stripe_payment_intent_id: ["accountId", "stripePaymentIntentId", "_creationTime"];
|
|
1573
1813
|
by_account_id_and_stripe_payment_intent_id_and_status: ["accountId", "stripePaymentIntentId", "status", "_creationTime"];
|
|
1574
1814
|
by_payment_intent_id_and_status: ["stripePaymentIntentId", "status", "_creationTime"];
|
|
1815
|
+
by_refund_command_key: ["refundCommandKey", "_creationTime"];
|
|
1816
|
+
by_refund_command_normalization_version: ["refundCommandNormalizationVersion", "_creationTime"];
|
|
1575
1817
|
by_status: ["status", "_creationTime"];
|
|
1576
1818
|
by_stripe_payment_intent_id: ["stripePaymentIntentId", "_creationTime"];
|
|
1577
1819
|
by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutExecutionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutExecutionTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM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