@wix/himalaya-cli 0.1658.0 → 0.1660.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.
Files changed (66) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/attendance-classifier.d.ts +3 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/delivery-contract.d.ts +3 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/index.d.ts +7 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +19 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-wire.d.ts +2 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +22 -5
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/commerce-contract.d.ts +4 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-order-backend.d.ts +5 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance-orders.d.ts +10 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance.d.ts +4 -5
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +13 -3
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/online-programs-orders.d.ts +2 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/online-programs.d.ts +2 -2
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/pricing-plans-orders.d.ts +2 -0
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/pricing-plans.d.ts +4 -2
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/shared.d.ts +3 -1
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
  21. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
  22. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +545 -166
  23. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +52 -8
  24. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
  25. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
  26. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
  27. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +423 -88
  28. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
  29. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
  30. package/dist/browser-plane/assets.json +5 -5
  31. package/dist/browser-plane/preview-deferred/{c04dd5fc5ad48e6b19678d4313159302e9a513ada94bfe515d8dfd5a54d46f5d.bin → fcafca348b6b973cfc2eadc938ddec3c515c641874cbca1667a43b22e1bf7a39.bin} +1 -1
  32. package/dist/browser-plane/sw.js +1 -1
  33. package/dist/cli.mjs +1457 -228
  34. package/dist/preview-assets.generated.bin +0 -0
  35. package/guides/himi-json-output.md +39 -0
  36. package/guides/qa-builds.md +20 -0
  37. package/guides/sdk-reference.json +79 -9
  38. package/guides/skill.md +3 -1
  39. package/guides/web-page-sdk-reference.md +1 -1
  40. package/package.json +2 -2
  41. package/templates/beauty-salon/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  42. package/templates/beauty-salon/tier5-src/_shared/iap-worker.ts +2 -0
  43. package/templates/branded-lite/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  44. package/templates/branded-lite/tier5-src/_shared/iap-worker.ts +2 -0
  45. package/templates/community-club/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  46. package/templates/community-club/tier5-src/_shared/iap-worker.ts +2 -0
  47. package/templates/conference/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  48. package/templates/conference/tier5-src/_shared/iap-worker.ts +2 -0
  49. package/templates/events-meetups/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  50. package/templates/events-meetups/tier5-src/_shared/iap-worker.ts +2 -0
  51. package/templates/gym-fitness/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  52. package/templates/gym-fitness/tier5-src/_shared/iap-worker.ts +2 -0
  53. package/templates/nonprofit-cause/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  54. package/templates/nonprofit-cause/tier5-src/_shared/iap-worker.ts +2 -0
  55. package/templates/podcast-creator/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  56. package/templates/podcast-creator/tier5-src/_shared/iap-worker.ts +2 -0
  57. package/templates/portfolio-creative/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  58. package/templates/portfolio-creative/tier5-src/_shared/iap-worker.ts +2 -0
  59. package/templates/restaurant/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  60. package/templates/restaurant/tier5-src/_shared/iap-worker.ts +2 -0
  61. package/templates/retail-store/tier5-src/_shared/iap-worker.ts +2 -0
  62. package/templates/salon-spa/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  63. package/templates/salon-spa/tier5-src/_shared/iap-worker.ts +2 -0
  64. package/templates/wholesale-store/tier5-src/_shared/iap-worker.ts +2 -0
  65. package/templates/yoga-studio/tier5-src/_shared/iap-attendance-purchase.ts +6 -1
  66. package/templates/yoga-studio/tier5-src/_shared/iap-worker.ts +2 -0
@@ -32,6 +32,8 @@ export declare function attendanceCheckoutRoute(item: BookingAttendance | Ticket
32
32
  export declare function bookingAttendanceOf(raw: unknown): BookingAttendance;
33
33
  /** Combines event delivery and ticket-definition pricing metadata for conservative route classification. */
34
34
  export declare function ticketAttendanceOf(event: unknown, definition: unknown): TicketAttendance;
35
- /** Reads the buyer-visible checkout projection; hidden/off-sale inclusions and unknown pricing stay unresolved. */
35
+ /** Reads the buyer-visible ticket projection; hidden/off-sale inclusions and unknown pricing stay unresolved.
36
+ * Accepts both the v1 checkout row (`state`, `pricing.fixedPrice.amount`) and the v3 available
37
+ * ticket-definition row (`hidden`, `pricingMethod.fixedPrice.value`) that `queryAvailableTickets` returns. */
36
38
  export declare function availableTicketAttendanceOf(event: unknown, ticket: unknown): TicketAttendance;
37
39
  export {};
@@ -64,6 +64,9 @@ export interface DeliveryBackend {
64
64
  getMemberContext(session: SessionSnapshot): Promise<ContextResult<MemberContext>>;
65
65
  /** Must be idempotent per store/environment/transaction id; delivery is at-least-once. */
66
66
  submitProof(session: SessionSnapshot, transaction: AppleTransaction): Promise<SubmitProofResult>;
67
+ /** The member closed the store sheet for this sale: nothing was bought. Optional, best effort:
68
+ * the coordinator never waits on its outcome, and a sale nobody pays expires anyway. */
69
+ abandonPurchase?(session: SessionSnapshot, catalogRef: string): Promise<void>;
67
70
  }
68
71
  /** The three managed verbs; `appleManagedStore` in index.ts is the production binding. */
69
72
  export interface TransactionStore {
@@ -76,6 +76,13 @@ export interface PaywallConfig {
76
76
  * declares no IAP config.
77
77
  */
78
78
  export declare function getPaywallConfig(): Promise<PaywallConfig>;
79
+ /**
80
+ * The App Store storefront the signed-in Apple account buys in: StoreKit's
81
+ * `Storefront.current.countryCode`, ISO 3166-1 alpha-3 such as `USA`. wix-iap bills
82
+ * a Pricing Plans order in this country. `null` where the store has no storefront
83
+ * (Android, the web) or cannot say; the server then falls back to the member's address.
84
+ */
85
+ export declare function storefrontCountryCode(): Promise<string | null>;
79
86
  /**
80
87
  * Look up store metadata (localized title/price/etc.) for the given product ids.
81
88
  * Ids must be pre-registered in App Store Connect / Play Console — they cannot be
@@ -61,6 +61,23 @@ export declare const PRICING_PLAN_APPLE_SALES_ENABLED = true;
61
61
  * Videos order adapter refuses every sale until this is on.
62
62
  */
63
63
  export declare const VIDEOS_APPLE_SALES_ENABLED = false;
64
+ /**
65
+ * Which verticals order through wix-iap StartItemPayment (catalyst-server #24878 Plans, #24880 Online
66
+ * Programs, #24881 Bookings, #24882 Events) instead of the device's own checkout and StartPayment. The
67
+ * server places the order as the member, charges it with appleIAP and names the App Store product. Each
68
+ * OFF: that vertical keeps its client checkout. Turn one on only once production wix-iap and Serve's
69
+ * generated client carry its fields; each flips on its own.
70
+ */
71
+ export declare const PRICING_PLAN_ITEM_PAYMENT_ENABLED = false;
72
+ export declare const ONLINE_PROGRAM_ITEM_PAYMENT_ENABLED = false;
73
+ export declare const BOOKINGS_ITEM_PAYMENT_ENABLED = false;
74
+ export declare const EVENTS_ITEM_PAYMENT_ENABLED = false;
75
+ /**
76
+ * CancelPayment (catalyst-server #24894, not deployed) when the member closes the Apple sheet: it cancels
77
+ * the pending Payment and releases the ticket reservation or booking it held. OFF: nothing is sent, and the
78
+ * Payment expires on its own in about an hour.
79
+ */
80
+ export declare const CANCEL_PAYMENT_ENABLED = false;
64
81
  /**
65
82
  * The one definition `himi store iap connect` writes mappings by and the mapping source reads them by,
66
83
  * keyed by catalog kind. wix-iap StartPayment maps the cashier order's single item id, and Online
@@ -123,7 +140,7 @@ export interface WixIapPayment {
123
140
  }
124
141
  export type WixIapOperation = "startPayment" | "startItemPayment" | "completePayment" | "cancelPayment" | "getPayment";
125
142
  export type StartPaymentErrorCode = "NOT_PENDING" | "WRONG_PAYMENT_METHOD" | "NOT_ORDER_BUYER" | "UNSUPPORTED_ORDER" | "PRODUCT_NOT_AVAILABLE" | "ALREADY_OWNED" | "APP_NOT_CONFIGURED" | "SUBSCRIPTION_NOT_IN_APP" | "ALREADY_SUBSCRIBED";
126
- export type StartItemPaymentErrorCode = "PRODUCT_NOT_AVAILABLE" | "ALREADY_OWNED" | "ITEM_NOT_AVAILABLE" | "SITE_NOT_ACCEPTING_PAYMENTS" | "UNSUPPORTED_ORDER" | "CATALOG_NOT_SUPPORTED" | "VERTICAL_ACCESS_DENIED" | "EVENT_CHECKOUT_NOT_ECOM" | "ALREADY_SUBSCRIBED" | "SUBSCRIPTION_NOT_IN_APP" | "BILLING_COUNTRY_REQUIRED" | "APP_NOT_CONFIGURED" | "NOT_BOOKING_OWNER" | "BOOKING_PAYMENT_PENDING";
143
+ export type StartItemPaymentErrorCode = "PRODUCT_NOT_AVAILABLE" | "ALREADY_OWNED" | "ITEM_NOT_AVAILABLE" | "SITE_NOT_ACCEPTING_PAYMENTS" | "UNSUPPORTED_ORDER" | "CATALOG_NOT_SUPPORTED" | "VERTICAL_ACCESS_DENIED" | "EVENT_CHECKOUT_NOT_ECOM" | "ALREADY_SUBSCRIBED" | "SUBSCRIPTION_NOT_IN_APP" | "BILLING_COUNTRY_REQUIRED" | "APP_NOT_CONFIGURED" | "NOT_BOOKING_OWNER" | "BOOKING_PAYMENT_PENDING" | "MEMBER_DETAILS_REQUIRED";
127
144
  export type CompletePaymentErrorCode = "INVALID_PURCHASE" | "OWNED_BY_ANOTHER_CUSTOMER" | "PURCHASE_REVOKED" | "NOT_PURCHASED" | "ZERO_PRICE" | "NO_MATCHING_PAYMENT" | "PAYMENT_NOT_PENDING" | "APP_NOT_CONFIGURED";
128
145
  export type GetPaymentErrorCode = "NOT_FOUND";
129
146
  export type CancelPaymentErrorCode = "NOT_PENDING" | "APP_NOT_CONFIGURED" | "NOT_FOUND";
@@ -188,6 +205,7 @@ export type StartItemPaymentResult = {
188
205
  appAccountToken: string;
189
206
  ecomOrderId?: string;
190
207
  joinApplicationId?: string;
208
+ eventsOrderNumber?: string;
191
209
  } | WixIapFailure<StartItemPaymentErrorCode> | StartItemPaymentOutcomeUnknown;
192
210
  /** `matched`: the server verified the proof and paid the payment whose token the Apple transaction
193
211
  * carries. Its status may still be `approving`. */
@@ -45,6 +45,8 @@ export declare function decodeStarted(raw: unknown, expected: PaymentExpectation
45
45
  export interface StartedItemPayment extends StartedPayment {
46
46
  ecomOrderId?: string;
47
47
  joinApplicationId?: string;
48
+ /** A ticket of a classic Events checkout (catalyst-server #24882): its Events order number. */
49
+ eventsOrderNumber?: string;
48
50
  }
49
51
  /** As StartPayment's answer, plus the member's eCom order or, for Online Programs, join application.
50
52
  * The Payment must name the requested
@@ -16,7 +16,7 @@ export declare const CAPABILITY_REGISTRY: {
16
16
  readonly haptic: readonly ["play", "sequence", "vibrate"];
17
17
  readonly health: readonly ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"];
18
18
  readonly himi_apps: readonly ["canOpen", "current", "hostInfo", "open"];
19
- readonly iap: readonly ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore"];
19
+ readonly iap: readonly ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"];
20
20
  readonly keyboard: readonly ["dismiss"];
21
21
  readonly legacy_import: readonly ["ack", "read"];
22
22
  readonly live_activity: readonly ["end", "start", "update"];
@@ -111,6 +111,8 @@ export type OpeningResolution = "released" | "held" | "unrelated" | "unavailable
111
111
  export interface PlacedItem {
112
112
  ecomOrderId?: string;
113
113
  joinApplicationId?: string;
114
+ /** A ticket of a classic Events checkout: no eCom order, only the event's order number. */
115
+ eventsOrderNumber?: string;
114
116
  }
115
117
  /** An item wix-iap orders itself (StartItemPayment): the item as its catalog reference, and how the
116
118
  * adapter finds what that call placed. */
@@ -158,13 +160,26 @@ export interface IapVerticalOrderAdapter extends IapAdapterBase {
158
160
  }
159
161
  /** A vertical whose order wix-iap places and charges server-side (StartItemPayment): the device
160
162
  * never opens, charges or reopens one. */
163
+ /** What `itemPayment` answers when the item cannot be ordered: nothing was sent to wix-iap. */
164
+ export type ItemPaymentRefusal = Extract<OrderAttempt, {
165
+ status: "refused" | "unavailable" | "sessionChanged";
166
+ }>;
161
167
  export interface IapItemPaymentAdapter extends IapAdapterBase {
162
- /** The catalog item to order, for an item `eligibility` accepted. */
163
- itemPayment(item: IapOrderItem): ItemPayment;
168
+ /** The catalog item to order, for an item `eligibility` accepted. A vertical that must read or
169
+ * make something first (a plan's pricing variant, the member's booking) does it here, through
170
+ * the session-bound bridge, before anything is ordered. */
171
+ itemPayment(item: IapOrderItem, bridge: SessionBoundBridge, beforeCreate?: (guard: OpeningGuard) => boolean, afterCreate?: (guard: OpeningGuard) => void): ItemPayment | ItemPaymentRefusal | Promise<ItemPayment | ItemPaymentRefusal>;
164
172
  openOrder?: never;
165
173
  reopenOrder?: never;
166
- repeatable?: never;
167
- resolveOpening?: never;
174
+ /** Each sale is its own attempt (a ticket, a booking): the item carries an `attemptId`. */
175
+ repeatable?: boolean;
176
+ /** A repeatable adapter whose `itemPayment` makes something first (the member's booking) guards it
177
+ * as an order adapter does: `beforeCreate` before that write, `afterCreate` with what it made, and
178
+ * `resolveOpening` settles one a later attempt finds unpaid. */
179
+ resolveOpening?: IapVerticalOrderAdapter["resolveOpening"];
180
+ /** StartItemPayment answers a re-tap with the same pending Payment (Online Programs), so a closed
181
+ * sheet's CancelPayment could cancel the sale being paid: none is sent. */
182
+ reusesPayment?: boolean;
168
183
  }
169
184
  /** The only per-vertical code. */
170
185
  export type IapOrderAdapter = IapVerticalOrderAdapter | IapItemPaymentAdapter;
@@ -217,7 +232,7 @@ export interface OrderRefStore {
217
232
  siteId: string;
218
233
  }): boolean | null;
219
234
  }
220
- export type OrderFailureCode = "notEnabled" | "notConfigured" | "signInRequired" | "unsupportedItem" | "notAppleRoute" | "storageUnavailable" | "approvalRequired" | "orderClosed" | "orderRefused" | "chargeFailed" | "paymentRefused" | "paymentHeld" | "alreadyOwned" | "paymentInProgress" | "productChanged" | "sitePaymentUnavailable" | "invalidAssociation" | "needsSupport" | "unavailable" | "sessionChanged" | "outcomeUnknown";
235
+ export type OrderFailureCode = "notEnabled" | "notConfigured" | "signInRequired" | "unsupportedItem" | "notAppleRoute" | "storageUnavailable" | "approvalRequired" | "orderClosed" | "orderRefused" | "chargeFailed" | "paymentRefused" | "paymentHeld" | "alreadyOwned" | "paymentInProgress" | "productChanged" | "sitePaymentUnavailable" | "invalidAssociation" | "needsSupport" | "unavailable" | "sessionChanged" | "outcomeUnknown" | "memberDetailsRequired" | "alreadySubscribed" | "bookingNotOwned";
221
236
  /** Progress of a payment this device handed to wix-iap, tracked from its durable reference. */
222
237
  export type PaymentAccess = "processing" | "granted" | "accessUnknown" | "needsSupport";
223
238
  export interface PaymentProgress {
@@ -254,6 +269,8 @@ export interface AppleIapCheckoutDependencies {
254
269
  /** The screen's catalog pricing: the route and the App Store product a sale must match. */
255
270
  pricing: Pick<IapCatalogPricing, "view" | "appleProduct">;
256
271
  store?: TransactionStore;
272
+ /** StoreKit's storefront country for StartItemPayment; defaults to `@himalaya/iap`'s native read. */
273
+ storeCountry?: () => Promise<string | null>;
257
274
  refs?: OrderRefStore;
258
275
  bridge?: WixBridge;
259
276
  jitter?: (baseDelayMs: number) => number;
@@ -94,6 +94,10 @@ export interface IapPurchaseCopy {
94
94
  retry: string;
95
95
  /** Optional for existing SDK consumers; the app supplies a localized recovery message. */
96
96
  sitePaymentUnavailable?: string;
97
+ /** Optional: the order needs the member's first name, last name and email on their profile. */
98
+ memberDetailsRequired?: string;
99
+ /** Optional: the member already holds a subscription in this app. */
100
+ alreadySubscribed?: string;
97
101
  priceChanged: string;
98
102
  support: string;
99
103
  }
@@ -29,6 +29,11 @@ export interface WixOrderBackendDependencies {
29
29
  /** Whether Apple may already be charging for this product: an unfinished transaction, or an Ask
30
30
  * to Buy request awaiting approval. Asked inside the purchase job, after any reconcile. */
31
31
  productBusy?(productId: string): boolean;
32
+ /** StoreKit's storefront country (alpha-3), the billing country of a Pricing Plans order; null
33
+ * when the store has none. Read before every StartItemPayment. */
34
+ storeCountry?(): Promise<string | null>;
35
+ /** Whether a closed Apple sheet sends CancelPayment; defaults to `CANCEL_PAYMENT_ENABLED` (off). */
36
+ cancelPaymentEnabled?: boolean;
32
37
  report(event: OrderEvent): void;
33
38
  }
34
39
  export declare function createWixOrderBackend(deps: WixOrderBackendDependencies): DeliveryBackend;
@@ -0,0 +1,10 @@
1
+ import type { IapOrderAdapter } from "../apple-iap-contract.js";
2
+ export declare function attendanceClientOrdersWith(options: {
3
+ bookingsEnabled: boolean;
4
+ eventsEnabled: boolean;
5
+ now?: () => number;
6
+ }): {
7
+ bookingOrders: IapOrderAdapter;
8
+ eventTicketOrders: IapOrderAdapter;
9
+ };
10
+ export declare const bookingClientOrders: IapOrderAdapter, eventTicketClientOrders: IapOrderAdapter;
@@ -1,10 +1,9 @@
1
- import type { IapOrderAdapter } from "../apple-iap-contract.js";
1
+ import type { IapItemPaymentAdapter } from "../apple-iap-contract.js";
2
2
  export declare function attendanceOrdersWith(options: {
3
3
  bookingsEnabled: boolean;
4
4
  eventsEnabled: boolean;
5
- now?: () => number;
6
5
  }): {
7
- bookingOrders: IapOrderAdapter;
8
- eventTicketOrders: IapOrderAdapter;
6
+ bookingOrders: IapItemPaymentAdapter;
7
+ eventTicketOrders: IapItemPaymentAdapter;
9
8
  };
10
- export declare const bookingOrders: IapOrderAdapter, eventTicketOrders: IapOrderAdapter;
9
+ export declare const bookingItemPayments: IapItemPaymentAdapter, eventTicketItemPayments: IapItemPaymentAdapter;
@@ -1,5 +1,15 @@
1
- export { onlineProgramOrders } from "./online-programs.js";
2
- export { pricingPlanOrders } from "./pricing-plans.js";
1
+ import type { IapOrderAdapter } from "../apple-iap-contract.js";
2
+ import { onlineProgramItemPayments } from "./online-programs.js";
3
+ import { onlineProgramClientOrders } from "./online-programs-orders.js";
4
+ import { pricingPlanItemPayments } from "./pricing-plans.js";
5
+ import { pricingPlanClientOrders } from "./pricing-plans-orders.js";
6
+ import { bookingItemPayments, eventTicketItemPayments } from "./attendance.js";
7
+ import { bookingClientOrders, eventTicketClientOrders } from "./attendance-orders.js";
8
+ export { onlineProgramItemPayments, onlineProgramClientOrders, pricingPlanItemPayments, pricingPlanClientOrders };
9
+ export { bookingItemPayments, eventTicketItemPayments, bookingClientOrders, eventTicketClientOrders };
3
10
  export { storesProductOrders, classifyCart } from "./stores.js";
4
- export { bookingOrders, eventTicketOrders } from "./attendance.js";
5
11
  export { wixVideoOrders } from "./videos.js";
12
+ export declare const onlineProgramOrders: IapOrderAdapter;
13
+ export declare const pricingPlanOrders: IapOrderAdapter;
14
+ export declare const bookingOrders: IapOrderAdapter;
15
+ export declare const eventTicketOrders: IapOrderAdapter;
@@ -0,0 +1,2 @@
1
+ import type { IapOrderAdapter } from "../apple-iap-contract.js";
2
+ export declare const onlineProgramClientOrders: IapOrderAdapter;
@@ -1,2 +1,2 @@
1
- import type { IapOrderAdapter } from "../apple-iap-contract.js";
2
- export declare const onlineProgramOrders: IapOrderAdapter;
1
+ import type { IapItemPaymentAdapter } from "../apple-iap-contract.js";
2
+ export declare const onlineProgramItemPayments: IapItemPaymentAdapter;
@@ -0,0 +1,2 @@
1
+ import type { IapOrderAdapter } from "../apple-iap-contract.js";
2
+ export declare const pricingPlanClientOrders: IapOrderAdapter;
@@ -1,2 +1,4 @@
1
- import type { IapOrderAdapter } from "../apple-iap-contract.js";
2
- export declare const pricingPlanOrders: IapOrderAdapter;
1
+ import type { AccessRead, IapItemPaymentAdapter, SessionBoundBridge } from "../apple-iap-contract.js";
2
+ export declare const pricingPlanItemPayments: IapItemPaymentAdapter;
3
+ /** The member's live orders of the plan, paged: one ACTIVE order is access; none at all is no access. */
4
+ export declare function planAccess(planId: string, bridge: SessionBoundBridge): Promise<AccessRead>;
@@ -1,4 +1,4 @@
1
- import type { AccessRead, BridgeOutcome, BridgeRefusal, IapEligibility, IapOrderItem, OrderAttempt } from "../apple-iap-contract.js";
1
+ import type { AccessRead, BridgeOutcome, BridgeRefusal, IapEligibility, IapOrderItem, OrderAttempt, SessionBoundBridge } from "../apple-iap-contract.js";
2
2
  /** One unit of one item of the adapter's own kind. */
3
3
  export declare function singleUnitOf(kind: string, item: IapOrderItem): IapEligibility;
4
4
  /** A refusal an order step got: retryable when the vertical is down, final when it named one. */
@@ -17,3 +17,5 @@ export declare const UNSUPPORTED: IapEligibility;
17
17
  export declare const ORDER_REFUSED: OrderAttempt;
18
18
  export declare const ORDER_CLOSED: OrderAttempt;
19
19
  export declare const GRANTED: OrderAttempt;
20
+ /** The payment status of an eCom order wix-iap placed (StartItemPayment): PAID is access. */
21
+ export declare function ecomOrderAccess(orderId: string | undefined, bridge: SessionBoundBridge): Promise<AccessRead>;
@@ -31,7 +31,7 @@ var CAPABILITY_REGISTRY = {
31
31
  "haptic": ["play", "sequence", "vibrate"],
32
32
  "health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
33
33
  "himi_apps": ["canOpen", "current", "hostInfo", "open"],
34
- "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore"],
34
+ "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
35
35
  "keyboard": ["dismiss"],
36
36
  "legacy_import": ["ack", "read"],
37
37
  "live_activity": ["end", "start", "update"],
@@ -31,7 +31,7 @@ var CAPABILITY_REGISTRY = {
31
31
  "haptic": ["play", "sequence", "vibrate"],
32
32
  "health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
33
33
  "himi_apps": ["canOpen", "current", "hostInfo", "open"],
34
- "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore"],
34
+ "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
35
35
  "keyboard": ["dismiss"],
36
36
  "legacy_import": ["ack", "read"],
37
37
  "live_activity": ["end", "start", "update"],
@@ -31,7 +31,7 @@ var CAPABILITY_REGISTRY = {
31
31
  "haptic": ["play", "sequence", "vibrate"],
32
32
  "health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
33
33
  "himi_apps": ["canOpen", "current", "hostInfo", "open"],
34
- "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore"],
34
+ "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
35
35
  "keyboard": ["dismiss"],
36
36
  "legacy_import": ["ack", "read"],
37
37
  "live_activity": ["end", "start", "update"],
@@ -31,7 +31,7 @@ var CAPABILITY_REGISTRY = {
31
31
  "haptic": ["play", "sequence", "vibrate"],
32
32
  "health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
33
33
  "himi_apps": ["canOpen", "current", "hostInfo", "open"],
34
- "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore"],
34
+ "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
35
35
  "keyboard": ["dismiss"],
36
36
  "legacy_import": ["ack", "read"],
37
37
  "live_activity": ["end", "start", "update"],