@fantastic.dev/better-stripe 0.28.6 → 0.30.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 +16 -0
- package/MIGRATION.md +14 -0
- package/README.md +7 -1
- package/dist/client/connect/payoutActivationProof.d.ts.map +1 -1
- package/dist/client/connect/payoutActivationProof.js +88 -42
- package/dist/client/connect/payoutActivationProof.js.map +1 -1
- package/dist/client/connect/payoutAdoption.d.ts +3 -0
- package/dist/client/connect/payoutAdoption.d.ts.map +1 -1
- package/dist/client/connect/payoutAdoption.js +218 -183
- package/dist/client/connect/payoutAdoption.js.map +1 -1
- package/dist/client/connect/payoutAdoptionCollection.d.ts +21 -0
- package/dist/client/connect/payoutAdoptionCollection.d.ts.map +1 -0
- package/dist/client/connect/payoutAdoptionCollection.js +44 -0
- package/dist/client/connect/payoutAdoptionCollection.js.map +1 -0
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +54 -14
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutCollectedInput.d.ts +110 -0
- package/dist/client/connect/payoutCollectedInput.d.ts.map +1 -0
- package/dist/client/connect/payoutCollectedInput.js +70 -0
- package/dist/client/connect/payoutCollectedInput.js.map +1 -0
- package/dist/client/connect/payoutExecution.d.ts +1 -0
- package/dist/client/connect/payoutExecution.d.ts.map +1 -1
- package/dist/client/connect/payoutExecution.js +94 -67
- package/dist/client/connect/payoutExecution.js.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +29 -7
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.js +9 -6
- package/dist/client/connect/payoutExecutionTestHelpers.js.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +3745 -0
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -0
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.js +55 -0
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.js.map +1 -0
- package/dist/client/connect/payoutOutcomeBatches.d.ts +5 -0
- package/dist/client/connect/payoutOutcomeBatches.d.ts.map +1 -0
- package/dist/client/connect/payoutOutcomeBatches.js +21 -0
- package/dist/client/connect/payoutOutcomeBatches.js.map +1 -0
- package/dist/client/connect/payoutPolicyState.d.ts +14 -0
- package/dist/client/connect/payoutPolicyState.d.ts.map +1 -0
- package/dist/client/connect/payoutPolicyState.js +19 -0
- package/dist/client/connect/payoutPolicyState.js.map +1 -0
- package/dist/client/connect/payoutPreview.d.ts +1 -0
- package/dist/client/connect/payoutPreview.d.ts.map +1 -1
- package/dist/client/connect/payoutPreview.js +31 -19
- package/dist/client/connect/payoutPreview.js.map +1 -1
- package/dist/client/connect/payoutQualification.d.ts +7 -1
- package/dist/client/connect/payoutQualification.d.ts.map +1 -1
- package/dist/client/connect/payoutQualification.js +34 -19
- package/dist/client/connect/payoutQualification.js.map +1 -1
- package/dist/client/connect/payoutReconciliation.d.ts +11 -6
- package/dist/client/connect/payoutReconciliation.d.ts.map +1 -1
- package/dist/client/connect/payoutReconciliation.js +62 -16
- package/dist/client/connect/payoutReconciliation.js.map +1 -1
- package/dist/client/connect/payoutResumableProof.d.ts +17 -0
- package/dist/client/connect/payoutResumableProof.d.ts.map +1 -0
- package/dist/client/connect/payoutResumableProof.js +25 -0
- package/dist/client/connect/payoutResumableProof.js.map +1 -0
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +27 -7
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutWorker.d.ts.map +1 -1
- package/dist/client/connect/payoutWorker.js +4 -1
- package/dist/client/connect/payoutWorker.js.map +1 -1
- package/dist/client/connect/transferReceipt.d.ts +6 -2
- package/dist/client/connect/transferReceipt.d.ts.map +1 -1
- package/dist/client/connect/transferReceipt.js +3 -3
- package/dist/client/connect/transferReceipt.js.map +1 -1
- package/dist/client/costRecovery.d.ts +5 -0
- package/dist/client/costRecovery.d.ts.map +1 -1
- package/dist/client/costRecovery.js +5 -0
- package/dist/client/costRecovery.js.map +1 -1
- package/dist/client/payoutPolicy.d.ts +4 -0
- package/dist/client/payoutPolicy.d.ts.map +1 -1
- package/dist/client/payoutPolicy.js +24 -14
- package/dist/client/payoutPolicy.js.map +1 -1
- package/dist/component/_generated/component.d.ts +247 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/costRecovery/mutations.js +1 -1
- package/dist/component/costRecovery/queries.d.ts +9 -0
- package/dist/component/costRecovery/queries.d.ts.map +1 -1
- package/dist/component/costRecovery/queries.js +20 -0
- package/dist/component/costRecovery/queries.js.map +1 -1
- package/dist/component/earnings/triggers.d.ts +28 -10
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/payoutPolicy/adoption.d.ts.map +1 -1
- package/dist/component/payoutPolicy/adoption.js +12 -7
- package/dist/component/payoutPolicy/adoption.js.map +1 -1
- package/dist/component/payoutPolicy/mutations.d.ts +12 -0
- package/dist/component/payoutPolicy/mutations.d.ts.map +1 -1
- package/dist/component/payoutPolicy/queries.d.ts +2 -0
- package/dist/component/payoutPolicy/queries.d.ts.map +1 -1
- package/dist/component/payoutPolicy/schema.d.ts +31 -7
- package/dist/component/payoutPolicy/schema.d.ts.map +1 -1
- package/dist/component/payoutPolicy/schema.js +2 -0
- package/dist/component/payoutPolicy/schema.js.map +1 -1
- package/dist/component/payoutRelease/adoption.d.ts +9 -1
- package/dist/component/payoutRelease/adoption.d.ts.map +1 -1
- package/dist/component/payoutRelease/adoption.js +33 -16
- package/dist/component/payoutRelease/adoption.js.map +1 -1
- package/dist/component/payoutRelease/fees.d.ts.map +1 -1
- package/dist/component/payoutRelease/fees.js +7 -0
- package/dist/component/payoutRelease/fees.js.map +1 -1
- package/dist/component/payoutRelease/helpers.d.ts +4 -1
- package/dist/component/payoutRelease/helpers.d.ts.map +1 -1
- package/dist/component/payoutRelease/helpers.js +17 -10
- package/dist/component/payoutRelease/helpers.js.map +1 -1
- package/dist/component/payoutRelease/mutations.d.ts +79 -0
- package/dist/component/payoutRelease/mutations.d.ts.map +1 -1
- package/dist/component/payoutRelease/mutations.js +38 -81
- package/dist/component/payoutRelease/mutations.js.map +1 -1
- package/dist/component/payoutRelease/outcome.d.ts +69 -0
- package/dist/component/payoutRelease/outcome.d.ts.map +1 -0
- package/dist/component/payoutRelease/outcome.js +94 -0
- package/dist/component/payoutRelease/outcome.js.map +1 -0
- package/dist/component/payoutRelease/planning.d.ts +4 -0
- package/dist/component/payoutRelease/planning.d.ts.map +1 -1
- package/dist/component/payoutRelease/planning.js +8 -3
- package/dist/component/payoutRelease/planning.js.map +1 -1
- package/dist/component/payoutRelease/preview.d.ts +2 -0
- package/dist/component/payoutRelease/preview.d.ts.map +1 -1
- package/dist/component/payoutRelease/preview.js +2 -0
- package/dist/component/payoutRelease/preview.js.map +1 -1
- package/dist/component/payoutRelease/queries.d.ts +13 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/payoutRelease/queries.js +2 -0
- package/dist/component/payoutRelease/queries.js.map +1 -1
- package/dist/component/payoutRelease/schema.d.ts +17 -2
- package/dist/component/payoutRelease/schema.d.ts.map +1 -1
- package/dist/component/payoutRelease/schema.js +3 -0
- package/dist/component/payoutRelease/schema.js.map +1 -1
- package/dist/component/payoutSnapshots/adoption.d.ts +88 -0
- package/dist/component/payoutSnapshots/adoption.d.ts.map +1 -0
- package/dist/component/payoutSnapshots/adoption.js +49 -0
- package/dist/component/payoutSnapshots/adoption.js.map +1 -0
- package/dist/component/payoutSnapshots/financial.d.ts +47 -0
- package/dist/component/payoutSnapshots/financial.d.ts.map +1 -0
- package/dist/component/payoutSnapshots/financial.js +103 -0
- package/dist/component/payoutSnapshots/financial.js.map +1 -0
- package/dist/component/payoutSnapshots/liabilities.d.ts +7 -0
- package/dist/component/payoutSnapshots/liabilities.d.ts.map +1 -0
- package/dist/component/payoutSnapshots/liabilities.js +18 -0
- package/dist/component/payoutSnapshots/liabilities.js.map +1 -0
- package/dist/component/payoutSnapshots/localState.d.ts +22 -16
- package/dist/component/payoutSnapshots/localState.d.ts.map +1 -1
- package/dist/component/payoutSnapshots/localState.js +19 -7
- package/dist/component/payoutSnapshots/localState.js.map +1 -1
- package/dist/component/payoutSnapshots/mutations.d.ts +6 -0
- package/dist/component/payoutSnapshots/mutations.d.ts.map +1 -1
- package/dist/component/payoutSnapshots/mutations.js +3 -1
- package/dist/component/payoutSnapshots/mutations.js.map +1 -1
- package/dist/component/payoutSnapshots/queries.d.ts +133 -0
- package/dist/component/payoutSnapshots/queries.d.ts.map +1 -0
- package/dist/component/payoutSnapshots/queries.js +86 -0
- package/dist/component/payoutSnapshots/queries.js.map +1 -0
- package/dist/component/payoutSnapshots/revisions.d.ts.map +1 -1
- package/dist/component/payoutSnapshots/revisions.js +19 -0
- package/dist/component/payoutSnapshots/revisions.js.map +1 -1
- package/dist/component/payoutSnapshots/schema.d.ts +20 -6
- package/dist/component/payoutSnapshots/schema.d.ts.map +1 -1
- package/dist/component/payoutSnapshots/schema.js +5 -1
- package/dist/component/payoutSnapshots/schema.js.map +1 -1
- package/dist/component/payoutWorker/mutations.d.ts.map +1 -1
- package/dist/component/payoutWorker/mutations.js +3 -1
- package/dist/component/payoutWorker/mutations.js.map +1 -1
- package/dist/component/schema.d.ts +27 -7
- package/dist/react/workflows/payout-attempt-state.d.ts.map +1 -1
- package/dist/react/workflows/payout-attempt-state.js +3 -0
- package/dist/react/workflows/payout-attempt-state.js.map +1 -1
- package/dist/react/workflows/payout-progress-state.d.ts.map +1 -1
- package/dist/react/workflows/payout-progress-state.js +3 -0
- package/dist/react/workflows/payout-progress-state.js.map +1 -1
- package/docs/settlement.md +136 -24
- package/package.json +1 -1
- package/src/client/connect/payoutActivationProof.ts +123 -53
- package/src/client/connect/payoutAdoption.ts +299 -215
- package/src/client/connect/payoutAdoptionCollection.ts +78 -0
- package/src/client/connect/payoutAdoptionConcurrency.test.ts +266 -0
- package/src/client/connect/payoutCacheIdentity.test.ts +93 -0
- package/src/client/connect/payoutCollectedInput.ts +120 -0
- package/src/client/connect/payoutExecution.ts +116 -84
- package/src/client/connect/payoutExecutionTestHelpers.ts +19 -6
- package/src/client/connect/payoutLargeAdoption.test.ts +541 -0
- package/src/client/connect/payoutLargeAdoptionTestHelpers.ts +74 -0
- package/src/client/connect/payoutLargeHistory.test.ts +222 -0
- package/src/client/connect/payoutLiabilityVersion.test.ts +221 -0
- package/src/client/connect/payoutOutcomeBatches.test.ts +40 -0
- package/src/client/connect/payoutOutcomeBatches.ts +24 -0
- package/src/client/connect/payoutPolicyState.ts +36 -0
- package/src/client/connect/payoutPreview.ts +42 -24
- package/src/client/connect/payoutQualification.ts +68 -21
- package/src/client/connect/payoutReconciliation.ts +86 -7
- package/src/client/connect/payoutResumableProof.ts +41 -0
- package/src/client/connect/payoutWorker.ts +4 -1
- package/src/client/connect/transferReceipt.ts +3 -2
- package/src/client/connect/transferReceiptBaseline.test.ts +55 -0
- package/src/client/costRecovery.ts +8 -0
- package/src/client/payoutPolicy.ts +37 -23
- package/src/component/_generated/api.ts +10 -0
- package/src/component/_generated/component.ts +288 -0
- package/src/component/costRecovery/mutations.ts +1 -1
- package/src/component/costRecovery/queries.ts +21 -0
- package/src/component/payout-snapshots.test.ts +45 -1
- package/src/component/payoutPolicy/adoption.ts +20 -7
- package/src/component/payoutPolicy/schema.ts +2 -0
- package/src/component/payoutRelease/adoption.ts +57 -27
- package/src/component/payoutRelease/fees.ts +9 -0
- package/src/component/payoutRelease/helpers.ts +19 -11
- package/src/component/payoutRelease/mutations.ts +43 -96
- package/src/component/payoutRelease/outcome.ts +119 -0
- package/src/component/payoutRelease/planning.ts +11 -2
- package/src/component/payoutRelease/preview.ts +2 -0
- package/src/component/payoutRelease/queries.ts +2 -0
- package/src/component/payoutRelease/schema.ts +3 -0
- package/src/component/payoutSnapshots/adoption.ts +73 -0
- package/src/component/payoutSnapshots/financial.ts +134 -0
- package/src/component/payoutSnapshots/liabilities.ts +25 -0
- package/src/component/payoutSnapshots/localState.ts +24 -6
- package/src/component/payoutSnapshots/mutations.ts +10 -1
- package/src/component/payoutSnapshots/queries.ts +104 -0
- package/src/component/payoutSnapshots/revisions.ts +26 -0
- package/src/component/payoutSnapshots/schema.ts +5 -0
- package/src/component/payoutWorker/mutations.ts +3 -1
- package/src/react/workflows/payout-attempt-state.ts +6 -0
- package/src/react/workflows/payout-progress-state.ts +6 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { riskRevision } from "../payoutSnapshots/revisions.js";
|
|
1
2
|
import { paginator } from "convex-helpers/server/pagination";
|
|
2
3
|
import schema from "../schema.js";
|
|
3
4
|
import { paginationOptsValidator } from "convex/server";
|
|
@@ -72,4 +73,23 @@ export const claim = query({
|
|
|
72
73
|
.withIndex("by_key", (q) => q.eq("claimKey", args.claimKey))
|
|
73
74
|
.unique(),
|
|
74
75
|
});
|
|
76
|
+
/** Amount and account version come from the same database snapshot. Host authorizes this scope. */
|
|
77
|
+
export const payoutQuote = query({
|
|
78
|
+
args: scopeFields,
|
|
79
|
+
returns: v.object({
|
|
80
|
+
independentLiabilities: v.number(),
|
|
81
|
+
liabilityRevision: v.number(),
|
|
82
|
+
}),
|
|
83
|
+
handler: async (ctx, args) => {
|
|
84
|
+
validateScope(args);
|
|
85
|
+
const balance = await readBalance(ctx, args);
|
|
86
|
+
const amount = (balance?.amountDue ?? 0) - (balance?.collectedAmount ?? 0);
|
|
87
|
+
if (!Number.isSafeInteger(amount))
|
|
88
|
+
throw new Error("Invalid payout recovery liability.");
|
|
89
|
+
return {
|
|
90
|
+
independentLiabilities: Math.max(0, amount),
|
|
91
|
+
liabilityRevision: await riskRevision(ctx, args.accountId),
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
});
|
|
75
95
|
//# sourceMappingURL=queries.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.js","sourceRo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;AACnG,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC;IAC/B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;QAClC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;KAC9B,CAAC;IACF,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC3B,aAAa,CAAC,IAAI,CAAC,CAAC;QACpB,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAC7C,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,SAAS,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,eAAe,IAAI,CAAC,CAAC,CAAC;QAC3E,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC;YAC/B,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACxD,OAAO;YACL,sBAAsB,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC;YAC3C,iBAAiB,EAAE,MAAM,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC;SAC3D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -531,6 +531,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
531
531
|
fingerprint: string;
|
|
532
532
|
operationKey: string;
|
|
533
533
|
}[];
|
|
534
|
+
collectionKey?: string | undefined;
|
|
534
535
|
observations: {
|
|
535
536
|
currency: string;
|
|
536
537
|
ledgerFingerprint: string;
|
|
@@ -541,6 +542,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
541
542
|
transactionIds: string[];
|
|
542
543
|
}[];
|
|
543
544
|
oldestHeldAt?: number | undefined;
|
|
545
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
544
546
|
} | undefined;
|
|
545
547
|
attempted?: boolean | undefined;
|
|
546
548
|
country: string;
|
|
@@ -571,7 +573,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
571
573
|
currency: string;
|
|
572
574
|
}[];
|
|
573
575
|
};
|
|
574
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "adoption" | "adoption.claims" | "adoption.observations" | "adoption.oldestHeldAt" | "attempted" | "country" | "expectedRevision" | "mode" | "observedAt" | "observedSchedule" | "observedSchedule.interval" | "observedSchedule.monthlyDays" | "observedSchedule.weeklyDays" | "operationKey" | "ownerKey" | "previousSchedule" | "previousSchedule.interval" | "previousSchedule.monthlyDays" | "previousSchedule.weeklyDays" | "revision" | "status" | "targetSchedule" | "targetSchedule.interval" | "targetSchedule.monthlyDays" | "targetSchedule.weeklyDays" | "thresholds");
|
|
576
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "adoption" | "adoption.claims" | "adoption.collectionKey" | "adoption.observations" | "adoption.oldestHeldAt" | "adoption.snapshotId" | "attempted" | "country" | "expectedRevision" | "mode" | "observedAt" | "observedSchedule" | "observedSchedule.interval" | "observedSchedule.monthlyDays" | "observedSchedule.weeklyDays" | "operationKey" | "ownerKey" | "previousSchedule" | "previousSchedule.interval" | "previousSchedule.monthlyDays" | "previousSchedule.weeklyDays" | "revision" | "status" | "targetSchedule" | "targetSchedule.interval" | "targetSchedule.monthlyDays" | "targetSchedule.weeklyDays" | "thresholds");
|
|
575
577
|
indexes: {
|
|
576
578
|
by_id: ["_id"];
|
|
577
579
|
by_creation_time: ["_creationTime"];
|
|
@@ -599,6 +601,8 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
599
601
|
expectedRevision: number;
|
|
600
602
|
feeRevision?: number | undefined;
|
|
601
603
|
historical?: boolean | undefined;
|
|
604
|
+
independentLiabilities?: number | undefined;
|
|
605
|
+
liabilityRevision?: number | undefined;
|
|
602
606
|
observations: {
|
|
603
607
|
currency: string;
|
|
604
608
|
ledgerFingerprint: string;
|
|
@@ -616,10 +620,11 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
616
620
|
requestId: string;
|
|
617
621
|
} | undefined;
|
|
618
622
|
returnTransactionId?: string | undefined;
|
|
623
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
619
624
|
status: "canceled" | "paid" | "rejected" | "reserved" | "returned" | "submitted";
|
|
620
625
|
stripePayoutId?: string | undefined;
|
|
621
626
|
};
|
|
622
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "allocations" | "amount" | "attemptedAt" | "currency" | "debitFee" | "debitTransactionId" | "destinationId" | "expectedRevision" | "feeRevision" | "historical" | "observations" | "operationKey" | "ownerKey" | "providerFee" | "rejection" | "rejection.code" | "rejection.requestId" | "returnTransactionId" | "status" | "stripePayoutId");
|
|
627
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "allocations" | "amount" | "attemptedAt" | "currency" | "debitFee" | "debitTransactionId" | "destinationId" | "expectedRevision" | "feeRevision" | "historical" | "independentLiabilities" | "liabilityRevision" | "observations" | "operationKey" | "ownerKey" | "providerFee" | "rejection" | "rejection.code" | "rejection.requestId" | "returnTransactionId" | "snapshotId" | "status" | "stripePayoutId");
|
|
623
628
|
indexes: {
|
|
624
629
|
by_id: ["_id"];
|
|
625
630
|
by_creation_time: ["_creationTime"];
|
|
@@ -640,7 +645,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
640
645
|
_id: import("convex/values").GenericId<"payoutRiskEvents">;
|
|
641
646
|
accountId: string;
|
|
642
647
|
key: string;
|
|
643
|
-
kind: "allocation" | "claim" | "fee" | "provider_payout" | "transfer";
|
|
648
|
+
kind: "allocation" | "claim" | "fee" | "liability" | "provider_payout" | "transfer";
|
|
644
649
|
removed?: boolean | undefined;
|
|
645
650
|
riskRevision: number;
|
|
646
651
|
};
|
|
@@ -722,6 +727,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
722
727
|
_creationTime: number;
|
|
723
728
|
_id: import("convex/values").GenericId<"payoutSnapshotSources">;
|
|
724
729
|
allocationCurrency?: string | undefined;
|
|
730
|
+
allocationDocId?: import("convex/values").GenericId<"payoutSourceAllocations"> | undefined;
|
|
725
731
|
allocationPresent: boolean;
|
|
726
732
|
amount: number;
|
|
727
733
|
currency: string;
|
|
@@ -740,8 +746,9 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
740
746
|
sourceCreatedAt: number;
|
|
741
747
|
status: string;
|
|
742
748
|
stripeTransferId: string;
|
|
749
|
+
transferDocId?: import("convex/values").GenericId<"transfers"> | undefined;
|
|
743
750
|
};
|
|
744
|
-
fieldPaths: "_id" | ("_creationTime" | "allocationCurrency" | "allocationPresent" | "amount" | "currency" | "expectedPaid" | "expectedReserved" | "ledgerFingerprint" | "needsCheck" | "paidAmount" | "reinstatement" | "reservedAmount" | "reversalClaimedAmount" | "reversedAmount" | "role" | "snapshotId" | "sourceChargeId" | "sourceCreatedAt" | "status" | "stripeTransferId");
|
|
751
|
+
fieldPaths: "_id" | ("_creationTime" | "allocationCurrency" | "allocationDocId" | "allocationPresent" | "amount" | "currency" | "expectedPaid" | "expectedReserved" | "ledgerFingerprint" | "needsCheck" | "paidAmount" | "reinstatement" | "reservedAmount" | "reversalClaimedAmount" | "reversedAmount" | "role" | "snapshotId" | "sourceChargeId" | "sourceCreatedAt" | "status" | "stripeTransferId" | "transferDocId");
|
|
745
752
|
indexes: {
|
|
746
753
|
by_id: ["_id"];
|
|
747
754
|
by_creation_time: ["_creationTime"];
|
|
@@ -759,6 +766,8 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
759
766
|
accountId: string;
|
|
760
767
|
allocationCount: number;
|
|
761
768
|
allocationCursor?: string | undefined;
|
|
769
|
+
boundOperationKey?: string | undefined;
|
|
770
|
+
boundRiskRevision?: number | undefined;
|
|
762
771
|
claimCount: number;
|
|
763
772
|
claimCursor?: string | undefined;
|
|
764
773
|
deferredPositiveChanges: boolean;
|
|
@@ -783,7 +792,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
783
792
|
sourceFence: number;
|
|
784
793
|
step: number;
|
|
785
794
|
};
|
|
786
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "allocationCount" | "allocationCursor" | "claimCount" | "claimCursor" | "deferredPositiveChanges" | "expectedRevision" | "expiresAt" | "feeCount" | "feeCursor" | "initialRevision" | "initialRiskRevision" | "observedRevision" | "operationKey" | "ownerKey" | "phase" | "policyMode" | "policyOperationKey" | "providerChanged" | "readOnly" | "reason" | "riskRevision" | "sourceCount" | "sourceCursor" | "sourceFence" | "step");
|
|
795
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "allocationCount" | "allocationCursor" | "boundOperationKey" | "boundRiskRevision" | "claimCount" | "claimCursor" | "deferredPositiveChanges" | "expectedRevision" | "expiresAt" | "feeCount" | "feeCursor" | "initialRevision" | "initialRiskRevision" | "observedRevision" | "operationKey" | "ownerKey" | "phase" | "policyMode" | "policyOperationKey" | "providerChanged" | "readOnly" | "reason" | "riskRevision" | "sourceCount" | "sourceCursor" | "sourceFence" | "step");
|
|
787
796
|
indexes: {
|
|
788
797
|
by_id: ["_id"];
|
|
789
798
|
by_creation_time: ["_creationTime"];
|
|
@@ -1807,6 +1816,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1807
1816
|
fingerprint: string;
|
|
1808
1817
|
operationKey: string;
|
|
1809
1818
|
}[];
|
|
1819
|
+
collectionKey?: string | undefined;
|
|
1810
1820
|
observations: {
|
|
1811
1821
|
currency: string;
|
|
1812
1822
|
ledgerFingerprint: string;
|
|
@@ -1817,6 +1827,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1817
1827
|
transactionIds: string[];
|
|
1818
1828
|
}[];
|
|
1819
1829
|
oldestHeldAt?: number | undefined;
|
|
1830
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
1820
1831
|
} | undefined;
|
|
1821
1832
|
attempted?: boolean | undefined;
|
|
1822
1833
|
country: string;
|
|
@@ -1847,7 +1858,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1847
1858
|
currency: string;
|
|
1848
1859
|
}[];
|
|
1849
1860
|
};
|
|
1850
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "adoption" | "adoption.claims" | "adoption.observations" | "adoption.oldestHeldAt" | "attempted" | "country" | "expectedRevision" | "mode" | "observedAt" | "observedSchedule" | "observedSchedule.interval" | "observedSchedule.monthlyDays" | "observedSchedule.weeklyDays" | "operationKey" | "ownerKey" | "previousSchedule" | "previousSchedule.interval" | "previousSchedule.monthlyDays" | "previousSchedule.weeklyDays" | "revision" | "status" | "targetSchedule" | "targetSchedule.interval" | "targetSchedule.monthlyDays" | "targetSchedule.weeklyDays" | "thresholds");
|
|
1861
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "adoption" | "adoption.claims" | "adoption.collectionKey" | "adoption.observations" | "adoption.oldestHeldAt" | "adoption.snapshotId" | "attempted" | "country" | "expectedRevision" | "mode" | "observedAt" | "observedSchedule" | "observedSchedule.interval" | "observedSchedule.monthlyDays" | "observedSchedule.weeklyDays" | "operationKey" | "ownerKey" | "previousSchedule" | "previousSchedule.interval" | "previousSchedule.monthlyDays" | "previousSchedule.weeklyDays" | "revision" | "status" | "targetSchedule" | "targetSchedule.interval" | "targetSchedule.monthlyDays" | "targetSchedule.weeklyDays" | "thresholds");
|
|
1851
1862
|
indexes: {
|
|
1852
1863
|
by_id: ["_id"];
|
|
1853
1864
|
by_creation_time: ["_creationTime"];
|
|
@@ -1875,6 +1886,8 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1875
1886
|
expectedRevision: number;
|
|
1876
1887
|
feeRevision?: number | undefined;
|
|
1877
1888
|
historical?: boolean | undefined;
|
|
1889
|
+
independentLiabilities?: number | undefined;
|
|
1890
|
+
liabilityRevision?: number | undefined;
|
|
1878
1891
|
observations: {
|
|
1879
1892
|
currency: string;
|
|
1880
1893
|
ledgerFingerprint: string;
|
|
@@ -1892,10 +1905,11 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1892
1905
|
requestId: string;
|
|
1893
1906
|
} | undefined;
|
|
1894
1907
|
returnTransactionId?: string | undefined;
|
|
1908
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
1895
1909
|
status: "canceled" | "paid" | "rejected" | "reserved" | "returned" | "submitted";
|
|
1896
1910
|
stripePayoutId?: string | undefined;
|
|
1897
1911
|
};
|
|
1898
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "allocations" | "amount" | "attemptedAt" | "currency" | "debitFee" | "debitTransactionId" | "destinationId" | "expectedRevision" | "feeRevision" | "historical" | "observations" | "operationKey" | "ownerKey" | "providerFee" | "rejection" | "rejection.code" | "rejection.requestId" | "returnTransactionId" | "status" | "stripePayoutId");
|
|
1912
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "allocations" | "amount" | "attemptedAt" | "currency" | "debitFee" | "debitTransactionId" | "destinationId" | "expectedRevision" | "feeRevision" | "historical" | "independentLiabilities" | "liabilityRevision" | "observations" | "operationKey" | "ownerKey" | "providerFee" | "rejection" | "rejection.code" | "rejection.requestId" | "returnTransactionId" | "snapshotId" | "status" | "stripePayoutId");
|
|
1899
1913
|
indexes: {
|
|
1900
1914
|
by_id: ["_id"];
|
|
1901
1915
|
by_creation_time: ["_creationTime"];
|
|
@@ -1916,7 +1930,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1916
1930
|
_id: import("convex/values").GenericId<"payoutRiskEvents">;
|
|
1917
1931
|
accountId: string;
|
|
1918
1932
|
key: string;
|
|
1919
|
-
kind: "allocation" | "claim" | "fee" | "provider_payout" | "transfer";
|
|
1933
|
+
kind: "allocation" | "claim" | "fee" | "liability" | "provider_payout" | "transfer";
|
|
1920
1934
|
removed?: boolean | undefined;
|
|
1921
1935
|
riskRevision: number;
|
|
1922
1936
|
};
|
|
@@ -1998,6 +2012,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1998
2012
|
_creationTime: number;
|
|
1999
2013
|
_id: import("convex/values").GenericId<"payoutSnapshotSources">;
|
|
2000
2014
|
allocationCurrency?: string | undefined;
|
|
2015
|
+
allocationDocId?: import("convex/values").GenericId<"payoutSourceAllocations"> | undefined;
|
|
2001
2016
|
allocationPresent: boolean;
|
|
2002
2017
|
amount: number;
|
|
2003
2018
|
currency: string;
|
|
@@ -2016,8 +2031,9 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2016
2031
|
sourceCreatedAt: number;
|
|
2017
2032
|
status: string;
|
|
2018
2033
|
stripeTransferId: string;
|
|
2034
|
+
transferDocId?: import("convex/values").GenericId<"transfers"> | undefined;
|
|
2019
2035
|
};
|
|
2020
|
-
fieldPaths: "_id" | ("_creationTime" | "allocationCurrency" | "allocationPresent" | "amount" | "currency" | "expectedPaid" | "expectedReserved" | "ledgerFingerprint" | "needsCheck" | "paidAmount" | "reinstatement" | "reservedAmount" | "reversalClaimedAmount" | "reversedAmount" | "role" | "snapshotId" | "sourceChargeId" | "sourceCreatedAt" | "status" | "stripeTransferId");
|
|
2036
|
+
fieldPaths: "_id" | ("_creationTime" | "allocationCurrency" | "allocationDocId" | "allocationPresent" | "amount" | "currency" | "expectedPaid" | "expectedReserved" | "ledgerFingerprint" | "needsCheck" | "paidAmount" | "reinstatement" | "reservedAmount" | "reversalClaimedAmount" | "reversedAmount" | "role" | "snapshotId" | "sourceChargeId" | "sourceCreatedAt" | "status" | "stripeTransferId" | "transferDocId");
|
|
2021
2037
|
indexes: {
|
|
2022
2038
|
by_id: ["_id"];
|
|
2023
2039
|
by_creation_time: ["_creationTime"];
|
|
@@ -2035,6 +2051,8 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2035
2051
|
accountId: string;
|
|
2036
2052
|
allocationCount: number;
|
|
2037
2053
|
allocationCursor?: string | undefined;
|
|
2054
|
+
boundOperationKey?: string | undefined;
|
|
2055
|
+
boundRiskRevision?: number | undefined;
|
|
2038
2056
|
claimCount: number;
|
|
2039
2057
|
claimCursor?: string | undefined;
|
|
2040
2058
|
deferredPositiveChanges: boolean;
|
|
@@ -2059,7 +2077,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2059
2077
|
sourceFence: number;
|
|
2060
2078
|
step: number;
|
|
2061
2079
|
};
|
|
2062
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "allocationCount" | "allocationCursor" | "claimCount" | "claimCursor" | "deferredPositiveChanges" | "expectedRevision" | "expiresAt" | "feeCount" | "feeCursor" | "initialRevision" | "initialRiskRevision" | "observedRevision" | "operationKey" | "ownerKey" | "phase" | "policyMode" | "policyOperationKey" | "providerChanged" | "readOnly" | "reason" | "riskRevision" | "sourceCount" | "sourceCursor" | "sourceFence" | "step");
|
|
2080
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "allocationCount" | "allocationCursor" | "boundOperationKey" | "boundRiskRevision" | "claimCount" | "claimCursor" | "deferredPositiveChanges" | "expectedRevision" | "expiresAt" | "feeCount" | "feeCursor" | "initialRevision" | "initialRiskRevision" | "observedRevision" | "operationKey" | "ownerKey" | "phase" | "policyMode" | "policyOperationKey" | "providerChanged" | "readOnly" | "reason" | "riskRevision" | "sourceCount" | "sourceCursor" | "sourceFence" | "step");
|
|
2063
2081
|
indexes: {
|
|
2064
2082
|
by_id: ["_id"];
|
|
2065
2083
|
by_creation_time: ["_creationTime"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AAiGA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AAiGA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAA0D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adoption.d.ts","sourceRoot":"","sources":["../../../src/component/payoutPolicy/adoption.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adoption.d.ts","sourceRoot":"","sources":["../../../src/component/payoutPolicy/adoption.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAQjD,mGAAmG;AACnG,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAC9C,KAAK,EAAE,KAAK,CAAC,OAAO,aAAa,CAAC,mBAyEnC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { adoptionCollection } from "../payoutSnapshots/adoption.js";
|
|
1
2
|
import { add, checkSnapshot, payoutClaimFingerprint, sourceById, } from "../payoutRelease/helpers.js";
|
|
2
3
|
import { readFees } from "../payoutRelease/fees.js";
|
|
3
4
|
/** Package-authenticated provider proof, rechecked against all local financial state under OCC. */
|
|
4
5
|
export async function validateAdoption(ctx, scope, proof) {
|
|
5
|
-
await
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const collected = await adoptionCollection(ctx, scope, proof);
|
|
7
|
+
await checkSnapshot(ctx, scope.accountId, proof.observations, true, undefined, collected?.sources);
|
|
8
|
+
const rows = collected?.claims ??
|
|
9
|
+
(await ctx.db
|
|
10
|
+
.query("payoutReleaseClaims")
|
|
11
|
+
.withIndex("by_account_status", (q) => q.eq("accountId", scope.accountId))
|
|
12
|
+
.take(101));
|
|
10
13
|
const expected = new Map(proof.claims.map((c) => [c.operationKey, c.fingerprint]));
|
|
11
|
-
if (rows.length > 100 ||
|
|
14
|
+
if ((!collected && rows.length > 100) ||
|
|
12
15
|
expected.size !== proof.claims.length ||
|
|
13
16
|
rows.length !== expected.size ||
|
|
14
17
|
rows.some((c) => c.ownerKey !== scope.ownerKey ||
|
|
@@ -18,7 +21,9 @@ export async function validateAdoption(ctx, scope, proof) {
|
|
|
18
21
|
throw new Error("Adoption payout history snapshot changed or is unresolved.");
|
|
19
22
|
const owed = new Map();
|
|
20
23
|
for (const o of proof.observations) {
|
|
21
|
-
const source =
|
|
24
|
+
const source = collected?.allocations?.has(o.stripeTransferId)
|
|
25
|
+
? collected.allocations.get(o.stripeTransferId)
|
|
26
|
+
: await sourceById(ctx, o.stripeTransferId);
|
|
22
27
|
if (source &&
|
|
23
28
|
(source.accountId !== scope.accountId ||
|
|
24
29
|
source.ownerKey !== scope.ownerKey ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adoption.js","sourceRoot":"","sources":["../../../src/component/payoutPolicy/adoption.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adoption.js","sourceRoot":"","sources":["../../../src/component/payoutPolicy/adoption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAIpE,OAAO,EACL,GAAG,EACH,aAAa,EACb,sBAAsB,EACtB,UAAU,GACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,mGAAmG;AACnG,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,GAAgB,EAChB,KAA8C,EAC9C,KAAkC;IAElC,MAAM,SAAS,GAAG,MAAM,kBAAkB,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC9D,MAAM,aAAa,CACjB,GAAG,EACH,KAAK,CAAC,SAAS,EACf,KAAK,CAAC,YAAY,EAClB,IAAI,EACJ,SAAS,EACT,SAAS,EAAE,OAAO,CACnB,CAAC;IACF,MAAM,IAAI,GACR,SAAS,EAAE,MAAM;QACjB,CAAC,MAAM,GAAG,CAAC,EAAE;aACV,KAAK,CAAC,qBAAqB,CAAC;aAC5B,SAAS,CAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;aACzE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAChB,MAAM,QAAQ,GAAG,IAAI,GAAG,CACtB,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CACzD,CAAC;IACF,IACE,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;QACjC,QAAQ,CAAC,IAAI,KAAK,KAAK,C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E,CAAC,CAAC,MAAM,EAAE,UAAU,IAAI,CAAC,CAAC,CAAC,CACpE,CACF,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,KAAK,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;QACtC,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,GAAG,EAAE,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;QACzD,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;YAAE,OAAO,GAAG,IAAI,CAAC;IAC5D,CAAC;IACD,IACE,KAAK,CAAC,YAAY,KAAK,SAAS;QAChC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC;YACxC,KAAK,CAAC,YAAY,GAAG,CAAC;YACtB,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAElC,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACzD,IAAI,OAAO,IAAI,KAAK,CAAC,YAAY,KAAK,SAAS;QAC7C,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,OAAO,KAAK,CAAC,YAAY,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;AAC1C,CAAC"}
|
|
@@ -5,6 +5,7 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
5
5
|
fingerprint: string;
|
|
6
6
|
operationKey: string;
|
|
7
7
|
}[];
|
|
8
|
+
collectionKey?: string | undefined;
|
|
8
9
|
observations: {
|
|
9
10
|
currency: string;
|
|
10
11
|
ledgerFingerprint: string;
|
|
@@ -15,6 +16,7 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
15
16
|
transactionIds: string[];
|
|
16
17
|
}[];
|
|
17
18
|
oldestHeldAt?: number | undefined;
|
|
19
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
18
20
|
} | undefined;
|
|
19
21
|
country: string;
|
|
20
22
|
expectedRevision: number;
|
|
@@ -40,6 +42,7 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
40
42
|
fingerprint: string;
|
|
41
43
|
operationKey: string;
|
|
42
44
|
}[];
|
|
45
|
+
collectionKey?: string | undefined;
|
|
43
46
|
observations: {
|
|
44
47
|
currency: string;
|
|
45
48
|
ledgerFingerprint: string;
|
|
@@ -50,6 +53,7 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
50
53
|
transactionIds: string[];
|
|
51
54
|
}[];
|
|
52
55
|
oldestHeldAt?: number | undefined;
|
|
56
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
53
57
|
} | undefined;
|
|
54
58
|
attempted?: boolean | undefined;
|
|
55
59
|
country: string;
|
|
@@ -98,6 +102,7 @@ export declare const confirm: import("convex/server").RegisteredMutation<"public
|
|
|
98
102
|
fingerprint: string;
|
|
99
103
|
operationKey: string;
|
|
100
104
|
}[];
|
|
105
|
+
collectionKey?: string | undefined;
|
|
101
106
|
observations: {
|
|
102
107
|
currency: string;
|
|
103
108
|
ledgerFingerprint: string;
|
|
@@ -108,6 +113,7 @@ export declare const confirm: import("convex/server").RegisteredMutation<"public
|
|
|
108
113
|
transactionIds: string[];
|
|
109
114
|
}[];
|
|
110
115
|
oldestHeldAt?: number | undefined;
|
|
116
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
111
117
|
} | undefined;
|
|
112
118
|
attempted?: boolean | undefined;
|
|
113
119
|
country: string;
|
|
@@ -145,6 +151,7 @@ export declare const beginAttempt: import("convex/server").RegisteredMutation<"p
|
|
|
145
151
|
fingerprint: string;
|
|
146
152
|
operationKey: string;
|
|
147
153
|
}[];
|
|
154
|
+
collectionKey?: string | undefined;
|
|
148
155
|
observations: {
|
|
149
156
|
currency: string;
|
|
150
157
|
ledgerFingerprint: string;
|
|
@@ -155,6 +162,7 @@ export declare const beginAttempt: import("convex/server").RegisteredMutation<"p
|
|
|
155
162
|
transactionIds: string[];
|
|
156
163
|
}[];
|
|
157
164
|
oldestHeldAt?: number | undefined;
|
|
165
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
158
166
|
} | undefined;
|
|
159
167
|
operationKey: string;
|
|
160
168
|
ownerKey: string;
|
|
@@ -167,6 +175,7 @@ export declare const beginAttempt: import("convex/server").RegisteredMutation<"p
|
|
|
167
175
|
fingerprint: string;
|
|
168
176
|
operationKey: string;
|
|
169
177
|
}[];
|
|
178
|
+
collectionKey?: string | undefined;
|
|
170
179
|
observations: {
|
|
171
180
|
currency: string;
|
|
172
181
|
ledgerFingerprint: string;
|
|
@@ -177,6 +186,7 @@ export declare const beginAttempt: import("convex/server").RegisteredMutation<"p
|
|
|
177
186
|
transactionIds: string[];
|
|
178
187
|
}[];
|
|
179
188
|
oldestHeldAt?: number | undefined;
|
|
189
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
180
190
|
} | undefined;
|
|
181
191
|
attempted?: boolean | undefined;
|
|
182
192
|
country: string;
|
|
@@ -225,6 +235,7 @@ export declare const cancelUnattempted: import("convex/server").RegisteredMutati
|
|
|
225
235
|
fingerprint: string;
|
|
226
236
|
operationKey: string;
|
|
227
237
|
}[];
|
|
238
|
+
collectionKey?: string | undefined;
|
|
228
239
|
observations: {
|
|
229
240
|
currency: string;
|
|
230
241
|
ledgerFingerprint: string;
|
|
@@ -235,6 +246,7 @@ export declare const cancelUnattempted: import("convex/server").RegisteredMutati
|
|
|
235
246
|
transactionIds: string[];
|
|
236
247
|
}[];
|
|
237
248
|
oldestHeldAt?: number | undefined;
|
|
249
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
238
250
|
} | undefined;
|
|
239
251
|
attempted?: boolean | undefined;
|
|
240
252
|
country: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/payoutPolicy/mutations.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/payoutPolicy/mutations.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkIlB,CAAC;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDlB,CAAC;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CvB,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6C5B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI7B,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU/B,CAAC"}
|
|
@@ -45,6 +45,7 @@ export declare const operation: import("convex/server").RegisteredQuery<"public"
|
|
|
45
45
|
fingerprint: string;
|
|
46
46
|
operationKey: string;
|
|
47
47
|
}[];
|
|
48
|
+
collectionKey?: string | undefined;
|
|
48
49
|
observations: {
|
|
49
50
|
currency: string;
|
|
50
51
|
ledgerFingerprint: string;
|
|
@@ -55,6 +56,7 @@ export declare const operation: import("convex/server").RegisteredQuery<"public"
|
|
|
55
56
|
transactionIds: string[];
|
|
56
57
|
}[];
|
|
57
58
|
oldestHeldAt?: number | undefined;
|
|
59
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
58
60
|
} | undefined;
|
|
59
61
|
attempted?: boolean | undefined;
|
|
60
62
|
country: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutPolicy/queries.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAId,CAAC;AACH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutPolicy/queries.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAId,CAAC;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAgBpB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4Bd,CAAC"}
|