@wix/himalaya-cli 0.1280.0 → 0.1281.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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/catalog-pricing-contract.d.ts +9 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/delivery-contract.d.ts +10 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +178 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-core.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap.d.ts +12 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/cashier-charges.d.ts +23 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-finish-policy.d.ts +8 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-order-backend.d.ts +29 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/online-programs.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/pricing-plans.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/shared.d.ts +19 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/stores.d.ts +9 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/order-refs.d.ts +17 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/wix-bridge.d.ts +8 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +1709 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +34 -18
- package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +4 -0
- package/dist/cli.mjs +2 -2
- package/guides/iap-pricing.md +9 -0
- package/guides/sdk-reference.json +12 -6
- package/package.json +2 -2
|
@@ -109,7 +109,7 @@ function createPurchaseCoordinator(deps) {
|
|
|
109
109
|
if (session.kind !== "member") return requireSignIn();
|
|
110
110
|
if (listing === "listed") clearReconcileProblem();
|
|
111
111
|
const now = deps.clock.now();
|
|
112
|
-
const eligible = itemsWhere((
|
|
112
|
+
const eligible = itemsWhere((item) => isAwaitingDelivery(item) && (item.state.nextAttemptAt === null || item.state.nextAttemptAt <= now));
|
|
113
113
|
eligible.forEach(restartAttemptBudget);
|
|
114
114
|
await settleDelivery(session, await deliver(session, eligible));
|
|
115
115
|
}
|
|
@@ -137,30 +137,30 @@ function createPurchaseCoordinator(deps) {
|
|
|
137
137
|
}
|
|
138
138
|
async function runRetry() {
|
|
139
139
|
releaseSignIn();
|
|
140
|
-
for (const item of items.values()) unblock(item
|
|
140
|
+
for (const item of items.values()) unblock(item);
|
|
141
141
|
await runReconcile();
|
|
142
142
|
}
|
|
143
143
|
async function runDue() {
|
|
144
144
|
if (resetIfSessionChanged()) return started ? runReconcile() : void 0;
|
|
145
145
|
const session = memberSession();
|
|
146
146
|
const now = deps.clock.now();
|
|
147
|
-
const due = itemsWhere((
|
|
147
|
+
const due = itemsWhere((item) => item.state.nextAttemptAt !== null && item.state.nextAttemptAt <= now);
|
|
148
148
|
if (!session || due.length === 0) return;
|
|
149
149
|
await settleDelivery(session, await deliver(session, due));
|
|
150
150
|
}
|
|
151
151
|
async function deliver(session, batch, known) {
|
|
152
|
-
const needProof = batch.filter((item) => item.
|
|
152
|
+
const needProof = batch.filter((item) => !item.finishAllowed);
|
|
153
153
|
const context = known ?? (needProof.length > 0 ? await memberContext(session, needProof) : void 0);
|
|
154
154
|
const delivered = noDelivery();
|
|
155
155
|
for (const item of batch) {
|
|
156
156
|
if (!isCurrent(session)) return noDelivery();
|
|
157
|
-
const
|
|
158
|
-
if (delivered.signInLost && !
|
|
157
|
+
const wasAllowed = item.finishAllowed;
|
|
158
|
+
if (delivered.signInLost && !wasAllowed) {
|
|
159
159
|
blockWithoutSession(item, context);
|
|
160
160
|
continue;
|
|
161
161
|
}
|
|
162
162
|
if (await deliverItem(session, item, context)) delivered.finished = true;
|
|
163
|
-
if (!
|
|
163
|
+
if (!wasAllowed && item.finishAllowed) delivered.confirmedProducts.push(item.state.productId);
|
|
164
164
|
if (item.state.access === "signInRequired") delivered.signInLost = true;
|
|
165
165
|
}
|
|
166
166
|
return delivered;
|
|
@@ -170,7 +170,7 @@ function createPurchaseCoordinator(deps) {
|
|
|
170
170
|
block(item.state, foreign ? "ownershipConflict" : "signInRequired", null);
|
|
171
171
|
}
|
|
172
172
|
async function deliverItem(session, item, context) {
|
|
173
|
-
if (item.
|
|
173
|
+
if (!item.finishAllowed) {
|
|
174
174
|
if (!context || !await confirmAccess(session, item, context)) return false;
|
|
175
175
|
}
|
|
176
176
|
return complete(session, item);
|
|
@@ -191,8 +191,11 @@ function createPurchaseCoordinator(deps) {
|
|
|
191
191
|
switch (raw.status) {
|
|
192
192
|
case "processed":
|
|
193
193
|
case "alreadyProcessed":
|
|
194
|
+
case "accepted":
|
|
195
|
+
case "refusedFinal":
|
|
194
196
|
if (!acknowledges(raw.acknowledgement, item.transaction, scopeKey)) return block(item.state, "rejected", "invalidResponse");
|
|
195
|
-
|
|
197
|
+
item.finishAllowed = true;
|
|
198
|
+
Object.assign(item.state, { ...FINISH_ALLOWED_STATE[raw.status], nextAttemptAt: null });
|
|
196
199
|
return true;
|
|
197
200
|
case "retryable":
|
|
198
201
|
return recordFailedAttempt(item, retryAfter(raw.retryAfterMs));
|
|
@@ -222,7 +225,7 @@ function createPurchaseCoordinator(deps) {
|
|
|
222
225
|
function recordFailedAttempt(item, retryAfterMs) {
|
|
223
226
|
const state = item.state;
|
|
224
227
|
state.attempts += 1;
|
|
225
|
-
if (
|
|
228
|
+
if (!item.finishAllowed) state.access = "waitingToRetry";
|
|
226
229
|
state.nextAttemptAt = state.attempts >= MAX_AUTOMATIC_ATTEMPTS ? null : deps.clock.now() + retryDelay(state.attempts, retryAfterMs);
|
|
227
230
|
return false;
|
|
228
231
|
}
|
|
@@ -280,7 +283,7 @@ function createPurchaseCoordinator(deps) {
|
|
|
280
283
|
pendingApproval = null;
|
|
281
284
|
if (outcome === "awaitingApproval") outcome = "idle";
|
|
282
285
|
}
|
|
283
|
-
const item = { transaction, state: newItemState(transaction, held) };
|
|
286
|
+
const item = { transaction, state: newItemState(transaction, held), finishAllowed: false };
|
|
284
287
|
items.set(key, item);
|
|
285
288
|
return item;
|
|
286
289
|
}
|
|
@@ -336,7 +339,7 @@ function createPurchaseCoordinator(deps) {
|
|
|
336
339
|
return runJob(name, run).then(([, state]) => state);
|
|
337
340
|
}
|
|
338
341
|
function itemsWhere(predicate) {
|
|
339
|
-
return [...items.values()].filter(
|
|
342
|
+
return [...items.values()].filter(predicate);
|
|
340
343
|
}
|
|
341
344
|
function updateItem(item, patch) {
|
|
342
345
|
Object.assign(item.state, patch);
|
|
@@ -344,7 +347,7 @@ function createPurchaseCoordinator(deps) {
|
|
|
344
347
|
}
|
|
345
348
|
function requireSignIn() {
|
|
346
349
|
for (const item of items.values()) {
|
|
347
|
-
if (isAwaitingDelivery(item
|
|
350
|
+
if (isAwaitingDelivery(item) && !item.finishAllowed) block(item.state, "signInRequired", null);
|
|
348
351
|
}
|
|
349
352
|
signInPrompt = true;
|
|
350
353
|
publish();
|
|
@@ -387,6 +390,12 @@ function createPurchaseCoordinator(deps) {
|
|
|
387
390
|
}
|
|
388
391
|
return { start, purchase: purchase2, reconcile, retry, tick, getState, dispose };
|
|
389
392
|
}
|
|
393
|
+
var FINISH_ALLOWED_STATE = {
|
|
394
|
+
processed: { access: "confirmed", errorCode: null },
|
|
395
|
+
alreadyProcessed: { access: "confirmed", errorCode: null },
|
|
396
|
+
accepted: { access: "processing", errorCode: null },
|
|
397
|
+
refusedFinal: { access: "rejected", errorCode: "proofRejected" }
|
|
398
|
+
};
|
|
390
399
|
var noDelivery = () => ({ finished: false, confirmedProducts: [], signInLost: false });
|
|
391
400
|
var STALE = { kind: "stale" };
|
|
392
401
|
var ABANDONED = { abandoned: true };
|
|
@@ -419,16 +428,17 @@ function newItemState(transaction, held) {
|
|
|
419
428
|
errorCode: null
|
|
420
429
|
};
|
|
421
430
|
}
|
|
422
|
-
function isAwaitingDelivery(
|
|
423
|
-
|
|
431
|
+
function isAwaitingDelivery(item) {
|
|
432
|
+
const state = item.state;
|
|
433
|
+
if (item.finishAllowed) return state.completion === "pending" || state.completion === "retryRequired";
|
|
424
434
|
return state.access === "pending" || state.access === "waitingToRetry" || state.access === "signInRequired";
|
|
425
435
|
}
|
|
426
436
|
function restartAttemptBudget(item) {
|
|
427
437
|
item.state.attempts = 0;
|
|
428
438
|
}
|
|
429
|
-
function unblock(
|
|
430
|
-
if (
|
|
431
|
-
Object.assign(state, { attempts: 0, nextAttemptAt: null });
|
|
439
|
+
function unblock(item) {
|
|
440
|
+
if (!item.finishAllowed) Object.assign(item.state, { access: "pending", errorCode: null });
|
|
441
|
+
Object.assign(item.state, { attempts: 0, nextAttemptAt: null });
|
|
432
442
|
}
|
|
433
443
|
function block(state, access, errorCode) {
|
|
434
444
|
Object.assign(state, { access, errorCode, nextAttemptAt: null });
|
|
@@ -670,6 +680,7 @@ function disabledPricing() {
|
|
|
670
680
|
view: disabledView,
|
|
671
681
|
checkoutGuard: (reference) => decisionOf(disabledView(reference)),
|
|
672
682
|
continueCheckoutGuard: (reference) => decisionOf(disabledView(reference)),
|
|
683
|
+
appleProduct: () => null,
|
|
673
684
|
pollDirective: () => void 0,
|
|
674
685
|
dispose: () => {
|
|
675
686
|
}
|
|
@@ -730,6 +741,7 @@ function enabledPricing(source, deps) {
|
|
|
730
741
|
view,
|
|
731
742
|
checkoutGuard: (reference) => decisionOf(view(reference)),
|
|
732
743
|
continueCheckoutGuard,
|
|
744
|
+
appleProduct: (reference) => disposed ? null : appleProductOf(controller && itemFor(controller.getState().items, reference)),
|
|
733
745
|
pollDirective: (action) => ({ id: POLL_ID, action, intervalMs: POLL_INTERVAL_MS, immediate: true }),
|
|
734
746
|
dispose: () => {
|
|
735
747
|
disposed = true;
|
|
@@ -774,6 +786,10 @@ function unanswered(view) {
|
|
|
774
786
|
function itemFor(items, reference) {
|
|
775
787
|
return items.find((item) => item.reference.kind === reference.kind && item.reference.id === reference.id);
|
|
776
788
|
}
|
|
789
|
+
function appleProductOf(item) {
|
|
790
|
+
if (item?.status !== "ready" || item.source !== "appleIap") return null;
|
|
791
|
+
return { productId: item.productId, mappingRevision: item.mappingRevision };
|
|
792
|
+
}
|
|
777
793
|
function viewOf(reference, item) {
|
|
778
794
|
if (!item || item.status === "loading") return blockedView(reference, "resolving");
|
|
779
795
|
if (item.status === "ready") return readyView(reference, item);
|
|
@@ -130,6 +130,10 @@
|
|
|
130
130
|
"types": "./dist/_types/core/sdk/iap/src/index.d.ts",
|
|
131
131
|
"import": "./dist/iap.mjs"
|
|
132
132
|
},
|
|
133
|
+
"./iap-checkout": {
|
|
134
|
+
"types": "./dist/_types/stdlib/flows/iap-checkout/src/index.d.ts",
|
|
135
|
+
"import": "./dist/iap-checkout.mjs"
|
|
136
|
+
},
|
|
133
137
|
"./keyboard": {
|
|
134
138
|
"types": "./dist/_types/core/sdk/keyboard/src/index.d.ts",
|
|
135
139
|
"import": "./dist/keyboard.mjs"
|
package/dist/cli.mjs
CHANGED
|
@@ -4992,11 +4992,12 @@ var init_build_lib = __esm({
|
|
|
4992
4992
|
// parser + `setBadge`; demo-app-push has its own build.mjs and predates this entry.
|
|
4993
4993
|
"@himalaya/push": resolve8(REPO_ROOT4, "core/sdk/push/src/index.ts"),
|
|
4994
4994
|
"@himalaya/dispatch": resolve8(REPO_ROOT4, "core/sdk/dispatch/src/index.ts"),
|
|
4995
|
-
// stdlib/flows/* — composed flow modules (auth, checkout). Not capabilities:
|
|
4995
|
+
// stdlib/flows/* — composed flow modules (auth, checkout, iap-checkout, screens). Not capabilities:
|
|
4996
4996
|
// they wrap capabilities + native dispatch actions that already exist. See
|
|
4997
4997
|
// packages/wix-himalaya/scripts/gen-exports.mjs section (e).
|
|
4998
4998
|
"@himalaya/auth": resolve8(REPO_ROOT4, "stdlib/flows/auth/src/index.ts"),
|
|
4999
4999
|
"@himalaya/checkout": resolve8(REPO_ROOT4, "stdlib/flows/checkout/src/index.ts"),
|
|
5000
|
+
"@himalaya/iap-checkout": resolve8(REPO_ROOT4, "stdlib/flows/iap-checkout/src/index.ts"),
|
|
5000
5001
|
"@himalaya/screens": resolve8(REPO_ROOT4, "stdlib/flows/screens/src/index.ts"),
|
|
5001
5002
|
"@himalaya/ui": resolve8(REPO_ROOT4, "core/sdk/ui/src/index.ts"),
|
|
5002
5003
|
"@himalaya/browser-auth": resolve8(REPO_ROOT4, "core/sdk/browser-auth/src/index.ts"),
|
|
@@ -7567,7 +7568,6 @@ function resolveTranslation(value, catalog3, sourceCatalog) {
|
|
|
7567
7568
|
var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
|
|
7568
7569
|
var init_bindings = __esm({
|
|
7569
7570
|
"../../core/ts/src/bindings.ts"() {
|
|
7570
|
-
"use strict";
|
|
7571
7571
|
BINDING_SIGILS = ["service", "flag", "item", "t"];
|
|
7572
7572
|
BINDING_SIGIL_RE = new RegExp(
|
|
7573
7573
|
`^\\$(?:${BINDING_SIGILS.filter((s2) => s2 !== "t").join("|")})\\b|^\\$t:`
|
package/guides/iap-pricing.md
CHANGED
|
@@ -30,6 +30,15 @@ does not mean the item is free. Only an explicit `regular` route keeps your exis
|
|
|
30
30
|
`iapPriceFields(view, copy)` turns a view into bindable fields (`priceText`, `priceNote`,
|
|
31
31
|
`priceLoading`, `hidePriceRetry`, `actionDisabled`, `actionNote`) using labels from your own copy.
|
|
32
32
|
|
|
33
|
+
`pricing.appleProduct(reference)` names the App Store product a settled `appleIap` route sells, and
|
|
34
|
+
returns `null` for any other route. It is for a checkout to compare with the product it is asked to
|
|
35
|
+
sell. Do not put it in screen state.
|
|
36
|
+
|
|
37
|
+
> **Buying is not switched on.** `@wix/himalaya/iap-checkout` is a shared App Store checkout,
|
|
38
|
+
> `createAppleIapCheckout`, built on this layer. It answers `notEnabled` and makes no call until Wix
|
|
39
|
+
> enables it, so keep App Store items blocked as described above. Never build your own purchase
|
|
40
|
+
> flow for them.
|
|
41
|
+
|
|
33
42
|
## Catalog references
|
|
34
43
|
|
|
35
44
|
An item is identified by `{ kind, id }`. The kind is the same entity type `himi store iap` uses
|
|
@@ -1661,8 +1661,8 @@
|
|
|
1661
1661
|
{
|
|
1662
1662
|
"name": "SubmitProofResult",
|
|
1663
1663
|
"kind": "type",
|
|
1664
|
-
"jsdoc": "",
|
|
1665
|
-
"decl": "export type SubmitProofResult =\n | { status: \"processed\" | \"alreadyProcessed\"; acknowledgement: ProcessingAcknowledgement }\n | { status: \"retryable\"; retryAfterMs?: number }\n | { status: \"authRequired\" | \"ownershipConflict\" | \"rejected\" };"
|
|
1664
|
+
"jsdoc": "/** `processed`/`alreadyProcessed`: durable access; finish. `accepted`: the backend durably owns the\n * proof and its own tracking, but access is not confirmed yet; finish, access stays `processing`.\n * `refusedFinal`: the backend recorded the proof and refused it for good; finish, access stays\n * `rejected`. All four must echo the acknowledgement. `rejected`/`ownershipConflict` hold the\n * transaction unfinished. */",
|
|
1665
|
+
"decl": "export type SubmitProofResult =\n | { status: \"processed\" | \"alreadyProcessed\" | \"accepted\" | \"refusedFinal\"; acknowledgement: ProcessingAcknowledgement }\n | { status: \"retryable\"; retryAfterMs?: number }\n | { status: \"authRequired\" | \"ownershipConflict\" | \"rejected\" };"
|
|
1666
1666
|
},
|
|
1667
1667
|
{
|
|
1668
1668
|
"name": "DeliveryBackend",
|
|
@@ -1697,8 +1697,8 @@
|
|
|
1697
1697
|
{
|
|
1698
1698
|
"name": "AccessStatus",
|
|
1699
1699
|
"kind": "type",
|
|
1700
|
-
"jsdoc": "",
|
|
1701
|
-
"decl": "export type AccessStatus = \"pending\" | \"confirming\" | \"waitingToRetry\" | \"signInRequired\"\n | \"ownershipConflict\" | \"rejected\" | \"confirmed\";"
|
|
1700
|
+
"jsdoc": "/** `processing`: the backend accepted the proof and the transaction may finish, but access is not\n * confirmed; the backend's own tracking decides it. */",
|
|
1701
|
+
"decl": "export type AccessStatus = \"pending\" | \"confirming\" | \"waitingToRetry\" | \"signInRequired\"\n | \"ownershipConflict\" | \"rejected\" | \"processing\" | \"confirmed\";"
|
|
1702
1702
|
},
|
|
1703
1703
|
{
|
|
1704
1704
|
"name": "CompletionStatus",
|
|
@@ -1710,7 +1710,7 @@
|
|
|
1710
1710
|
"name": "DeliveryItemState",
|
|
1711
1711
|
"kind": "interface",
|
|
1712
1712
|
"jsdoc": "/** Safe to render and persist: no proof, account token, transaction or member id. */",
|
|
1713
|
-
"decl": "export interface DeliveryItemState {\n productId: string;\n environment: AppleTransaction[\"environment\"];\n /** Present in the last native unfinished enumeration; null before one succeeded. */\n held: boolean | null;\n /** `confirmed` only from a matching acknowledgement for the current session. */\n access: AccessStatus;\n completion: CompletionStatus;\n attempts: number;\n nextAttemptAt: number | null;\n errorCode: DeliveryErrorCode | null;\n}"
|
|
1713
|
+
"decl": "export interface DeliveryItemState {\n productId: string;\n environment: AppleTransaction[\"environment\"];\n /** Present in the last native unfinished enumeration; null before one succeeded. */\n held: boolean | null;\n /** `confirmed` only from a matching `processed` acknowledgement for the current session. */\n access: AccessStatus;\n completion: CompletionStatus;\n attempts: number;\n nextAttemptAt: number | null;\n errorCode: DeliveryErrorCode | null;\n}"
|
|
1714
1714
|
},
|
|
1715
1715
|
{
|
|
1716
1716
|
"name": "DeliveryState",
|
|
@@ -1862,6 +1862,12 @@
|
|
|
1862
1862
|
"jsdoc": "/** Serializable per-item state a screen binds. Carries no credential, transaction or entitlement. */",
|
|
1863
1863
|
"decl": "export interface IapItemView {\n reference: CatalogReference;\n route: IapPaymentRoute;\n /** Apple: StoreKit's string verbatim. Regular: the caller's commerce price. Otherwise \"\". */\n displayPrice: string;\n reason?: PricingUnavailableReason;\n retryable: boolean;\n /** True only when the existing commerce checkout may run: disabled or an explicit regular route. */\n canStartRegularCheckout: boolean;\n /** Apple purchasing is not available until a backend verifies transactions. */\n purchasable: false;\n}"
|
|
1864
1864
|
},
|
|
1865
|
+
{
|
|
1866
|
+
"name": "IapAppleProduct",
|
|
1867
|
+
"kind": "interface",
|
|
1868
|
+
"jsdoc": "/** The App Store product a settled route sells. For a checkout to compare with the product the\n * payment service names; not screen state and not a purchase authorization. */",
|
|
1869
|
+
"decl": "export interface IapAppleProduct {\n productId: string;\n mappingRevision: string;\n}"
|
|
1870
|
+
},
|
|
1865
1871
|
{
|
|
1866
1872
|
"name": "IapCheckoutDecision",
|
|
1867
1873
|
"kind": "interface",
|
|
@@ -1884,7 +1890,7 @@
|
|
|
1884
1890
|
"name": "IapCatalogPricing",
|
|
1885
1891
|
"kind": "interface",
|
|
1886
1892
|
"jsdoc": "",
|
|
1887
|
-
"decl": "export interface IapCatalogPricing {\n readonly enabled: boolean;\n /** Batched mapping + Apple lookup for the items a screen shows. */\n load(input: IapCatalogInput): Promise<void>;\n refresh(): Promise<void>;\n view(reference: CatalogReference): IapItemView;\n /** May a commerce flow START now? Re-read immediately before the first mutation: the route as it\n * is now, so a refresh in flight (`resolving`) blocks. */\n checkoutGuard(reference: CatalogReference): IapCheckoutDecision;\n /** May a flow that already STARTED take its next commerce step (e.g. pay after a join)? While no\n * new answer exists (a refresh in flight, or a mapping backend that did not answer) it uses the\n * route the last settled lookup gave for the current scope, so a routine refresh cannot strand a\n * regular checkout halfway; any new answer other than regular stops it. */\n continueCheckoutGuard(reference: CatalogReference): IapCheckoutDecision;\n /** The host-scheduled visible refresh; undefined while disabled. */\n pollDirective(action: string): IapPollDirective | undefined;\n dispose(): void;\n}"
|
|
1893
|
+
"decl": "export interface IapCatalogPricing {\n readonly enabled: boolean;\n /** Batched mapping + Apple lookup for the items a screen shows. */\n load(input: IapCatalogInput): Promise<void>;\n refresh(): Promise<void>;\n view(reference: CatalogReference): IapItemView;\n /** May a commerce flow START now? Re-read immediately before the first mutation: the route as it\n * is now, so a refresh in flight (`resolving`) blocks. */\n checkoutGuard(reference: CatalogReference): IapCheckoutDecision;\n /** May a flow that already STARTED take its next commerce step (e.g. pay after a join)? While no\n * new answer exists (a refresh in flight, or a mapping backend that did not answer) it uses the\n * route the last settled lookup gave for the current scope, so a routine refresh cannot strand a\n * regular checkout halfway; any new answer other than regular stops it. */\n continueCheckoutGuard(reference: CatalogReference): IapCheckoutDecision;\n /** The App Store product the item's settled Apple route sells; null on any other route, while\n * a lookup is resolving, while disabled or after dispose. */\n appleProduct(reference: CatalogReference): IapAppleProduct | null;\n /** The host-scheduled visible refresh; undefined while disabled. */\n pollDirective(action: string): IapPollDirective | undefined;\n dispose(): void;\n}"
|
|
1888
1894
|
},
|
|
1889
1895
|
{
|
|
1890
1896
|
"name": "IapPriceCopy",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1281.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"artifactId": "himalaya-cli"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
"falconPackageHash": "
|
|
73
|
+
"falconPackageHash": "18e6a48db1eed7bbaca4bf6ade0fcd4bd61ca66903cace609f49f2ea"
|
|
74
74
|
}
|