@fantastic.dev/better-stripe 0.97.1 → 0.99.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/acquisition/ownedAcquisition.d.ts +11 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.js +39 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.d.ts +22 -0
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.js +13 -5
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/actorFailureControl.d.ts +17 -0
- package/dist/client/billing/renewalAttach/internal/operations/actorFailureControl.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/actorFailureControl.js +140 -0
- package/dist/client/billing/renewalAttach/internal/operations/actorFailureControl.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.d.ts +61 -9
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.js +41 -411
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/initialActorData.d.ts +21 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialActorData.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialActorData.js +36 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialActorData.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts +141 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js +132 -182
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.d.ts +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.js +17 -5
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/transportCapture.d.ts +35 -0
- package/dist/client/billing/renewalAttach/internal/operations/transportCapture.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/transportCapture.js +46 -0
- package/dist/client/billing/renewalAttach/internal/operations/transportCapture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/transportKernel.d.ts +63 -0
- package/dist/client/billing/renewalAttach/internal/operations/transportKernel.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/transportKernel.js +380 -0
- package/dist/client/billing/renewalAttach/internal/operations/transportKernel.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts +8 -0
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js +25 -0
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/journalWorkFactory.d.ts +56 -0
- package/dist/client/billing/renewalAttach/internal/producer/journalWorkFactory.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/journalWorkFactory.js +49 -0
- package/dist/client/billing/renewalAttach/internal/producer/journalWorkFactory.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.d.ts +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.js +3 -0
- package/dist/client/billing/renewalAttach/internal/producer/lineageAuthority.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/operationFactory.d.ts +65 -0
- package/dist/client/billing/renewalAttach/internal/producer/operationFactory.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/operationFactory.js +162 -0
- package/dist/client/billing/renewalAttach/internal/producer/operationFactory.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/recoveryEntry.d.ts +4 -0
- package/dist/client/billing/renewalAttach/internal/producer/recoveryEntry.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/recoveryEntry.js +87 -0
- package/dist/client/billing/renewalAttach/internal/producer/recoveryEntry.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/recoveryFactory.d.ts +368 -0
- package/dist/client/billing/renewalAttach/internal/producer/recoveryFactory.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/recoveryFactory.js +106 -0
- package/dist/client/billing/renewalAttach/internal/producer/recoveryFactory.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/stockDelegateFactory.d.ts +4 -0
- package/dist/client/billing/renewalAttach/internal/producer/stockDelegateFactory.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/stockDelegateFactory.js +24 -3
- package/dist/client/billing/renewalAttach/internal/producer/stockDelegateFactory.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/recovery/output.d.ts +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/recovery/output.js +22 -8
- package/dist/client/billing/renewalAttach/internal/recovery/output.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/recovery/record.d.ts +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/recovery/record.js +10 -2
- package/dist/client/billing/renewalAttach/internal/recovery/record.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js +69 -156
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/recovery/relation.d.ts +18 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/recovery/relation.js +15 -1
- package/dist/client/billing/renewalAttach/internal/recovery/relation.js.map +1 -1
- package/docs/renewal-context-reads.md +69 -8
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.ts +45 -3
- package/src/client/billing/renewalAttach/internal/c10/attachEvents.ts +17 -5
- package/src/client/billing/renewalAttach/internal/operations/actorFailureControl.ts +165 -0
- package/src/client/billing/renewalAttach/internal/operations/fixedTransport.ts +48 -535
- package/src/client/billing/renewalAttach/internal/operations/initialActorData.ts +41 -0
- package/src/client/billing/renewalAttach/internal/operations/initialAttach.ts +168 -209
- package/src/client/billing/renewalAttach/internal/operations/ownedAwait.ts +23 -5
- package/src/client/billing/renewalAttach/internal/operations/transportCapture.ts +60 -0
- package/src/client/billing/renewalAttach/internal/operations/transportKernel.ts +500 -0
- package/src/client/billing/renewalAttach/internal/producer/invocationProducer.ts +28 -0
- package/src/client/billing/renewalAttach/internal/producer/journalWorkFactory.ts +54 -0
- package/src/client/billing/renewalAttach/internal/producer/lineageAuthority.ts +3 -0
- package/src/client/billing/renewalAttach/internal/producer/operationFactory.ts +176 -0
- package/src/client/billing/renewalAttach/internal/producer/producerAcquisition.integration.test.ts +240 -0
- package/src/client/billing/renewalAttach/internal/producer/producerActor.integration.test.ts +526 -0
- package/src/client/billing/renewalAttach/internal/producer/producerRecovery.integration.test.ts +394 -0
- package/src/client/billing/renewalAttach/internal/producer/producerRecoveryControls.integration.test.ts +437 -0
- package/src/client/billing/renewalAttach/internal/producer/producerRecoveryIsolation.integration.test.ts +332 -0
- package/src/client/billing/renewalAttach/internal/producer/producerTransport.integration.test.ts +440 -0
- package/src/client/billing/renewalAttach/internal/producer/recoveryEntry.ts +109 -0
- package/src/client/billing/renewalAttach/internal/producer/recoveryFactory.ts +135 -0
- package/src/client/billing/renewalAttach/internal/producer/stockDelegateFactory.ts +29 -5
- package/src/client/billing/renewalAttach/internal/recovery/output.ts +34 -8
- package/src/client/billing/renewalAttach/internal/recovery/record.ts +16 -2
- package/src/client/billing/renewalAttach/internal/recovery/recoveryActor.ts +107 -188
- package/src/client/billing/renewalAttach/internal/recovery/relation.ts +17 -1
- package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialOperation.ts +82 -11
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
/** One reservation of actual initial custody, synchronously before construction awaits. */
|
|
2
|
+
export declare function recoveryOperationForLineage(token: object): Promise<Readonly<{
|
|
3
|
+
snapshot: Readonly<{
|
|
4
|
+
entry: unknown;
|
|
5
|
+
retainedPredicate: import("../operations/types.js").SourceMethod;
|
|
6
|
+
freshPredicate: import("../operations/types.js").SourceMethod;
|
|
7
|
+
originalRecord: unknown;
|
|
8
|
+
raw: import("../material/capture.js").AttachRaw;
|
|
9
|
+
prepared: Omit<{
|
|
10
|
+
version: 1;
|
|
11
|
+
scope: "platform";
|
|
12
|
+
expected: {
|
|
13
|
+
customerAccountId: string;
|
|
14
|
+
subscriptionId: string;
|
|
15
|
+
itemId: string;
|
|
16
|
+
currentPriceId: string;
|
|
17
|
+
currentProductId: string;
|
|
18
|
+
targetPriceId: string;
|
|
19
|
+
targetProductId: string;
|
|
20
|
+
periodStart: number;
|
|
21
|
+
periodEnd: number;
|
|
22
|
+
livemode: boolean;
|
|
23
|
+
};
|
|
24
|
+
quantity: number;
|
|
25
|
+
providerSnapshot: {
|
|
26
|
+
subscription: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
id: string;
|
|
29
|
+
object: "subscription";
|
|
30
|
+
customer_account: string;
|
|
31
|
+
status: "active";
|
|
32
|
+
currency: string;
|
|
33
|
+
livemode: boolean;
|
|
34
|
+
schedule: null;
|
|
35
|
+
cancel_at: null;
|
|
36
|
+
cancel_at_period_end: false;
|
|
37
|
+
pause_collection: null;
|
|
38
|
+
pending_update: null;
|
|
39
|
+
default_source: null;
|
|
40
|
+
application_fee_percent: null;
|
|
41
|
+
payment_settings: {
|
|
42
|
+
payment_method_options: null;
|
|
43
|
+
payment_method_types: null;
|
|
44
|
+
save_default_payment_method: "off" | null;
|
|
45
|
+
} | null;
|
|
46
|
+
billing_schedules?: unknown[] | undefined;
|
|
47
|
+
items: {
|
|
48
|
+
[x: string]: unknown;
|
|
49
|
+
has_more: false;
|
|
50
|
+
data: [{
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
id: string;
|
|
53
|
+
object: "subscription_item";
|
|
54
|
+
subscription: string;
|
|
55
|
+
current_period_start: number;
|
|
56
|
+
current_period_end: number;
|
|
57
|
+
quantity: number;
|
|
58
|
+
price: {
|
|
59
|
+
[x: string]: unknown;
|
|
60
|
+
id: string;
|
|
61
|
+
object: "price";
|
|
62
|
+
product: string | {
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
id: string;
|
|
65
|
+
object: "product";
|
|
66
|
+
deleted?: false | undefined;
|
|
67
|
+
};
|
|
68
|
+
active: boolean;
|
|
69
|
+
livemode: boolean;
|
|
70
|
+
type: "recurring";
|
|
71
|
+
currency: string;
|
|
72
|
+
billing_scheme: "per_unit";
|
|
73
|
+
recurring: {
|
|
74
|
+
[x: string]: unknown;
|
|
75
|
+
interval: "day" | "month" | "week" | "year";
|
|
76
|
+
interval_count: number;
|
|
77
|
+
usage_type: "licensed";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
}];
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
targetPrice: {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
id: string;
|
|
86
|
+
object: "price";
|
|
87
|
+
product: string | {
|
|
88
|
+
[x: string]: unknown;
|
|
89
|
+
id: string;
|
|
90
|
+
object: "product";
|
|
91
|
+
deleted?: false | undefined;
|
|
92
|
+
};
|
|
93
|
+
active: boolean;
|
|
94
|
+
livemode: boolean;
|
|
95
|
+
type: "recurring";
|
|
96
|
+
currency: string;
|
|
97
|
+
billing_scheme: "per_unit";
|
|
98
|
+
recurring: {
|
|
99
|
+
[x: string]: unknown;
|
|
100
|
+
interval: "day" | "month" | "week" | "year";
|
|
101
|
+
interval_count: number;
|
|
102
|
+
usage_type: "licensed";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
billingCustomer?: {
|
|
106
|
+
[x: string]: unknown;
|
|
107
|
+
id: string;
|
|
108
|
+
object: "customer";
|
|
109
|
+
customer_account: string;
|
|
110
|
+
livemode: boolean;
|
|
111
|
+
deleted?: false | undefined;
|
|
112
|
+
discount: {
|
|
113
|
+
[x: string]: unknown;
|
|
114
|
+
id: string;
|
|
115
|
+
object: "discount";
|
|
116
|
+
deleted?: false | undefined;
|
|
117
|
+
} | null;
|
|
118
|
+
} | undefined;
|
|
119
|
+
};
|
|
120
|
+
status: "prepared";
|
|
121
|
+
preservation: "requires_schedule_validation";
|
|
122
|
+
requestIdentity: {
|
|
123
|
+
key: string;
|
|
124
|
+
binding: string;
|
|
125
|
+
};
|
|
126
|
+
}, "requestIdentity" | "version"> & {
|
|
127
|
+
version: 2;
|
|
128
|
+
requestIdentity: {
|
|
129
|
+
key: string;
|
|
130
|
+
binding: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
request: import("../../../renewalV2/index.js").PreparedRenewalScheduleAttachmentV2;
|
|
134
|
+
response: Readonly<{
|
|
135
|
+
body: unknown;
|
|
136
|
+
status: number;
|
|
137
|
+
}> | null;
|
|
138
|
+
}>;
|
|
139
|
+
operation: null;
|
|
140
|
+
pair: null;
|
|
141
|
+
reader: null;
|
|
142
|
+
}> | Readonly<{
|
|
143
|
+
snapshot: Readonly<{
|
|
144
|
+
entry: unknown;
|
|
145
|
+
retainedPredicate: import("../operations/types.js").SourceMethod;
|
|
146
|
+
freshPredicate: import("../operations/types.js").SourceMethod;
|
|
147
|
+
originalRecord: unknown;
|
|
148
|
+
raw: import("../material/capture.js").AttachRaw;
|
|
149
|
+
prepared: Omit<{
|
|
150
|
+
version: 1;
|
|
151
|
+
scope: "platform";
|
|
152
|
+
expected: {
|
|
153
|
+
customerAccountId: string;
|
|
154
|
+
subscriptionId: string;
|
|
155
|
+
itemId: string;
|
|
156
|
+
currentPriceId: string;
|
|
157
|
+
currentProductId: string;
|
|
158
|
+
targetPriceId: string;
|
|
159
|
+
targetProductId: string;
|
|
160
|
+
periodStart: number;
|
|
161
|
+
periodEnd: number;
|
|
162
|
+
livemode: boolean;
|
|
163
|
+
};
|
|
164
|
+
quantity: number;
|
|
165
|
+
providerSnapshot: {
|
|
166
|
+
subscription: {
|
|
167
|
+
[x: string]: unknown;
|
|
168
|
+
id: string;
|
|
169
|
+
object: "subscription";
|
|
170
|
+
customer_account: string;
|
|
171
|
+
status: "active";
|
|
172
|
+
currency: string;
|
|
173
|
+
livemode: boolean;
|
|
174
|
+
schedule: null;
|
|
175
|
+
cancel_at: null;
|
|
176
|
+
cancel_at_period_end: false;
|
|
177
|
+
pause_collection: null;
|
|
178
|
+
pending_update: null;
|
|
179
|
+
default_source: null;
|
|
180
|
+
application_fee_percent: null;
|
|
181
|
+
payment_settings: {
|
|
182
|
+
payment_method_options: null;
|
|
183
|
+
payment_method_types: null;
|
|
184
|
+
save_default_payment_method: "off" | null;
|
|
185
|
+
} | null;
|
|
186
|
+
billing_schedules?: unknown[] | undefined;
|
|
187
|
+
items: {
|
|
188
|
+
[x: string]: unknown;
|
|
189
|
+
has_more: false;
|
|
190
|
+
data: [{
|
|
191
|
+
[x: string]: unknown;
|
|
192
|
+
id: string;
|
|
193
|
+
object: "subscription_item";
|
|
194
|
+
subscription: string;
|
|
195
|
+
current_period_start: number;
|
|
196
|
+
current_period_end: number;
|
|
197
|
+
quantity: number;
|
|
198
|
+
price: {
|
|
199
|
+
[x: string]: unknown;
|
|
200
|
+
id: string;
|
|
201
|
+
object: "price";
|
|
202
|
+
product: string | {
|
|
203
|
+
[x: string]: unknown;
|
|
204
|
+
id: string;
|
|
205
|
+
object: "product";
|
|
206
|
+
deleted?: false | undefined;
|
|
207
|
+
};
|
|
208
|
+
active: boolean;
|
|
209
|
+
livemode: boolean;
|
|
210
|
+
type: "recurring";
|
|
211
|
+
currency: string;
|
|
212
|
+
billing_scheme: "per_unit";
|
|
213
|
+
recurring: {
|
|
214
|
+
[x: string]: unknown;
|
|
215
|
+
interval: "day" | "month" | "week" | "year";
|
|
216
|
+
interval_count: number;
|
|
217
|
+
usage_type: "licensed";
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
}];
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
targetPrice: {
|
|
224
|
+
[x: string]: unknown;
|
|
225
|
+
id: string;
|
|
226
|
+
object: "price";
|
|
227
|
+
product: string | {
|
|
228
|
+
[x: string]: unknown;
|
|
229
|
+
id: string;
|
|
230
|
+
object: "product";
|
|
231
|
+
deleted?: false | undefined;
|
|
232
|
+
};
|
|
233
|
+
active: boolean;
|
|
234
|
+
livemode: boolean;
|
|
235
|
+
type: "recurring";
|
|
236
|
+
currency: string;
|
|
237
|
+
billing_scheme: "per_unit";
|
|
238
|
+
recurring: {
|
|
239
|
+
[x: string]: unknown;
|
|
240
|
+
interval: "day" | "month" | "week" | "year";
|
|
241
|
+
interval_count: number;
|
|
242
|
+
usage_type: "licensed";
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
billingCustomer?: {
|
|
246
|
+
[x: string]: unknown;
|
|
247
|
+
id: string;
|
|
248
|
+
object: "customer";
|
|
249
|
+
customer_account: string;
|
|
250
|
+
livemode: boolean;
|
|
251
|
+
deleted?: false | undefined;
|
|
252
|
+
discount: {
|
|
253
|
+
[x: string]: unknown;
|
|
254
|
+
id: string;
|
|
255
|
+
object: "discount";
|
|
256
|
+
deleted?: false | undefined;
|
|
257
|
+
} | null;
|
|
258
|
+
} | undefined;
|
|
259
|
+
};
|
|
260
|
+
status: "prepared";
|
|
261
|
+
preservation: "requires_schedule_validation";
|
|
262
|
+
requestIdentity: {
|
|
263
|
+
key: string;
|
|
264
|
+
binding: string;
|
|
265
|
+
};
|
|
266
|
+
}, "requestIdentity" | "version"> & {
|
|
267
|
+
version: 2;
|
|
268
|
+
requestIdentity: {
|
|
269
|
+
key: string;
|
|
270
|
+
binding: string;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
request: import("../../../renewalV2/index.js").PreparedRenewalScheduleAttachmentV2;
|
|
274
|
+
response: Readonly<{
|
|
275
|
+
body: unknown;
|
|
276
|
+
status: number;
|
|
277
|
+
}> | null;
|
|
278
|
+
}>;
|
|
279
|
+
operation: Readonly<{
|
|
280
|
+
owner: Readonly<{
|
|
281
|
+
basis: Readonly<import("../originalOwner.js").OriginalBasis>;
|
|
282
|
+
check(): Readonly<import("../originalOwner.js").OriginalSample>;
|
|
283
|
+
sample(): Readonly<import("../originalOwner.js").OriginalSample>;
|
|
284
|
+
subscribe(fn: () => void): () => void;
|
|
285
|
+
retire(): void;
|
|
286
|
+
}>;
|
|
287
|
+
originAssociation: object;
|
|
288
|
+
originalEntry: unknown;
|
|
289
|
+
originalRecord: unknown;
|
|
290
|
+
readPlan: readonly Readonly<{
|
|
291
|
+
resource: string;
|
|
292
|
+
path: string;
|
|
293
|
+
ordinal: number;
|
|
294
|
+
method: "GET";
|
|
295
|
+
body: undefined;
|
|
296
|
+
options: Readonly<{
|
|
297
|
+
apiVersion: string;
|
|
298
|
+
maxNetworkRetries: 0;
|
|
299
|
+
}>;
|
|
300
|
+
}>[];
|
|
301
|
+
delegate: Readonly<{
|
|
302
|
+
rawRequest: import("stripe").Stripe["rawRequest"];
|
|
303
|
+
}>;
|
|
304
|
+
sink: Readonly<{
|
|
305
|
+
send(record: Parameters<(record: Parameters<(record: Readonly<import("../c10/ownData.js").EventRecord>, ack: (value: unknown) => void) => Promise<void>>[0], ack: Parameters<(record: Readonly<import("../c10/ownData.js").EventRecord>, ack: (value: unknown) => void) => Promise<void>>[1]) => Promise<void>>[0], ack: Parameters<(record: Parameters<(record: Readonly<import("../c10/ownData.js").EventRecord>, ack: (value: unknown) => void) => Promise<void>>[0], ack: Parameters<(record: Readonly<import("../c10/ownData.js").EventRecord>, ack: (value: unknown) => void) => Promise<void>>[1]) => Promise<void>>[1]): Promise<void>;
|
|
306
|
+
}>;
|
|
307
|
+
reserve(claimedOwner: unknown, origin: unknown, entry: unknown): Readonly<{}>;
|
|
308
|
+
}>;
|
|
309
|
+
pair: Readonly<{
|
|
310
|
+
transport: Readonly<{
|
|
311
|
+
readTransport: Readonly<{
|
|
312
|
+
rawRequest: (method: unknown, path: unknown, body: unknown, options: unknown) => Promise<unknown>;
|
|
313
|
+
}>;
|
|
314
|
+
postAttach: (...args: unknown[]) => Promise<Readonly<{
|
|
315
|
+
outcome: "not_started";
|
|
316
|
+
reason: string;
|
|
317
|
+
}> | Readonly<{
|
|
318
|
+
readonly outcome: "provider_rejected";
|
|
319
|
+
readonly phase: "post";
|
|
320
|
+
readonly ordinal: number;
|
|
321
|
+
readonly diagnostics: Readonly<{}>;
|
|
322
|
+
}> | Readonly<{
|
|
323
|
+
outcome: "fulfilled_safe";
|
|
324
|
+
body: unknown;
|
|
325
|
+
statusCode: number;
|
|
326
|
+
}> | Readonly<{
|
|
327
|
+
outcome: "fulfilled_unverified";
|
|
328
|
+
}>>;
|
|
329
|
+
takeReadRejection(...args: unknown[]): Readonly<{
|
|
330
|
+
phase: "read";
|
|
331
|
+
ordinal: number;
|
|
332
|
+
diagnostics: import("../operations/providerFailure.js").Diagnostics;
|
|
333
|
+
}> | null;
|
|
334
|
+
postDisposition(...args: unknown[]): import("../operations/transportKernel.js").PostDisposition;
|
|
335
|
+
}>;
|
|
336
|
+
capability: Readonly<{
|
|
337
|
+
assertSourceOperationBinding(operation: unknown, request: unknown, readPlan: unknown, delegate: unknown): boolean;
|
|
338
|
+
takeFulfilledQuarantine(...args: unknown[]): object | null;
|
|
339
|
+
assertVirginAcquisition(...args: unknown[]): boolean;
|
|
340
|
+
consumeReadCatch(...args: unknown[]): Readonly<{
|
|
341
|
+
phase: "read";
|
|
342
|
+
ordinal: number;
|
|
343
|
+
diagnostics: Readonly<{
|
|
344
|
+
statusCode?: number;
|
|
345
|
+
code?: string;
|
|
346
|
+
requestId?: string;
|
|
347
|
+
type?: string;
|
|
348
|
+
}>;
|
|
349
|
+
}> | null;
|
|
350
|
+
consumePostCatch(actualReply: unknown): Readonly<{
|
|
351
|
+
phase: "post";
|
|
352
|
+
ordinal: number;
|
|
353
|
+
diagnostics: Readonly<{
|
|
354
|
+
statusCode?: number;
|
|
355
|
+
code?: string;
|
|
356
|
+
requestId?: string;
|
|
357
|
+
type?: string;
|
|
358
|
+
}>;
|
|
359
|
+
}> | null;
|
|
360
|
+
}>;
|
|
361
|
+
}>;
|
|
362
|
+
reader: Readonly<{
|
|
363
|
+
acquire(): Promise<import("../acquisition/ownedAcquisition.js").RawAcquisitionResult>;
|
|
364
|
+
}>;
|
|
365
|
+
}>>;
|
|
366
|
+
/** Best-effort final read fence; this is not an atomic journal/provider lock. */
|
|
367
|
+
export declare function assertReplayFrontierForLineage(token: object): Promise<void>;
|
|
368
|
+
//# sourceMappingURL=recoveryFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recoveryFactory.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/producer/recoveryFactory.ts"],"names":[],"mappings":"AAaA,2FAA2F;AAC3F,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA8D/B,OAAO,UAAU,OAAO,SAAS,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAtCjE;AA2ED,iFAAiF;AACjF,wBAAsB,8BAA8B,CAAC,KAAK,EAAE,MAAM,iBAoBjE"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { takeInitialRecoveryRecord } from "../operations/initialAttach.js";
|
|
2
|
+
import { readInitialLineage } from "./lineageAuthority.js";
|
|
3
|
+
import { ownerForInitialLineage } from "./ownerFactory.js";
|
|
4
|
+
import { ownedAwaitForInitialLineage } from "./ownedAwaitFactory.js";
|
|
5
|
+
import { operationForInitialLineage } from "./operationFactory.js";
|
|
6
|
+
import { journalWorkForInitialLineage } from "./journalWorkFactory.js";
|
|
7
|
+
import { build } from "../operations/transportKernel.js";
|
|
8
|
+
import { createSelectedRawAcquisition } from "../acquisition/ownedAcquisition.js";
|
|
9
|
+
import { need, sourceMethod } from "../operations/initialActorData.js";
|
|
10
|
+
import { closed } from "../operations/types.js";
|
|
11
|
+
import { COMPILED_RECOVERY_ENTRIES } from "../operations/sourceOperations.js";
|
|
12
|
+
const frames = new WeakMap();
|
|
13
|
+
/** One reservation of actual initial custody, synchronously before construction awaits. */
|
|
14
|
+
export function recoveryOperationForLineage(token) {
|
|
15
|
+
need(arguments.length === 1);
|
|
16
|
+
const owner = ownerForInitialLineage(token);
|
|
17
|
+
owner.check();
|
|
18
|
+
let pending = frames.get(token);
|
|
19
|
+
if (!pending) {
|
|
20
|
+
const snapshot = takeInitialRecoveryRecord(token);
|
|
21
|
+
need(sourceMethod(snapshot.entry, "coversRetained") ===
|
|
22
|
+
snapshot.retainedPredicate);
|
|
23
|
+
need(sourceMethod(snapshot.entry, "coversFresh") === snapshot.freshPredicate);
|
|
24
|
+
const relations = COMPILED_RECOVERY_ENTRIES.filter((value) => {
|
|
25
|
+
const relation = closed(value, ["originalEntry", "coversReplay"]);
|
|
26
|
+
sourceMethod(value, "coversReplay");
|
|
27
|
+
return relation.originalEntry === snapshot.entry;
|
|
28
|
+
});
|
|
29
|
+
need(relations.length === 1);
|
|
30
|
+
pending = construct(token, snapshot);
|
|
31
|
+
frames.set(token, pending);
|
|
32
|
+
}
|
|
33
|
+
return pending;
|
|
34
|
+
}
|
|
35
|
+
async function construct(token, snapshot) {
|
|
36
|
+
const owner = ownerForInitialLineage(token);
|
|
37
|
+
const owned = ownedAwaitForInitialLineage(token);
|
|
38
|
+
const lineage = readInitialLineage(token);
|
|
39
|
+
const original = await owned(() => operationForInitialLineage(token));
|
|
40
|
+
owner.check();
|
|
41
|
+
if (snapshot.response !== null)
|
|
42
|
+
return Object.freeze({
|
|
43
|
+
snapshot,
|
|
44
|
+
operation: null,
|
|
45
|
+
pair: null,
|
|
46
|
+
reader: null,
|
|
47
|
+
});
|
|
48
|
+
const manifest = await owned(() => lineage.journal.readAttempt({ attemptId: lineage.reservation.attemptId }));
|
|
49
|
+
need(manifest &&
|
|
50
|
+
manifest.events.length === 1 &&
|
|
51
|
+
manifest.events[0].sequence === 1);
|
|
52
|
+
need((await owned(() => lineage.journal.readProviderAcknowledgement())) === null);
|
|
53
|
+
need(journalWorkForInitialLineage(token).idle());
|
|
54
|
+
let reserved = false;
|
|
55
|
+
const operation = Object.freeze({
|
|
56
|
+
owner,
|
|
57
|
+
originAssociation: lineage.originAssociation,
|
|
58
|
+
originalEntry: snapshot.entry,
|
|
59
|
+
originalRecord: snapshot.originalRecord,
|
|
60
|
+
readPlan: original.operation.readPlan,
|
|
61
|
+
delegate: original.operation.delegate,
|
|
62
|
+
sink: original.operation.sink,
|
|
63
|
+
reserve(claimedOwner, origin, entry) {
|
|
64
|
+
need(arguments.length === 3 &&
|
|
65
|
+
!reserved &&
|
|
66
|
+
claimedOwner === owner &&
|
|
67
|
+
origin === lineage.originAssociation &&
|
|
68
|
+
entry === snapshot.entry);
|
|
69
|
+
reserved = true;
|
|
70
|
+
owner.check();
|
|
71
|
+
return Object.freeze({});
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
const pair = build({
|
|
75
|
+
owner,
|
|
76
|
+
request: original.request,
|
|
77
|
+
readPlan: operation.readPlan,
|
|
78
|
+
delegate: operation.delegate,
|
|
79
|
+
}, { operation, readPlan: operation.readPlan, delegate: operation.delegate }, token);
|
|
80
|
+
const acquisition = createSelectedRawAcquisition(owner, pair.transport.readTransport);
|
|
81
|
+
const reader = Object.freeze({
|
|
82
|
+
acquire() {
|
|
83
|
+
need(arguments.length === 0);
|
|
84
|
+
return owned(() => acquisition.acquire(original.expected));
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
owner.check();
|
|
88
|
+
return Object.freeze({ snapshot, operation, pair, reader });
|
|
89
|
+
}
|
|
90
|
+
/** Best-effort final read fence; this is not an atomic journal/provider lock. */
|
|
91
|
+
export async function assertReplayFrontierForLineage(token) {
|
|
92
|
+
need(arguments.length === 1 && frames.has(token));
|
|
93
|
+
const owner = ownerForInitialLineage(token);
|
|
94
|
+
const owned = ownedAwaitForInitialLineage(token);
|
|
95
|
+
const lineage = readInitialLineage(token);
|
|
96
|
+
owner.check();
|
|
97
|
+
need(journalWorkForInitialLineage(token).idle());
|
|
98
|
+
need((await owned(() => lineage.journal.readProviderAcknowledgement())) === null);
|
|
99
|
+
const manifest = await owned(() => lineage.journal.readAttempt({ attemptId: lineage.reservation.attemptId }));
|
|
100
|
+
need(manifest &&
|
|
101
|
+
manifest.events.length === 1 &&
|
|
102
|
+
manifest.events[0].sequence === 1);
|
|
103
|
+
need(journalWorkForInitialLineage(token).idle());
|
|
104
|
+
owner.check();
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=recoveryFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recoveryFactory.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/producer/recoveryFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,MAAM,MAAM,GAAG,IAAI,OAAO,EAAwC,CAAC;AACnE,2FAA2F;AAC3F,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACvD,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAC7B,MAAM,KAAK,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAC5C,KAAK,CAAC,KAAK,EAAE,CAAC;IACd,IAAI,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAChC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,QAAQ,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC;QAClD,IAAI,CACF,YAAY,CAAC,QAAQ,CAAC,KAAK,EAAE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AAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACjD,IAAI,CACF,CAAC,MAAM,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,2BAA2B,EAAE,CAAC,CAAC,KAAK,IAAI,CAC5E,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE,CAChC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC,CAC1E,CAAC;IACF,IAAI,CACF,QAAQ;QACN,QAAQ,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC;QAC5B,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CACpC,CAAC;IACF,IAAI,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACjD,KAAK,CAAC,KAAK,EAAE,CAAC;AAChB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type Stripe from "stripe";
|
|
2
|
+
/** Transport kernels keep the original SDK promise and guard their continuation. */
|
|
3
|
+
export declare function captureInitialStockRawDelegate(token: object): Readonly<{
|
|
4
|
+
rawRequest: Stripe["rawRequest"];
|
|
5
|
+
}>;
|
|
2
6
|
/** Fixed selected client and original receiver; no replacement-client parameter. */
|
|
3
7
|
export declare function stockDelegateForInitialLineage(token: object): Readonly<{
|
|
4
8
|
rawRequest: Stripe["rawRequest"];
|
|
@@ -1 +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;
|
|
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;AAkBjC,oFAAoF;AACpF,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,MAAM,GACZ,QAAQ,CAAC;IAAE,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC,CAAA;CAAE,CAAC,CAShD;AAED,oFAAoF;AACpF,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC;IACtE,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;CAClC,CAAC,CAWD"}
|
|
@@ -1,15 +1,36 @@
|
|
|
1
1
|
import { readInitialLineage } from "./lineageAuthority.js";
|
|
2
2
|
import { ownerForInitialLineage } from "./ownerFactory.js";
|
|
3
3
|
import { ownedAwaitForInitialLineage } from "./ownedAwaitFactory.js";
|
|
4
|
-
|
|
5
|
-
export function stockDelegateForInitialLineage(token) {
|
|
4
|
+
function stockCall(token) {
|
|
6
5
|
const lineage = readInitialLineage(token);
|
|
7
6
|
const owner = ownerForInitialLineage(token);
|
|
7
|
+
return Object.freeze({
|
|
8
|
+
owner,
|
|
9
|
+
call(args) {
|
|
10
|
+
return Reflect.apply(lineage.method, lineage.client, args);
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/** Transport kernels keep the original SDK promise and guard their continuation. */
|
|
15
|
+
export function captureInitialStockRawDelegate(token) {
|
|
16
|
+
if (arguments.length !== 1)
|
|
17
|
+
throw Error("INITIAL_OPERATION_UNBOUND");
|
|
18
|
+
const binding = stockCall(token);
|
|
19
|
+
return Object.freeze({
|
|
20
|
+
rawRequest(...args) {
|
|
21
|
+
binding.owner.check();
|
|
22
|
+
return binding.call(args);
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/** Fixed selected client and original receiver; no replacement-client parameter. */
|
|
27
|
+
export function stockDelegateForInitialLineage(token) {
|
|
28
|
+
const { owner, call } = stockCall(token);
|
|
8
29
|
const owned = ownedAwaitForInitialLineage(token);
|
|
9
30
|
return Object.freeze({
|
|
10
31
|
rawRequest(...args) {
|
|
11
32
|
owner.check();
|
|
12
|
-
return owned(() =>
|
|
33
|
+
return owned(() => call(args));
|
|
13
34
|
},
|
|
14
35
|
});
|
|
15
36
|
}
|
|
@@ -1 +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,
|
|
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,SAAS,SAAS,CAAC,KAAa;IAC9B,MAAM,OAAO,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,KAAK,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAC5C,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,KAAK;QACL,IAAI,CAAC,IAAsC;YACzC,OAAO,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,CAExD,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,8BAA8B,CAC5C,KAAa;IAEb,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACrE,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IACjC,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,UAAU,CAAC,GAAG,IAAsC;YAClD,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YACtB,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,8BAA8B,CAAC,KAAa;IAG1D,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IACzC,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,CAAC,IAAI,CAAC,IAAI,CAAC,CAAqC,CAAC;QACrE,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -4,5 +4,6 @@ type Receipt = Awaited<ReturnType<typeof constructRenewalScheduleAttachmentRecei
|
|
|
4
4
|
type Prepared = Awaited<ReturnType<typeof prepareRenewalPriceReplacementV2>>;
|
|
5
5
|
/** Full result admission; caller must retain its own Source association and final Owner gate. */
|
|
6
6
|
export declare function admitRecoveryOutput(receipt: Receipt, observed: unknown, prepared: Prepared, request: AttachRequest): unknown;
|
|
7
|
+
export declare function admitRecoveryOutputForLineage(token: object, receipt: Receipt, observed: unknown, prepared: Prepared, request: AttachRequest): unknown;
|
|
7
8
|
export {};
|
|
8
9
|
//# sourceMappingURL=output.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/recovery/output.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/recovery/output.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,2CAA2C,EAC3C,gCAAgC,EACjC,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,KAAK,OAAO,GAAG,OAAO,CACpB,UAAU,CAAC,OAAO,2CAA2C,CAAC,CAC/D,CAAC;AACF,KAAK,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,CAAC;AAC7E,iGAAiG;AACjG,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,OAAO,EACjB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,aAAa,WAGvB;AACD,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,OAAO,EACjB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,aAAa,WAQvB"}
|
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
import { types } from "node:util";
|
|
2
|
+
import { ownerForInitialLineage } from "../producer/ownerFactory.js";
|
|
2
3
|
import { requiredJSONSnapshot } from "../material/requiredJson.js";
|
|
3
4
|
import { objectNode, scalarNode, encode, materialize, need, freeze, } from "../material/nodeKernel.js";
|
|
4
5
|
/** Full result admission; caller must retain its own Source association and final Owner gate. */
|
|
5
6
|
export function admitRecoveryOutput(receipt, observed, prepared, request) {
|
|
7
|
+
return admitOutput(receipt, observed, prepared, request, false);
|
|
8
|
+
}
|
|
9
|
+
export function admitRecoveryOutputForLineage(token, receipt, observed, prepared, request) {
|
|
10
|
+
need(arguments.length === 5);
|
|
11
|
+
const owner = ownerForInitialLineage(token);
|
|
12
|
+
owner.check();
|
|
13
|
+
const result = admitOutput(receipt, observed, prepared, request, true);
|
|
14
|
+
owner.check();
|
|
15
|
+
return result;
|
|
16
|
+
}
|
|
17
|
+
function admitOutput(receipt, observed, prepared, request, allowNull) {
|
|
6
18
|
need(!types.isProxy(observed));
|
|
7
|
-
const observedID =
|
|
8
|
-
?
|
|
9
|
-
:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
19
|
+
const observedID = allowNull && observed === null
|
|
20
|
+
? null
|
|
21
|
+
: typeof observed === "string"
|
|
22
|
+
? observed
|
|
23
|
+
: (() => {
|
|
24
|
+
need(observed !== null && typeof observed === "object");
|
|
25
|
+
return Object.getOwnPropertyDescriptor(observed, "id")
|
|
26
|
+
?.value;
|
|
27
|
+
})();
|
|
14
28
|
const output = {
|
|
15
29
|
kind: "EXPLICIT_ATTACH_RECOVERY_V2_DATA_ONLY",
|
|
16
30
|
status: "attach_acknowledged",
|
|
@@ -18,7 +32,7 @@ export function admitRecoveryOutput(receipt, observed, prepared, request) {
|
|
|
18
32
|
receipt,
|
|
19
33
|
observation: {
|
|
20
34
|
schedule: observed,
|
|
21
|
-
conflict: observedID !== receipt.scheduleId,
|
|
35
|
+
conflict: observedID !== null && observedID !== receipt.scheduleId,
|
|
22
36
|
authority: "unowned_prepost_observation_only",
|
|
23
37
|
},
|
|
24
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/recovery/output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EACL,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,IAAI,EACJ,MAAM,GAEP,MAAM,2BAA2B,CAAC;AAWnC,iGAAiG;AACjG,MAAM,UAAU,mBAAmB,CACjC,OAAgB,EAChB,QAAiB,EACjB,QAAkB,EAClB,OAAsB;IAEtB,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/B,MAAM,UAAU,GACd,OAAO,QAAQ,KAAK,QAAQ;
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/recovery/output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EACL,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,IAAI,EACJ,MAAM,GAEP,MAAM,2BAA2B,CAAC;AAWnC,iGAAiG;AACjG,MAAM,UAAU,mBAAmB,CACjC,OAAgB,EAChB,QAAiB,EACjB,QAAkB,EAClB,OAAsB;IAEtB,OAAO,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AACD,MAAM,UAAU,6BAA6B,CAC3C,KAAa,EACb,OAAgB,EAChB,QAAiB,EACjB,QAAkB,EAClB,OAAsB;IAEtB,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAC7B,MAAM,KAAK,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAC5C,KAAK,CAAC,KAAK,EAAE,CAAC;IACd,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACvE,KAAK,CAAC,KAAK,EAAE,CAAC;IACd,OAAO,MAAM,CAAC;AAChB,CAAC;AACD,SAAS,WAAW,CAClB,OAAgB,EAChB,QAAiB,EACjB,QAAkB,EAClB,OAAsB,EACtB,SAAkB;IAElB,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ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retains and proves its own record. */
|
|
10
10
|
export declare function captureRecoveryRecord(live: unknown): CapturedRecord;
|
|
11
|
+
export declare function captureRecoveryRecordForLineage(token: object, live: unknown): CapturedRecord;
|
|
11
12
|
export declare function verifyRecoveryRecord(captured: CapturedRecord, prepared: Awaited<ReturnType<typeof prepareRenewalPriceReplacementV2>>, request: AttachRequest, retained: unknown, original: unknown): void;
|
|
12
13
|
//# sourceMappingURL=record.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/recovery/record.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/recovery/record.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,KAAK,IAAI,EACV,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAyD5D,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;IACpC,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC,CAAC;AAEH,kFAAkF;AAClF,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,CAEnE;AACD,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,OAAO,GACZ,cAAc,CAGhB;AA4HD,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,EACtE,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,OAAO,EACjB,QAAQ,EAAE,OAAO,GAChB,IAAI,CAwBN"}
|