@fantastic.dev/better-stripe 0.90.0 → 0.92.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 +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 +14 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.js +444 -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/ownedContinuation.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.js +61 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.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 +383 -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 +216 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.js +11 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.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 +84 -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/payoutExecutionTestHelpers.d.ts +16 -16
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +32 -32
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
- package/dist/component/usage/allowance.fixtures.d.ts +16 -16
- package/dist/component/usageCredits/accounting.fixtures.d.ts +16 -16
- package/docs/renewal-context-reads.md +26 -8
- package/docs/renewal-material-observation.md +58 -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 +586 -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/ownedContinuation.ts +56 -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 +487 -0
- package/src/client/billing/renewalAttach/internal/observation/capture.ts +251 -0
- package/src/client/billing/renewalAttach/internal/observation/configureAcknowledgement.ts +20 -0
- package/src/client/billing/renewalAttach/internal/observation/observation.integration.test.ts +220 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACK.integration.test.ts +36 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKControls.integration.test.ts +48 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKLifecycle.integration.test.ts +44 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfiguredHistory.integration.test.ts +34 -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 +107 -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 +537 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteBarriers.ts +125 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDeclarations.ts +325 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDelegate.ts +38 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteHistory.ts +471 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteObservations.ts +515 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteOperation.ts +587 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationAssertions.ts +211 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKAssertions.ts +115 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKDeclarations.ts +141 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleAssertions.ts +74 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleDeclarations.ts +79 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleInstrumentation.ts +207 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleOperation.ts +494 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKOperation.ts +452 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryAssertions.ts +88 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryDeclarations.ts +170 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryNative.ts +99 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryOperation.ts +411 -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,498 @@
|
|
|
1
|
+
import { sevenWire } from "../c10/ownData.js";
|
|
2
|
+
import { types } from "node:util";
|
|
3
|
+
import { OWNER } from "../originalOwner.js";
|
|
4
|
+
import { prepareRenewalPriceReplacementV2 as c1, prepareRenewalScheduleAttachmentV2 as c2, constructRenewalScheduleAttachmentReceiptV2 as c3, } from "../../../renewalV2/index.js";
|
|
5
|
+
import { classifyOwnedRetainedInitialAttachment } from "../material/classifiers.js";
|
|
6
|
+
import { captureRetainedInput, captureOwnedInput, } from "../material/capture.js";
|
|
7
|
+
import { validateOwnedReadMaterial } from "../material/readMaterial.js";
|
|
8
|
+
import { closed, } from "../operations/types.js";
|
|
9
|
+
import { equal } from "../../../renewalAggregate/shared.js";
|
|
10
|
+
import { owned } from "../operations/ownedAwait.js";
|
|
11
|
+
import { bindRawAcquisitionFromSource } from "../acquisition/ownedAcquisition.js";
|
|
12
|
+
import { createAttachEventCompiler } from "../c10/attachEvents.js";
|
|
13
|
+
import { COMPILED_RECOVERY_ENTRIES as ENTRIES, loadFixedExplicitRecoveryOperation, ORIGINAL_ORIGIN_ASSOCIATION, } from "../operations/sourceOperations.js";
|
|
14
|
+
import { createRecoveryOwnedTransportWithAttemptCapability as createPair } from "../operations/fixedTransport.js";
|
|
15
|
+
import { captureRecoveryRecord, verifyRecoveryRecord } from "./record.js";
|
|
16
|
+
import { replayCouponEligibility } from "./relation.js";
|
|
17
|
+
import { admitRecoveryOutput } from "./output.js";
|
|
18
|
+
import { admitReplayMaterial, assertReplayMaterial } from "./material.js";
|
|
19
|
+
function sourceMethod(object, name) {
|
|
20
|
+
need(object !== null && typeof object === "object" && !types.isProxy(object));
|
|
21
|
+
const d = Object.getOwnPropertyDescriptor(object, name);
|
|
22
|
+
need(d &&
|
|
23
|
+
d.enumerable &&
|
|
24
|
+
"value" in d &&
|
|
25
|
+
typeof d.value === "function" &&
|
|
26
|
+
!types.isProxy(d.value));
|
|
27
|
+
return d.value;
|
|
28
|
+
}
|
|
29
|
+
const stop = () => {
|
|
30
|
+
throw Error("INITIAL_ACTOR_STOP");
|
|
31
|
+
};
|
|
32
|
+
function need(value) {
|
|
33
|
+
if (!value)
|
|
34
|
+
stop();
|
|
35
|
+
}
|
|
36
|
+
const kind = "EXPLICIT_ATTACH_RECOVERY_V2_DATA_ONLY";
|
|
37
|
+
const refuse = (reason) => Object.freeze({
|
|
38
|
+
kind,
|
|
39
|
+
status: "not_dispatched",
|
|
40
|
+
reason,
|
|
41
|
+
operationalAuthority: false,
|
|
42
|
+
});
|
|
43
|
+
/** Explicit recovery retains one record and class relation; it never replaces the initial pair. */
|
|
44
|
+
export function captureOwnedExplicitAttachRecoveryV2() {
|
|
45
|
+
need(arguments.length === 0);
|
|
46
|
+
let consumed = false;
|
|
47
|
+
return Object.freeze({
|
|
48
|
+
async invoke() {
|
|
49
|
+
need(arguments.length === 0);
|
|
50
|
+
if (consumed)
|
|
51
|
+
return refuse("invocation_consumed");
|
|
52
|
+
consumed = true;
|
|
53
|
+
need(!types.isProxy(ENTRIES) && Array.isArray(ENTRIES));
|
|
54
|
+
if (ENTRIES.length === 0)
|
|
55
|
+
return refuse("no_qualified_recovery_class");
|
|
56
|
+
let pair = null, failureControl = null, postEligible = false;
|
|
57
|
+
const uncertain = () => {
|
|
58
|
+
need(pair);
|
|
59
|
+
const state = pair.transport.postDisposition();
|
|
60
|
+
need(state === "FULFILLED_SAFE" || state === "FULFILLED_UNVERIFIED");
|
|
61
|
+
const q = failureControl === null ? null : failureControl.takePostQuarantine();
|
|
62
|
+
return Object.freeze({
|
|
63
|
+
kind,
|
|
64
|
+
status: "fulfilled_unverified",
|
|
65
|
+
operationalAuthority: false,
|
|
66
|
+
...(q === null ? {} : { quarantine: q }),
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
try {
|
|
70
|
+
OWNER.check();
|
|
71
|
+
const live = loadFixedExplicitRecoveryOperation();
|
|
72
|
+
OWNER.check();
|
|
73
|
+
if (live === null)
|
|
74
|
+
return refuse("recovery_source_unbound");
|
|
75
|
+
const op = closed(live, [
|
|
76
|
+
"owner",
|
|
77
|
+
"originAssociation",
|
|
78
|
+
"originalEntry",
|
|
79
|
+
"originalRecord",
|
|
80
|
+
"readPlan",
|
|
81
|
+
"delegate",
|
|
82
|
+
"sink",
|
|
83
|
+
"reserve",
|
|
84
|
+
]);
|
|
85
|
+
need(op.owner === OWNER &&
|
|
86
|
+
op.originAssociation !== null &&
|
|
87
|
+
typeof op.originAssociation === "object" &&
|
|
88
|
+
!types.isProxy(op.originAssociation) &&
|
|
89
|
+
op.originAssociation === ORIGINAL_ORIGIN_ASSOCIATION);
|
|
90
|
+
const reserve = sourceMethod(live, "reserve"), retainedPredicate = sourceMethod(op.originalEntry, "coversRetained");
|
|
91
|
+
const relations = [];
|
|
92
|
+
for (const candidate of ENTRIES) {
|
|
93
|
+
OWNER.check();
|
|
94
|
+
const r = closed(candidate, ["originalEntry", "coversReplay"]);
|
|
95
|
+
if (r.originalEntry === op.originalEntry)
|
|
96
|
+
relations.push({
|
|
97
|
+
raw: candidate,
|
|
98
|
+
predicate: sourceMethod(candidate, "coversReplay"),
|
|
99
|
+
});
|
|
100
|
+
OWNER.check();
|
|
101
|
+
}
|
|
102
|
+
if (relations.length !== 1)
|
|
103
|
+
return refuse("replay_coverage_missing");
|
|
104
|
+
const relation = relations[0];
|
|
105
|
+
OWNER.check();
|
|
106
|
+
const reservation = Reflect.apply(reserve, live, [
|
|
107
|
+
OWNER,
|
|
108
|
+
op.originAssociation,
|
|
109
|
+
op.originalEntry,
|
|
110
|
+
]);
|
|
111
|
+
OWNER.check();
|
|
112
|
+
need(reservation !== null &&
|
|
113
|
+
typeof reservation === "object" &&
|
|
114
|
+
!types.isProxy(reservation));
|
|
115
|
+
// The cached record, reconstructed values and replay classifier remain invocation-local.
|
|
116
|
+
const capturedRecord = captureRecoveryRecord(op.originalRecord);
|
|
117
|
+
OWNER.check();
|
|
118
|
+
const original = captureRetainedInput(capturedRecord.originalRaw), raw = original.attachRequest;
|
|
119
|
+
OWNER.check();
|
|
120
|
+
const prepared = await owned(() => c1(raw.preparation));
|
|
121
|
+
OWNER.check();
|
|
122
|
+
const request = await owned(() => c2({
|
|
123
|
+
prepared,
|
|
124
|
+
apiVersion: raw.apiVersion,
|
|
125
|
+
attachKey: raw.attachKey,
|
|
126
|
+
firstDispatchedAt: raw.firstDispatchedAt,
|
|
127
|
+
}));
|
|
128
|
+
OWNER.check();
|
|
129
|
+
const retained = await owned(() => classifyOwnedRetainedInitialAttachment(original));
|
|
130
|
+
OWNER.check();
|
|
131
|
+
if (retained.status !== "classified")
|
|
132
|
+
return refuse("replay_material_unsupported");
|
|
133
|
+
verifyRecoveryRecord(capturedRecord, prepared, request, retained.material, original);
|
|
134
|
+
OWNER.check();
|
|
135
|
+
const coveredRetained = Reflect.apply(retainedPredicate, op.originalEntry, [retained.material, original.originalBundle]);
|
|
136
|
+
OWNER.check();
|
|
137
|
+
if (coveredRetained !== true)
|
|
138
|
+
return refuse("replay_coverage_missing");
|
|
139
|
+
OWNER.check();
|
|
140
|
+
pair = createPair();
|
|
141
|
+
OWNER.check();
|
|
142
|
+
need(pair.capability.assertSourceOperationBinding(live, request, op.readPlan, op.delegate));
|
|
143
|
+
OWNER.check();
|
|
144
|
+
const activePair = pair;
|
|
145
|
+
// Only this invocation's pair and actual locally rebuilt C2 enter this capsule.
|
|
146
|
+
const control = (() => {
|
|
147
|
+
const capability = activePair.capability, takeQuarantine = capability.takeFulfilledQuarantine;
|
|
148
|
+
Object.freeze(request.payload);
|
|
149
|
+
Object.freeze(request.requestIdentity);
|
|
150
|
+
Object.freeze(request);
|
|
151
|
+
OWNER.check();
|
|
152
|
+
const tokens = new WeakMap(), invocation = Object.freeze({});
|
|
153
|
+
let phase = "unused";
|
|
154
|
+
const tokenValue = (error) => error !== null &&
|
|
155
|
+
(typeof error === "object" || typeof error === "function")
|
|
156
|
+
? tokens.get(error)
|
|
157
|
+
: undefined;
|
|
158
|
+
function consume(error, kind) {
|
|
159
|
+
OWNER.check();
|
|
160
|
+
const value = tokenValue(error);
|
|
161
|
+
if (error !== null &&
|
|
162
|
+
(typeof error === "object" || typeof error === "function"))
|
|
163
|
+
tokens.delete(error);
|
|
164
|
+
if (!value ||
|
|
165
|
+
value.invocation !== invocation ||
|
|
166
|
+
value.phase !== kind ||
|
|
167
|
+
phase !== (kind === "read" ? "failed" : "failed_post"))
|
|
168
|
+
return null;
|
|
169
|
+
phase = kind === "read" ? "consumed" : "consumed_post";
|
|
170
|
+
const failure = Object.freeze({
|
|
171
|
+
category: "provider_rejected",
|
|
172
|
+
phase: kind,
|
|
173
|
+
ordinal: value.ordinal,
|
|
174
|
+
request: value.request,
|
|
175
|
+
diagnostics: value.diagnostics,
|
|
176
|
+
outcome: "unknown",
|
|
177
|
+
operationalAuthority: false,
|
|
178
|
+
});
|
|
179
|
+
const out = Error("INITIAL_PROVIDER_REJECTED");
|
|
180
|
+
Object.defineProperty(out, "failure", {
|
|
181
|
+
value: failure,
|
|
182
|
+
enumerable: false,
|
|
183
|
+
writable: false,
|
|
184
|
+
configurable: false,
|
|
185
|
+
});
|
|
186
|
+
return out;
|
|
187
|
+
}
|
|
188
|
+
return Object.freeze({
|
|
189
|
+
takePostQuarantine(...args) {
|
|
190
|
+
if (args.length !== 0)
|
|
191
|
+
return null;
|
|
192
|
+
return Reflect.apply(takeQuarantine, capability, []);
|
|
193
|
+
},
|
|
194
|
+
begin() {
|
|
195
|
+
OWNER.check();
|
|
196
|
+
if (phase !== "unused")
|
|
197
|
+
stop();
|
|
198
|
+
if (capability.assertVirginAcquisition() !== true) {
|
|
199
|
+
phase = "closed";
|
|
200
|
+
stop();
|
|
201
|
+
}
|
|
202
|
+
OWNER.check();
|
|
203
|
+
phase = "acquiring";
|
|
204
|
+
},
|
|
205
|
+
complete() {
|
|
206
|
+
OWNER.check();
|
|
207
|
+
if (phase !== "acquiring")
|
|
208
|
+
stop();
|
|
209
|
+
phase = "complete";
|
|
210
|
+
},
|
|
211
|
+
takeReadFailure() {
|
|
212
|
+
OWNER.check();
|
|
213
|
+
if (phase !== "acquiring")
|
|
214
|
+
stop();
|
|
215
|
+
const record = capability.consumeReadCatch();
|
|
216
|
+
OWNER.check();
|
|
217
|
+
if (record === null) {
|
|
218
|
+
phase = "unsupported";
|
|
219
|
+
return null;
|
|
220
|
+
}
|
|
221
|
+
need(record.phase === "read" &&
|
|
222
|
+
Number.isSafeInteger(record.ordinal) &&
|
|
223
|
+
record.ordinal >= 1 &&
|
|
224
|
+
record.ordinal <= 43);
|
|
225
|
+
const token = Object.freeze(Object.create(null));
|
|
226
|
+
tokens.set(token, Object.freeze({
|
|
227
|
+
invocation,
|
|
228
|
+
phase: "read",
|
|
229
|
+
ordinal: record.ordinal,
|
|
230
|
+
request,
|
|
231
|
+
diagnostics: record.diagnostics,
|
|
232
|
+
}));
|
|
233
|
+
phase = "failed";
|
|
234
|
+
return token;
|
|
235
|
+
},
|
|
236
|
+
beginPost() {
|
|
237
|
+
OWNER.check();
|
|
238
|
+
if (phase !== "complete")
|
|
239
|
+
stop();
|
|
240
|
+
phase = "posting";
|
|
241
|
+
},
|
|
242
|
+
takePostFailure(actualReply) {
|
|
243
|
+
OWNER.check();
|
|
244
|
+
if (phase !== "posting")
|
|
245
|
+
stop();
|
|
246
|
+
const record = capability.consumePostCatch(actualReply);
|
|
247
|
+
OWNER.check();
|
|
248
|
+
if (record === null) {
|
|
249
|
+
phase = "post_without_token";
|
|
250
|
+
return null;
|
|
251
|
+
}
|
|
252
|
+
need(record.phase === "post" &&
|
|
253
|
+
Number.isSafeInteger(record.ordinal) &&
|
|
254
|
+
record.ordinal >= 1 &&
|
|
255
|
+
record.ordinal <= 44);
|
|
256
|
+
const token = Object.freeze(Object.create(null));
|
|
257
|
+
tokens.set(token, Object.freeze({
|
|
258
|
+
invocation,
|
|
259
|
+
phase: "post",
|
|
260
|
+
ordinal: record.ordinal,
|
|
261
|
+
request,
|
|
262
|
+
diagnostics: record.diagnostics,
|
|
263
|
+
}));
|
|
264
|
+
phase = "failed_post";
|
|
265
|
+
return token;
|
|
266
|
+
},
|
|
267
|
+
forward(error) {
|
|
268
|
+
OWNER.check();
|
|
269
|
+
const value = tokenValue(error);
|
|
270
|
+
return value &&
|
|
271
|
+
value.invocation === invocation &&
|
|
272
|
+
(phase === "failed" || phase === "failed_post")
|
|
273
|
+
? error
|
|
274
|
+
: null;
|
|
275
|
+
},
|
|
276
|
+
consume(error) {
|
|
277
|
+
return consume(error, "read");
|
|
278
|
+
},
|
|
279
|
+
consumePost(error) {
|
|
280
|
+
return consume(error, "post");
|
|
281
|
+
},
|
|
282
|
+
});
|
|
283
|
+
})();
|
|
284
|
+
OWNER.check();
|
|
285
|
+
failureControl = control;
|
|
286
|
+
const reader = bindRawAcquisitionFromSource(OWNER, activePair.transport.readTransport);
|
|
287
|
+
OWNER.check();
|
|
288
|
+
let acquiredOnce = false;
|
|
289
|
+
const acquire = async () => {
|
|
290
|
+
OWNER.check();
|
|
291
|
+
if (acquiredOnce)
|
|
292
|
+
stop();
|
|
293
|
+
acquiredOnce = true;
|
|
294
|
+
control.begin();
|
|
295
|
+
OWNER.check();
|
|
296
|
+
const result = await reader.acquire(prepared.expected);
|
|
297
|
+
OWNER.check();
|
|
298
|
+
if (result.ok) {
|
|
299
|
+
control.complete();
|
|
300
|
+
return result;
|
|
301
|
+
}
|
|
302
|
+
const token = control.takeReadFailure();
|
|
303
|
+
OWNER.check();
|
|
304
|
+
if (token !== null)
|
|
305
|
+
throw token;
|
|
306
|
+
return result;
|
|
307
|
+
};
|
|
308
|
+
const acquired = await owned(acquire, control);
|
|
309
|
+
OWNER.check();
|
|
310
|
+
if (!acquired.ok)
|
|
311
|
+
return refuse("current_read_unsupported");
|
|
312
|
+
const classifyReplay = async () => {
|
|
313
|
+
OWNER.check();
|
|
314
|
+
const value = captureOwnedInput({
|
|
315
|
+
attachRequest: raw,
|
|
316
|
+
originalBundle: original.originalBundle,
|
|
317
|
+
currentBundle: acquired.bundle,
|
|
318
|
+
observedAt: acquired.observedAt,
|
|
319
|
+
});
|
|
320
|
+
OWNER.check();
|
|
321
|
+
need(equal(capturedRecord.originalRaw, {
|
|
322
|
+
attachRequest: value.attachRequest,
|
|
323
|
+
originalBundle: value.originalBundle,
|
|
324
|
+
}));
|
|
325
|
+
const replayPrepared = await c1(value.attachRequest.preparation);
|
|
326
|
+
OWNER.check();
|
|
327
|
+
const replayRequest = await c2({
|
|
328
|
+
prepared: replayPrepared,
|
|
329
|
+
apiVersion: raw.apiVersion,
|
|
330
|
+
attachKey: raw.attachKey,
|
|
331
|
+
firstDispatchedAt: raw.firstDispatchedAt,
|
|
332
|
+
});
|
|
333
|
+
OWNER.check();
|
|
334
|
+
const replayRetained = await classifyOwnedRetainedInitialAttachment(original);
|
|
335
|
+
OWNER.check();
|
|
336
|
+
need(replayRetained.status === "classified");
|
|
337
|
+
verifyRecoveryRecord(capturedRecord, replayPrepared, replayRequest, replayRetained.material, original);
|
|
338
|
+
OWNER.check();
|
|
339
|
+
const discounts = replayCouponEligibility(value), current = value.currentBundle, observedAt = value.observedAt;
|
|
340
|
+
// Historical original eligibility; never fabricate a current-null subscription.
|
|
341
|
+
const reads = validateOwnedReadMaterial({
|
|
342
|
+
apiVersion: raw.apiVersion,
|
|
343
|
+
observedAt,
|
|
344
|
+
freshSubscription: value.originalBundle.wireSubscription,
|
|
345
|
+
targetPrice: current.wireTargetPrice,
|
|
346
|
+
billingCustomer: current.wireBillingCustomer,
|
|
347
|
+
}, replayPrepared, undefined, discounts);
|
|
348
|
+
OWNER.check();
|
|
349
|
+
const item = current.wireSubscription.items.data[0];
|
|
350
|
+
const material = {
|
|
351
|
+
classificationRevision: "renewal-material-v2",
|
|
352
|
+
protocolRevision: "renewal-stage-protocol-v1",
|
|
353
|
+
stage: "attach",
|
|
354
|
+
intent: "replay_unknown",
|
|
355
|
+
scope: replayRequest.scope,
|
|
356
|
+
apiVersion: replayRequest.apiVersion,
|
|
357
|
+
profile: reads.profile,
|
|
358
|
+
quantity: replayPrepared.quantity,
|
|
359
|
+
currentPrice: reads.item.price,
|
|
360
|
+
targetPrice: current.wireTargetPrice,
|
|
361
|
+
source: current.wireSubscription,
|
|
362
|
+
nativeItem: item,
|
|
363
|
+
billingCustomer: current.wireBillingCustomer,
|
|
364
|
+
subscriptionDiscounts: reads.discounts,
|
|
365
|
+
itemDiscounts: reads.itemDiscounts,
|
|
366
|
+
settings: reads.originalSettings,
|
|
367
|
+
originalPrepared: replayPrepared,
|
|
368
|
+
completeRequest: replayRequest,
|
|
369
|
+
stageEvidence: {
|
|
370
|
+
actualFreshSubscription: current.wireSubscription,
|
|
371
|
+
historicalOriginalSubscription: value.originalBundle.wireSubscription,
|
|
372
|
+
},
|
|
373
|
+
rawSources: {
|
|
374
|
+
attachRequest: raw,
|
|
375
|
+
intent: "replay_unknown",
|
|
376
|
+
freshSubscription: current.wireSubscription,
|
|
377
|
+
targetPrice: current.wireTargetPrice,
|
|
378
|
+
billingCustomer: current.wireBillingCustomer,
|
|
379
|
+
observedAt,
|
|
380
|
+
},
|
|
381
|
+
freshness: "fresh",
|
|
382
|
+
};
|
|
383
|
+
OWNER.check();
|
|
384
|
+
const result = admitReplayMaterial(material, replayPrepared, replayRequest);
|
|
385
|
+
OWNER.check();
|
|
386
|
+
return result;
|
|
387
|
+
};
|
|
388
|
+
const replay = await owned(() => classifyReplay().catch(() => null));
|
|
389
|
+
OWNER.check();
|
|
390
|
+
if (replay === null)
|
|
391
|
+
return refuse("replay_material_unsupported");
|
|
392
|
+
const covered = Reflect.apply(relation.predicate, relation.raw, [
|
|
393
|
+
replay.material,
|
|
394
|
+
original.originalBundle,
|
|
395
|
+
acquired.bundle,
|
|
396
|
+
]);
|
|
397
|
+
OWNER.check();
|
|
398
|
+
if (covered !== true)
|
|
399
|
+
return refuse("replay_coverage_missing");
|
|
400
|
+
assertReplayMaterial(replay.material, prepared, request, raw, acquired.bundle, original.originalBundle.wireSubscription, acquired.observedAt);
|
|
401
|
+
OWNER.check();
|
|
402
|
+
closed(op.sink, ["send"]);
|
|
403
|
+
const send = sourceMethod(op.sink, "send");
|
|
404
|
+
const sourceSend = (record, ack) => {
|
|
405
|
+
OWNER.check();
|
|
406
|
+
return Reflect.apply(send, op.sink, [record, ack]);
|
|
407
|
+
};
|
|
408
|
+
const compiler = createAttachEventCompiler(raw, {
|
|
409
|
+
send: sourceSend,
|
|
410
|
+
timeoutMs: 5000,
|
|
411
|
+
});
|
|
412
|
+
OWNER.check();
|
|
413
|
+
await owned(() => compiler.dispatch({ event: "dispatch", stage: "attach", request }));
|
|
414
|
+
OWNER.check();
|
|
415
|
+
postEligible = true;
|
|
416
|
+
let postedOnce = false;
|
|
417
|
+
const post = async () => {
|
|
418
|
+
OWNER.check();
|
|
419
|
+
if (postedOnce)
|
|
420
|
+
stop();
|
|
421
|
+
postedOnce = true;
|
|
422
|
+
control.beginPost();
|
|
423
|
+
OWNER.check();
|
|
424
|
+
const reply = await activePair.transport.postAttach();
|
|
425
|
+
OWNER.check();
|
|
426
|
+
const token = control.takePostFailure(reply);
|
|
427
|
+
OWNER.check();
|
|
428
|
+
if (token !== null)
|
|
429
|
+
throw token;
|
|
430
|
+
return reply;
|
|
431
|
+
};
|
|
432
|
+
const reply = await owned(post, control);
|
|
433
|
+
OWNER.check();
|
|
434
|
+
if (reply.outcome === "not_started")
|
|
435
|
+
return refuse("post_not_started");
|
|
436
|
+
if (reply.outcome === "provider_rejected")
|
|
437
|
+
stop();
|
|
438
|
+
if (reply.outcome !== "fulfilled_safe")
|
|
439
|
+
return uncertain();
|
|
440
|
+
const body = reply.body;
|
|
441
|
+
await owned(() => compiler.response({
|
|
442
|
+
event: "response",
|
|
443
|
+
stage: "attach",
|
|
444
|
+
request,
|
|
445
|
+
body,
|
|
446
|
+
status: reply.statusCode,
|
|
447
|
+
}));
|
|
448
|
+
OWNER.check();
|
|
449
|
+
const receipt = await owned(() => c3({
|
|
450
|
+
attachRequest: raw,
|
|
451
|
+
actualDispatch: Object.freeze(sevenWire(request)),
|
|
452
|
+
providerSnapshot: body,
|
|
453
|
+
}));
|
|
454
|
+
OWNER.check();
|
|
455
|
+
await owned(() => compiler.receipt({
|
|
456
|
+
event: "receipt",
|
|
457
|
+
stage: "attach",
|
|
458
|
+
request,
|
|
459
|
+
receipt,
|
|
460
|
+
}));
|
|
461
|
+
OWNER.check();
|
|
462
|
+
const result = admitRecoveryOutput(receipt, acquired.bundle.wireSubscription.schedule, prepared, request);
|
|
463
|
+
OWNER.check();
|
|
464
|
+
control.takePostQuarantine();
|
|
465
|
+
return result;
|
|
466
|
+
}
|
|
467
|
+
catch (error) {
|
|
468
|
+
let live = false;
|
|
469
|
+
try {
|
|
470
|
+
OWNER.check();
|
|
471
|
+
live = true;
|
|
472
|
+
}
|
|
473
|
+
catch { }
|
|
474
|
+
if (live && !postEligible && failureControl) {
|
|
475
|
+
const failure = failureControl.consume(error);
|
|
476
|
+
if (failure !== null)
|
|
477
|
+
throw failure;
|
|
478
|
+
}
|
|
479
|
+
if (live &&
|
|
480
|
+
postEligible &&
|
|
481
|
+
pair &&
|
|
482
|
+
failureControl &&
|
|
483
|
+
pair.transport.postDisposition() === "REJECTED") {
|
|
484
|
+
const failure = failureControl.consumePost(error);
|
|
485
|
+
if (failure !== null)
|
|
486
|
+
throw failure;
|
|
487
|
+
}
|
|
488
|
+
if (postEligible && pair) {
|
|
489
|
+
const state = pair.transport.postDisposition();
|
|
490
|
+
if (state === "FULFILLED_SAFE" || state === "FULFILLED_UNVERIFIED")
|
|
491
|
+
return uncertain();
|
|
492
|
+
}
|
|
493
|
+
return stop();
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
//# sourceMappingURL=recoveryActor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recoveryActor.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/recovery/recoveryActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EACL,gCAAgC,IAAI,EAAE,EACtC,kCAAkC,IAAI,EAAE,EACxC,2CAA2C,IAAI,EAAE,GAClD,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,sCAAsC,EAAE,MAAM,4BAA4B,CAAC;AACpF,OAAO,EACL,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EACL,MAAM,GAIP,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEpD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EACL,yBAAyB,IAAI,OAAO,EACpC,kCAAkC,EAClC,2BAA2B,GAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iDAAiD,IAAI,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClH,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aA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E,IAAI;oBACJ,YAAY;oBACZ,IAAI;oBACJ,cAAc;oBACd,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,KAAK,UAAU,EAC/C,CAAC;oBACD,MAAM,OAAO,GAAG,cAAc,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;oBAClD,IAAI,OAAO,KAAK,IAAI;wBAAE,MAAM,OAAO,CAAC;gBACtC,CAAC;gBACD,IAAI,YAAY,IAAI,IAAI,EAAE,CAAC;oBACzB,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC;oBAC/C,IAAI,KAAK,KAAK,gBAAgB,IAAI,KAAK,KAAK,sBAAsB;wBAChE,OAAO,SAAS,EAAE,CAAC;gBACvB,CAAC;gBACD,OAAO,IAAI,EAAE,CAAC;YAChB,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FreshInput } from "../material/capture.js";
|
|
2
|
+
/** One explicit root schedule association transition, with all residual material equal. */
|
|
3
|
+
export declare function replayCouponEligibility(value: FreshInput): {
|
|
4
|
+
subscription: {
|
|
5
|
+
id: unknown;
|
|
6
|
+
source: {
|
|
7
|
+
coupon: {
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}[];
|
|
12
|
+
item: {
|
|
13
|
+
id: unknown;
|
|
14
|
+
source: {
|
|
15
|
+
coupon: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=relation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/recovery/relation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAU,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA6EjE,2FAA2F;AAC3F,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,UAAU;;;;;;;;;;;;;;;;;EA8FxD"}
|