@fantastic.dev/better-stripe 0.29.0 → 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 +10 -0
- package/MIGRATION.md +8 -0
- package/README.md +3 -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 +26 -6
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +13 -3
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.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/payoutQualification.js +1 -1
- 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 +13 -3
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.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/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 +72 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/earnings/triggers.d.ts +12 -4
- 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 +3 -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/mutations.d.ts +59 -0
- package/dist/component/payoutRelease/mutations.d.ts.map +1 -1
- package/dist/component/payoutRelease/mutations.js +25 -80
- 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.map +1 -1
- package/dist/component/payoutRelease/planning.js +5 -2
- package/dist/component/payoutRelease/planning.js.map +1 -1
- package/dist/component/payoutRelease/queries.d.ts +2 -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/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 +31 -19
- package/dist/component/payoutSnapshots/financial.d.ts.map +1 -1
- package/dist/component/payoutSnapshots/financial.js +28 -14
- package/dist/component/payoutSnapshots/financial.js.map +1 -1
- package/dist/component/payoutSnapshots/localState.d.ts +20 -16
- package/dist/component/payoutSnapshots/localState.d.ts.map +1 -1
- package/dist/component/payoutSnapshots/localState.js +13 -4
- package/dist/component/payoutSnapshots/localState.js.map +1 -1
- package/dist/component/payoutSnapshots/mutations.d.ts.map +1 -1
- package/dist/component/payoutSnapshots/mutations.js +1 -1
- package/dist/component/payoutSnapshots/mutations.js.map +1 -1
- package/dist/component/payoutSnapshots/queries.d.ts.map +1 -1
- package/dist/component/payoutSnapshots/queries.js +6 -4
- package/dist/component/payoutSnapshots/queries.js.map +1 -1
- package/dist/component/payoutSnapshots/schema.d.ts +5 -1
- package/dist/component/payoutSnapshots/schema.d.ts.map +1 -1
- package/dist/component/payoutSnapshots/schema.js +2 -0
- package/dist/component/payoutSnapshots/schema.js.map +1 -1
- package/dist/component/schema.d.ts +13 -3
- package/docs/settlement.md +61 -8
- 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/payoutLargeAdoption.test.ts +541 -0
- package/src/client/connect/payoutLargeAdoptionTestHelpers.ts +74 -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/payoutQualification.ts +10 -4
- package/src/client/connect/payoutReconciliation.ts +86 -7
- package/src/client/connect/payoutResumableProof.ts +41 -0
- package/src/client/connect/transferReceipt.ts +3 -2
- package/src/client/connect/transferReceiptBaseline.test.ts +55 -0
- package/src/client/payoutPolicy.ts +37 -23
- package/src/component/_generated/api.ts +4 -0
- package/src/component/_generated/component.ts +85 -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/mutations.ts +26 -96
- package/src/component/payoutRelease/outcome.ts +119 -0
- package/src/component/payoutRelease/planning.ts +5 -2
- package/src/component/payoutRelease/queries.ts +2 -0
- package/src/component/payoutSnapshots/adoption.ts +73 -0
- package/src/component/payoutSnapshots/financial.ts +33 -20
- package/src/component/payoutSnapshots/localState.ts +17 -3
- package/src/component/payoutSnapshots/mutations.ts +8 -1
- package/src/component/payoutSnapshots/queries.ts +8 -6
- package/src/component/payoutSnapshots/schema.ts +2 -0
|
@@ -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"];
|
|
@@ -725,6 +727,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
725
727
|
_creationTime: number;
|
|
726
728
|
_id: import("convex/values").GenericId<"payoutSnapshotSources">;
|
|
727
729
|
allocationCurrency?: string | undefined;
|
|
730
|
+
allocationDocId?: import("convex/values").GenericId<"payoutSourceAllocations"> | undefined;
|
|
728
731
|
allocationPresent: boolean;
|
|
729
732
|
amount: number;
|
|
730
733
|
currency: string;
|
|
@@ -743,8 +746,9 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
743
746
|
sourceCreatedAt: number;
|
|
744
747
|
status: string;
|
|
745
748
|
stripeTransferId: string;
|
|
749
|
+
transferDocId?: import("convex/values").GenericId<"transfers"> | undefined;
|
|
746
750
|
};
|
|
747
|
-
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");
|
|
748
752
|
indexes: {
|
|
749
753
|
by_id: ["_id"];
|
|
750
754
|
by_creation_time: ["_creationTime"];
|
|
@@ -1812,6 +1816,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1812
1816
|
fingerprint: string;
|
|
1813
1817
|
operationKey: string;
|
|
1814
1818
|
}[];
|
|
1819
|
+
collectionKey?: string | undefined;
|
|
1815
1820
|
observations: {
|
|
1816
1821
|
currency: string;
|
|
1817
1822
|
ledgerFingerprint: string;
|
|
@@ -1822,6 +1827,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1822
1827
|
transactionIds: string[];
|
|
1823
1828
|
}[];
|
|
1824
1829
|
oldestHeldAt?: number | undefined;
|
|
1830
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
1825
1831
|
} | undefined;
|
|
1826
1832
|
attempted?: boolean | undefined;
|
|
1827
1833
|
country: string;
|
|
@@ -1852,7 +1858,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1852
1858
|
currency: string;
|
|
1853
1859
|
}[];
|
|
1854
1860
|
};
|
|
1855
|
-
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");
|
|
1856
1862
|
indexes: {
|
|
1857
1863
|
by_id: ["_id"];
|
|
1858
1864
|
by_creation_time: ["_creationTime"];
|
|
@@ -2006,6 +2012,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2006
2012
|
_creationTime: number;
|
|
2007
2013
|
_id: import("convex/values").GenericId<"payoutSnapshotSources">;
|
|
2008
2014
|
allocationCurrency?: string | undefined;
|
|
2015
|
+
allocationDocId?: import("convex/values").GenericId<"payoutSourceAllocations"> | undefined;
|
|
2009
2016
|
allocationPresent: boolean;
|
|
2010
2017
|
amount: number;
|
|
2011
2018
|
currency: string;
|
|
@@ -2024,8 +2031,9 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2024
2031
|
sourceCreatedAt: number;
|
|
2025
2032
|
status: string;
|
|
2026
2033
|
stripeTransferId: string;
|
|
2034
|
+
transferDocId?: import("convex/values").GenericId<"transfers"> | undefined;
|
|
2027
2035
|
};
|
|
2028
|
-
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");
|
|
2029
2037
|
indexes: {
|
|
2030
2038
|
by_id: ["_id"];
|
|
2031
2039
|
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,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ourceRoot":"","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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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"}
|
|
@@ -27,6 +27,7 @@ export declare const adoptionProof: import("convex/values").VObject<{
|
|
|
27
27
|
fingerprint: string;
|
|
28
28
|
operationKey: string;
|
|
29
29
|
}[];
|
|
30
|
+
collectionKey?: string | undefined;
|
|
30
31
|
observations: {
|
|
31
32
|
currency: string;
|
|
32
33
|
ledgerFingerprint: string;
|
|
@@ -37,7 +38,10 @@ export declare const adoptionProof: import("convex/values").VObject<{
|
|
|
37
38
|
transactionIds: string[];
|
|
38
39
|
}[];
|
|
39
40
|
oldestHeldAt?: number | undefined;
|
|
41
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
40
42
|
}, {
|
|
43
|
+
snapshotId: import("convex/values").VId<import("convex/values").GenericId<"payoutSnapshots"> | undefined, "optional">;
|
|
44
|
+
collectionKey: import("convex/values").VString<string | undefined, "optional">;
|
|
41
45
|
observations: import("convex/values").VArray<{
|
|
42
46
|
currency: string;
|
|
43
47
|
ledgerFingerprint: string;
|
|
@@ -74,7 +78,7 @@ export declare const adoptionProof: import("convex/values").VObject<{
|
|
|
74
78
|
fingerprint: import("convex/values").VString<string, "required">;
|
|
75
79
|
}, "required", "fingerprint" | "operationKey">, "required">;
|
|
76
80
|
oldestHeldAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
77
|
-
}, "required", "claims" | "observations" | "oldestHeldAt">;
|
|
81
|
+
}, "required", "claims" | "collectionKey" | "observations" | "oldestHeldAt" | "snapshotId">;
|
|
78
82
|
export declare const prepareFields: {
|
|
79
83
|
accountId: import("convex/values").VString<string, "required">;
|
|
80
84
|
ownerKey: import("convex/values").VString<string, "required">;
|
|
@@ -83,6 +87,7 @@ export declare const prepareFields: {
|
|
|
83
87
|
fingerprint: string;
|
|
84
88
|
operationKey: string;
|
|
85
89
|
}[];
|
|
90
|
+
collectionKey?: string | undefined;
|
|
86
91
|
observations: {
|
|
87
92
|
currency: string;
|
|
88
93
|
ledgerFingerprint: string;
|
|
@@ -93,7 +98,10 @@ export declare const prepareFields: {
|
|
|
93
98
|
transactionIds: string[];
|
|
94
99
|
}[];
|
|
95
100
|
oldestHeldAt?: number | undefined;
|
|
101
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
96
102
|
} | undefined, {
|
|
103
|
+
snapshotId: import("convex/values").VId<import("convex/values").GenericId<"payoutSnapshots"> | undefined, "optional">;
|
|
104
|
+
collectionKey: import("convex/values").VString<string | undefined, "optional">;
|
|
97
105
|
observations: import("convex/values").VArray<{
|
|
98
106
|
currency: string;
|
|
99
107
|
ledgerFingerprint: string;
|
|
@@ -130,7 +138,7 @@ export declare const prepareFields: {
|
|
|
130
138
|
fingerprint: import("convex/values").VString<string, "required">;
|
|
131
139
|
}, "required", "fingerprint" | "operationKey">, "required">;
|
|
132
140
|
oldestHeldAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
133
|
-
}, "optional", "claims" | "observations" | "oldestHeldAt">;
|
|
141
|
+
}, "optional", "claims" | "collectionKey" | "observations" | "oldestHeldAt" | "snapshotId">;
|
|
134
142
|
operationKey: import("convex/values").VString<string, "required">;
|
|
135
143
|
expectedRevision: import("convex/values").VFloat64<number, "required">;
|
|
136
144
|
mode: import("convex/values").VUnion<"custom" | "stripe_managed", [import("convex/values").VLiteral<"stripe_managed", "required">, import("convex/values").VLiteral<"custom", "required">], "required", never>;
|
|
@@ -256,6 +264,7 @@ export declare const operationFields: {
|
|
|
256
264
|
fingerprint: string;
|
|
257
265
|
operationKey: string;
|
|
258
266
|
}[];
|
|
267
|
+
collectionKey?: string | undefined;
|
|
259
268
|
observations: {
|
|
260
269
|
currency: string;
|
|
261
270
|
ledgerFingerprint: string;
|
|
@@ -266,7 +275,10 @@ export declare const operationFields: {
|
|
|
266
275
|
transactionIds: string[];
|
|
267
276
|
}[];
|
|
268
277
|
oldestHeldAt?: number | undefined;
|
|
278
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
269
279
|
} | undefined, {
|
|
280
|
+
snapshotId: import("convex/values").VId<import("convex/values").GenericId<"payoutSnapshots"> | undefined, "optional">;
|
|
281
|
+
collectionKey: import("convex/values").VString<string | undefined, "optional">;
|
|
270
282
|
observations: import("convex/values").VArray<{
|
|
271
283
|
currency: string;
|
|
272
284
|
ledgerFingerprint: string;
|
|
@@ -303,7 +315,7 @@ export declare const operationFields: {
|
|
|
303
315
|
fingerprint: import("convex/values").VString<string, "required">;
|
|
304
316
|
}, "required", "fingerprint" | "operationKey">, "required">;
|
|
305
317
|
oldestHeldAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
306
|
-
}, "optional", "claims" | "observations" | "oldestHeldAt">;
|
|
318
|
+
}, "optional", "claims" | "collectionKey" | "observations" | "oldestHeldAt" | "snapshotId">;
|
|
307
319
|
operationKey: import("convex/values").VString<string, "required">;
|
|
308
320
|
expectedRevision: import("convex/values").VFloat64<number, "required">;
|
|
309
321
|
mode: import("convex/values").VUnion<"custom" | "stripe_managed", [import("convex/values").VLiteral<"stripe_managed", "required">, import("convex/values").VLiteral<"custom", "required">], "required", never>;
|
|
@@ -447,6 +459,7 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
447
459
|
fingerprint: string;
|
|
448
460
|
operationKey: string;
|
|
449
461
|
}[];
|
|
462
|
+
collectionKey?: string | undefined;
|
|
450
463
|
observations: {
|
|
451
464
|
currency: string;
|
|
452
465
|
ledgerFingerprint: string;
|
|
@@ -457,6 +470,7 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
457
470
|
transactionIds: string[];
|
|
458
471
|
}[];
|
|
459
472
|
oldestHeldAt?: number | undefined;
|
|
473
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
460
474
|
} | undefined;
|
|
461
475
|
attempted?: boolean | undefined;
|
|
462
476
|
country: string;
|
|
@@ -494,6 +508,7 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
494
508
|
fingerprint: string;
|
|
495
509
|
operationKey: string;
|
|
496
510
|
}[];
|
|
511
|
+
collectionKey?: string | undefined;
|
|
497
512
|
observations: {
|
|
498
513
|
currency: string;
|
|
499
514
|
ledgerFingerprint: string;
|
|
@@ -504,7 +519,10 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
504
519
|
transactionIds: string[];
|
|
505
520
|
}[];
|
|
506
521
|
oldestHeldAt?: number | undefined;
|
|
522
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
507
523
|
} | undefined, {
|
|
524
|
+
snapshotId: import("convex/values").VId<import("convex/values").GenericId<"payoutSnapshots"> | undefined, "optional">;
|
|
525
|
+
collectionKey: import("convex/values").VString<string | undefined, "optional">;
|
|
508
526
|
observations: import("convex/values").VArray<{
|
|
509
527
|
currency: string;
|
|
510
528
|
ledgerFingerprint: string;
|
|
@@ -541,7 +559,7 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
541
559
|
fingerprint: import("convex/values").VString<string, "required">;
|
|
542
560
|
}, "required", "fingerprint" | "operationKey">, "required">;
|
|
543
561
|
oldestHeldAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
544
|
-
}, "optional", "claims" | "observations" | "oldestHeldAt">;
|
|
562
|
+
}, "optional", "claims" | "collectionKey" | "observations" | "oldestHeldAt" | "snapshotId">;
|
|
545
563
|
operationKey: import("convex/values").VString<string, "required">;
|
|
546
564
|
expectedRevision: import("convex/values").VFloat64<number, "required">;
|
|
547
565
|
mode: import("convex/values").VUnion<"custom" | "stripe_managed", [import("convex/values").VLiteral<"stripe_managed", "required">, import("convex/values").VLiteral<"custom", "required">], "required", never>;
|
|
@@ -589,7 +607,7 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
589
607
|
attempted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
590
608
|
_id: import("convex/values").VId<import("convex/values").GenericId<"payoutPolicyOperations">, "required">;
|
|
591
609
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
592
|
-
}, "required", "_creationTime" | "_id" | "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">;
|
|
610
|
+
}, "required", "_creationTime" | "_id" | "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">;
|
|
593
611
|
export declare const policiesTable: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
594
612
|
accountId: string;
|
|
595
613
|
country: string;
|
|
@@ -686,6 +704,7 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
686
704
|
fingerprint: string;
|
|
687
705
|
operationKey: string;
|
|
688
706
|
}[];
|
|
707
|
+
collectionKey?: string | undefined;
|
|
689
708
|
observations: {
|
|
690
709
|
currency: string;
|
|
691
710
|
ledgerFingerprint: string;
|
|
@@ -696,6 +715,7 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
696
715
|
transactionIds: string[];
|
|
697
716
|
}[];
|
|
698
717
|
oldestHeldAt?: number | undefined;
|
|
718
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
699
719
|
} | undefined;
|
|
700
720
|
attempted?: boolean | undefined;
|
|
701
721
|
country: string;
|
|
@@ -733,6 +753,7 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
733
753
|
fingerprint: string;
|
|
734
754
|
operationKey: string;
|
|
735
755
|
}[];
|
|
756
|
+
collectionKey?: string | undefined;
|
|
736
757
|
observations: {
|
|
737
758
|
currency: string;
|
|
738
759
|
ledgerFingerprint: string;
|
|
@@ -743,7 +764,10 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
743
764
|
transactionIds: string[];
|
|
744
765
|
}[];
|
|
745
766
|
oldestHeldAt?: number | undefined;
|
|
767
|
+
snapshotId?: import("convex/values").GenericId<"payoutSnapshots"> | undefined;
|
|
746
768
|
} | undefined, {
|
|
769
|
+
snapshotId: import("convex/values").VId<import("convex/values").GenericId<"payoutSnapshots"> | undefined, "optional">;
|
|
770
|
+
collectionKey: import("convex/values").VString<string | undefined, "optional">;
|
|
747
771
|
observations: import("convex/values").VArray<{
|
|
748
772
|
currency: string;
|
|
749
773
|
ledgerFingerprint: string;
|
|
@@ -780,7 +804,7 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
780
804
|
fingerprint: import("convex/values").VString<string, "required">;
|
|
781
805
|
}, "required", "fingerprint" | "operationKey">, "required">;
|
|
782
806
|
oldestHeldAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
783
|
-
}, "optional", "claims" | "observations" | "oldestHeldAt">;
|
|
807
|
+
}, "optional", "claims" | "collectionKey" | "observations" | "oldestHeldAt" | "snapshotId">;
|
|
784
808
|
operationKey: import("convex/values").VString<string, "required">;
|
|
785
809
|
expectedRevision: import("convex/values").VFloat64<number, "required">;
|
|
786
810
|
mode: import("convex/values").VUnion<"custom" | "stripe_managed", [import("convex/values").VLiteral<"stripe_managed", "required">, import("convex/values").VLiteral<"custom", "required">], "required", never>;
|
|
@@ -826,7 +850,7 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
826
850
|
}, "required", "interval" | "monthlyDays" | "weeklyDays">;
|
|
827
851
|
status: import("convex/values").VUnion<"canceled" | "complete" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"complete", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
|
|
828
852
|
attempted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
829
|
-
}, "required", "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">, {
|
|
853
|
+
}, "required", "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">, {
|
|
830
854
|
by_operation: ["operationKey", "_creationTime"];
|
|
831
855
|
}, {}, {}>;
|
|
832
856
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/payoutPolicy/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;IAAK,SAAS;IAAc,QAAQ;CAAc,CAAC;AAC3E,eAAO,MAAM,QAAQ;;;;;;;;yDASnB,CAAC;AACH,eAAO,MAAM,IAAI,0MAA4D,CAAC;AAC9E,eAAO,MAAM,UAAU;;;;;;;;;kDAEtB,CAAC;AACF,eAAO,MAAM,aAAa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;;;;;;;;;;;;;;;;;6pBAIvB,CAAC;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIoB,CAAC;AAC/C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAG3B,CAAC"}
|
|
@@ -10,6 +10,8 @@ export const schedule = v.object({
|
|
|
10
10
|
export const mode = v.union(v.literal("stripe_managed"), v.literal("custom"));
|
|
11
11
|
export const thresholds = v.array(v.object({ currency: v.string(), amount: v.number() }));
|
|
12
12
|
export const adoptionProof = v.object({
|
|
13
|
+
snapshotId: v.optional(v.id("payoutSnapshots")),
|
|
14
|
+
collectionKey: v.optional(v.string()),
|
|
13
15
|
observations: v.array(observation),
|
|
14
16
|
claims: v.array(v.object({ operationKey: v.string(), fingerprint: v.string() })),
|
|
15
17
|
oldestHeldAt: v.optional(v.number()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/component/payoutPolicy/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;AAC3E,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,QAAQ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|
1
2
|
import { type Infer } from "convex/values";
|
|
2
3
|
import type { MutationCtx } from "../_generated/server.js";
|
|
3
4
|
export declare const historicalArgs: {
|
|
@@ -70,7 +71,7 @@ type Args = {
|
|
|
70
71
|
[K in keyof typeof historicalArgs]: Infer<(typeof historicalArgs)[K]>;
|
|
71
72
|
};
|
|
72
73
|
/** Trusted package observations only. Provider history and historical maturity are verified upstream. */
|
|
73
|
-
export declare function adoptHistoricalPayout(ctx: MutationCtx, args: Args): Promise<{
|
|
74
|
+
export declare function adoptHistoricalPayout(ctx: MutationCtx, args: Args, collected?: Map<string, Doc<"transfers">>): Promise<{
|
|
74
75
|
_creationTime: number;
|
|
75
76
|
_id: import("convex/values").GenericId<"payoutReleaseClaims">;
|
|
76
77
|
accountId: string;
|
|
@@ -114,6 +115,7 @@ export declare function adoptHistoricalPayout(ctx: MutationCtx, args: Args): Pro
|
|
|
114
115
|
export declare const historicalBatchArgs: {
|
|
115
116
|
accountId: import("convex/values").VString<string, "required">;
|
|
116
117
|
ownerKey: import("convex/values").VString<string, "required">;
|
|
118
|
+
snapshotId: import("convex/values").VId<import("convex/values").GenericId<"payoutSnapshots"> | undefined, "optional">;
|
|
117
119
|
expectedRevision: import("convex/values").VFloat64<number, "required">;
|
|
118
120
|
observations: import("convex/values").VArray<{
|
|
119
121
|
currency: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adoption.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRelease/adoption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAW3D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB1B,CAAC;AACF,KAAK,IAAI,GAAG;KACT,CAAC,IAAI,MAAM,OAAO,cAAc,GAAG,KAAK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