@fantastic.dev/better-stripe 0.92.0 → 0.94.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 +41 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.js +378 -0
- package/dist/client/billing/renewalAttach/internal/operationJournal.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts +44 -0
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js +251 -0
- package/dist/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.js.map +1 -0
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +562 -0
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +281 -0
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +562 -0
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +281 -0
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/index.d.ts +3 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +16 -3
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/api.d.ts +6 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +406 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/mutations.d.ts +27 -27
- package/dist/component/balanceFunding/queries.d.ts +1 -1
- package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
- package/dist/component/earnings/triggers.d.ts +294 -0
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
- package/dist/component/renewalOperations/helpers.d.ts +236 -0
- package/dist/component/renewalOperations/helpers.d.ts.map +1 -0
- package/dist/component/renewalOperations/helpers.js +457 -0
- package/dist/component/renewalOperations/helpers.js.map +1 -0
- package/dist/component/renewalOperations/mutations.d.ts +252 -0
- package/dist/component/renewalOperations/mutations.d.ts.map +1 -0
- package/dist/component/renewalOperations/mutations.js +340 -0
- package/dist/component/renewalOperations/mutations.js.map +1 -0
- package/dist/component/renewalOperations/queries.d.ts +163 -0
- package/dist/component/renewalOperations/queries.d.ts.map +1 -0
- package/dist/component/renewalOperations/queries.js +167 -0
- package/dist/component/renewalOperations/queries.js.map +1 -0
- package/dist/component/renewalOperations/schema.d.ts +1988 -0
- package/dist/component/renewalOperations/schema.d.ts.map +1 -0
- package/dist/component/renewalOperations/schema.js +227 -0
- package/dist/component/renewalOperations/schema.js.map +1 -0
- package/dist/component/schema.d.ts +281 -0
- package/dist/component/schema.js +5 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/usage/allowance.fixtures.d.ts +281 -0
- package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
- package/dist/component/usageCredits/accounting.fixtures.d.ts +297 -16
- package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
- package/dist/shared/renewalOperationJournal.d.ts +43 -0
- package/dist/shared/renewalOperationJournal.d.ts.map +1 -0
- package/dist/shared/renewalOperationJournal.js +294 -0
- package/dist/shared/renewalOperationJournal.js.map +1 -0
- package/docs/renewal-context-reads.md +180 -0
- 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 +560 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.methods.integration.test.ts +534 -0
- package/src/client/billing/renewalAttach/internal/operationJournal.ts +561 -0
- package/src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts +334 -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/index.ts +24 -3
- package/src/component/_generated/api.ts +6 -0
- package/src/component/_generated/component.ts +450 -0
- package/src/component/renewalOperations/acknowledgement.fixtures.ts +552 -0
- package/src/component/renewalOperations/acknowledgement.test.ts +573 -0
- package/src/component/renewalOperations/acknowledgementReads.test.ts +442 -0
- package/src/component/renewalOperations/acknowledgementV2.test.ts +493 -0
- package/src/component/renewalOperations/acknowledgementV2Publication.test.ts +373 -0
- package/src/component/renewalOperations/basisBinding.test.ts +567 -0
- package/src/component/renewalOperations/basisLifecycle.test.ts +569 -0
- package/src/component/renewalOperations/boundHistory.test.ts +474 -0
- package/src/component/renewalOperations/helpers.ts +592 -0
- package/src/component/renewalOperations/historyReads.test.ts +595 -0
- package/src/component/renewalOperations/initialBasis.test.ts +578 -0
- package/src/component/renewalOperations/journal.test.ts +567 -0
- package/src/component/renewalOperations/mutations.ts +456 -0
- package/src/component/renewalOperations/payload.test.ts +589 -0
- package/src/component/renewalOperations/payloadEncoding.test.ts +592 -0
- package/src/component/renewalOperations/queries.ts +204 -0
- package/src/component/renewalOperations/schema.ts +268 -0
- package/src/component/renewalOperations/timingPolicy.fixtures.ts +193 -0
- package/src/component/renewalOperations/timingPolicy.test.ts +523 -0
- package/src/component/schema.ts +11 -0
- package/src/shared/renewalOperationJournal.ts +333 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { RenewalContextClient } from "../../../../renewalContextClient.js";
|
|
2
|
+
const roots = new WeakMap();
|
|
3
|
+
const pending = new WeakMap();
|
|
4
|
+
const finishing = new WeakSet();
|
|
5
|
+
const bootstrapSymbol = Symbol("betterstripe-class-root-bootstrap");
|
|
6
|
+
export const CLASS_ROOT_CONSTRUCTION_PERMIT = Symbol("betterstripe-root-permit");
|
|
7
|
+
function rootUnbound() {
|
|
8
|
+
throw Error("CLASS_ACTION_ROOT_UNBOUND");
|
|
9
|
+
}
|
|
10
|
+
/** Internal neutral base; construction alone grants no operational authority. */
|
|
11
|
+
export class ClassOwnedActionRoot extends RenewalContextClient {
|
|
12
|
+
constructor(component, permit) {
|
|
13
|
+
if (permit !== CLASS_ROOT_CONSTRUCTION_PERMIT)
|
|
14
|
+
rootUnbound();
|
|
15
|
+
super(component);
|
|
16
|
+
roots.set(this, Object.freeze({ phase: "awaiting", component }));
|
|
17
|
+
}
|
|
18
|
+
finishMaintainedRootConstruction() {
|
|
19
|
+
const cell = roots.get(this);
|
|
20
|
+
const bootstrap = pending.get(this);
|
|
21
|
+
const descriptor = Object.getOwnPropertyDescriptor(this, bootstrapSymbol);
|
|
22
|
+
if (!cell ||
|
|
23
|
+
cell.phase !== "awaiting" ||
|
|
24
|
+
!finishing.has(this) ||
|
|
25
|
+
!bootstrap ||
|
|
26
|
+
!descriptor ||
|
|
27
|
+
!("value" in descriptor) ||
|
|
28
|
+
descriptor.value !== bootstrap ||
|
|
29
|
+
descriptor.enumerable ||
|
|
30
|
+
descriptor.writable ||
|
|
31
|
+
!descriptor.configurable)
|
|
32
|
+
rootUnbound();
|
|
33
|
+
roots.set(this, Object.freeze({ phase: "ready", component: cell.component, bootstrap }));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const finalizerCandidate = Object.getOwnPropertyDescriptor(ClassOwnedActionRoot.prototype, "finishMaintainedRootConstruction")?.value;
|
|
37
|
+
if (typeof finalizerCandidate !== "function")
|
|
38
|
+
rootUnbound();
|
|
39
|
+
const actualFinalizer = finalizerCandidate;
|
|
40
|
+
/**
|
|
41
|
+
* Called by the maintained constructor under trusted package-internal imports.
|
|
42
|
+
* Hostile code importing the private base and permit is outside this gate.
|
|
43
|
+
*/
|
|
44
|
+
export function finishClassRoot(actualRoot, raw) {
|
|
45
|
+
const cell = roots.get(actualRoot);
|
|
46
|
+
if (!cell || cell.phase !== "awaiting")
|
|
47
|
+
rootUnbound();
|
|
48
|
+
try {
|
|
49
|
+
const keys = Reflect.ownKeys(raw);
|
|
50
|
+
const prototype = Object.getOwnPropertyDescriptor(raw, "prototype");
|
|
51
|
+
const select = Object.getOwnPropertyDescriptor(raw, "select");
|
|
52
|
+
const enter = Object.getOwnPropertyDescriptor(raw, "enter");
|
|
53
|
+
if (keys.length !== 3 ||
|
|
54
|
+
!keys.every((key) => typeof key === "string" &&
|
|
55
|
+
["prototype", "select", "enter"].includes(key)) ||
|
|
56
|
+
!prototype ||
|
|
57
|
+
!("value" in prototype) ||
|
|
58
|
+
!prototype.enumerable ||
|
|
59
|
+
prototype.value === null ||
|
|
60
|
+
typeof prototype.value !== "object" ||
|
|
61
|
+
!select ||
|
|
62
|
+
!("value" in select) ||
|
|
63
|
+
!select.enumerable ||
|
|
64
|
+
typeof select.value !== "function" ||
|
|
65
|
+
!enter ||
|
|
66
|
+
!("value" in enter) ||
|
|
67
|
+
!enter.enumerable ||
|
|
68
|
+
typeof enter.value !== "function" ||
|
|
69
|
+
roots.get(actualRoot) !== cell)
|
|
70
|
+
rootUnbound();
|
|
71
|
+
// Values are captured before the temporary descriptor exists; none is called.
|
|
72
|
+
const bootstrap = Object.freeze({
|
|
73
|
+
prototype: prototype.value,
|
|
74
|
+
select: select.value,
|
|
75
|
+
enter: enter.value,
|
|
76
|
+
});
|
|
77
|
+
pending.set(actualRoot, bootstrap);
|
|
78
|
+
Object.defineProperty(actualRoot, bootstrapSymbol, {
|
|
79
|
+
value: bootstrap,
|
|
80
|
+
enumerable: false,
|
|
81
|
+
writable: false,
|
|
82
|
+
configurable: true,
|
|
83
|
+
});
|
|
84
|
+
finishing.add(actualRoot);
|
|
85
|
+
Reflect.apply(actualFinalizer, actualRoot, []);
|
|
86
|
+
}
|
|
87
|
+
catch {
|
|
88
|
+
roots.set(actualRoot, Object.freeze({ phase: "failed" }));
|
|
89
|
+
rootUnbound();
|
|
90
|
+
}
|
|
91
|
+
finally {
|
|
92
|
+
finishing.delete(actualRoot);
|
|
93
|
+
pending.delete(actualRoot);
|
|
94
|
+
if (!Reflect.deleteProperty(actualRoot, bootstrapSymbol)) {
|
|
95
|
+
roots.set(actualRoot, Object.freeze({ phase: "failed" }));
|
|
96
|
+
rootUnbound();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/** Operational EMPTY profiles refuse before entry, selector or Action reflection. */
|
|
101
|
+
export async function captureMaintainedActionSelection(actualRoot, _input) {
|
|
102
|
+
const cell = roots.get(actualRoot);
|
|
103
|
+
if (!cell ||
|
|
104
|
+
cell.phase !== "ready" ||
|
|
105
|
+
Object.getPrototypeOf(actualRoot) !== cell.bootstrap.prototype)
|
|
106
|
+
rootUnbound();
|
|
107
|
+
throw Error("CLASS_ACTION_PROFILE_UNBOUND");
|
|
108
|
+
}
|
|
109
|
+
const pendingJournalEntries = new WeakMap();
|
|
110
|
+
const journalBindings = new WeakMap();
|
|
111
|
+
const closedJournalBindings = new WeakSet();
|
|
112
|
+
function journalUnbound() {
|
|
113
|
+
throw Error("CLASS_ACTION_JOURNAL_UNBOUND");
|
|
114
|
+
}
|
|
115
|
+
function journalPointersMatch(state) {
|
|
116
|
+
const { root, cell, rpc } = state;
|
|
117
|
+
return (roots.get(root) === cell &&
|
|
118
|
+
Object.getPrototypeOf(root) === cell.bootstrap.prototype &&
|
|
119
|
+
rpc.receiver.meta === rpc.metaReceiver &&
|
|
120
|
+
rpc.metaReceiver.getFunctionMetadata === rpc.getMetadata &&
|
|
121
|
+
rpc.receiver.runQuery === rpc.runQuery &&
|
|
122
|
+
rpc.receiver.runMutation === rpc.runMutation);
|
|
123
|
+
}
|
|
124
|
+
/** Checked private bookkeeping identity only; never an operational selection. */
|
|
125
|
+
export function readCheckedJournalActionRPC(binding) {
|
|
126
|
+
if (typeof binding !== "object" || binding === null)
|
|
127
|
+
journalUnbound();
|
|
128
|
+
const state = journalBindings.get(binding);
|
|
129
|
+
if (!state || closedJournalBindings.has(binding))
|
|
130
|
+
journalUnbound();
|
|
131
|
+
try {
|
|
132
|
+
if (!journalPointersMatch(state))
|
|
133
|
+
journalUnbound();
|
|
134
|
+
}
|
|
135
|
+
catch {
|
|
136
|
+
closedJournalBindings.add(binding);
|
|
137
|
+
journalUnbound();
|
|
138
|
+
}
|
|
139
|
+
return state.rpc;
|
|
140
|
+
}
|
|
141
|
+
/** Fixed class entry for journal DATA, independent of operational qualification. */
|
|
142
|
+
export async function captureMaintainedJournalBinding(actualRoot, input) {
|
|
143
|
+
const cell = roots.get(actualRoot);
|
|
144
|
+
if (!cell ||
|
|
145
|
+
cell.phase !== "ready" ||
|
|
146
|
+
Object.getPrototypeOf(actualRoot) !== cell.bootstrap.prototype)
|
|
147
|
+
rootUnbound();
|
|
148
|
+
const keys = Reflect.ownKeys(input);
|
|
149
|
+
const context = Object.getOwnPropertyDescriptor(input, "actualActionCtx");
|
|
150
|
+
const operation = Object.getOwnPropertyDescriptor(input, "operationId");
|
|
151
|
+
if (keys.length !== 2 ||
|
|
152
|
+
!keys.every((key) => key === "actualActionCtx" || key === "operationId") ||
|
|
153
|
+
!context ||
|
|
154
|
+
!("value" in context) ||
|
|
155
|
+
!context.enumerable ||
|
|
156
|
+
!operation ||
|
|
157
|
+
!("value" in operation) ||
|
|
158
|
+
!operation.enumerable ||
|
|
159
|
+
typeof operation.value !== "string" ||
|
|
160
|
+
operation.value.length === 0)
|
|
161
|
+
journalUnbound();
|
|
162
|
+
const entryInput = Object.freeze({
|
|
163
|
+
actualActionCtx: context.value,
|
|
164
|
+
operationId: operation.value,
|
|
165
|
+
});
|
|
166
|
+
const entry = {
|
|
167
|
+
root: actualRoot,
|
|
168
|
+
cell,
|
|
169
|
+
input: entryInput,
|
|
170
|
+
entered: false,
|
|
171
|
+
binding: null,
|
|
172
|
+
};
|
|
173
|
+
pendingJournalEntries.set(entryInput, entry);
|
|
174
|
+
try {
|
|
175
|
+
const result = await Reflect.apply(cell.bootstrap.enter, actualRoot, [entryInput]);
|
|
176
|
+
if (typeof result !== "object" ||
|
|
177
|
+
result === null ||
|
|
178
|
+
result !== entry.binding ||
|
|
179
|
+
pendingJournalEntries.get(entryInput) !== entry ||
|
|
180
|
+
!entry.entered)
|
|
181
|
+
journalUnbound();
|
|
182
|
+
const state = journalBindings.get(result);
|
|
183
|
+
if (!state ||
|
|
184
|
+
state.root !== actualRoot ||
|
|
185
|
+
state.cell !== cell ||
|
|
186
|
+
state.rpc.operationId !== entryInput.operationId)
|
|
187
|
+
journalUnbound();
|
|
188
|
+
readCheckedJournalActionRPC(result);
|
|
189
|
+
return result;
|
|
190
|
+
}
|
|
191
|
+
catch (error) {
|
|
192
|
+
if (entry.binding)
|
|
193
|
+
closedJournalBindings.add(entry.binding);
|
|
194
|
+
throw error;
|
|
195
|
+
}
|
|
196
|
+
finally {
|
|
197
|
+
pendingJournalEntries.delete(entryInput);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
/** Only the actual constructor-captured private entry can complete pending DATA. */
|
|
201
|
+
export async function beginClassAction(actualRoot, input) {
|
|
202
|
+
const entry = pendingJournalEntries.get(input);
|
|
203
|
+
if (!entry ||
|
|
204
|
+
entry.root !== actualRoot ||
|
|
205
|
+
entry.input !== input ||
|
|
206
|
+
entry.entered ||
|
|
207
|
+
roots.get(actualRoot) !== entry.cell)
|
|
208
|
+
return rootUnbound();
|
|
209
|
+
entry.entered = true;
|
|
210
|
+
const receiver = input.actualActionCtx;
|
|
211
|
+
if (typeof receiver !== "object" || receiver === null)
|
|
212
|
+
journalUnbound();
|
|
213
|
+
const metaReceiver = receiver.meta;
|
|
214
|
+
const getMetadata = metaReceiver?.getFunctionMetadata;
|
|
215
|
+
const runQuery = receiver.runQuery;
|
|
216
|
+
const runMutation = receiver.runMutation;
|
|
217
|
+
if (typeof getMetadata !== "function" ||
|
|
218
|
+
typeof runQuery !== "function" ||
|
|
219
|
+
typeof runMutation !== "function")
|
|
220
|
+
journalUnbound();
|
|
221
|
+
const rpc = Object.freeze({
|
|
222
|
+
receiver,
|
|
223
|
+
component: entry.cell.component,
|
|
224
|
+
operationId: input.operationId,
|
|
225
|
+
metaReceiver,
|
|
226
|
+
getMetadata,
|
|
227
|
+
runQuery,
|
|
228
|
+
runMutation,
|
|
229
|
+
tag: Object.freeze({}),
|
|
230
|
+
});
|
|
231
|
+
const metadata = await getMetadata.call(metaReceiver);
|
|
232
|
+
const state = Object.freeze({
|
|
233
|
+
root: actualRoot,
|
|
234
|
+
cell: entry.cell,
|
|
235
|
+
rpc,
|
|
236
|
+
});
|
|
237
|
+
if (metadata.type !== "action" ||
|
|
238
|
+
typeof metadata.name !== "string" ||
|
|
239
|
+
metadata.name.length === 0 ||
|
|
240
|
+
typeof metadata.componentPath !== "string" ||
|
|
241
|
+
(metadata.visibility !== "public" && metadata.visibility !== "internal") ||
|
|
242
|
+
pendingJournalEntries.get(input) !== entry ||
|
|
243
|
+
entry.binding !== null ||
|
|
244
|
+
!journalPointersMatch(state))
|
|
245
|
+
journalUnbound();
|
|
246
|
+
const binding = Object.freeze({});
|
|
247
|
+
journalBindings.set(binding, state);
|
|
248
|
+
entry.binding = binding;
|
|
249
|
+
return binding;
|
|
250
|
+
}
|
|
251
|
+
//# sourceMappingURL=classOwnedActionRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classOwnedActionRoot.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/producer/classOwnedActionRoot.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAe3E,MAAM,KAAK,GAAG,IAAI,OAAO,EAAoB,CAAC;AAC9C,M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