@fantastic.dev/better-stripe 0.33.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 +42 -0
- package/README.md +30 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +522 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +261 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +522 -2
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +261 -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/core/accountClosures.d.ts +15 -0
- package/dist/client/core/accountClosures.d.ts.map +1 -0
- package/dist/client/core/accountClosures.js +10 -0
- package/dist/client/core/accountClosures.js.map +1 -0
- package/dist/client/core/accounts.d.ts.map +1 -1
- package/dist/client/core/accounts.js +15 -23
- package/dist/client/core/accounts.js.map +1 -1
- package/dist/client/core/personalAccountMapping.d.ts +8 -0
- package/dist/client/core/personalAccountMapping.d.ts.map +1 -0
- package/dist/client/core/personalAccountMapping.js +11 -0
- package/dist/client/core/personalAccountMapping.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 +57 -4
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +15 -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 +10 -0
- package/dist/client/publicTypes.d.ts.map +1 -0
- package/dist/client/publicTypes.js +2 -0
- package/dist/client/publicTypes.js.map +1 -0
- 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 +594 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/accountClosure/helpers.d.ts +18 -0
- package/dist/component/accountClosure/helpers.d.ts.map +1 -0
- package/dist/component/accountClosure/helpers.js +18 -0
- package/dist/component/accountClosure/helpers.js.map +1 -0
- package/dist/component/accountClosure/mutations.d.ts +20 -0
- package/dist/component/accountClosure/mutations.d.ts.map +1 -0
- package/dist/component/accountClosure/mutations.js +55 -0
- package/dist/component/accountClosure/mutations.js.map +1 -0
- package/dist/component/accountClosure/queries.d.ts +34 -0
- package/dist/component/accountClosure/queries.d.ts.map +1 -0
- package/dist/component/accountClosure/queries.js +36 -0
- package/dist/component/accountClosure/queries.js.map +1 -0
- package/dist/component/accountClosure/schema.d.ts +46 -0
- package/dist/component/accountClosure/schema.d.ts.map +1 -0
- package/dist/component/accountClosure/schema.js +20 -0
- package/dist/component/accountClosure/schema.js.map +1 -0
- 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/core/mutations.d.ts.map +1 -1
- package/dist/component/core/mutations.js +5 -0
- package/dist/component/core/mutations.js.map +1 -1
- package/dist/component/core/personalAccountMapping.d.ts +95 -0
- package/dist/component/core/personalAccountMapping.d.ts.map +1 -0
- package/dist/component/core/personalAccountMapping.js +54 -0
- package/dist/component/core/personalAccountMapping.js.map +1 -0
- package/dist/component/core/queries.d.ts +27 -0
- package/dist/component/core/queries.d.ts.map +1 -1
- package/dist/component/core/queries.js +7 -0
- package/dist/component/core/queries.js.map +1 -1
- package/dist/component/earnings/triggers.d.ts +468 -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 +261 -1
- package/dist/component/schema.js +14 -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/personal-account-mapping.md +54 -0
- package/docs/refund-command-evidence.md +49 -0
- package/package.json +6 -2
- package/src/client/connect/refundCommandEvidence.ts +41 -0
- package/src/client/connect/refundCommandNormalization.ts +28 -0
- package/src/client/core/account-close-orchestration.test.ts +131 -0
- package/src/client/core/account-closure.test.ts +317 -0
- package/src/client/core/accountClosures.ts +37 -0
- package/src/client/core/accounts.test.ts +0 -111
- package/src/client/core/accounts.ts +24 -29
- package/src/client/core/personal-account-mapping.test.ts +71 -0
- package/src/client/core/personalAccountMapping.ts +23 -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 +38 -35
- package/src/client/observationPagination.ts +11 -0
- package/src/client/publicTypes.ts +72 -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 +52 -0
- package/src/component/_generated/component.ts +716 -0
- package/src/component/accountClosure/helpers.ts +21 -0
- package/src/component/accountClosure/mutations.ts +56 -0
- package/src/component/accountClosure/queries.ts +43 -0
- package/src/component/accountClosure/schema.ts +20 -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/mutations.ts +3 -0
- package/src/component/core/personal-account-mapping.test.ts +173 -0
- package/src/component/core/personalAccountMapping.ts +81 -0
- package/src/component/core/queries.ts +11 -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 +24 -0
- package/src/component/settlement/mutations.ts +5 -1
- package/src/shared/refundCommandScope.ts +19 -0
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
export declare const mutation: import("convex-helpers/server/customFunctions").CustomBuilder<"mutation", Record<string, never>, import("convex/server").GenericMutationCtx<{
|
|
2
|
+
accountClosures: {
|
|
3
|
+
document: {
|
|
4
|
+
_creationTime: number;
|
|
5
|
+
_id: import("convex/values").GenericId<"accountClosures">;
|
|
6
|
+
appliedConfigurations?: ("customer" | "merchant" | "recipient")[] | undefined;
|
|
7
|
+
closedAt?: number | undefined;
|
|
8
|
+
orgId?: string | undefined;
|
|
9
|
+
state: "closed" | "pending";
|
|
10
|
+
stripeAccountId: string;
|
|
11
|
+
userId?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
fieldPaths: "_id" | ("_creationTime" | "appliedConfigurations" | "closedAt" | "orgId" | "state" | "stripeAccountId" | "userId");
|
|
14
|
+
indexes: {
|
|
15
|
+
by_id: ["_id"];
|
|
16
|
+
by_creation_time: ["_creationTime"];
|
|
17
|
+
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
18
|
+
by_user_state: ["userId", "orgId", "state", "_creationTime"];
|
|
19
|
+
};
|
|
20
|
+
searchIndexes: {};
|
|
21
|
+
vectorIndexes: {};
|
|
22
|
+
};
|
|
2
23
|
accounts: {
|
|
3
24
|
document: {
|
|
4
25
|
_creationTime: number;
|
|
@@ -354,6 +375,212 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
354
375
|
searchIndexes: {};
|
|
355
376
|
vectorIndexes: {};
|
|
356
377
|
};
|
|
378
|
+
financialObservationGenerations: {
|
|
379
|
+
document: {
|
|
380
|
+
_creationTime: number;
|
|
381
|
+
_id: import("convex/values").GenericId<"financialObservationGenerations">;
|
|
382
|
+
generation: number;
|
|
383
|
+
scopeKey: string;
|
|
384
|
+
};
|
|
385
|
+
fieldPaths: "_id" | ("_creationTime" | "generation" | "scopeKey");
|
|
386
|
+
indexes: {
|
|
387
|
+
by_id: ["_id"];
|
|
388
|
+
by_creation_time: ["_creationTime"];
|
|
389
|
+
by_scope_key: ["scopeKey", "_creationTime"];
|
|
390
|
+
};
|
|
391
|
+
searchIndexes: {};
|
|
392
|
+
vectorIndexes: {};
|
|
393
|
+
};
|
|
394
|
+
financialOwnership: {
|
|
395
|
+
document: {
|
|
396
|
+
_creationTime: number;
|
|
397
|
+
_id: import("convex/values").GenericId<"financialOwnership">;
|
|
398
|
+
bucketKey: string;
|
|
399
|
+
generation: number;
|
|
400
|
+
kind: "logical" | "stripe_account";
|
|
401
|
+
orgId?: string | undefined;
|
|
402
|
+
source: {
|
|
403
|
+
integration: string;
|
|
404
|
+
recordId: string;
|
|
405
|
+
};
|
|
406
|
+
userId: string;
|
|
407
|
+
};
|
|
408
|
+
fieldPaths: "_id" | ("_creationTime" | "bucketKey" | "generation" | "kind" | "orgId" | "source" | "source.integration" | "source.recordId" | "userId");
|
|
409
|
+
indexes: {
|
|
410
|
+
by_id: ["_id"];
|
|
411
|
+
by_creation_time: ["_creationTime"];
|
|
412
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
413
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
414
|
+
};
|
|
415
|
+
searchIndexes: {};
|
|
416
|
+
vectorIndexes: {};
|
|
417
|
+
};
|
|
418
|
+
financialOwnershipGenerations: {
|
|
419
|
+
document: {
|
|
420
|
+
_creationTime: number;
|
|
421
|
+
_id: import("convex/values").GenericId<"financialOwnershipGenerations">;
|
|
422
|
+
generation: number;
|
|
423
|
+
orgId?: string | undefined;
|
|
424
|
+
userId: string;
|
|
425
|
+
};
|
|
426
|
+
fieldPaths: "_id" | ("_creationTime" | "generation" | "orgId" | "userId");
|
|
427
|
+
indexes: {
|
|
428
|
+
by_id: ["_id"];
|
|
429
|
+
by_creation_time: ["_creationTime"];
|
|
430
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
431
|
+
};
|
|
432
|
+
searchIndexes: {};
|
|
433
|
+
vectorIndexes: {};
|
|
434
|
+
};
|
|
435
|
+
financialSourceLegs: {
|
|
436
|
+
document: {
|
|
437
|
+
_creationTime: number;
|
|
438
|
+
_id: import("convex/values").GenericId<"financialSourceLegs">;
|
|
439
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
440
|
+
bucketKey: string;
|
|
441
|
+
legIndex: number;
|
|
442
|
+
orgId?: string | undefined;
|
|
443
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
444
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
445
|
+
role: "affiliate" | "other" | "store";
|
|
446
|
+
sourceChargeId: string;
|
|
447
|
+
userId?: string | undefined;
|
|
448
|
+
};
|
|
449
|
+
fieldPaths: "_id" | ("_creationTime" | "allocationId" | "bucketKey" | "legIndex" | "orgId" | "ownershipStatus" | "registrationId" | "role" | "sourceChargeId" | "userId");
|
|
450
|
+
indexes: {
|
|
451
|
+
by_id: ["_id"];
|
|
452
|
+
by_creation_time: ["_creationTime"];
|
|
453
|
+
by_allocation_id_and_leg_index: ["allocationId", "legIndex", "_creationTime"];
|
|
454
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
455
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
456
|
+
};
|
|
457
|
+
searchIndexes: {};
|
|
458
|
+
vectorIndexes: {};
|
|
459
|
+
};
|
|
460
|
+
financialSourceObservations: {
|
|
461
|
+
document: {
|
|
462
|
+
_creationTime: number;
|
|
463
|
+
_id: import("convex/values").GenericId<"financialSourceObservations">;
|
|
464
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
465
|
+
continuation?: {
|
|
466
|
+
nextLeg: number;
|
|
467
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
468
|
+
validatedLegs: number;
|
|
469
|
+
} | undefined;
|
|
470
|
+
fingerprint: string;
|
|
471
|
+
generation: number;
|
|
472
|
+
indexedLegCount: number;
|
|
473
|
+
isContradictory: boolean;
|
|
474
|
+
isOverflow: boolean;
|
|
475
|
+
legCount: number;
|
|
476
|
+
observedFingerprint: string;
|
|
477
|
+
ownershipFingerprint: string;
|
|
478
|
+
producer: "settlement_allocation";
|
|
479
|
+
producerVersion: 1;
|
|
480
|
+
sourceChargeId: string;
|
|
481
|
+
};
|
|
482
|
+
fieldPaths: "_id" | ("_creationTime" | "allocationId" | "continuation" | "continuation.nextLeg" | "continuation.state" | "continuation.validatedLegs" | "fingerprint" | "generation" | "indexedLegCount" | "isContradictory" | "isOverflow" | "legCount" | "observedFingerprint" | "ownershipFingerprint" | "producer" | "producerVersion" | "sourceChargeId");
|
|
483
|
+
indexes: {
|
|
484
|
+
by_id: ["_id"];
|
|
485
|
+
by_creation_time: ["_creationTime"];
|
|
486
|
+
by_allocation_id: ["allocationId", "_creationTime"];
|
|
487
|
+
};
|
|
488
|
+
searchIndexes: {};
|
|
489
|
+
vectorIndexes: {};
|
|
490
|
+
};
|
|
491
|
+
financialTransferBatchReferences: {
|
|
492
|
+
document: {
|
|
493
|
+
_creationTime: number;
|
|
494
|
+
_id: import("convex/values").GenericId<"financialTransferBatchReferences">;
|
|
495
|
+
batchId: import("convex/values").GenericId<"financialTransferBatches">;
|
|
496
|
+
observationGeneration: number;
|
|
497
|
+
observationId: import("convex/values").GenericId<"financialTransferObservations">;
|
|
498
|
+
observedFingerprint: string;
|
|
499
|
+
ownershipFingerprint: string;
|
|
500
|
+
position: number;
|
|
501
|
+
sourceFingerprint: string;
|
|
502
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
503
|
+
};
|
|
504
|
+
fieldPaths: "_id" | ("_creationTime" | "batchId" | "observationGeneration" | "observationId" | "observedFingerprint" | "ownershipFingerprint" | "position" | "sourceFingerprint" | "transferId");
|
|
505
|
+
indexes: {
|
|
506
|
+
by_id: ["_id"];
|
|
507
|
+
by_creation_time: ["_creationTime"];
|
|
508
|
+
by_batch_position: ["batchId", "position", "_creationTime"];
|
|
509
|
+
by_batch_transfer: ["batchId", "transferId", "_creationTime"];
|
|
510
|
+
};
|
|
511
|
+
searchIndexes: {};
|
|
512
|
+
vectorIndexes: {};
|
|
513
|
+
};
|
|
514
|
+
financialTransferBatches: {
|
|
515
|
+
document: {
|
|
516
|
+
_creationTime: number;
|
|
517
|
+
_id: import("convex/values").GenericId<"financialTransferBatches">;
|
|
518
|
+
continuation?: {
|
|
519
|
+
nextReference: number;
|
|
520
|
+
producerGeneration: number;
|
|
521
|
+
sourceFingerprint: string;
|
|
522
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
523
|
+
validatedReferences: number;
|
|
524
|
+
} | undefined;
|
|
525
|
+
fingerprint: string;
|
|
526
|
+
generation: number;
|
|
527
|
+
isContradictory: boolean;
|
|
528
|
+
isOverflow: true;
|
|
529
|
+
observedFingerprint: string;
|
|
530
|
+
operationId: string;
|
|
531
|
+
originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
|
|
532
|
+
producer: "transfer_frontier_claim" | "transfer_frontier_release";
|
|
533
|
+
producerVersion: 1;
|
|
534
|
+
referenceCount: number;
|
|
535
|
+
sourceChargeId: string;
|
|
536
|
+
state: "complete" | "pending";
|
|
537
|
+
transferIds: import("convex/values").GenericId<"transfers">[];
|
|
538
|
+
};
|
|
539
|
+
fieldPaths: "_id" | ("_creationTime" | "continuation" | "continuation.nextReference" | "continuation.producerGeneration" | "continuation.sourceFingerprint" | "continuation.state" | "continuation.validatedReferences" | "fingerprint" | "generation" | "isContradictory" | "isOverflow" | "observedFingerprint" | "operationId" | "originalOperationId" | "producer" | "producerVersion" | "referenceCount" | "sourceChargeId" | "state" | "transferIds");
|
|
540
|
+
indexes: {
|
|
541
|
+
by_id: ["_id"];
|
|
542
|
+
by_creation_time: ["_creationTime"];
|
|
543
|
+
by_operation_id: ["operationId", "_creationTime"];
|
|
544
|
+
by_original_operation_id: ["originalOperationId", "_creationTime"];
|
|
545
|
+
by_original_operation_producer: ["originalOperationId", "producer", "_creationTime"];
|
|
546
|
+
by_state: ["state", "_creationTime"];
|
|
547
|
+
};
|
|
548
|
+
searchIndexes: {};
|
|
549
|
+
vectorIndexes: {};
|
|
550
|
+
};
|
|
551
|
+
financialTransferObservations: {
|
|
552
|
+
document: {
|
|
553
|
+
_creationTime: number;
|
|
554
|
+
_id: import("convex/values").GenericId<"financialTransferObservations">;
|
|
555
|
+
bucketKey: string;
|
|
556
|
+
fingerprint: string;
|
|
557
|
+
generation: number;
|
|
558
|
+
isContradictory: boolean;
|
|
559
|
+
observedFingerprint: string;
|
|
560
|
+
orgId?: string | undefined;
|
|
561
|
+
ownershipFingerprint: string;
|
|
562
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
563
|
+
producer: "transfer_fact";
|
|
564
|
+
producerVersion: 1;
|
|
565
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
566
|
+
role?: "affiliate" | "other" | "store" | undefined;
|
|
567
|
+
sourceChargeId?: string | undefined;
|
|
568
|
+
sourceInvoiceId?: string | undefined;
|
|
569
|
+
stripeTransferId: string;
|
|
570
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
571
|
+
userId?: string | undefined;
|
|
572
|
+
};
|
|
573
|
+
fieldPaths: "_id" | ("_creationTime" | "bucketKey" | "fingerprint" | "generation" | "isContradictory" | "observedFingerprint" | "orgId" | "ownershipFingerprint" | "ownershipStatus" | "producer" | "producerVersion" | "registrationId" | "role" | "sourceChargeId" | "sourceInvoiceId" | "stripeTransferId" | "transferId" | "userId");
|
|
574
|
+
indexes: {
|
|
575
|
+
by_id: ["_id"];
|
|
576
|
+
by_creation_time: ["_creationTime"];
|
|
577
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
578
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
579
|
+
by_transfer_id: ["transferId", "_creationTime"];
|
|
580
|
+
};
|
|
581
|
+
searchIndexes: {};
|
|
582
|
+
vectorIndexes: {};
|
|
583
|
+
};
|
|
357
584
|
invoices: {
|
|
358
585
|
document: {
|
|
359
586
|
_creationTime: number;
|
|
@@ -1100,12 +1327,16 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1100
1327
|
failureReason?: string | undefined;
|
|
1101
1328
|
metadata?: any;
|
|
1102
1329
|
reason?: "duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined;
|
|
1330
|
+
refundCommandConflict?: boolean | undefined;
|
|
1331
|
+
refundCommandKey?: string | undefined;
|
|
1332
|
+
refundCommandNormalizationVersion?: 1 | undefined;
|
|
1333
|
+
refundCommandObservedAt?: number | undefined;
|
|
1103
1334
|
status: "canceled" | "failed" | "pending" | "requires_action" | "succeeded";
|
|
1104
1335
|
stripeChargeId?: string | undefined;
|
|
1105
1336
|
stripePaymentIntentId?: string | undefined;
|
|
1106
1337
|
stripeRefundId: string;
|
|
1107
1338
|
};
|
|
1108
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`);
|
|
1339
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "refundCommandConflict" | "refundCommandKey" | "refundCommandNormalizationVersion" | "refundCommandObservedAt" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`);
|
|
1109
1340
|
indexes: {
|
|
1110
1341
|
by_id: ["_id"];
|
|
1111
1342
|
by_creation_time: ["_creationTime"];
|
|
@@ -1114,6 +1345,8 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1114
1345
|
by_account_id_and_stripe_payment_intent_id: ["accountId", "stripePaymentIntentId", "_creationTime"];
|
|
1115
1346
|
by_account_id_and_stripe_payment_intent_id_and_status: ["accountId", "stripePaymentIntentId", "status", "_creationTime"];
|
|
1116
1347
|
by_payment_intent_id_and_status: ["stripePaymentIntentId", "status", "_creationTime"];
|
|
1348
|
+
by_refund_command_key: ["refundCommandKey", "_creationTime"];
|
|
1349
|
+
by_refund_command_normalization_version: ["refundCommandNormalizationVersion", "_creationTime"];
|
|
1117
1350
|
by_status: ["status", "_creationTime"];
|
|
1118
1351
|
by_stripe_payment_intent_id: ["stripePaymentIntentId", "_creationTime"];
|
|
1119
1352
|
by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
|
|
@@ -1284,6 +1517,27 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1284
1517
|
vectorIndexes: {};
|
|
1285
1518
|
};
|
|
1286
1519
|
}>, Record<string, never>, import("convex/server").GenericMutationCtx<{
|
|
1520
|
+
accountClosures: {
|
|
1521
|
+
document: {
|
|
1522
|
+
_creationTime: number;
|
|
1523
|
+
_id: import("convex/values").GenericId<"accountClosures">;
|
|
1524
|
+
appliedConfigurations?: ("customer" | "merchant" | "recipient")[] | undefined;
|
|
1525
|
+
closedAt?: number | undefined;
|
|
1526
|
+
orgId?: string | undefined;
|
|
1527
|
+
state: "closed" | "pending";
|
|
1528
|
+
stripeAccountId: string;
|
|
1529
|
+
userId?: string | undefined;
|
|
1530
|
+
};
|
|
1531
|
+
fieldPaths: "_id" | ("_creationTime" | "appliedConfigurations" | "closedAt" | "orgId" | "state" | "stripeAccountId" | "userId");
|
|
1532
|
+
indexes: {
|
|
1533
|
+
by_id: ["_id"];
|
|
1534
|
+
by_creation_time: ["_creationTime"];
|
|
1535
|
+
by_stripe_account_id: ["stripeAccountId", "_creationTime"];
|
|
1536
|
+
by_user_state: ["userId", "orgId", "state", "_creationTime"];
|
|
1537
|
+
};
|
|
1538
|
+
searchIndexes: {};
|
|
1539
|
+
vectorIndexes: {};
|
|
1540
|
+
};
|
|
1287
1541
|
accounts: {
|
|
1288
1542
|
document: {
|
|
1289
1543
|
_creationTime: number;
|
|
@@ -1639,6 +1893,212 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1639
1893
|
searchIndexes: {};
|
|
1640
1894
|
vectorIndexes: {};
|
|
1641
1895
|
};
|
|
1896
|
+
financialObservationGenerations: {
|
|
1897
|
+
document: {
|
|
1898
|
+
_creationTime: number;
|
|
1899
|
+
_id: import("convex/values").GenericId<"financialObservationGenerations">;
|
|
1900
|
+
generation: number;
|
|
1901
|
+
scopeKey: string;
|
|
1902
|
+
};
|
|
1903
|
+
fieldPaths: "_id" | ("_creationTime" | "generation" | "scopeKey");
|
|
1904
|
+
indexes: {
|
|
1905
|
+
by_id: ["_id"];
|
|
1906
|
+
by_creation_time: ["_creationTime"];
|
|
1907
|
+
by_scope_key: ["scopeKey", "_creationTime"];
|
|
1908
|
+
};
|
|
1909
|
+
searchIndexes: {};
|
|
1910
|
+
vectorIndexes: {};
|
|
1911
|
+
};
|
|
1912
|
+
financialOwnership: {
|
|
1913
|
+
document: {
|
|
1914
|
+
_creationTime: number;
|
|
1915
|
+
_id: import("convex/values").GenericId<"financialOwnership">;
|
|
1916
|
+
bucketKey: string;
|
|
1917
|
+
generation: number;
|
|
1918
|
+
kind: "logical" | "stripe_account";
|
|
1919
|
+
orgId?: string | undefined;
|
|
1920
|
+
source: {
|
|
1921
|
+
integration: string;
|
|
1922
|
+
recordId: string;
|
|
1923
|
+
};
|
|
1924
|
+
userId: string;
|
|
1925
|
+
};
|
|
1926
|
+
fieldPaths: "_id" | ("_creationTime" | "bucketKey" | "generation" | "kind" | "orgId" | "source" | "source.integration" | "source.recordId" | "userId");
|
|
1927
|
+
indexes: {
|
|
1928
|
+
by_id: ["_id"];
|
|
1929
|
+
by_creation_time: ["_creationTime"];
|
|
1930
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
1931
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
1932
|
+
};
|
|
1933
|
+
searchIndexes: {};
|
|
1934
|
+
vectorIndexes: {};
|
|
1935
|
+
};
|
|
1936
|
+
financialOwnershipGenerations: {
|
|
1937
|
+
document: {
|
|
1938
|
+
_creationTime: number;
|
|
1939
|
+
_id: import("convex/values").GenericId<"financialOwnershipGenerations">;
|
|
1940
|
+
generation: number;
|
|
1941
|
+
orgId?: string | undefined;
|
|
1942
|
+
userId: string;
|
|
1943
|
+
};
|
|
1944
|
+
fieldPaths: "_id" | ("_creationTime" | "generation" | "orgId" | "userId");
|
|
1945
|
+
indexes: {
|
|
1946
|
+
by_id: ["_id"];
|
|
1947
|
+
by_creation_time: ["_creationTime"];
|
|
1948
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
1949
|
+
};
|
|
1950
|
+
searchIndexes: {};
|
|
1951
|
+
vectorIndexes: {};
|
|
1952
|
+
};
|
|
1953
|
+
financialSourceLegs: {
|
|
1954
|
+
document: {
|
|
1955
|
+
_creationTime: number;
|
|
1956
|
+
_id: import("convex/values").GenericId<"financialSourceLegs">;
|
|
1957
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
1958
|
+
bucketKey: string;
|
|
1959
|
+
legIndex: number;
|
|
1960
|
+
orgId?: string | undefined;
|
|
1961
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
1962
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
1963
|
+
role: "affiliate" | "other" | "store";
|
|
1964
|
+
sourceChargeId: string;
|
|
1965
|
+
userId?: string | undefined;
|
|
1966
|
+
};
|
|
1967
|
+
fieldPaths: "_id" | ("_creationTime" | "allocationId" | "bucketKey" | "legIndex" | "orgId" | "ownershipStatus" | "registrationId" | "role" | "sourceChargeId" | "userId");
|
|
1968
|
+
indexes: {
|
|
1969
|
+
by_id: ["_id"];
|
|
1970
|
+
by_creation_time: ["_creationTime"];
|
|
1971
|
+
by_allocation_id_and_leg_index: ["allocationId", "legIndex", "_creationTime"];
|
|
1972
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
1973
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
1974
|
+
};
|
|
1975
|
+
searchIndexes: {};
|
|
1976
|
+
vectorIndexes: {};
|
|
1977
|
+
};
|
|
1978
|
+
financialSourceObservations: {
|
|
1979
|
+
document: {
|
|
1980
|
+
_creationTime: number;
|
|
1981
|
+
_id: import("convex/values").GenericId<"financialSourceObservations">;
|
|
1982
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
1983
|
+
continuation?: {
|
|
1984
|
+
nextLeg: number;
|
|
1985
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
1986
|
+
validatedLegs: number;
|
|
1987
|
+
} | undefined;
|
|
1988
|
+
fingerprint: string;
|
|
1989
|
+
generation: number;
|
|
1990
|
+
indexedLegCount: number;
|
|
1991
|
+
isContradictory: boolean;
|
|
1992
|
+
isOverflow: boolean;
|
|
1993
|
+
legCount: number;
|
|
1994
|
+
observedFingerprint: string;
|
|
1995
|
+
ownershipFingerprint: string;
|
|
1996
|
+
producer: "settlement_allocation";
|
|
1997
|
+
producerVersion: 1;
|
|
1998
|
+
sourceChargeId: string;
|
|
1999
|
+
};
|
|
2000
|
+
fieldPaths: "_id" | ("_creationTime" | "allocationId" | "continuation" | "continuation.nextLeg" | "continuation.state" | "continuation.validatedLegs" | "fingerprint" | "generation" | "indexedLegCount" | "isContradictory" | "isOverflow" | "legCount" | "observedFingerprint" | "ownershipFingerprint" | "producer" | "producerVersion" | "sourceChargeId");
|
|
2001
|
+
indexes: {
|
|
2002
|
+
by_id: ["_id"];
|
|
2003
|
+
by_creation_time: ["_creationTime"];
|
|
2004
|
+
by_allocation_id: ["allocationId", "_creationTime"];
|
|
2005
|
+
};
|
|
2006
|
+
searchIndexes: {};
|
|
2007
|
+
vectorIndexes: {};
|
|
2008
|
+
};
|
|
2009
|
+
financialTransferBatchReferences: {
|
|
2010
|
+
document: {
|
|
2011
|
+
_creationTime: number;
|
|
2012
|
+
_id: import("convex/values").GenericId<"financialTransferBatchReferences">;
|
|
2013
|
+
batchId: import("convex/values").GenericId<"financialTransferBatches">;
|
|
2014
|
+
observationGeneration: number;
|
|
2015
|
+
observationId: import("convex/values").GenericId<"financialTransferObservations">;
|
|
2016
|
+
observedFingerprint: string;
|
|
2017
|
+
ownershipFingerprint: string;
|
|
2018
|
+
position: number;
|
|
2019
|
+
sourceFingerprint: string;
|
|
2020
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
2021
|
+
};
|
|
2022
|
+
fieldPaths: "_id" | ("_creationTime" | "batchId" | "observationGeneration" | "observationId" | "observedFingerprint" | "ownershipFingerprint" | "position" | "sourceFingerprint" | "transferId");
|
|
2023
|
+
indexes: {
|
|
2024
|
+
by_id: ["_id"];
|
|
2025
|
+
by_creation_time: ["_creationTime"];
|
|
2026
|
+
by_batch_position: ["batchId", "position", "_creationTime"];
|
|
2027
|
+
by_batch_transfer: ["batchId", "transferId", "_creationTime"];
|
|
2028
|
+
};
|
|
2029
|
+
searchIndexes: {};
|
|
2030
|
+
vectorIndexes: {};
|
|
2031
|
+
};
|
|
2032
|
+
financialTransferBatches: {
|
|
2033
|
+
document: {
|
|
2034
|
+
_creationTime: number;
|
|
2035
|
+
_id: import("convex/values").GenericId<"financialTransferBatches">;
|
|
2036
|
+
continuation?: {
|
|
2037
|
+
nextReference: number;
|
|
2038
|
+
producerGeneration: number;
|
|
2039
|
+
sourceFingerprint: string;
|
|
2040
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
2041
|
+
validatedReferences: number;
|
|
2042
|
+
} | undefined;
|
|
2043
|
+
fingerprint: string;
|
|
2044
|
+
generation: number;
|
|
2045
|
+
isContradictory: boolean;
|
|
2046
|
+
isOverflow: true;
|
|
2047
|
+
observedFingerprint: string;
|
|
2048
|
+
operationId: string;
|
|
2049
|
+
originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
|
|
2050
|
+
producer: "transfer_frontier_claim" | "transfer_frontier_release";
|
|
2051
|
+
producerVersion: 1;
|
|
2052
|
+
referenceCount: number;
|
|
2053
|
+
sourceChargeId: string;
|
|
2054
|
+
state: "complete" | "pending";
|
|
2055
|
+
transferIds: import("convex/values").GenericId<"transfers">[];
|
|
2056
|
+
};
|
|
2057
|
+
fieldPaths: "_id" | ("_creationTime" | "continuation" | "continuation.nextReference" | "continuation.producerGeneration" | "continuation.sourceFingerprint" | "continuation.state" | "continuation.validatedReferences" | "fingerprint" | "generation" | "isContradictory" | "isOverflow" | "observedFingerprint" | "operationId" | "originalOperationId" | "producer" | "producerVersion" | "referenceCount" | "sourceChargeId" | "state" | "transferIds");
|
|
2058
|
+
indexes: {
|
|
2059
|
+
by_id: ["_id"];
|
|
2060
|
+
by_creation_time: ["_creationTime"];
|
|
2061
|
+
by_operation_id: ["operationId", "_creationTime"];
|
|
2062
|
+
by_original_operation_id: ["originalOperationId", "_creationTime"];
|
|
2063
|
+
by_original_operation_producer: ["originalOperationId", "producer", "_creationTime"];
|
|
2064
|
+
by_state: ["state", "_creationTime"];
|
|
2065
|
+
};
|
|
2066
|
+
searchIndexes: {};
|
|
2067
|
+
vectorIndexes: {};
|
|
2068
|
+
};
|
|
2069
|
+
financialTransferObservations: {
|
|
2070
|
+
document: {
|
|
2071
|
+
_creationTime: number;
|
|
2072
|
+
_id: import("convex/values").GenericId<"financialTransferObservations">;
|
|
2073
|
+
bucketKey: string;
|
|
2074
|
+
fingerprint: string;
|
|
2075
|
+
generation: number;
|
|
2076
|
+
isContradictory: boolean;
|
|
2077
|
+
observedFingerprint: string;
|
|
2078
|
+
orgId?: string | undefined;
|
|
2079
|
+
ownershipFingerprint: string;
|
|
2080
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
2081
|
+
producer: "transfer_fact";
|
|
2082
|
+
producerVersion: 1;
|
|
2083
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
2084
|
+
role?: "affiliate" | "other" | "store" | undefined;
|
|
2085
|
+
sourceChargeId?: string | undefined;
|
|
2086
|
+
sourceInvoiceId?: string | undefined;
|
|
2087
|
+
stripeTransferId: string;
|
|
2088
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
2089
|
+
userId?: string | undefined;
|
|
2090
|
+
};
|
|
2091
|
+
fieldPaths: "_id" | ("_creationTime" | "bucketKey" | "fingerprint" | "generation" | "isContradictory" | "observedFingerprint" | "orgId" | "ownershipFingerprint" | "ownershipStatus" | "producer" | "producerVersion" | "registrationId" | "role" | "sourceChargeId" | "sourceInvoiceId" | "stripeTransferId" | "transferId" | "userId");
|
|
2092
|
+
indexes: {
|
|
2093
|
+
by_id: ["_id"];
|
|
2094
|
+
by_creation_time: ["_creationTime"];
|
|
2095
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
2096
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
2097
|
+
by_transfer_id: ["transferId", "_creationTime"];
|
|
2098
|
+
};
|
|
2099
|
+
searchIndexes: {};
|
|
2100
|
+
vectorIndexes: {};
|
|
2101
|
+
};
|
|
1642
2102
|
invoices: {
|
|
1643
2103
|
document: {
|
|
1644
2104
|
_creationTime: number;
|
|
@@ -2385,12 +2845,16 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2385
2845
|
failureReason?: string | undefined;
|
|
2386
2846
|
metadata?: any;
|
|
2387
2847
|
reason?: "duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined;
|
|
2848
|
+
refundCommandConflict?: boolean | undefined;
|
|
2849
|
+
refundCommandKey?: string | undefined;
|
|
2850
|
+
refundCommandNormalizationVersion?: 1 | undefined;
|
|
2851
|
+
refundCommandObservedAt?: number | undefined;
|
|
2388
2852
|
status: "canceled" | "failed" | "pending" | "requires_action" | "succeeded";
|
|
2389
2853
|
stripeChargeId?: string | undefined;
|
|
2390
2854
|
stripePaymentIntentId?: string | undefined;
|
|
2391
2855
|
stripeRefundId: string;
|
|
2392
2856
|
};
|
|
2393
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`);
|
|
2857
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "refundCommandConflict" | "refundCommandKey" | "refundCommandNormalizationVersion" | "refundCommandObservedAt" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`);
|
|
2394
2858
|
indexes: {
|
|
2395
2859
|
by_id: ["_id"];
|
|
2396
2860
|
by_creation_time: ["_creationTime"];
|
|
@@ -2399,6 +2863,8 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2399
2863
|
by_account_id_and_stripe_payment_intent_id: ["accountId", "stripePaymentIntentId", "_creationTime"];
|
|
2400
2864
|
by_account_id_and_stripe_payment_intent_id_and_status: ["accountId", "stripePaymentIntentId", "status", "_creationTime"];
|
|
2401
2865
|
by_payment_intent_id_and_status: ["stripePaymentIntentId", "status", "_creationTime"];
|
|
2866
|
+
by_refund_command_key: ["refundCommandKey", "_creationTime"];
|
|
2867
|
+
by_refund_command_normalization_version: ["refundCommandNormalizationVersion", "_creationTime"];
|
|
2402
2868
|
by_status: ["status", "_creationTime"];
|
|
2403
2869
|
by_stripe_payment_intent_id: ["stripePaymentIntentId", "_creationTime"];
|
|
2404
2870
|
by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAA0D,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { observeTransfer } from "../financialObservations/transfers.js";
|
|
1
2
|
import { registerPayoutRevisions } from "../payoutSnapshots/revisions.js";
|
|
2
3
|
import { Triggers } from "convex-helpers/server/triggers";
|
|
3
4
|
import { customCtx, customMutation, } from "convex-helpers/server/customFunctions";
|
|
@@ -46,8 +47,13 @@ triggers.register("transfers", async (ctx, change) => {
|
|
|
46
47
|
await adjust(ctx, "earnings", contribution(change.oldDoc), -1);
|
|
47
48
|
if (change.newDoc) {
|
|
48
49
|
await adjust(ctx, "earnings", contribution(change.newDoc), 1);
|
|
49
|
-
if (!change.newDoc.totalsRecorded)
|
|
50
|
+
if (!change.newDoc.totalsRecorded) {
|
|
50
51
|
await ctx.innerDb.patch("transfers", change.id, { totalsRecorded: true });
|
|
52
|
+
// Frontier producers own bounded batch observation, including oversized release deferral.
|
|
53
|
+
if (change.oldDoc?.reversalClaimedAmount ===
|
|
54
|
+
change.newDoc.reversalClaimedAmount)
|
|
55
|
+
await observeTransfer(ctx, { ...change.newDoc, totalsRecorded: true });
|
|
56
|
+
}
|
|
51
57
|
}
|
|
52
58
|
});
|
|
53
59
|
triggers.register("payouts", async (ctx, change) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EACL,SAAS,EACT,cAAc,GACf,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EACL,QAAQ,IAAI,WAAW,GAExB,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,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5E,CAAC;AACH,CAAC,CAAC,CAAC;AACH,uBAAuB,CAAC,QAAQ,CAAC,CAAC;AAClC,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Doc } from "../_generated/dataModel.js";
|
|
2
|
+
import type { MutationCtx } from "../_generated/server.js";
|
|
3
|
+
type Observation = Doc<"financialSourceObservations">;
|
|
4
|
+
/** One atomic bounded step. Callers drain explicitly; a stale acknowledgement never advances twice. */
|
|
5
|
+
export declare function continueSettlementObservation(ctx: MutationCtx, marker: Observation, expectedGeneration: number): Promise<void>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=continuation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuation.d.ts","sourceRoot":"","sources":["../../../src/component/financialObservations/continuation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAQ3D,KAAK,WAAW,GAAG,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAmGtD,uGAAuG;AACvG,wBAAsB,6BAA6B,CACjD,GAAG,EAAE,WAAW,EAChB,MAAM,EAAE,WAAW,EACnB,kBAAkB,EAAE,MAAM,iBA8C3B"}
|