@fantastic.dev/better-stripe 0.93.0 → 0.95.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 +12 -0
- package/README.md +1 -1
- package/dist/client/billing/renewalAttach/internal/operationJournal.d.ts +47 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.js +388 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts +24 -5
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js +182 -4
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts +13 -0
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js +43 -0
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.d.ts +32 -0
- package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.js +105 -0
- package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/ownedAwaitFactory.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/producer/ownedAwaitFactory.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/ownedAwaitFactory.js +59 -0
- package/dist/client/billing/renewalAttach/internal/producer/ownedAwaitFactory.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/ownerFactory.d.ts +11 -0
- package/dist/client/billing/renewalAttach/internal/producer/ownerFactory.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/ownerFactory.js +121 -0
- package/dist/client/billing/renewalAttach/internal/producer/ownerFactory.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/stockDelegateFactory.d.ts +6 -0
- package/dist/client/billing/renewalAttach/internal/producer/stockDelegateFactory.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/stockDelegateFactory.js +16 -0
- package/dist/client/billing/renewalAttach/internal/producer/stockDelegateFactory.js.map +1 -0
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +32 -32
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +16 -16
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/balanceFunding/mutations.d.ts +43 -43
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
- package/dist/component/usageCredits/accounting.fixtures.d.ts +16 -16
- package/docs/renewal-context-reads.md +57 -5
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/operationJournal.acknowledgement.integration.test.ts +500 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.c10.integration.test.ts +560 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.controls.integration.test.ts +356 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.integration.test.ts +181 -1
- package/src/client/billing/renewalAttach/internal/operationJournal.methods.integration.test.ts +534 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.ts +573 -0
- package/src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts +246 -8
- package/src/client/billing/renewalAttach/internal/producer/invocationProducer.ts +58 -0
- package/src/client/billing/renewalAttach/internal/producer/lineageAuthority.ts +161 -0
- package/src/client/billing/renewalAttach/internal/producer/ownedAwaitFactory.ts +54 -0
- package/src/client/billing/renewalAttach/internal/producer/ownerFactory.ts +124 -0
- package/src/client/billing/renewalAttach/internal/producer/producerGuards.integration.test.ts +323 -0
- package/src/client/billing/renewalAttach/internal/producer/producerInitial.integration.test.ts +301 -0
- package/src/client/billing/renewalAttach/internal/producer/producerIsolation.integration.test.ts +531 -0
- package/src/client/billing/renewalAttach/internal/producer/producerOwner.integration.test.ts +457 -0
- package/src/client/billing/renewalAttach/internal/producer/stockDelegateFactory.ts +23 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialDeclarations.ts +5 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialOperation.ts +80 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { readInitialLineage } from "./lineageAuthority.js";
|
|
2
|
+
import { types } from "node:util";
|
|
3
|
+
const owners = new WeakMap();
|
|
4
|
+
function stop() {
|
|
5
|
+
throw Error("INITIAL_OWNER_STOP");
|
|
6
|
+
}
|
|
7
|
+
/** One canonical, independently retired Owner per original private lineage. */
|
|
8
|
+
export function ownerForInitialLineage(token) {
|
|
9
|
+
const existing = owners.get(token);
|
|
10
|
+
if (existing)
|
|
11
|
+
return existing;
|
|
12
|
+
const lineage = readInitialLineage(token);
|
|
13
|
+
const { basis, policy } = lineage;
|
|
14
|
+
let closed = false;
|
|
15
|
+
let checking = false;
|
|
16
|
+
let last = null;
|
|
17
|
+
const listeners = new Set();
|
|
18
|
+
let timer;
|
|
19
|
+
function retire() {
|
|
20
|
+
if (closed)
|
|
21
|
+
return;
|
|
22
|
+
closed = true;
|
|
23
|
+
if (timer !== undefined)
|
|
24
|
+
clearTimeout(timer);
|
|
25
|
+
const active = [...listeners];
|
|
26
|
+
listeners.clear();
|
|
27
|
+
for (const listener of active) {
|
|
28
|
+
if (!listener.active)
|
|
29
|
+
continue;
|
|
30
|
+
listener.active = false;
|
|
31
|
+
try {
|
|
32
|
+
Reflect.apply(listener.fn, undefined, []);
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
/* Retirement cannot be reversed by a waiter. */
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function check() {
|
|
40
|
+
if (closed || checking) {
|
|
41
|
+
retire();
|
|
42
|
+
stop();
|
|
43
|
+
}
|
|
44
|
+
checking = true;
|
|
45
|
+
try {
|
|
46
|
+
if (readInitialLineage(token) !== lineage)
|
|
47
|
+
stop();
|
|
48
|
+
const wallMs = lineage.wall();
|
|
49
|
+
const ns = lineage.monotonic();
|
|
50
|
+
const nowSeconds = Math.floor(wallMs / 1000);
|
|
51
|
+
if (!Number.isSafeInteger(wallMs) ||
|
|
52
|
+
wallMs < basis.startWallMs ||
|
|
53
|
+
wallMs >= basis.workEndWallMs ||
|
|
54
|
+
wallMs >= basis.endWallMs ||
|
|
55
|
+
ns < lineage.initialHighNs ||
|
|
56
|
+
ns >= basis.workEndNs ||
|
|
57
|
+
ns >= basis.endNs ||
|
|
58
|
+
(last && (wallMs < last.wallMs || ns < last.ns)) ||
|
|
59
|
+
nowSeconds < policy.firstDispatchedAt ||
|
|
60
|
+
nowSeconds - policy.firstDispatchedAt >= 86400 ||
|
|
61
|
+
nowSeconds < policy.periodStart ||
|
|
62
|
+
nowSeconds >= policy.periodEnd ||
|
|
63
|
+
closed)
|
|
64
|
+
stop();
|
|
65
|
+
last = Object.freeze({ wallMs, ns, nowSeconds, retired: false });
|
|
66
|
+
return last;
|
|
67
|
+
}
|
|
68
|
+
catch {
|
|
69
|
+
retire();
|
|
70
|
+
return stop();
|
|
71
|
+
}
|
|
72
|
+
finally {
|
|
73
|
+
checking = false;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const owner = Object.freeze({
|
|
77
|
+
get basis() {
|
|
78
|
+
if (closed)
|
|
79
|
+
stop();
|
|
80
|
+
return basis;
|
|
81
|
+
},
|
|
82
|
+
check,
|
|
83
|
+
sample: check,
|
|
84
|
+
retire,
|
|
85
|
+
subscribe(listener) {
|
|
86
|
+
if (typeof listener !== "function" || types.isProxy(listener)) {
|
|
87
|
+
retire();
|
|
88
|
+
stop();
|
|
89
|
+
}
|
|
90
|
+
if (closed) {
|
|
91
|
+
try {
|
|
92
|
+
listener();
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
/* Already retired. */
|
|
96
|
+
}
|
|
97
|
+
return () => { };
|
|
98
|
+
}
|
|
99
|
+
const record = { fn: listener, active: true };
|
|
100
|
+
listeners.add(record);
|
|
101
|
+
return () => {
|
|
102
|
+
record.active = false;
|
|
103
|
+
listeners.delete(record);
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
owners.set(token, owner);
|
|
108
|
+
try {
|
|
109
|
+
check();
|
|
110
|
+
// Absolute original cutoff, never a new budget when a continuation resumes.
|
|
111
|
+
timer = setTimeout(retire, Math.max(0, basis.workEndWallMs - lineage.wall()));
|
|
112
|
+
timer.unref?.();
|
|
113
|
+
check();
|
|
114
|
+
return owner;
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
retire();
|
|
118
|
+
throw error;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=ownerFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ownerFactory.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/producer/ownerFactory.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type Stripe from "stripe";
|
|
2
|
+
/** Fixed selected client and original receiver; no replacement-client parameter. */
|
|
3
|
+
export declare function stockDelegateForInitialLineage(token: object): Readonly<{
|
|
4
|
+
rawRequest: Stripe["rawRequest"];
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=stockDelegateFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stockDelegateFactory.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/producer/stockDelegateFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAKjC,oFAAoF;AACpF,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC;IACtE,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;CAClC,CAAC,CAcD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { readInitialLineage } from "./lineageAuthority.js";
|
|
2
|
+
import { ownerForInitialLineage } from "./ownerFactory.js";
|
|
3
|
+
import { ownedAwaitForInitialLineage } from "./ownedAwaitFactory.js";
|
|
4
|
+
/** Fixed selected client and original receiver; no replacement-client parameter. */
|
|
5
|
+
export function stockDelegateForInitialLineage(token) {
|
|
6
|
+
const lineage = readInitialLineage(token);
|
|
7
|
+
const owner = ownerForInitialLineage(token);
|
|
8
|
+
const owned = ownedAwaitForInitialLineage(token);
|
|
9
|
+
return Object.freeze({
|
|
10
|
+
rawRequest(...args) {
|
|
11
|
+
owner.check();
|
|
12
|
+
return owned(() => Reflect.apply(lineage.method, lineage.client, args));
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=stockDelegateFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stockDelegateFactory.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/producer/stockDelegateFactory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAErE,oFAAoF;AACpF,MAAM,UAAU,8BAA8B,CAAC,KAAa;IAG1D,MAAM,OAAO,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,KAAK,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACjD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,UAAU,CACR,GAAG,IAAsC;YAEzC,KAAK,CAAC,KAAK,EAAE,CAAC;YACd,OAAO,KAAK,CAAC,GAAG,EAAE,CAChB,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAChB,CAAC;QACxC,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -2641,14 +2641,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2641
2641
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2642
2642
|
requestKey: string;
|
|
2643
2643
|
result?: {
|
|
2644
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2645
|
-
retryable: false;
|
|
2646
|
-
status: "conflict";
|
|
2647
|
-
} | {
|
|
2648
|
-
reason: "policy_invalid";
|
|
2649
|
-
retryable: false;
|
|
2650
|
-
status: "rejected";
|
|
2651
|
-
} | {
|
|
2652
2644
|
operation: {
|
|
2653
2645
|
accountId: string;
|
|
2654
2646
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2659,6 +2651,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2659
2651
|
} | {
|
|
2660
2652
|
enabled: boolean;
|
|
2661
2653
|
status: "unchanged";
|
|
2654
|
+
} | {
|
|
2655
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2656
|
+
retryable: false;
|
|
2657
|
+
status: "conflict";
|
|
2658
|
+
} | {
|
|
2659
|
+
reason: "policy_invalid";
|
|
2660
|
+
retryable: false;
|
|
2661
|
+
status: "rejected";
|
|
2662
2662
|
} | {
|
|
2663
2663
|
reason: "provider_pending";
|
|
2664
2664
|
retryable: true;
|
|
@@ -2669,14 +2669,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2669
2669
|
payload: import("convex/values").VString<string, "required">;
|
|
2670
2670
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2671
2671
|
result: import("convex/values").VUnion<{
|
|
2672
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2673
|
-
retryable: false;
|
|
2674
|
-
status: "conflict";
|
|
2675
|
-
} | {
|
|
2676
|
-
reason: "policy_invalid";
|
|
2677
|
-
retryable: false;
|
|
2678
|
-
status: "rejected";
|
|
2679
|
-
} | {
|
|
2680
2672
|
operation: {
|
|
2681
2673
|
accountId: string;
|
|
2682
2674
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2687,6 +2679,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
2687
2679
|
} | {
|
|
2688
2680
|
enabled: boolean;
|
|
2689
2681
|
status: "unchanged";
|
|
2682
|
+
} | {
|
|
2683
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2684
|
+
retryable: false;
|
|
2685
|
+
status: "conflict";
|
|
2686
|
+
} | {
|
|
2687
|
+
reason: "policy_invalid";
|
|
2688
|
+
retryable: false;
|
|
2689
|
+
status: "rejected";
|
|
2690
2690
|
} | {
|
|
2691
2691
|
reason: "provider_pending";
|
|
2692
2692
|
retryable: true;
|
|
@@ -7777,14 +7777,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7777
7777
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
7778
7778
|
requestKey: string;
|
|
7779
7779
|
result?: {
|
|
7780
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7781
|
-
retryable: false;
|
|
7782
|
-
status: "conflict";
|
|
7783
|
-
} | {
|
|
7784
|
-
reason: "policy_invalid";
|
|
7785
|
-
retryable: false;
|
|
7786
|
-
status: "rejected";
|
|
7787
|
-
} | {
|
|
7788
7780
|
operation: {
|
|
7789
7781
|
accountId: string;
|
|
7790
7782
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7795,6 +7787,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7795
7787
|
} | {
|
|
7796
7788
|
enabled: boolean;
|
|
7797
7789
|
status: "unchanged";
|
|
7790
|
+
} | {
|
|
7791
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7792
|
+
retryable: false;
|
|
7793
|
+
status: "conflict";
|
|
7794
|
+
} | {
|
|
7795
|
+
reason: "policy_invalid";
|
|
7796
|
+
retryable: false;
|
|
7797
|
+
status: "rejected";
|
|
7798
7798
|
} | {
|
|
7799
7799
|
reason: "provider_pending";
|
|
7800
7800
|
retryable: true;
|
|
@@ -7805,14 +7805,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7805
7805
|
payload: import("convex/values").VString<string, "required">;
|
|
7806
7806
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
7807
7807
|
result: import("convex/values").VUnion<{
|
|
7808
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7809
|
-
retryable: false;
|
|
7810
|
-
status: "conflict";
|
|
7811
|
-
} | {
|
|
7812
|
-
reason: "policy_invalid";
|
|
7813
|
-
retryable: false;
|
|
7814
|
-
status: "rejected";
|
|
7815
|
-
} | {
|
|
7816
7808
|
operation: {
|
|
7817
7809
|
accountId: string;
|
|
7818
7810
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -7823,6 +7815,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
7823
7815
|
} | {
|
|
7824
7816
|
enabled: boolean;
|
|
7825
7817
|
status: "unchanged";
|
|
7818
|
+
} | {
|
|
7819
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
7820
|
+
retryable: false;
|
|
7821
|
+
status: "conflict";
|
|
7822
|
+
} | {
|
|
7823
|
+
reason: "policy_invalid";
|
|
7824
|
+
retryable: false;
|
|
7825
|
+
status: "rejected";
|
|
7826
7826
|
} | {
|
|
7827
7827
|
reason: "provider_pending";
|
|
7828
7828
|
retryable: true;
|
|
@@ -2642,6 +2642,14 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
2642
2642
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2643
2643
|
requestKey: string;
|
|
2644
2644
|
result?: {
|
|
2645
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2646
|
+
retryable: false;
|
|
2647
|
+
status: "conflict";
|
|
2648
|
+
} | {
|
|
2649
|
+
reason: "policy_invalid";
|
|
2650
|
+
retryable: false;
|
|
2651
|
+
status: "rejected";
|
|
2652
|
+
} | {
|
|
2645
2653
|
operation: {
|
|
2646
2654
|
accountId: string;
|
|
2647
2655
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2652,14 +2660,6 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
2652
2660
|
} | {
|
|
2653
2661
|
enabled: boolean;
|
|
2654
2662
|
status: "unchanged";
|
|
2655
|
-
} | {
|
|
2656
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2657
|
-
retryable: false;
|
|
2658
|
-
status: "conflict";
|
|
2659
|
-
} | {
|
|
2660
|
-
reason: "policy_invalid";
|
|
2661
|
-
retryable: false;
|
|
2662
|
-
status: "rejected";
|
|
2663
2663
|
} | {
|
|
2664
2664
|
reason: "provider_pending";
|
|
2665
2665
|
retryable: true;
|
|
@@ -2670,6 +2670,14 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
2670
2670
|
payload: import("convex/values").VString<string, "required">;
|
|
2671
2671
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2672
2672
|
result: import("convex/values").VUnion<{
|
|
2673
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2674
|
+
retryable: false;
|
|
2675
|
+
status: "conflict";
|
|
2676
|
+
} | {
|
|
2677
|
+
reason: "policy_invalid";
|
|
2678
|
+
retryable: false;
|
|
2679
|
+
status: "rejected";
|
|
2680
|
+
} | {
|
|
2673
2681
|
operation: {
|
|
2674
2682
|
accountId: string;
|
|
2675
2683
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2680,14 +2688,6 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
2680
2688
|
} | {
|
|
2681
2689
|
enabled: boolean;
|
|
2682
2690
|
status: "unchanged";
|
|
2683
|
-
} | {
|
|
2684
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2685
|
-
retryable: false;
|
|
2686
|
-
status: "conflict";
|
|
2687
|
-
} | {
|
|
2688
|
-
reason: "policy_invalid";
|
|
2689
|
-
retryable: false;
|
|
2690
|
-
status: "rejected";
|
|
2691
2691
|
} | {
|
|
2692
2692
|
reason: "provider_pending";
|
|
2693
2693
|
retryable: true;
|
|
@@ -9,17 +9,6 @@ export declare const bridge: import("convex/server").RegisteredAction<"internal"
|
|
|
9
9
|
stripeSubscriptionId: string;
|
|
10
10
|
version: number;
|
|
11
11
|
}, Promise<{
|
|
12
|
-
status: "ready";
|
|
13
|
-
value: {
|
|
14
|
-
customerAccount: string;
|
|
15
|
-
enabled?: boolean | undefined;
|
|
16
|
-
paymentMethodId: string | null;
|
|
17
|
-
paymentMethodTypes?: string[] | null | undefined;
|
|
18
|
-
phase: "apply" | "attach" | "create";
|
|
19
|
-
providerApiVersion: string;
|
|
20
|
-
stripeSubscriptionId: string;
|
|
21
|
-
};
|
|
22
|
-
} | {
|
|
23
12
|
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
24
13
|
retryable: false;
|
|
25
14
|
status: "unknown";
|
|
@@ -35,5 +24,16 @@ export declare const bridge: import("convex/server").RegisteredAction<"internal"
|
|
|
35
24
|
reason: "provider_pending";
|
|
36
25
|
retryable: true;
|
|
37
26
|
status: "not_ready";
|
|
27
|
+
} | {
|
|
28
|
+
status: "ready";
|
|
29
|
+
value: {
|
|
30
|
+
customerAccount: string;
|
|
31
|
+
enabled?: boolean | undefined;
|
|
32
|
+
paymentMethodId: string | null;
|
|
33
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
34
|
+
phase: "apply" | "attach" | "create";
|
|
35
|
+
providerApiVersion: string;
|
|
36
|
+
stripeSubscriptionId: string;
|
|
37
|
+
};
|
|
38
38
|
}>>;
|
|
39
39
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -22,14 +22,6 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
22
22
|
requestKey: string;
|
|
23
23
|
scopeKey: string;
|
|
24
24
|
}, Promise<{
|
|
25
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
26
|
-
retryable: false;
|
|
27
|
-
status: "conflict";
|
|
28
|
-
} | {
|
|
29
|
-
reason: "policy_invalid";
|
|
30
|
-
retryable: false;
|
|
31
|
-
status: "rejected";
|
|
32
|
-
} | {
|
|
33
25
|
operation: {
|
|
34
26
|
accountId: string;
|
|
35
27
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -40,6 +32,14 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
40
32
|
} | {
|
|
41
33
|
enabled: boolean;
|
|
42
34
|
status: "unchanged";
|
|
35
|
+
} | {
|
|
36
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
37
|
+
retryable: false;
|
|
38
|
+
status: "conflict";
|
|
39
|
+
} | {
|
|
40
|
+
reason: "policy_invalid";
|
|
41
|
+
retryable: false;
|
|
42
|
+
status: "rejected";
|
|
43
43
|
} | {
|
|
44
44
|
reason: "provider_pending";
|
|
45
45
|
retryable: true;
|
|
@@ -395,14 +395,6 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
395
395
|
requestKey: string;
|
|
396
396
|
scopeKey: string;
|
|
397
397
|
}, Promise<{
|
|
398
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
399
|
-
retryable: false;
|
|
400
|
-
status: "conflict";
|
|
401
|
-
} | {
|
|
402
|
-
reason: "policy_invalid";
|
|
403
|
-
retryable: false;
|
|
404
|
-
status: "rejected";
|
|
405
|
-
} | {
|
|
406
398
|
operation: {
|
|
407
399
|
accountId: string;
|
|
408
400
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -413,6 +405,14 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
413
405
|
} | {
|
|
414
406
|
enabled: boolean;
|
|
415
407
|
status: "unchanged";
|
|
408
|
+
} | {
|
|
409
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
410
|
+
retryable: false;
|
|
411
|
+
status: "conflict";
|
|
412
|
+
} | {
|
|
413
|
+
reason: "policy_invalid";
|
|
414
|
+
retryable: false;
|
|
415
|
+
status: "rejected";
|
|
416
416
|
} | {
|
|
417
417
|
reason: "provider_pending";
|
|
418
418
|
retryable: true;
|
|
@@ -595,22 +595,6 @@ export declare const startWorkflow: import("convex/server").RegisteredMutation<"
|
|
|
595
595
|
} & {
|
|
596
596
|
providerAction: string;
|
|
597
597
|
}, Promise<{
|
|
598
|
-
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
599
|
-
retryable: false;
|
|
600
|
-
status: "unknown";
|
|
601
|
-
} | {
|
|
602
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
603
|
-
retryable: false;
|
|
604
|
-
status: "conflict";
|
|
605
|
-
} | {
|
|
606
|
-
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
607
|
-
retryable: false;
|
|
608
|
-
status: "rejected";
|
|
609
|
-
} | {
|
|
610
|
-
reason: "provider_pending";
|
|
611
|
-
retryable: true;
|
|
612
|
-
status: "not_ready";
|
|
613
|
-
} | {
|
|
614
598
|
operation: {
|
|
615
599
|
accountId: string;
|
|
616
600
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -627,16 +611,7 @@ export declare const startWorkflow: import("convex/server").RegisteredMutation<"
|
|
|
627
611
|
version: number;
|
|
628
612
|
};
|
|
629
613
|
status: "canceled";
|
|
630
|
-
}
|
|
631
|
-
export declare const resumeWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
632
|
-
accountId: string;
|
|
633
|
-
definitionVersion: string;
|
|
634
|
-
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
635
|
-
providerApiVersion: string;
|
|
636
|
-
scopeKey: string;
|
|
637
|
-
stripeSubscriptionId: string;
|
|
638
|
-
version: number;
|
|
639
|
-
}, Promise<{
|
|
614
|
+
} | {
|
|
640
615
|
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
641
616
|
retryable: false;
|
|
642
617
|
status: "unknown";
|
|
@@ -652,7 +627,16 @@ export declare const resumeWorkflow: import("convex/server").RegisteredMutation<
|
|
|
652
627
|
reason: "provider_pending";
|
|
653
628
|
retryable: true;
|
|
654
629
|
status: "not_ready";
|
|
655
|
-
}
|
|
630
|
+
}>>;
|
|
631
|
+
export declare const resumeWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
632
|
+
accountId: string;
|
|
633
|
+
definitionVersion: string;
|
|
634
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
635
|
+
providerApiVersion: string;
|
|
636
|
+
scopeKey: string;
|
|
637
|
+
stripeSubscriptionId: string;
|
|
638
|
+
version: number;
|
|
639
|
+
}, Promise<{
|
|
656
640
|
operation: {
|
|
657
641
|
accountId: string;
|
|
658
642
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -669,6 +653,22 @@ export declare const resumeWorkflow: import("convex/server").RegisteredMutation<
|
|
|
669
653
|
version: number;
|
|
670
654
|
};
|
|
671
655
|
status: "canceled";
|
|
656
|
+
} | {
|
|
657
|
+
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
658
|
+
retryable: false;
|
|
659
|
+
status: "unknown";
|
|
660
|
+
} | {
|
|
661
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
662
|
+
retryable: false;
|
|
663
|
+
status: "conflict";
|
|
664
|
+
} | {
|
|
665
|
+
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
666
|
+
retryable: false;
|
|
667
|
+
status: "rejected";
|
|
668
|
+
} | {
|
|
669
|
+
reason: "provider_pending";
|
|
670
|
+
retryable: true;
|
|
671
|
+
status: "not_ready";
|
|
672
672
|
}>>;
|
|
673
673
|
export declare const cancelWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
674
674
|
accountId: string;
|
|
@@ -2,14 +2,6 @@ import type { Infer } from "convex/values";
|
|
|
2
2
|
import type { MutationCtx } from "../_generated/server.js";
|
|
3
3
|
import { prepareArgs, finishPreparationArgs } from "./mutationValidators.js";
|
|
4
4
|
export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prepareArgs>): Promise<{
|
|
5
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
6
|
-
retryable: false;
|
|
7
|
-
status: "conflict";
|
|
8
|
-
} | {
|
|
9
|
-
reason: "policy_invalid";
|
|
10
|
-
retryable: false;
|
|
11
|
-
status: "rejected";
|
|
12
|
-
} | {
|
|
13
5
|
operation: {
|
|
14
6
|
accountId: string;
|
|
15
7
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -20,6 +12,14 @@ export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prep
|
|
|
20
12
|
} | {
|
|
21
13
|
enabled: boolean;
|
|
22
14
|
status: "unchanged";
|
|
15
|
+
} | {
|
|
16
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
17
|
+
retryable: false;
|
|
18
|
+
status: "conflict";
|
|
19
|
+
} | {
|
|
20
|
+
reason: "policy_invalid";
|
|
21
|
+
retryable: false;
|
|
22
|
+
status: "rejected";
|
|
23
23
|
} | {
|
|
24
24
|
reason: "provider_pending";
|
|
25
25
|
retryable: true;
|
|
@@ -9,9 +9,9 @@ export declare function legOwnership(ctx: MutationCtx, bucketKey: string, prior:
|
|
|
9
9
|
orgId: string | undefined;
|
|
10
10
|
ownershipStatus: "ambiguous";
|
|
11
11
|
} | {
|
|
12
|
-
registrationId?: undefined;
|
|
13
12
|
userId?: undefined;
|
|
14
13
|
orgId?: undefined;
|
|
14
|
+
registrationId?: undefined;
|
|
15
15
|
ownershipStatus: "ambiguous";
|
|
16
16
|
} | {
|
|
17
17
|
registrationId: import("convex/values").GenericId<"financialOwnership">;
|
|
@@ -19,9 +19,9 @@ export declare function legOwnership(ctx: MutationCtx, bucketKey: string, prior:
|
|
|
19
19
|
orgId: string | undefined;
|
|
20
20
|
ownershipStatus: "unknown";
|
|
21
21
|
} | {
|
|
22
|
-
registrationId?: undefined;
|
|
23
22
|
userId?: undefined;
|
|
24
23
|
orgId?: undefined;
|
|
24
|
+
registrationId?: undefined;
|
|
25
25
|
ownershipStatus: "unknown";
|
|
26
26
|
} | {
|
|
27
27
|
registrationId: import("convex/values").GenericId<"financialOwnership">;
|
|
@@ -29,9 +29,9 @@ export declare function legOwnership(ctx: MutationCtx, bucketKey: string, prior:
|
|
|
29
29
|
orgId: string | undefined;
|
|
30
30
|
ownershipStatus: "contradictory";
|
|
31
31
|
} | {
|
|
32
|
-
registrationId?: undefined;
|
|
33
32
|
userId?: undefined;
|
|
34
33
|
orgId?: undefined;
|
|
34
|
+
registrationId?: undefined;
|
|
35
35
|
ownershipStatus: "contradictory";
|
|
36
36
|
} | {
|
|
37
37
|
registrationId: import("convex/values").GenericId<"financialOwnership">;
|
|
@@ -2632,6 +2632,14 @@ export declare function setupCredits(): Promise<{
|
|
|
2632
2632
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2633
2633
|
requestKey: string;
|
|
2634
2634
|
result?: {
|
|
2635
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2636
|
+
retryable: false;
|
|
2637
|
+
status: "conflict";
|
|
2638
|
+
} | {
|
|
2639
|
+
reason: "policy_invalid";
|
|
2640
|
+
retryable: false;
|
|
2641
|
+
status: "rejected";
|
|
2642
|
+
} | {
|
|
2635
2643
|
operation: {
|
|
2636
2644
|
accountId: string;
|
|
2637
2645
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2642,14 +2650,6 @@ export declare function setupCredits(): Promise<{
|
|
|
2642
2650
|
} | {
|
|
2643
2651
|
enabled: boolean;
|
|
2644
2652
|
status: "unchanged";
|
|
2645
|
-
} | {
|
|
2646
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2647
|
-
retryable: false;
|
|
2648
|
-
status: "conflict";
|
|
2649
|
-
} | {
|
|
2650
|
-
reason: "policy_invalid";
|
|
2651
|
-
retryable: false;
|
|
2652
|
-
status: "rejected";
|
|
2653
2653
|
} | {
|
|
2654
2654
|
reason: "provider_pending";
|
|
2655
2655
|
retryable: true;
|
|
@@ -2660,6 +2660,14 @@ export declare function setupCredits(): Promise<{
|
|
|
2660
2660
|
payload: import("convex/values").VString<string, "required">;
|
|
2661
2661
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2662
2662
|
result: import("convex/values").VUnion<{
|
|
2663
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2664
|
+
retryable: false;
|
|
2665
|
+
status: "conflict";
|
|
2666
|
+
} | {
|
|
2667
|
+
reason: "policy_invalid";
|
|
2668
|
+
retryable: false;
|
|
2669
|
+
status: "rejected";
|
|
2670
|
+
} | {
|
|
2663
2671
|
operation: {
|
|
2664
2672
|
accountId: string;
|
|
2665
2673
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -2670,14 +2678,6 @@ export declare function setupCredits(): Promise<{
|
|
|
2670
2678
|
} | {
|
|
2671
2679
|
enabled: boolean;
|
|
2672
2680
|
status: "unchanged";
|
|
2673
|
-
} | {
|
|
2674
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2675
|
-
retryable: false;
|
|
2676
|
-
status: "conflict";
|
|
2677
|
-
} | {
|
|
2678
|
-
reason: "policy_invalid";
|
|
2679
|
-
retryable: false;
|
|
2680
|
-
status: "rejected";
|
|
2681
2681
|
} | {
|
|
2682
2682
|
reason: "provider_pending";
|
|
2683
2683
|
retryable: true;
|