@fantastic.dev/better-stripe 0.90.0 → 0.91.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 +6 -0
- package/README.md +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.d.ts +41 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.js +187 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts +2 -23
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js +1 -112
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts +8 -3
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts +1 -1
- package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts +8 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.js +454 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.d.ts +12 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.js +99 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.d.ts +16 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.js +274 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.js +9 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.d.ts +39 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.js +245 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.d.ts +88 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.js +289 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.d.ts +16 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.js +362 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.d.ts +9 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.js +215 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.d.ts +7 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.js +190 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.js +317 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.d.ts +79 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.js +27 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.d.ts +18 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js +229 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.d.ts +163 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.js +443 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts +8 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js +467 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.d.ts +6 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.js +59 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.d.ts +10 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.js +48 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.d.ts +20 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.js +44 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.d.ts +42 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.js +158 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.js +214 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.d.ts +33 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.js +208 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.d.ts +4 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.js +25 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.d.ts +16 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.js +93 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.d.ts +7 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.js +153 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.d.ts +22 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.js +221 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.d.ts +8 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.js +101 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.d.ts +12 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.js +186 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js +498 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.d.ts +21 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.js +119 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.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 +16 -16
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
- package/dist/component/usage/allowance.fixtures.d.ts +16 -16
- package/docs/renewal-context-reads.md +26 -8
- package/docs/renewal-material-observation.md +37 -0
- package/docs/renewal-phase-assembly.md +68 -0
- package/docs/renewal-raw-acquisition.md +19 -5
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.ts +304 -0
- package/src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts +2 -160
- package/src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts +15 -3
- package/src/client/billing/renewalAttach/internal/configure/actor.ts +575 -0
- package/src/client/billing/renewalAttach/internal/configure/capture.ts +117 -0
- package/src/client/billing/renewalAttach/internal/configure/dispatch.integration.test.ts +32 -0
- package/src/client/billing/renewalAttach/internal/configure/limits.test.ts +510 -0
- package/src/client/billing/renewalAttach/internal/configure/order.integration.test.ts +207 -0
- package/src/client/billing/renewalAttach/internal/configure/output.ts +372 -0
- package/src/client/billing/renewalAttach/internal/configure/ownership.integration.test.ts +148 -0
- package/src/client/billing/renewalAttach/internal/configure/replay.integration.test.ts +173 -0
- package/src/client/billing/renewalAttach/internal/configure/replay.ts +13 -0
- package/src/client/billing/renewalAttach/internal/configure/request.ts +312 -0
- package/src/client/billing/renewalAttach/internal/configure/transport.integration.test.ts +507 -0
- package/src/client/billing/renewalAttach/internal/configure/transport.ts +348 -0
- package/src/client/billing/renewalAttach/internal/observation/actor.ts +444 -0
- package/src/client/billing/renewalAttach/internal/observation/capture.ts +250 -0
- package/src/client/billing/renewalAttach/internal/observation/observation.integration.test.ts +220 -0
- package/src/client/billing/renewalAttach/internal/observation/observationRetirement.integration.test.ts +60 -0
- package/src/client/billing/renewalAttach/internal/observation/profile.ts +264 -0
- package/src/client/billing/renewalAttach/internal/observation/record.ts +408 -0
- package/src/client/billing/renewalAttach/internal/observation/types.ts +102 -0
- package/src/client/billing/renewalAttach/internal/operations/configureReadTransport.ts +285 -0
- package/src/client/billing/renewalAttach/internal/operations/defaultBindings.test.ts +69 -0
- package/src/client/billing/renewalAttach/internal/operations/fixedTransport.ts +574 -0
- package/src/client/billing/renewalAttach/internal/operations/initialAttach.integration.test.ts +34 -0
- package/src/client/billing/renewalAttach/internal/operations/initialAttach.ts +535 -0
- package/src/client/billing/renewalAttach/internal/operations/ownedAwait.ts +63 -0
- package/src/client/billing/renewalAttach/internal/operations/providerFailure.integration.test.ts +61 -0
- package/src/client/billing/renewalAttach/internal/operations/providerFailure.ts +66 -0
- package/src/client/billing/renewalAttach/internal/operations/sourceOperations.ts +50 -0
- package/src/client/billing/renewalAttach/internal/operations/transport.integration.test.ts +116 -0
- package/src/client/billing/renewalAttach/internal/operations/types.ts +223 -0
- package/src/client/billing/renewalAttach/internal/preflight/configurePreflight.integration.test.ts +285 -0
- package/src/client/billing/renewalAttach/internal/preflight/configurePreflight.ts +258 -0
- package/src/client/billing/renewalAttach/internal/preflight/configureReads.integration.test.ts +139 -0
- package/src/client/billing/renewalAttach/internal/preflight/grammar.ts +257 -0
- package/src/client/billing/renewalAttach/internal/preflight/output.ts +42 -0
- package/src/client/billing/renewalAttach/internal/preflight/owner.integration.test.ts +82 -0
- package/src/client/billing/renewalAttach/internal/preflight/preflight.integration.test.ts +354 -0
- package/src/client/billing/renewalAttach/internal/preflight/record.ts +127 -0
- package/src/client/billing/renewalAttach/internal/preflight/relations.ts +209 -0
- package/src/client/billing/renewalAttach/internal/recovery/material.ts +311 -0
- package/src/client/billing/renewalAttach/internal/recovery/output.ts +136 -0
- package/src/client/billing/renewalAttach/internal/recovery/record.ts +230 -0
- package/src/client/billing/renewalAttach/internal/recovery/recovery.integration.test.ts +463 -0
- package/src/client/billing/renewalAttach/internal/recovery/recoveryActor.ts +599 -0
- package/src/client/billing/renewalAttach/internal/recovery/relation.ts +175 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachEntries.ts +217 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachObservations.ts +226 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenario.ts +556 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioAssertions.ts +180 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioBarriers.ts +144 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightAssertions.ts +122 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightBarriers.ts +330 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightControls.ts +139 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightOperation.ts +513 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadNativeBaseline.ts +344 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadOperation.ts +278 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadPort.ts +17 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteAssertions.ts +533 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteBarriers.ts +125 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDeclarations.ts +314 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteHistory.ts +463 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteObservations.ts +515 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteOperation.ts +600 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationAssertions.ts +211 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationDeclarations.ts +192 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationHTTP.ts +197 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationObservations.ts +269 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationOperation.ts +262 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationProbe.ts +319 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/ownedOperations.ts +94 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/sourceOperationPort.ts +16 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/stockHttp.ts +21 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { type Row } from "./request.js";
|
|
2
|
+
import type { Diagnostics } from "../operations/providerFailure.js";
|
|
3
|
+
export type Disposition = "NOT_STARTED" | "PENDING" | "REJECTED" | "FULFILLED_UNVERIFIED" | "FULFILLED_SAFE";
|
|
4
|
+
export declare function createConfigureWriteTransport(): Readonly<{
|
|
5
|
+
transport: Readonly<{
|
|
6
|
+
readTransport: Readonly<{
|
|
7
|
+
rawRequest(verb: "GET", path: string, body: undefined, options: unknown): Promise<unknown>;
|
|
8
|
+
}>;
|
|
9
|
+
postDisposition(): Disposition;
|
|
10
|
+
postConfigure(): Promise<Readonly<{
|
|
11
|
+
outcome: "not_started";
|
|
12
|
+
}> | Readonly<{
|
|
13
|
+
outcome: "post_unknown";
|
|
14
|
+
}> | Readonly<{
|
|
15
|
+
outcome: "provider_rejected";
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
outcome: "fulfilled_safe";
|
|
18
|
+
body: Record<string, unknown>;
|
|
19
|
+
transport: {
|
|
20
|
+
status: number;
|
|
21
|
+
requestId?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
outcome: "fulfilled_unverified";
|
|
25
|
+
}>>;
|
|
26
|
+
}>;
|
|
27
|
+
capability: Readonly<{
|
|
28
|
+
assertSourceOperationBinding(actualOperation: unknown, originalRequest: unknown, actualReadPlan: unknown, actualDelegate: unknown, originalMethod: unknown, expected: readonly Row[]): boolean;
|
|
29
|
+
reserveAcquisition(): boolean;
|
|
30
|
+
consumeReadCatch(): Readonly<{
|
|
31
|
+
phase: "read" | "post";
|
|
32
|
+
resource: string;
|
|
33
|
+
ordinal: number;
|
|
34
|
+
diagnostics: Diagnostics;
|
|
35
|
+
}> | null;
|
|
36
|
+
consumePostCatch(actualReply: unknown): Readonly<{
|
|
37
|
+
phase: "read" | "post";
|
|
38
|
+
resource: string;
|
|
39
|
+
ordinal: number;
|
|
40
|
+
diagnostics: Diagnostics;
|
|
41
|
+
}> | null;
|
|
42
|
+
consumeNotStarted(actualReply: unknown): boolean;
|
|
43
|
+
discardFulfilledQuarantine(): void;
|
|
44
|
+
}>;
|
|
45
|
+
}>;
|
|
46
|
+
export declare function createConfigureReplayTransport(): Readonly<{
|
|
47
|
+
transport: Readonly<{
|
|
48
|
+
readTransport: Readonly<{
|
|
49
|
+
rawRequest(verb: "GET", path: string, body: undefined, options: unknown): Promise<unknown>;
|
|
50
|
+
}>;
|
|
51
|
+
postDisposition(): Disposition;
|
|
52
|
+
postConfigure(): Promise<Readonly<{
|
|
53
|
+
outcome: "not_started";
|
|
54
|
+
}> | Readonly<{
|
|
55
|
+
outcome: "post_unknown";
|
|
56
|
+
}> | Readonly<{
|
|
57
|
+
outcome: "provider_rejected";
|
|
58
|
+
}> | Readonly<{
|
|
59
|
+
outcome: "fulfilled_safe";
|
|
60
|
+
body: Record<string, unknown>;
|
|
61
|
+
transport: {
|
|
62
|
+
status: number;
|
|
63
|
+
requestId?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
}> | Readonly<{
|
|
66
|
+
outcome: "fulfilled_unverified";
|
|
67
|
+
}>>;
|
|
68
|
+
}>;
|
|
69
|
+
capability: Readonly<{
|
|
70
|
+
assertSourceOperationBinding(actualOperation: unknown, originalRequest: unknown, actualReadPlan: unknown, actualDelegate: unknown, originalMethod: unknown, expected: readonly Row[]): boolean;
|
|
71
|
+
reserveAcquisition(): boolean;
|
|
72
|
+
consumeReadCatch(): Readonly<{
|
|
73
|
+
phase: "read" | "post";
|
|
74
|
+
resource: string;
|
|
75
|
+
ordinal: number;
|
|
76
|
+
diagnostics: Diagnostics;
|
|
77
|
+
}> | null;
|
|
78
|
+
consumePostCatch(actualReply: unknown): Readonly<{
|
|
79
|
+
phase: "read" | "post";
|
|
80
|
+
resource: string;
|
|
81
|
+
ordinal: number;
|
|
82
|
+
diagnostics: Diagnostics;
|
|
83
|
+
}> | null;
|
|
84
|
+
consumeNotStarted(actualReply: unknown): boolean;
|
|
85
|
+
discardFulfilledQuarantine(): void;
|
|
86
|
+
}>;
|
|
87
|
+
}>;
|
|
88
|
+
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/configure/transport.ts"],"names":[],"mappings":"AAUA,OAAO,EAML,KAAK,GAAG,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,MAAM,MAAM,WAAW,GACnB,aAAa,GACb,SAAS,GACT,UAAU,GACV,sBAAsB,GACtB,gBAAgB,CAAC;AAqTrB,wBAAgB,6BAA6B;;;6BA3NjC,KAAK,QACL,MAAM,QACN,SAAS,WACN,OAAO,GACf,OAAO,CAAC,OAAO,CAAC;;2BAiDA,WAAW;;qBAYa,aAAa;;qBAqBpB,cAAc;;qBASN,mBAAmB;;qBA0BhD,gBAAgB;;;;;;;qBAMK,sBAAsB;;;;sDAMvC,OAAO,mBACP,OAAO,kBACR,OAAO,kBACP,OAAO,kBACP,OAAO,YACb,SAAS,GAAG,EAAE;;;mBA9OrB,MAAM,GAAG,MAAM;sBACZ,MAAM;qBACP,MAAM;yBACF,WAAW;;sCAuRQ,OAAO;mBA1RhC,MAAM,GAAG,MAAM;sBACZ,MAAM;qBACP,MAAM;yBACF,WAAW;;uCAySS,OAAO;;;GAsBzC;AACD,wBAAgB,8BAA8B;;;6BA/NlC,KAAK,QACL,MAAM,QACN,SAAS,WACN,OAAO,GACf,OAAO,CAAC,OAAO,CAAC;;2BAiDA,WAAW;;qBAYa,aAAa;;qBAqBpB,cAAc;;qBASN,mBAAmB;;qBA0BhD,gBAAgB;;;;;;;qBAMK,sBAAsB;;;;sDAMvC,OAAO,mBACP,OAAO,kBACR,OAAO,kBACP,OAAO,kBACP,OAAO,YACb,SAAS,GAAG,EAAE;;;mBA9OrB,MAAM,GAAG,MAAM;sBACZ,MAAM;qBACP,MAAM;yBACF,WAAW;;sCAuRQ,OAAO;mBA1RhC,MAAM,GAAG,MAAM;sBACZ,MAAM;qBACP,MAAM;yBACF,WAAW;;uCAySS,OAAO;;;GA0BzC"}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { types } from "node:util";
|
|
2
|
+
import { OWNER } from "../originalOwner.js";
|
|
3
|
+
import { closed } from "../operations/types.js";
|
|
4
|
+
import { equal } from "../../../renewalAggregate/shared.js";
|
|
5
|
+
import { loadConfigureWriteTransportSource, loadConfigureReplayTransportSource, } from "../operations/sourceOperations.js";
|
|
6
|
+
import { captureConfigureRequest } from "./output.js";
|
|
7
|
+
import { captureConfigureReply, configureDiagnostics } from "./capture.js";
|
|
8
|
+
import { capturePlan, samePlan, ownMethod, need, stop, } from "./request.js";
|
|
9
|
+
function build(load) {
|
|
10
|
+
OWNER.check();
|
|
11
|
+
const raw = load();
|
|
12
|
+
OWNER.check();
|
|
13
|
+
need(!types.isProxy(raw));
|
|
14
|
+
const frame = closed(raw, [
|
|
15
|
+
"owner",
|
|
16
|
+
"operation",
|
|
17
|
+
"request",
|
|
18
|
+
"readPlan",
|
|
19
|
+
"delegate",
|
|
20
|
+
]);
|
|
21
|
+
need(frame.owner === OWNER);
|
|
22
|
+
const operation = frame.operation, readPlanReference = frame.readPlan, delegate = frame.delegate;
|
|
23
|
+
const request = captureConfigureRequest(frame.request), plan = capturePlan(readPlanReference), method = ownMethod(delegate, "rawRequest"), generation = Object.freeze({});
|
|
24
|
+
let phase = "unused", index = 0, closedOwner = false, checking = false, dispatching = false, postState = "NOT_STARTED";
|
|
25
|
+
let pending = null, readCatch = null, lastRead = null, postAttempt = null;
|
|
26
|
+
const postCatches = new WeakMap(), notStarted = new WeakSet();
|
|
27
|
+
let _quarantine = null;
|
|
28
|
+
function gate() {
|
|
29
|
+
if (closedOwner || checking) {
|
|
30
|
+
closedOwner = true;
|
|
31
|
+
stop();
|
|
32
|
+
}
|
|
33
|
+
checking = true;
|
|
34
|
+
try {
|
|
35
|
+
OWNER.check();
|
|
36
|
+
if (closedOwner)
|
|
37
|
+
stop();
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
closedOwner = true;
|
|
41
|
+
stop();
|
|
42
|
+
}
|
|
43
|
+
finally {
|
|
44
|
+
checking = false;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const live = () => {
|
|
48
|
+
try {
|
|
49
|
+
gate();
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const valid = (a) => pending === a && a.generation === generation;
|
|
57
|
+
function start(kind, resource, args) {
|
|
58
|
+
need(pending === null && !dispatching);
|
|
59
|
+
// A synchronous throw or non-Promise result is not an actual asynchronous catch.
|
|
60
|
+
let promise;
|
|
61
|
+
dispatching = true;
|
|
62
|
+
try {
|
|
63
|
+
promise = Reflect.apply(method, delegate, args);
|
|
64
|
+
}
|
|
65
|
+
finally {
|
|
66
|
+
dispatching = false;
|
|
67
|
+
}
|
|
68
|
+
need(types.isPromise(promise));
|
|
69
|
+
const attempt = Object.freeze({
|
|
70
|
+
generation,
|
|
71
|
+
ordinal: index + 1,
|
|
72
|
+
phase: kind,
|
|
73
|
+
resource,
|
|
74
|
+
promise: promise,
|
|
75
|
+
});
|
|
76
|
+
need(attempt.ordinal <= (kind === "read" ? 44 : 45));
|
|
77
|
+
pending = attempt;
|
|
78
|
+
return attempt;
|
|
79
|
+
}
|
|
80
|
+
const readTransport = Object.freeze({
|
|
81
|
+
async rawRequest(verb, path, body, options) {
|
|
82
|
+
need(arguments.length === 4);
|
|
83
|
+
gate();
|
|
84
|
+
need(phase === "reserved" &&
|
|
85
|
+
pending === null &&
|
|
86
|
+
!dispatching &&
|
|
87
|
+
index < plan.length);
|
|
88
|
+
const row = plan[index];
|
|
89
|
+
need(!types.isProxy(options));
|
|
90
|
+
const o = closed(options, ["apiVersion", "maxNetworkRetries"]);
|
|
91
|
+
need(verb === row.method &&
|
|
92
|
+
path === row.path &&
|
|
93
|
+
body === undefined &&
|
|
94
|
+
o.apiVersion === row.options.apiVersion &&
|
|
95
|
+
o.maxNetworkRetries === 0);
|
|
96
|
+
const a = start("read", row.resource, [verb, path, body, row.options]);
|
|
97
|
+
let reply;
|
|
98
|
+
try {
|
|
99
|
+
reply = await a.promise;
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
phase = "failed";
|
|
103
|
+
lastRead = a;
|
|
104
|
+
if (live() && valid(a))
|
|
105
|
+
readCatch = {
|
|
106
|
+
attempt: a,
|
|
107
|
+
fact: Object.freeze({
|
|
108
|
+
phase: "read",
|
|
109
|
+
resource: a.resource,
|
|
110
|
+
ordinal: a.ordinal,
|
|
111
|
+
diagnostics: configureDiagnostics(error),
|
|
112
|
+
}),
|
|
113
|
+
};
|
|
114
|
+
pending = null;
|
|
115
|
+
return stop();
|
|
116
|
+
}
|
|
117
|
+
gate();
|
|
118
|
+
need(valid(a));
|
|
119
|
+
pending = null;
|
|
120
|
+
index++;
|
|
121
|
+
if (index === plan.length)
|
|
122
|
+
phase = "readclosed";
|
|
123
|
+
return reply;
|
|
124
|
+
},
|
|
125
|
+
});
|
|
126
|
+
const transport = Object.freeze({
|
|
127
|
+
readTransport,
|
|
128
|
+
postDisposition() {
|
|
129
|
+
need(arguments.length === 0);
|
|
130
|
+
return postState;
|
|
131
|
+
},
|
|
132
|
+
async postConfigure() {
|
|
133
|
+
need(arguments.length === 0);
|
|
134
|
+
if (phase !== "readclosed" ||
|
|
135
|
+
pending !== null ||
|
|
136
|
+
postState !== "NOT_STARTED" ||
|
|
137
|
+
!live()) {
|
|
138
|
+
const reply = Object.freeze({ outcome: "not_started" });
|
|
139
|
+
notStarted.add(reply);
|
|
140
|
+
return reply;
|
|
141
|
+
}
|
|
142
|
+
phase = "posting";
|
|
143
|
+
// Mark mutation uncertainty before invoking the actual stock delegate.
|
|
144
|
+
postState = "PENDING";
|
|
145
|
+
let a;
|
|
146
|
+
try {
|
|
147
|
+
a = start("post", "configure", [
|
|
148
|
+
request.method,
|
|
149
|
+
request.path,
|
|
150
|
+
request.payload,
|
|
151
|
+
{
|
|
152
|
+
apiVersion: request.apiVersion,
|
|
153
|
+
idempotencyKey: request.key,
|
|
154
|
+
maxNetworkRetries: 0,
|
|
155
|
+
},
|
|
156
|
+
]);
|
|
157
|
+
}
|
|
158
|
+
catch {
|
|
159
|
+
phase = "failed";
|
|
160
|
+
return Object.freeze({ outcome: "post_unknown" });
|
|
161
|
+
}
|
|
162
|
+
postAttempt = a;
|
|
163
|
+
let reply;
|
|
164
|
+
try {
|
|
165
|
+
reply = await a.promise;
|
|
166
|
+
}
|
|
167
|
+
catch (error) {
|
|
168
|
+
postState = "REJECTED";
|
|
169
|
+
phase = "failed";
|
|
170
|
+
const record = Object.freeze({ outcome: "provider_rejected" });
|
|
171
|
+
if (live() && valid(a))
|
|
172
|
+
postCatches.set(record, {
|
|
173
|
+
attempt: a,
|
|
174
|
+
fact: Object.freeze({
|
|
175
|
+
phase: "post",
|
|
176
|
+
resource: "configure",
|
|
177
|
+
ordinal: a.ordinal,
|
|
178
|
+
diagnostics: configureDiagnostics(error),
|
|
179
|
+
}),
|
|
180
|
+
});
|
|
181
|
+
pending = null;
|
|
182
|
+
return record;
|
|
183
|
+
}
|
|
184
|
+
if (valid(a) && postAttempt === a)
|
|
185
|
+
_quarantine = { attempt: a, raw: reply };
|
|
186
|
+
postState = "FULFILLED_UNVERIFIED";
|
|
187
|
+
phase = "fulfilled";
|
|
188
|
+
try {
|
|
189
|
+
gate();
|
|
190
|
+
need(valid(a));
|
|
191
|
+
const admitted = captureConfigureReply(reply);
|
|
192
|
+
gate();
|
|
193
|
+
pending = null;
|
|
194
|
+
postState = "FULFILLED_SAFE";
|
|
195
|
+
return Object.freeze({
|
|
196
|
+
outcome: "fulfilled_safe",
|
|
197
|
+
body: admitted.body,
|
|
198
|
+
transport: admitted.transport,
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
catch {
|
|
202
|
+
pending = null;
|
|
203
|
+
return Object.freeze({ outcome: "fulfilled_unverified" });
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
const capability = Object.freeze({
|
|
208
|
+
assertSourceOperationBinding(actualOperation, originalRequest, actualReadPlan, actualDelegate, originalMethod, expected) {
|
|
209
|
+
need(arguments.length === 6);
|
|
210
|
+
gate();
|
|
211
|
+
if (phase !== "unused" ||
|
|
212
|
+
operation !== actualOperation ||
|
|
213
|
+
actualReadPlan !== readPlanReference ||
|
|
214
|
+
actualDelegate !== delegate ||
|
|
215
|
+
originalMethod !== method) {
|
|
216
|
+
phase = "invalid";
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
const matches = equal(request, captureConfigureRequest(originalRequest)) &&
|
|
220
|
+
samePlan(plan, capturePlan(actualReadPlan)) &&
|
|
221
|
+
samePlan(plan, expected);
|
|
222
|
+
gate();
|
|
223
|
+
phase = matches ? "bound" : "invalid";
|
|
224
|
+
return matches;
|
|
225
|
+
},
|
|
226
|
+
reserveAcquisition() {
|
|
227
|
+
need(arguments.length === 0);
|
|
228
|
+
gate();
|
|
229
|
+
if (phase !== "bound" || index !== 0 || pending !== null)
|
|
230
|
+
return false;
|
|
231
|
+
phase = "reserved";
|
|
232
|
+
return true;
|
|
233
|
+
},
|
|
234
|
+
consumeReadCatch() {
|
|
235
|
+
need(arguments.length === 0);
|
|
236
|
+
if (!live())
|
|
237
|
+
return null;
|
|
238
|
+
const slot = readCatch;
|
|
239
|
+
if (!slot ||
|
|
240
|
+
slot.attempt !== lastRead ||
|
|
241
|
+
slot.attempt.generation !== generation ||
|
|
242
|
+
pending !== null ||
|
|
243
|
+
phase !== "failed")
|
|
244
|
+
return null;
|
|
245
|
+
readCatch = null;
|
|
246
|
+
return slot.fact;
|
|
247
|
+
},
|
|
248
|
+
consumePostCatch(actualReply) {
|
|
249
|
+
need(arguments.length === 1);
|
|
250
|
+
if (!live())
|
|
251
|
+
return null;
|
|
252
|
+
const slot = actualReply !== null && typeof actualReply === "object"
|
|
253
|
+
? postCatches.get(actualReply)
|
|
254
|
+
: undefined;
|
|
255
|
+
if (!slot ||
|
|
256
|
+
slot.attempt !== postAttempt ||
|
|
257
|
+
slot.attempt.generation !== generation ||
|
|
258
|
+
pending !== null ||
|
|
259
|
+
postState !== "REJECTED")
|
|
260
|
+
return null;
|
|
261
|
+
postCatches.delete(actualReply);
|
|
262
|
+
return slot.fact;
|
|
263
|
+
},
|
|
264
|
+
consumeNotStarted(actualReply) {
|
|
265
|
+
need(arguments.length === 1);
|
|
266
|
+
if (actualReply === null ||
|
|
267
|
+
typeof actualReply !== "object" ||
|
|
268
|
+
!notStarted.has(actualReply) ||
|
|
269
|
+
postState !== "NOT_STARTED")
|
|
270
|
+
return false;
|
|
271
|
+
notStarted.delete(actualReply);
|
|
272
|
+
return true;
|
|
273
|
+
},
|
|
274
|
+
// No Owner sample/callback/reflection here: final actor gate immediately precedes this.
|
|
275
|
+
discardFulfilledQuarantine() {
|
|
276
|
+
_quarantine = null;
|
|
277
|
+
},
|
|
278
|
+
});
|
|
279
|
+
return Object.freeze({ transport, capability });
|
|
280
|
+
}
|
|
281
|
+
export function createConfigureWriteTransport() {
|
|
282
|
+
need(arguments.length === 0);
|
|
283
|
+
return build(loadConfigureWriteTransportSource);
|
|
284
|
+
}
|
|
285
|
+
export function createConfigureReplayTransport() {
|
|
286
|
+
need(arguments.length === 0);
|
|
287
|
+
return build(loadConfigureReplayTransportSource);
|
|
288
|
+
}
|
|
289
|
+
//# sourceMappingURL=transport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/configure/transport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AO,IAAI,CAAC;QACd,CAAC;QACD,wFAAwF;QACxF,0BAA0B;YACxB,WAAW,GAAG,IAAI,CAAC;QACrB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;AAClD,CAAC;AACD,MAAM,UAAU,6BAA6B;IAC3C,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAC7B,OAAO,KAAK,CAAC,iCAAiC,CAAC,CAAC;AAClD,CAAC;AACD,MAAM,UAAU,8BAA8B;IAC5C,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAC7B,OAAO,KAAK,CAAC,kCAAkC,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ObservationReads } from "./types.js";
|
|
2
|
+
export declare function captureOwnedRenewalObservationV2(): Readonly<{
|
|
3
|
+
invoke(): Promise<Readonly<{
|
|
4
|
+
status: "not_dispatched";
|
|
5
|
+
reason: "OWNED_OBSERVATION_SOURCE_UNBOUND";
|
|
6
|
+
operationalAuthority: false;
|
|
7
|
+
}> | {
|
|
8
|
+
status: string;
|
|
9
|
+
observation: import("../../../renewalV2/observation.js").RenewalScheduleMaterialObservationV2;
|
|
10
|
+
reads: ObservationReads;
|
|
11
|
+
observedAt: number;
|
|
12
|
+
retainedConfigureAcknowledgement: string;
|
|
13
|
+
operationalAuthority: boolean;
|
|
14
|
+
} | import("../../../renewalAggregate/shared.js").Failure | undefined>;
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=actor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/observation/actor.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAOV,gBAAgB,EACjB,MAAM,YAAY,CAAC;AA4DpB,wBAAgB,gCAAgC;;;;;;;;;;;;;GA2V/C"}
|