@wix/himalaya-cli 0.1496.0 → 0.1497.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/attendance-classifier.d.ts +37 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/catalog-pricing-contract.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/index.d.ts +2 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +11 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +27 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/commerce-contract.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance.d.ts +10 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/events/src/index.d.ts +33 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +346 -26
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +132 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +366 -48
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-events.mjs +5 -0
- package/dist/cli.mjs +816 -666
- package/guides/iap-products.md +7 -1
- package/guides/sdk-reference.json +376 -27
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +394 -0
- package/templates/beauty-salon/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/beauty-salon/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
- package/templates/beauty-salon/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +52 -7
- package/templates/branded-lite/dev/index.ts +1073 -284
- package/templates/branded-lite/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/branded-lite/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
- package/templates/branded-lite/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +52 -7
- package/templates/branded-lite/tier5-src/himi-events-detail/index.ts +112 -21
- package/templates/community-club/dev/index.ts +397 -2
- package/templates/community-club/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/community-club/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
- package/templates/community-club/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/community-club/tier5-src/himi-events-detail/index.ts +112 -21
- package/templates/events-meetups/dev/index.ts +397 -2
- package/templates/events-meetups/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/events-meetups/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
- package/templates/events-meetups/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/events-meetups/tier5-src/himi-events-detail/index.ts +112 -21
- package/templates/gym-fitness/dev/index.ts +828 -39
- package/templates/gym-fitness/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/gym-fitness/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
- package/templates/gym-fitness/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +52 -7
- package/templates/gym-fitness/tier5-src/himi-events-detail/index.ts +112 -21
- package/templates/nonprofit-cause/dev/index.ts +397 -2
- package/templates/nonprofit-cause/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/nonprofit-cause/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
- package/templates/nonprofit-cause/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/nonprofit-cause/tier5-src/himi-events-detail/index.ts +112 -21
- package/templates/podcast-creator/dev/index.ts +397 -2
- package/templates/podcast-creator/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/podcast-creator/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
- package/templates/podcast-creator/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/podcast-creator/tier5-src/himi-events-detail/index.ts +112 -21
- package/templates/portfolio-creative/dev/index.ts +397 -2
- package/templates/portfolio-creative/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/portfolio-creative/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
- package/templates/portfolio-creative/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/portfolio-creative/tier5-src/himi-events-detail/index.ts +112 -21
- package/templates/restaurant/dev/index.ts +397 -2
- package/templates/restaurant/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/restaurant/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
- package/templates/restaurant/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/restaurant/tier5-src/himi-events-detail/index.ts +112 -21
- package/templates/yoga-studio/dev/index.ts +828 -39
- package/templates/yoga-studio/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/yoga-studio/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
- package/templates/yoga-studio/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +52 -7
- package/templates/yoga-studio/tier5-src/himi-events-detail/index.ts +112 -21
|
@@ -1987,7 +1987,7 @@
|
|
|
1987
1987
|
"name": "IAP_CATALOG_KINDS",
|
|
1988
1988
|
"kind": "const",
|
|
1989
1989
|
"jsdoc": "/** The Wix entity types `himi store iap` writes into its Wix→Apple mapping, so a mapping\n * backend can serve that export without translating kinds. */",
|
|
1990
|
-
"decl": "export const IAP_CATALOG_KINDS = [\"onlineProgram\", \"storesProduct\", \"pricingPlan\"] as const;"
|
|
1990
|
+
"decl": "export const IAP_CATALOG_KINDS = [\"onlineProgram\", \"storesProduct\", \"pricingPlan\", \"bookingsService\", \"eventsTicket\"] as const;"
|
|
1991
1991
|
},
|
|
1992
1992
|
{
|
|
1993
1993
|
"name": "IapCatalogKind",
|
|
@@ -2119,7 +2119,19 @@
|
|
|
2119
2119
|
"name": "AppleSaleRule",
|
|
2120
2120
|
"kind": "interface",
|
|
2121
2121
|
"jsdoc": "/** How the App Store sells one vertical's Wix item: the purchases catalog's `appProductId` for it, and\n * the only product type the purchase flow sells it as. */",
|
|
2122
|
-
"decl": "export interface AppleSaleRule {\n appProductId(entityId: string): string;\n productType: \"NON_CONSUMABLE\";\n}"
|
|
2122
|
+
"decl": "export interface AppleSaleRule {\n appProductId(entityId: string): string;\n productType: \"NON_CONSUMABLE\" | \"CONSUMABLE\";\n}"
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
"name": "BOOKINGS_APPLE_SALES_ENABLED",
|
|
2126
|
+
"kind": "const",
|
|
2127
|
+
"jsdoc": "",
|
|
2128
|
+
"decl": "export const BOOKINGS_APPLE_SALES_ENABLED = false;"
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
"name": "EVENTS_APPLE_SALES_ENABLED",
|
|
2132
|
+
"kind": "const",
|
|
2133
|
+
"jsdoc": "",
|
|
2134
|
+
"decl": "export const EVENTS_APPLE_SALES_ENABLED = false;"
|
|
2123
2135
|
},
|
|
2124
2136
|
{
|
|
2125
2137
|
"name": "STORES_ITEM_PAYMENT_ENABLED",
|
|
@@ -2145,11 +2157,17 @@
|
|
|
2145
2157
|
"jsdoc": "/** One-time unlimited plans sell through the App Store. Proven live in Sandbox on 2026-10-19: a member's\n * online plan order is charged with one cashier item whose id is the plan id, so StartPayment maps it to the\n * plan's Apple product, and the order reads ACTIVE and PAID. Recurring and time-limited plans stay outside\n * this rule; their Billing lifecycle is unfinished. */",
|
|
2146
2158
|
"decl": "export const PRICING_PLAN_APPLE_SALES_ENABLED = true;"
|
|
2147
2159
|
},
|
|
2160
|
+
{
|
|
2161
|
+
"name": "AppleSaleOptions",
|
|
2162
|
+
"kind": "interface",
|
|
2163
|
+
"jsdoc": "/**\n * The one definition `himi store iap connect` writes mappings by and the mapping source reads them by,\n * keyed by catalog kind. wix-iap StartPayment maps the cashier order's single item id, and Online\n * Programs builds that order with the program id as the item id; programs are one-time unlocks.\n * Wix Stores and one-time unlimited Pricing Plans join only with their independent switches.\n */",
|
|
2164
|
+
"decl": "export interface AppleSaleOptions {\n storesAppleSalesEnabled?: boolean;\n storesItemPaymentEnabled?: boolean;\n pricingPlanAppleSalesEnabled?: boolean;\n bookingsAppleSalesEnabled?: boolean;\n eventsAppleSalesEnabled?: boolean;\n}"
|
|
2165
|
+
},
|
|
2148
2166
|
{
|
|
2149
2167
|
"name": "appleSaleRules",
|
|
2150
2168
|
"kind": "function",
|
|
2151
|
-
"jsdoc": "
|
|
2152
|
-
"decl": "export function appleSaleRules(options:
|
|
2169
|
+
"jsdoc": "/** Resolves runtime sale eligibility independently from the catalog's provisioning support. */",
|
|
2170
|
+
"decl": "export function appleSaleRules(options: AppleSaleOptions = {}): Readonly<Record<string, AppleSaleRule>>;"
|
|
2153
2171
|
},
|
|
2154
2172
|
{
|
|
2155
2173
|
"name": "APPLE_SALE_RULES",
|
|
@@ -2157,6 +2175,12 @@
|
|
|
2157
2175
|
"jsdoc": "",
|
|
2158
2176
|
"decl": "export const APPLE_SALE_RULES = appleSaleRules();"
|
|
2159
2177
|
},
|
|
2178
|
+
{
|
|
2179
|
+
"name": "APPLE_PROVISIONING_RULES",
|
|
2180
|
+
"kind": "const",
|
|
2181
|
+
"jsdoc": "/** Catalog setup may precede activation; purchases still require the independent sales switches. */",
|
|
2182
|
+
"decl": "export const APPLE_PROVISIONING_RULES: Readonly<Record<string, AppleSaleRule>> = {\n ...APPLE_SALE_RULES, bookingsService: ATTENDANCE_SALE_RULE, eventsTicket: ATTENDANCE_SALE_RULE,\n};"
|
|
2183
|
+
},
|
|
2160
2184
|
{
|
|
2161
2185
|
"name": "HostCallExpectation",
|
|
2162
2186
|
"kind": "interface",
|
|
@@ -2197,7 +2221,7 @@
|
|
|
2197
2221
|
"name": "StartPaymentErrorCode",
|
|
2198
2222
|
"kind": "type",
|
|
2199
2223
|
"jsdoc": "",
|
|
2200
|
-
"decl": "export type StartPaymentErrorCode = \"NOT_PENDING\" | \"WRONG_PAYMENT_METHOD\" | \"NOT_ORDER_BUYER\" | \"UNSUPPORTED_ORDER\"\n | \"PRODUCT_NOT_AVAILABLE\" | \"ALREADY_OWNED\";"
|
|
2224
|
+
"decl": "export type StartPaymentErrorCode = \"NOT_PENDING\" | \"WRONG_PAYMENT_METHOD\" | \"NOT_ORDER_BUYER\" | \"UNSUPPORTED_ORDER\"\n | \"PRODUCT_NOT_AVAILABLE\" | \"ALREADY_OWNED\" | \"APP_NOT_CONFIGURED\" | \"SUBSCRIPTION_NOT_IN_APP\" | \"ALREADY_SUBSCRIBED\";"
|
|
2201
2225
|
},
|
|
2202
2226
|
{
|
|
2203
2227
|
"name": "StartItemPaymentErrorCode",
|
|
@@ -2328,6 +2352,54 @@
|
|
|
2328
2352
|
"jsdoc": "/** Whether the host fences protected calls to the captured member (`identityBound`). Web does not. */",
|
|
2329
2353
|
"decl": "export function readIdentityBound(): boolean;"
|
|
2330
2354
|
},
|
|
2355
|
+
{
|
|
2356
|
+
"name": "AppleAttendanceRoute",
|
|
2357
|
+
"kind": "type",
|
|
2358
|
+
"jsdoc": "",
|
|
2359
|
+
"decl": "export type AppleAttendanceRoute = \"appleIap\" | \"wixPayments\" | \"decide\";"
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
"name": "BookingAttendance",
|
|
2363
|
+
"kind": "interface",
|
|
2364
|
+
"jsdoc": "",
|
|
2365
|
+
"decl": "export interface BookingAttendance extends AttendancePrice {\n kind: \"bookingsService\";\n type?: string;\n capacity?: number;\n maxParticipantsPerBooking?: number;\n conferencing?: boolean;\n locations?: readonly string[];\n onlineBooking?: boolean;\n onlinePayment?: boolean;\n deposit?: boolean;\n}"
|
|
2366
|
+
},
|
|
2367
|
+
{
|
|
2368
|
+
"name": "TicketAttendance",
|
|
2369
|
+
"kind": "interface",
|
|
2370
|
+
"jsdoc": "",
|
|
2371
|
+
"decl": "export interface TicketAttendance extends AttendancePrice {\n kind: \"eventsTicket\";\n location?: string;\n registration?: string;\n eventStatus?: string;\n saleStatus?: string;\n}"
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
"name": "classifyForApple",
|
|
2375
|
+
"kind": "function",
|
|
2376
|
+
"jsdoc": "/** Delivery metadata decides the route; online booking and online payment alone never do. */",
|
|
2377
|
+
"decl": "export function classifyForApple(item: BookingAttendance | TicketAttendance, currency: string): AppleAttendanceRoute;"
|
|
2378
|
+
},
|
|
2379
|
+
{
|
|
2380
|
+
"name": "attendanceCheckoutRoute",
|
|
2381
|
+
"kind": "function",
|
|
2382
|
+
"jsdoc": "/** Applies platform support and activation switches without sending uncertain iOS offers to web checkout. */",
|
|
2383
|
+
"decl": "export function attendanceCheckoutRoute(item: BookingAttendance | TicketAttendance, currency: string, platform: string): \"regular\" | \"appleIap\" | \"blocked\";"
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
"name": "bookingAttendanceOf",
|
|
2387
|
+
"kind": "function",
|
|
2388
|
+
"jsdoc": "/** Preserves missing Wix service fields as unknown so absent metadata cannot authorize a payment route. */",
|
|
2389
|
+
"decl": "export function bookingAttendanceOf(raw: unknown): BookingAttendance;"
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
"name": "ticketAttendanceOf",
|
|
2393
|
+
"kind": "function",
|
|
2394
|
+
"jsdoc": "/** Combines event delivery and ticket-definition pricing metadata for conservative route classification. */",
|
|
2395
|
+
"decl": "export function ticketAttendanceOf(event: unknown, definition: unknown): TicketAttendance;"
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
"name": "availableTicketAttendanceOf",
|
|
2399
|
+
"kind": "function",
|
|
2400
|
+
"jsdoc": "/** Reads the buyer-visible checkout projection; hidden/off-sale inclusions and unknown pricing stay unresolved. */",
|
|
2401
|
+
"decl": "export function availableTicketAttendanceOf(event: unknown, ticket: unknown): TicketAttendance;"
|
|
2402
|
+
},
|
|
2331
2403
|
{
|
|
2332
2404
|
"name": "ProductType",
|
|
2333
2405
|
"kind": "type",
|
|
@@ -2445,7 +2517,7 @@
|
|
|
2445
2517
|
{
|
|
2446
2518
|
"name": "purchaseForVerification",
|
|
2447
2519
|
"kind": "function",
|
|
2448
|
-
"jsdoc": "/** Apple non-consumables
|
|
2520
|
+
"jsdoc": "/** Apple consumables and non-consumables. The token comes from authenticated backend context.\n * Leaves the transaction unfinished. Never falls back to legacy purchase on old binaries. */",
|
|
2449
2521
|
"decl": "export async function purchaseForVerification(input: { productId: string; appAccountToken: string }): Promise<VerificationPurchaseResult>;"
|
|
2450
2522
|
},
|
|
2451
2523
|
{
|
|
@@ -2507,7 +2579,7 @@
|
|
|
2507
2579
|
"name": "\"./iap-verticals/index.js\"",
|
|
2508
2580
|
"kind": "reexport",
|
|
2509
2581
|
"jsdoc": "",
|
|
2510
|
-
"decl": "export { onlineProgramOrders, pricingPlanOrders, storesProductOrders, classifyCart } from \"./iap-verticals/index.js\";"
|
|
2582
|
+
"decl": "export { onlineProgramOrders, pricingPlanOrders, storesProductOrders, bookingOrders, eventTicketOrders, classifyCart } from \"./iap-verticals/index.js\";"
|
|
2511
2583
|
},
|
|
2512
2584
|
{
|
|
2513
2585
|
"name": "\"./order-refs.js\"",
|
|
@@ -2603,7 +2675,7 @@
|
|
|
2603
2675
|
"name": "IapOrderItem",
|
|
2604
2676
|
"kind": "interface",
|
|
2605
2677
|
"jsdoc": "/** One item a screen sells. `reference` is the same catalog reference its price came from. */",
|
|
2606
|
-
"decl": "export interface IapOrderItem {\n reference: CatalogReference;\n /** eCom catalog reference, required for a Wix Stores item. */\n catalogReference?: { appId: string; catalogItemId: string; options?: Record<string, unknown> };\n /** Only 1 is supported. */\n quantity?: number;\n}"
|
|
2678
|
+
"decl": "export interface IapOrderItem {\n reference: CatalogReference;\n /** One intentional purchase; reuse on retries, replace only for an explicit new purchase. */\n attemptId?: string;\n /** Ephemeral selection and form answers; never written to order references or screen state. */\n attendance?: {\n amount: string;\n currency: string;\n booking?: { slot: Record<string, unknown>; contactDetails: Record<string, unknown>; formInfo?: Record<string, unknown> };\n ticket?: { eventId: string; buyer: Record<string, unknown>; guests?: Record<string, unknown>[]; buyerSubmission?: Record<string, unknown>; guestSubmissions?: Record<string, unknown>[] };\n };\n /** eCom catalog reference, required for a Wix Stores item. */\n catalogReference?: { appId: string; catalogItemId: string; options?: Record<string, unknown> };\n /** Only 1 is supported. */\n quantity?: number;\n}"
|
|
2607
2679
|
},
|
|
2608
2680
|
{
|
|
2609
2681
|
"name": "VerticalRef",
|
|
@@ -2621,7 +2693,7 @@
|
|
|
2621
2693
|
"name": "OrderAttempt",
|
|
2622
2694
|
"kind": "type",
|
|
2623
2695
|
"jsdoc": "/** `open`: a pending order the cashier can charge. `granted`: the vertical already gives the\n * member access, so nothing is sold. */",
|
|
2624
|
-
"decl": "export type OrderAttempt
|
|
2696
|
+
"decl": "export type OrderAttempt = (\n | { status: \"open\"; cashierOrderId: string; verticalRef: VerticalRef }\n | { status: \"granted\" }\n | { status: \"refused\"; reason: OrderFailureCode }\n | { status: \"unavailable\" }\n | { status: \"sessionChanged\" }) & { noOrderCreated?: true };"
|
|
2625
2697
|
},
|
|
2626
2698
|
{
|
|
2627
2699
|
"name": "AccessRead",
|
|
@@ -2633,7 +2705,7 @@
|
|
|
2633
2705
|
"name": "IapOrderAdapter",
|
|
2634
2706
|
"kind": "interface",
|
|
2635
2707
|
"jsdoc": "/** The only per-vertical code. Every call goes through the session-bound bridge it is given. */",
|
|
2636
|
-
"decl": "export interface IapOrderAdapter {\n /** The catalog kind it sells (`onlineProgram`, `pricingPlan`, `storesProduct`, or a custom one). */\n readonly kind: string;\n /** Structural check before any call: one item, quantity 1, a supported shape. */\n eligibility(item: IapOrderItem): IapEligibility;\n /** Opens, or reuses the vertical's own open, order for the signed-in member. */\n openOrder(item: IapOrderItem, bridge: SessionBoundBridge): Promise<OrderAttempt>;\n /** Re-reads an order opened earlier; `open` only while it can still be paid. */\n reopenOrder(order: { cashierOrderId: string; verticalRef: VerticalRef }, bridge: SessionBoundBridge): Promise<OrderAttempt>;\n /** The vertical's authoritative answer for the order's item and the signed-in member. */\n readAccess(verticalRef: VerticalRef, bridge: SessionBoundBridge): Promise<AccessRead>;\n /** The member's access to an item before any order exists (bought through Wix, say). Read-only:\n * never opens or prepares an order. An adapter without it shows Get access until a sale says otherwise. */\n currentAccess?(item: IapOrderItem, bridge: SessionBoundBridge): Promise<AccessRead>;\n /** When the platform enables StartItemPayment, an eligible item whose order wix-iap places itself\n * instead of `openOrder`. Null for an item outside that shape, which keeps `openOrder`. */\n itemPayment?(
|
|
2708
|
+
"decl": "export interface IapOrderAdapter {\n /** The catalog kind it sells (`onlineProgram`, `pricingPlan`, `storesProduct`, or a custom one). */\n readonly kind: string;\n readonly repeatable?: boolean;\n /** Structural check before any call: one item, quantity 1, a supported shape. */\n eligibility(item: IapOrderItem): IapEligibility;\n /** Opens, or reuses the vertical's own open, order for the signed-in member. */\n /** Repeatable adapters call beforeCreate immediately before their first inventory write,\n * after read-only checks, and abort without writing if it returns false. */\n openOrder(item: IapOrderItem, bridge: SessionBoundBridge, beforeCreate?: () => boolean): Promise<OrderAttempt>;\n /** Re-reads an order opened earlier; `open` only while it can still be paid. */\n reopenOrder(order: { cashierOrderId: string; verticalRef: VerticalRef }, bridge: SessionBoundBridge): Promise<OrderAttempt>;\n /** The vertical's authoritative answer for the order's item and the signed-in member. */\n readAccess(verticalRef: VerticalRef, bridge: SessionBoundBridge): Promise<AccessRead>;\n /** The member's access to an item before any order exists (bought through Wix, say). Read-only:\n * never opens or prepares an order. An adapter without it shows Get access until a sale says otherwise. */\n currentAccess?(item: IapOrderItem, bridge: SessionBoundBridge): Promise<AccessRead>;\n /** When the platform enables StartItemPayment, an eligible item whose order wix-iap places itself\n * instead of `openOrder`. Null for an item outside that shape, which keeps `openOrder`. */\n itemPayment?(i\n/* … */"
|
|
2637
2709
|
},
|
|
2638
2710
|
{
|
|
2639
2711
|
"name": "OrderPartitionKey",
|
|
@@ -2645,7 +2717,7 @@
|
|
|
2645
2717
|
"name": "OrderRefStage",
|
|
2646
2718
|
"kind": "type",
|
|
2647
2719
|
"jsdoc": "/** `startingItem`: a StartItemPayment was or is about to be sent and its answer is not stored, so\n * the service may have placed an order this device knows nothing of; nothing else is sold for the\n * item until it expires. `held`: Apple charged, and CompletePayment refused the proof without\n * recording it, so the transaction stays unfinished and is retried. `needsSupport`: recorded and\n * refused for good. */",
|
|
2648
|
-
"decl": "export type OrderRefStage = \"startingItem\" | \"ordered\" | \"charged\" | \"started\" | \"submitted\" | \"held\" | \"needsSupport\";"
|
|
2720
|
+
"decl": "export type OrderRefStage = \"startingItem\" | \"openingOrder\" | \"ordered\" | \"charged\" | \"started\" | \"submitted\" | \"fulfilled\" | \"held\" | \"needsSupport\";"
|
|
2649
2721
|
},
|
|
2650
2722
|
{
|
|
2651
2723
|
"name": "OrderRef",
|
|
@@ -2747,7 +2819,7 @@
|
|
|
2747
2819
|
"name": "IapPurchaseCopy",
|
|
2748
2820
|
"kind": "interface",
|
|
2749
2821
|
"jsdoc": "/** Labels from the screen's copy pack; the shared layer only chooses between them. */",
|
|
2750
|
-
"decl": "export interface IapPurchaseCopy {\n buy: string;\n processing: string;\n awaitingApproval: string;\n unavailable: string;\n signInRequired: string;\n retry: string;\n priceChanged: string;\n support: string;\n}"
|
|
2822
|
+
"decl": "export interface IapPurchaseCopy {\n buy: string;\n buyAnother?: string;\n processing: string;\n awaitingApproval: string;\n unavailable: string;\n signInRequired: string;\n retry: string;\n priceChanged: string;\n support: string;\n}"
|
|
2751
2823
|
},
|
|
2752
2824
|
{
|
|
2753
2825
|
"name": "IapPurchaseFields",
|
|
@@ -2834,7 +2906,7 @@
|
|
|
2834
2906
|
"name": "StartOptions",
|
|
2835
2907
|
"kind": "interface",
|
|
2836
2908
|
"jsdoc": "",
|
|
2837
|
-
"decl": "export interface StartOptions {\n /** Groups related activities (e.g. \"order\", \"timer\", \"ride\"). Maps to the iOS\n * ActivityKit attributes type / the Android notification channel + tag. */\n activityType: string;\n /** The widget-safe SDUI tree rendered on the lock screen + Dynamic Island /\n * Live Update notification. */\n content: LiveActivityComponent;\n /** Optional one-line title (Android Live Update headline / accessibility). */\n title?: string;\n /** Mark the activity stale after this many ms (iOS staleDate). 0 ⇒ no hint. */\n staleAfterMs?: number;\n /** Optional per-Dynamic-Island-slot subtrees; omitted slots fall back to title/glyph. */\n regions?: LiveActivityRegions;\n /** Exact record route in the host app. Older binaries may open the app root. */\n deepLink?: string;\n /** Request an ActivityKit push token; the host must register it with its authenticated runtime. */\n pushUpdates?: boolean;\n /**\n * #2050 — the record this activity tracks. Present ⇒ the runtime records a scoped\n * mapping and the host registers an authenticated subscription, so the serve plane\n * can push ordered background frames. Absent ⇒ foreground-only, unchanged.\n *\n * On iOS pair it with `pushUpdates: true`: without the ActivityKit push token there\n * is nothing for the host to register, so the mapping would be recorded and never\n * addressed.\n */\n session?: LiveSessionRef;\n /** Android promotion is opt-in for a user-followed, bounded, time-sensitive\n * activity. The system may still keep it as an ordinary notification. */\n promoted?: boolean;\n
|
|
2909
|
+
"decl": "export interface StartOptions {\n /** Groups related activities (e.g. \"order\", \"timer\", \"ride\"). Maps to the iOS\n * ActivityKit attributes type / the Android notification channel + tag. */\n activityType: string;\n /** The widget-safe SDUI tree rendered on the lock screen + Dynamic Island /\n * Live Update notification. */\n content: LiveActivityComponent;\n /** Optional one-line title (Android Live Update headline / accessibility). */\n title?: string;\n /** Mark the activity stale after this many ms (iOS staleDate). 0 ⇒ no hint. */\n staleAfterMs?: number;\n /** Optional per-Dynamic-Island-slot subtrees; omitted slots fall back to title/glyph. */\n regions?: LiveActivityRegions;\n /** Exact record route in the host app. Older binaries may open the app root. */\n deepLink?: string;\n /** Request an ActivityKit push token; the host must register it with its authenticated runtime. */\n pushUpdates?: boolean;\n /**\n * #2050 — the record this activity tracks. Present ⇒ the runtime records a scoped\n * mapping and the host registers an authenticated subscription, so the serve plane\n * can push ordered background frames. Absent ⇒ foreground-only, unchanged.\n *\n * On iOS pair it with `pushUpdates: true`: without the ActivityKit push token there\n * is nothing for the host to register, so the mapping would be recorded and never\n * addressed.\n */\n session?: LiveSessionRef;\n /** Android promotion is opt-in for a user-followed, bounded, time-sensitive\n * activity. The system may still keep it as an ordinary notification. */\n promoted?: boolean;\n /** In an app\n/* … */"
|
|
2838
2910
|
},
|
|
2839
2911
|
{
|
|
2840
2912
|
"name": "UpdateOptions",
|
|
@@ -8963,7 +9035,25 @@
|
|
|
8963
9035
|
"name": "WixServiceFixedPayment",
|
|
8964
9036
|
"kind": "interface",
|
|
8965
9037
|
"jsdoc": "",
|
|
8966
|
-
"decl": "export interface WixServiceFixedPayment {\n price?: WixServiceMoney;\n}"
|
|
9038
|
+
"decl": "export interface WixServiceFixedPayment {\n price?: WixServiceMoney;\n deposit?: WixServiceMoney;\n fullUpfrontPaymentAllowed?: boolean;\n}"
|
|
9039
|
+
},
|
|
9040
|
+
{
|
|
9041
|
+
"name": "WixServiceVariedPayment",
|
|
9042
|
+
"kind": "interface",
|
|
9043
|
+
"jsdoc": "",
|
|
9044
|
+
"decl": "export interface WixServiceVariedPayment {\n defaultPrice?: WixServiceMoney;\n deposit?: WixServiceMoney;\n minPrice?: WixServiceMoney;\n maxPrice?: WixServiceMoney;\n}"
|
|
9045
|
+
},
|
|
9046
|
+
{
|
|
9047
|
+
"name": "WixServiceCustomPayment",
|
|
9048
|
+
"kind": "interface",
|
|
9049
|
+
"jsdoc": "",
|
|
9050
|
+
"decl": "export interface WixServiceCustomPayment {\n description?: string;\n}"
|
|
9051
|
+
},
|
|
9052
|
+
{
|
|
9053
|
+
"name": "WixServicePaymentOptions",
|
|
9054
|
+
"kind": "interface",
|
|
9055
|
+
"jsdoc": "",
|
|
9056
|
+
"decl": "export interface WixServicePaymentOptions {\n online?: boolean;\n inPerson?: boolean;\n deposit?: boolean;\n pricingPlan?: boolean;\n}"
|
|
8967
9057
|
},
|
|
8968
9058
|
{
|
|
8969
9059
|
"name": "WixServiceRateLabel",
|
|
@@ -8975,25 +9065,199 @@
|
|
|
8975
9065
|
"name": "WixServicePayment",
|
|
8976
9066
|
"kind": "interface",
|
|
8977
9067
|
"jsdoc": "",
|
|
8978
|
-
"decl": "export interface WixServicePayment {\n fixed?: WixServiceFixedPayment;\n rateLabel?: WixServiceRateLabel;\n price?: number;\n currency?: string;\n}"
|
|
9068
|
+
"decl": "export interface WixServicePayment {\n rateType?: string;\n fixed?: WixServiceFixedPayment;\n varied?: WixServiceVariedPayment;\n custom?: WixServiceCustomPayment;\n options?: WixServicePaymentOptions;\n rateLabel?: WixServiceRateLabel;\n price?: number;\n currency?: string;\n}"
|
|
9069
|
+
},
|
|
9070
|
+
{
|
|
9071
|
+
"name": "WixServiceDuration",
|
|
9072
|
+
"kind": "interface",
|
|
9073
|
+
"jsdoc": "",
|
|
9074
|
+
"decl": "export interface WixServiceDuration {\n minutes?: number;\n}"
|
|
9075
|
+
},
|
|
9076
|
+
{
|
|
9077
|
+
"name": "WixServiceHourlyConfig",
|
|
9078
|
+
"kind": "interface",
|
|
9079
|
+
"jsdoc": "",
|
|
9080
|
+
"decl": "export interface WixServiceHourlyConfig {\n minDurationInMinutes?: number;\n maxDurationInMinutes?: number;\n}"
|
|
9081
|
+
},
|
|
9082
|
+
{
|
|
9083
|
+
"name": "WixServiceDailyConfig",
|
|
9084
|
+
"kind": "interface",
|
|
9085
|
+
"jsdoc": "",
|
|
9086
|
+
"decl": "export interface WixServiceDailyConfig {\n minDurationInDays?: number;\n maxDurationInDays?: number;\n}"
|
|
9087
|
+
},
|
|
9088
|
+
{
|
|
9089
|
+
"name": "WixServiceDurationRange",
|
|
9090
|
+
"kind": "interface",
|
|
9091
|
+
"jsdoc": "",
|
|
9092
|
+
"decl": "export interface WixServiceDurationRange {\n hourOptions?: WixServiceHourlyConfig;\n dayOptions?: WixServiceDailyConfig;\n unitType?: string;\n}"
|
|
8979
9093
|
},
|
|
8980
9094
|
{
|
|
8981
9095
|
"name": "WixServiceAvailabilityConstraints",
|
|
8982
9096
|
"kind": "interface",
|
|
8983
9097
|
"jsdoc": "",
|
|
8984
|
-
"decl": "export interface WixServiceAvailabilityConstraints {\n sessionDurations?: number[];\n}"
|
|
9098
|
+
"decl": "export interface WixServiceAvailabilityConstraints {\n durations?: WixServiceDuration[];\n sessionDurations?: number[];\n durationRange?: WixServiceDurationRange;\n}"
|
|
8985
9099
|
},
|
|
8986
9100
|
{
|
|
8987
9101
|
"name": "WixServiceSchedule",
|
|
8988
9102
|
"kind": "interface",
|
|
8989
9103
|
"jsdoc": "",
|
|
8990
|
-
"decl": "export interface WixServiceSchedule {\n availabilityConstraints?: WixServiceAvailabilityConstraints;\n}"
|
|
9104
|
+
"decl": "export interface WixServiceSchedule {\n id?: string;\n firstSessionStart?: string;\n lastSessionEnd?: string;\n availabilityConstraints?: WixServiceAvailabilityConstraints;\n}"
|
|
9105
|
+
},
|
|
9106
|
+
{
|
|
9107
|
+
"name": "WixServiceImage",
|
|
9108
|
+
"kind": "interface",
|
|
9109
|
+
"jsdoc": "",
|
|
9110
|
+
"decl": "export interface WixServiceImage {\n id?: string;\n url?: string;\n height?: number;\n width?: number;\n altText?: string;\n}"
|
|
9111
|
+
},
|
|
9112
|
+
{
|
|
9113
|
+
"name": "WixServiceMediaItem",
|
|
9114
|
+
"kind": "interface",
|
|
9115
|
+
"jsdoc": "",
|
|
9116
|
+
"decl": "export interface WixServiceMediaItem {\n image?: WixServiceImage;\n}"
|
|
9117
|
+
},
|
|
9118
|
+
{
|
|
9119
|
+
"name": "WixServiceMedia",
|
|
9120
|
+
"kind": "interface",
|
|
9121
|
+
"jsdoc": "",
|
|
9122
|
+
"decl": "export interface WixServiceMedia {\n items?: WixServiceMediaItem[];\n mainMedia?: WixServiceMediaItem;\n coverMedia?: WixServiceMediaItem;\n}"
|
|
9123
|
+
},
|
|
9124
|
+
{
|
|
9125
|
+
"name": "WixServiceStreetAddress",
|
|
9126
|
+
"kind": "interface",
|
|
9127
|
+
"jsdoc": "",
|
|
9128
|
+
"decl": "export interface WixServiceStreetAddress {\n number?: string;\n name?: string;\n apt?: string;\n}"
|
|
9129
|
+
},
|
|
9130
|
+
{
|
|
9131
|
+
"name": "WixServiceAddress",
|
|
9132
|
+
"kind": "interface",
|
|
9133
|
+
"jsdoc": "",
|
|
9134
|
+
"decl": "export interface WixServiceAddress {\n streetAddress?: WixServiceStreetAddress;\n addressLine?: string;\n country?: string;\n subdivision?: string;\n city?: string;\n postalCode?: string;\n formattedAddress?: string;\n}"
|
|
9135
|
+
},
|
|
9136
|
+
{
|
|
9137
|
+
"name": "WixServiceBusinessLocation",
|
|
9138
|
+
"kind": "interface",
|
|
9139
|
+
"jsdoc": "",
|
|
9140
|
+
"decl": "export interface WixServiceBusinessLocation {\n id?: string;\n name?: string;\n default?: boolean;\n address?: WixServiceAddress;\n}"
|
|
9141
|
+
},
|
|
9142
|
+
{
|
|
9143
|
+
"name": "WixServiceCustomLocation",
|
|
9144
|
+
"kind": "interface",
|
|
9145
|
+
"jsdoc": "",
|
|
9146
|
+
"decl": "export interface WixServiceCustomLocation {\n id?: string;\n address?: WixServiceAddress;\n}"
|
|
9147
|
+
},
|
|
9148
|
+
{
|
|
9149
|
+
"name": "WixServiceLocation",
|
|
9150
|
+
"kind": "interface",
|
|
9151
|
+
"jsdoc": "",
|
|
9152
|
+
"decl": "export interface WixServiceLocation {\n id?: string;\n type?: string;\n business?: WixServiceBusinessLocation;\n custom?: WixServiceCustomLocation;\n calculatedAddress?: WixServiceAddress;\n}"
|
|
9153
|
+
},
|
|
9154
|
+
{
|
|
9155
|
+
"name": "WixServiceOnlineBooking",
|
|
9156
|
+
"kind": "interface",
|
|
9157
|
+
"jsdoc": "",
|
|
9158
|
+
"decl": "export interface WixServiceOnlineBooking {\n enabled?: boolean;\n requireManualApproval?: boolean;\n allowMultipleRequests?: boolean;\n}"
|
|
9159
|
+
},
|
|
9160
|
+
{
|
|
9161
|
+
"name": "WixServiceConferencing",
|
|
9162
|
+
"kind": "interface",
|
|
9163
|
+
"jsdoc": "",
|
|
9164
|
+
"decl": "export interface WixServiceConferencing {\n enabled?: boolean;\n}"
|
|
9165
|
+
},
|
|
9166
|
+
{
|
|
9167
|
+
"name": "WixServicePolicyDescription",
|
|
9168
|
+
"kind": "interface",
|
|
9169
|
+
"jsdoc": "",
|
|
9170
|
+
"decl": "export interface WixServicePolicyDescription {\n enabled?: boolean;\n description?: string;\n}"
|
|
9171
|
+
},
|
|
9172
|
+
{
|
|
9173
|
+
"name": "WixServiceLimitEarlyBookingPolicy",
|
|
9174
|
+
"kind": "interface",
|
|
9175
|
+
"jsdoc": "",
|
|
9176
|
+
"decl": "export interface WixServiceLimitEarlyBookingPolicy {\n enabled?: boolean;\n earliestBookingInMinutes?: number;\n}"
|
|
9177
|
+
},
|
|
9178
|
+
{
|
|
9179
|
+
"name": "WixServiceLimitLateBookingPolicy",
|
|
9180
|
+
"kind": "interface",
|
|
9181
|
+
"jsdoc": "",
|
|
9182
|
+
"decl": "export interface WixServiceLimitLateBookingPolicy {\n enabled?: boolean;\n latestBookingInMinutes?: number;\n}"
|
|
9183
|
+
},
|
|
9184
|
+
{
|
|
9185
|
+
"name": "WixServiceBookAfterStartPolicy",
|
|
9186
|
+
"kind": "interface",
|
|
9187
|
+
"jsdoc": "",
|
|
9188
|
+
"decl": "export interface WixServiceBookAfterStartPolicy {\n enabled?: boolean;\n}"
|
|
9189
|
+
},
|
|
9190
|
+
{
|
|
9191
|
+
"name": "WixServiceCancellationPolicy",
|
|
9192
|
+
"kind": "interface",
|
|
9193
|
+
"jsdoc": "",
|
|
9194
|
+
"decl": "export interface WixServiceCancellationPolicy {\n enabled?: boolean;\n limitLatestCancellation?: boolean;\n latestCancellationInMinutes?: number;\n}"
|
|
9195
|
+
},
|
|
9196
|
+
{
|
|
9197
|
+
"name": "WixServiceReschedulePolicy",
|
|
9198
|
+
"kind": "interface",
|
|
9199
|
+
"jsdoc": "",
|
|
9200
|
+
"decl": "export interface WixServiceReschedulePolicy {\n enabled?: boolean;\n limitLatestReschedule?: boolean;\n latestRescheduleInMinutes?: number;\n}"
|
|
9201
|
+
},
|
|
9202
|
+
{
|
|
9203
|
+
"name": "WixServiceWaitlistPolicy",
|
|
9204
|
+
"kind": "interface",
|
|
9205
|
+
"jsdoc": "",
|
|
9206
|
+
"decl": "export interface WixServiceWaitlistPolicy {\n enabled?: boolean;\n capacity?: number;\n reservationTimeInMinutes?: number;\n}"
|
|
9207
|
+
},
|
|
9208
|
+
{
|
|
9209
|
+
"name": "WixServiceParticipantsPolicy",
|
|
9210
|
+
"kind": "interface",
|
|
9211
|
+
"jsdoc": "",
|
|
9212
|
+
"decl": "export interface WixServiceParticipantsPolicy {\n maxParticipantsPerBooking?: number;\n}"
|
|
9213
|
+
},
|
|
9214
|
+
{
|
|
9215
|
+
"name": "WixServiceCancellationWindow",
|
|
9216
|
+
"kind": "interface",
|
|
9217
|
+
"jsdoc": "",
|
|
9218
|
+
"decl": "export interface WixServiceCancellationWindow {\n amount?: WixServiceMoney;\n percentage?: string;\n startInMinutes?: number;\n}"
|
|
9219
|
+
},
|
|
9220
|
+
{
|
|
9221
|
+
"name": "WixServiceCancellationFeePolicy",
|
|
9222
|
+
"kind": "interface",
|
|
9223
|
+
"jsdoc": "",
|
|
9224
|
+
"decl": "export interface WixServiceCancellationFeePolicy {\n enabled?: boolean;\n cancellationWindows?: WixServiceCancellationWindow[];\n}"
|
|
9225
|
+
},
|
|
9226
|
+
{
|
|
9227
|
+
"name": "WixServiceBookingPolicy",
|
|
9228
|
+
"kind": "interface",
|
|
9229
|
+
"jsdoc": "",
|
|
9230
|
+
"decl": "export interface WixServiceBookingPolicy {\n id?: string;\n name?: string;\n customPolicyDescription?: WixServicePolicyDescription;\n limitEarlyBookingPolicy?: WixServiceLimitEarlyBookingPolicy;\n limitLateBookingPolicy?: WixServiceLimitLateBookingPolicy;\n bookAfterStartPolicy?: WixServiceBookAfterStartPolicy;\n cancellationPolicy?: WixServiceCancellationPolicy;\n reschedulePolicy?: WixServiceReschedulePolicy;\n waitlistPolicy?: WixServiceWaitlistPolicy;\n participantsPolicy?: WixServiceParticipantsPolicy;\n cancellationFeePolicy?: WixServiceCancellationFeePolicy;\n}"
|
|
9231
|
+
},
|
|
9232
|
+
{
|
|
9233
|
+
"name": "WixServiceStaffMember",
|
|
9234
|
+
"kind": "interface",
|
|
9235
|
+
"jsdoc": "",
|
|
9236
|
+
"decl": "export interface WixServiceStaffMember {\n staffMemberId?: string;\n name?: string;\n mainMedia?: WixServiceMediaItem;\n}"
|
|
9237
|
+
},
|
|
9238
|
+
{
|
|
9239
|
+
"name": "WixServiceStaffMemberDetails",
|
|
9240
|
+
"kind": "interface",
|
|
9241
|
+
"jsdoc": "",
|
|
9242
|
+
"decl": "export interface WixServiceStaffMemberDetails {\n staffMembers?: WixServiceStaffMember[];\n}"
|
|
9243
|
+
},
|
|
9244
|
+
{
|
|
9245
|
+
"name": "WixServicePageUrl",
|
|
9246
|
+
"kind": "interface",
|
|
9247
|
+
"jsdoc": "",
|
|
9248
|
+
"decl": "export interface WixServicePageUrl {\n relativePath?: string;\n url?: string;\n}"
|
|
9249
|
+
},
|
|
9250
|
+
{
|
|
9251
|
+
"name": "WixServiceUrls",
|
|
9252
|
+
"kind": "interface",
|
|
9253
|
+
"jsdoc": "",
|
|
9254
|
+
"decl": "export interface WixServiceUrls {\n servicePage?: WixServicePageUrl;\n bookingPage?: WixServicePageUrl;\n}"
|
|
8991
9255
|
},
|
|
8992
9256
|
{
|
|
8993
9257
|
"name": "WixService",
|
|
8994
9258
|
"kind": "interface",
|
|
8995
9259
|
"jsdoc": "",
|
|
8996
|
-
"decl": "export interface WixService {\n id: string;\n name?: string;\n description?: string;\n duration?: number;\n payment?: WixServicePayment;\n schedule?: WixServiceSchedule;\n price?: number;\n category?: string;\n}"
|
|
9260
|
+
"decl": "export interface WixService {\n id: string;\n name?: string;\n description?: string;\n type?: string;\n tagLine?: string;\n defaultCapacity?: number;\n media?: WixServiceMedia;\n duration?: number;\n payment?: WixServicePayment;\n onlineBooking?: WixServiceOnlineBooking;\n conferencing?: WixServiceConferencing;\n locations?: WixServiceLocation[];\n bookingPolicy?: WixServiceBookingPolicy;\n schedule?: WixServiceSchedule;\n staffMemberDetails?: WixServiceStaffMemberDetails;\n urls?: WixServiceUrls;\n price?: number;\n category?: string;\n}"
|
|
8997
9261
|
},
|
|
8998
9262
|
{
|
|
8999
9263
|
"name": "WixServicesSearchPaging",
|
|
@@ -9025,6 +9289,12 @@
|
|
|
9025
9289
|
"jsdoc": "",
|
|
9026
9290
|
"decl": "export interface WixGetServiceResponse {\n service: WixService;\n}"
|
|
9027
9291
|
},
|
|
9292
|
+
{
|
|
9293
|
+
"name": "WixGetServiceOptions",
|
|
9294
|
+
"kind": "interface",
|
|
9295
|
+
"jsdoc": "",
|
|
9296
|
+
"decl": "export interface WixGetServiceOptions {\n conditionalFields?: string[];\n}"
|
|
9297
|
+
},
|
|
9028
9298
|
{
|
|
9029
9299
|
"name": "WixServiceWrite",
|
|
9030
9300
|
"kind": "interface",
|
|
@@ -9163,13 +9433,13 @@
|
|
|
9163
9433
|
"name": "WixServicePayment",
|
|
9164
9434
|
"kind": "interface",
|
|
9165
9435
|
"jsdoc": "",
|
|
9166
|
-
"decl": "export interface WixServicePayment {\n fixed?: { price?: WixServiceMoney };\n rateLabel?: { amount?: string; currency?: string };\n /** @deprecated Legacy flat payment shape. */\n price?: number;\n /** @deprecated Legacy flat payment shape. */\n currency?: string;\n}"
|
|
9436
|
+
"decl": "export interface WixServicePayment {\n /** \"FIXED\" | \"CUSTOM\" | \"VARIED\" | \"NO_FEE\". */\n rateType?: string;\n fixed?: { price?: WixServiceMoney; deposit?: WixServiceMoney; fullUpfrontPaymentAllowed?: boolean };\n varied?: { defaultPrice?: WixServiceMoney; deposit?: WixServiceMoney; minPrice?: WixServiceMoney; maxPrice?: WixServiceMoney };\n custom?: { description?: string };\n /** How the customer may pay. A service offers at least one of these. */\n options?: { online?: boolean; inPerson?: boolean; deposit?: boolean; pricingPlan?: boolean };\n rateLabel?: { amount?: string; currency?: string };\n /** @deprecated Legacy flat payment shape. */\n price?: number;\n /** @deprecated Legacy flat payment shape. */\n currency?: string;\n}"
|
|
9167
9437
|
},
|
|
9168
9438
|
{
|
|
9169
9439
|
"name": "WixService",
|
|
9170
9440
|
"kind": "interface",
|
|
9171
9441
|
"jsdoc": "",
|
|
9172
|
-
"decl": "export interface WixService {\n id: string;\n /** Optimistic-concurrency token — required by every v2 write (updateService reads it if omitted). */\n revision?: string;\n name?: string;\n description?: string;\n /** Session length in minutes. */\n duration?: number;\n /** Raw Bookings v2 response shape. */\n payment?: WixServicePayment;\n schedule?: { availabilityConstraints?: { sessionDurations?: number[]
|
|
9442
|
+
"decl": "export interface WixService {\n id: string;\n /** Optimistic-concurrency token — required by every v2 write (updateService reads it if omitted). */\n revision?: string;\n name?: string;\n description?: string;\n /** \"APPOINTMENT\" | \"CLASS\" | \"COURSE\". */\n type?: string;\n tagLine?: string;\n defaultCapacity?: number;\n media?: WixServiceMedia;\n /** Session length in minutes. */\n duration?: number;\n /** Raw Bookings v2 response shape. */\n payment?: WixServicePayment;\n onlineBooking?: { enabled?: boolean; requireManualApproval?: boolean; allowMultipleRequests?: boolean };\n conferencing?: { enabled?: boolean };\n locations?: WixServiceLocation[];\n bookingPolicy?: WixServiceBookingPolicy;\n schedule?: {\n id?: string;\n firstSessionStart?: string;\n lastSessionEnd?: string;\n availabilityConstraints?: { durations?: Array<{ minutes?: number }>; sessionDurations?: number[]; durationRange?: WixServiceDurationRange };\n };\n /** Returned only when the request asks for `STAFF_MEMBER_DETAILS` (see `getService`). */\n staffMemberDetails?: WixServiceStaffMemberDetails;\n urls?: WixServiceUrls;\n /** @deprecated Compatibility projection populated by `decodeService`. */\n price?: number;\n /** @deprecated Legacy v1 compatibility field. */\n category?: string;\n}"
|
|
9173
9443
|
},
|
|
9174
9444
|
{
|
|
9175
9445
|
"name": "decodeService",
|
|
@@ -9248,9 +9518,8 @@
|
|
|
9248
9518
|
{
|
|
9249
9519
|
"name": "getService",
|
|
9250
9520
|
"kind": "function",
|
|
9251
|
-
"jsdoc": "/** Fetch a single service by id — GET /bookings/v2/services/{id}. Visitor-readable\n * (public GA route, not the owner `_api/` gateway). The detail/edit-prefill source. */",
|
|
9252
|
-
"decl": "export async function getService(serviceId: string): Promise<WixGetServiceResponse>;"
|
|
9253
|
-
"http": "GET /bookings/v2/services/{…}"
|
|
9521
|
+
"jsdoc": "/** Fetch a single service by id — GET /bookings/v2/services/{id}. Visitor-readable\n * (public GA route, not the owner `_api/` gateway). The detail/edit-prefill source.\n * `options.conditionalFields` asks for fields Wix returns only on request\n * (\"STAFF_MEMBER_DETAILS\", \"DISCOUNT_INFO_DETAILS\"), each sent as a repeated\n * `conditionalFields` query parameter. Without `options` the request is the one this\n * function always sent. */",
|
|
9522
|
+
"decl": "export async function getService(serviceId: string, options?: WixGetServiceOptions): Promise<WixGetServiceResponse>;"
|
|
9254
9523
|
},
|
|
9255
9524
|
{
|
|
9256
9525
|
"name": "WixServiceWrite",
|
|
@@ -9366,6 +9635,54 @@
|
|
|
9366
9635
|
"decl": "export function cancelBookingAsMember(bookingId: string, revision: string, notify = true): Promise<WixUpdateBookingResponse>;",
|
|
9367
9636
|
"http": "POST /bookings/v2/bookings/{…}/cancel"
|
|
9368
9637
|
},
|
|
9638
|
+
{
|
|
9639
|
+
"name": "WixWaitlistContact",
|
|
9640
|
+
"kind": "interface",
|
|
9641
|
+
"jsdoc": "",
|
|
9642
|
+
"decl": "export interface WixWaitlistContact {\n email: string;\n firstName?: string;\n lastName?: string;\n}"
|
|
9643
|
+
},
|
|
9644
|
+
{
|
|
9645
|
+
"name": "WixWaitlistRegistration",
|
|
9646
|
+
"kind": "interface",
|
|
9647
|
+
"jsdoc": "",
|
|
9648
|
+
"decl": "export interface WixWaitlistRegistration {\n id?: string;\n bookingId?: string;\n waitingResource?: string;\n status?: string;\n availableActions?: { leave?: boolean; enroll?: boolean };\n}"
|
|
9649
|
+
},
|
|
9650
|
+
{
|
|
9651
|
+
"name": "WixWaitlistEntry",
|
|
9652
|
+
"kind": "interface",
|
|
9653
|
+
"jsdoc": "",
|
|
9654
|
+
"decl": "export interface WixWaitlistEntry {\n /** The waitlisted session id. */\n waitingResource?: string;\n registrations?: WixWaitlistRegistration[];\n}"
|
|
9655
|
+
},
|
|
9656
|
+
{
|
|
9657
|
+
"name": "WixRegisterToWaitlistResponse",
|
|
9658
|
+
"kind": "interface",
|
|
9659
|
+
"jsdoc": "",
|
|
9660
|
+
"decl": "export interface WixRegisterToWaitlistResponse {\n registrationId?: string;\n booking?: { id?: string; status?: string };\n}"
|
|
9661
|
+
},
|
|
9662
|
+
{
|
|
9663
|
+
"name": "registerToWaitlist",
|
|
9664
|
+
"kind": "function",
|
|
9665
|
+
"jsdoc": "/** Register the signed-in member to a full session's waitlist —\n * POST /bookings/v1/waitlist/register. `sessionId` is the availability slot's\n * `sessionId`. Wix answers with an error when the session has no waitlist or it is\n * full, so offer this only while the entry reports `waitingList.openSpots > 0`.\n * @scope member — requires a signed-in site member; `contact.email` is theirs. Only name and\n * email are sent, so a booking form with other required fields can refuse it. */",
|
|
9666
|
+
"decl": "export function registerToWaitlist(sessionId: string, contact: WixWaitlistContact): Promise<WixRegisterToWaitlistResponse>;",
|
|
9667
|
+
"http": "POST /bookings/v1/waitlist/register",
|
|
9668
|
+
"scope": "member"
|
|
9669
|
+
},
|
|
9670
|
+
{
|
|
9671
|
+
"name": "listWaitlists",
|
|
9672
|
+
"kind": "function",
|
|
9673
|
+
"jsdoc": "/** The waitlists of the given sessions — GET /bookings/v1/waitlist/list (public data).\n * Each registration carries its `bookingId`, which is how a member's own place is found.\n * @scope visitor — an anonymous visitor session is enough. */",
|
|
9674
|
+
"decl": "export function listWaitlists(sessionIds: string[]): Promise<{ list?: WixWaitlistEntry[] }>;",
|
|
9675
|
+
"http": "GET /bookings/v1/waitlist/list",
|
|
9676
|
+
"scope": "visitor"
|
|
9677
|
+
},
|
|
9678
|
+
{
|
|
9679
|
+
"name": "leaveWaitlist",
|
|
9680
|
+
"kind": "function",
|
|
9681
|
+
"jsdoc": "/** Leave a waitlist — POST /bookings/v1/waitlist/leave. Wix also cancels the pending\n * booking the registration created, and offers the place to the next registrant.\n * @scope member — requires the signed-in member who registered; `registrationId` comes from\n * `listWaitlists`. */",
|
|
9682
|
+
"decl": "export function leaveWaitlist(registrationId: string, sessionId: string): Promise<{ registrationId?: string; waitingResource?: string }>;",
|
|
9683
|
+
"http": "POST /bookings/v1/waitlist/leave",
|
|
9684
|
+
"scope": "member"
|
|
9685
|
+
},
|
|
9369
9686
|
{
|
|
9370
9687
|
"name": "isBookingPolicyViolation",
|
|
9371
9688
|
"kind": "function",
|
|
@@ -15841,6 +16158,30 @@
|
|
|
15841
16158
|
"decl": "export async function getCurrentCart(): Promise<WixCartDetail>;",
|
|
15842
16159
|
"http": "GET /ecom/v1/carts/current"
|
|
15843
16160
|
},
|
|
16161
|
+
{
|
|
16162
|
+
"name": "addCouponToCurrentCart",
|
|
16163
|
+
"kind": "function",
|
|
16164
|
+
"jsdoc": "/** Add a coupon to the visitor/member's current cart — POST\n * /ecom/v2/carts/current/add-coupon. Wix validates it against the current cart.\n * @scope visitor — uses the active shopper's cart; Wix rejects an invalid coupon. */",
|
|
16165
|
+
"decl": "export function addCouponToCurrentCart(code: string): Promise<{ cart?: WixCartDetail }>;",
|
|
16166
|
+
"http": "POST /ecom/v2/carts/current/add-coupon",
|
|
16167
|
+
"scope": "visitor"
|
|
16168
|
+
},
|
|
16169
|
+
{
|
|
16170
|
+
"name": "removeCouponFromCurrentCart",
|
|
16171
|
+
"kind": "function",
|
|
16172
|
+
"jsdoc": "/** Remove a coupon from the current cart — POST /ecom/v2/carts/current/remove-coupon.\n * @scope visitor — uses the active shopper's cart; a missing coupon ID is rejected. */",
|
|
16173
|
+
"decl": "export function removeCouponFromCurrentCart(couponId: string): Promise<{ cart?: WixCartDetail }>;",
|
|
16174
|
+
"http": "POST /ecom/v2/carts/current/remove-coupon",
|
|
16175
|
+
"scope": "visitor"
|
|
16176
|
+
},
|
|
16177
|
+
{
|
|
16178
|
+
"name": "calculateCurrentCart",
|
|
16179
|
+
"kind": "function",
|
|
16180
|
+
"jsdoc": "/** Recalculate the current cart after a coupon change.\n * @scope visitor — uses the active shopper's cart and returns its updated totals. */",
|
|
16181
|
+
"decl": "export function calculateCurrentCart(): Promise<{ cart?: WixCartDetail }>;",
|
|
16182
|
+
"http": "POST /ecom/v2/carts/current/calculate",
|
|
16183
|
+
"scope": "visitor"
|
|
16184
|
+
},
|
|
15844
16185
|
{
|
|
15845
16186
|
"name": "WixRemoveLineItemsResponse",
|
|
15846
16187
|
"kind": "interface",
|
|
@@ -17545,8 +17886,8 @@
|
|
|
17545
17886
|
{
|
|
17546
17887
|
"name": "WixEventFieldset",
|
|
17547
17888
|
"kind": "type",
|
|
17548
|
-
"jsdoc": "/** Events v3 response fieldsets (`RequestedFields`). A bare read returns the base fieldset;\n * each value adds fields: `DETAILS` → `shortDescription`, `mainImage`, `calendarUrls`;\n * `TEXTS` → the Ricos `description`; `REGISTRATION` → `registration`; `URLS` → `eventPageUrl
|
|
17549
|
-
"decl": "export type WixEventFieldset = \"DETAILS\" | \"TEXTS\" | \"REGISTRATION\" | \"URLS\";"
|
|
17889
|
+
"jsdoc": "/** Events v3 response fieldsets (`RequestedFields`). A bare read returns the base fieldset;\n * each value adds fields: `DETAILS` → `shortDescription`, `mainImage`, `calendarUrls`;\n * `TEXTS` → the Ricos `description`; `REGISTRATION` → `registration`; `URLS` → `eventPageUrl`;\n * `FORM` → `form`, the published registration controls and inputs. */",
|
|
17890
|
+
"decl": "export type WixEventFieldset = \"DETAILS\" | \"TEXTS\" | \"REGISTRATION\" | \"URLS\" | \"FORM\";"
|
|
17550
17891
|
},
|
|
17551
17892
|
{
|
|
17552
17893
|
"name": "WixEventRichContent",
|
|
@@ -17653,7 +17994,7 @@
|
|
|
17653
17994
|
"name": "WixAvailableTicket",
|
|
17654
17995
|
"kind": "interface",
|
|
17655
17996
|
"jsdoc": "",
|
|
17656
|
-
"decl": "export interface WixAvailableTicket {\n id?: string;\n name?: string;\n description?: string;\n price?: WixTicketPrice;\n free?: boolean;\n limitPerCheckout?: number;\n orderIndex?: number;\n saleStatus?: string;\n}"
|
|
17997
|
+
"decl": "export interface WixAvailableTicket {\n id?: string;\n eventId?: string;\n name?: string;\n description?: string;\n price?: WixTicketPrice;\n free?: boolean;\n limitPerCheckout?: number;\n orderIndex?: number;\n saleStatus?: string;\n state?: string[];\n pricing?: { pricingType?: string; fixedPrice?: WixTicketPrice };\n dashboard?: { hidden?: boolean };\n}"
|
|
17657
17998
|
},
|
|
17658
17999
|
{
|
|
17659
18000
|
"name": "WixQueryAvailableTicketsResponse",
|
|
@@ -17661,6 +18002,14 @@
|
|
|
17661
18002
|
"jsdoc": "",
|
|
17662
18003
|
"decl": "export interface WixQueryAvailableTicketsResponse {\n definitions?: WixAvailableTicket[];\n}"
|
|
17663
18004
|
},
|
|
18005
|
+
{
|
|
18006
|
+
"name": "getTicketDefinition",
|
|
18007
|
+
"kind": "function",
|
|
18008
|
+
"jsdoc": "/** Read management pricing/visibility for a required ticket-definition ID; absence is not a free offer.\n * Authorization errors propagate and must block checkout.\n * @scope owner — Wix documents app/user identity with Manage Ticket Definitions permission.\n * Member checkout uses queryAvailableTickets; LiftGear member reads returned 403 here.\n * @see https://dev.wix.com/docs/api-reference/business-solutions/events/event-management/ticket-definitions-v3/get-ticket-definition\n */",
|
|
18009
|
+
"decl": "export function getTicketDefinition(id: string): Promise<{ ticketDefinition?: { id?: string; eventId?: string; hidden?: boolean; saleStatus?: string; pricingMethod?: { pricingType?: string; fixedPrice?: { value?: string; currency?: string } } } }>;",
|
|
18010
|
+
"http": "GET /events/v3/ticket-definitions/{…}",
|
|
18011
|
+
"scope": "owner"
|
|
18012
|
+
},
|
|
17664
18013
|
{
|
|
17665
18014
|
"name": "WixTicketQuantity",
|
|
17666
18015
|
"kind": "interface",
|
|
@@ -24700,7 +25049,7 @@
|
|
|
24700
25049
|
"name": "StoreProduct",
|
|
24701
25050
|
"kind": "interface",
|
|
24702
25051
|
"jsdoc": "",
|
|
24703
|
-
"decl": "export interface StoreProduct {\n id?: string;\n productType?: string;\n name?: string;\n slug?: string;\n description?: string;\n plainDescription?: string;\n /** Both gallery layouts: V1 `mainMedia`/`items`, V3 `main`/`itemsInfo.items`. */\n media?: {\n mainMedia?: WixMediaSlot;\n main?: WixMediaSlot;\n items?: WixMediaSlot[];\n itemsInfo?: { items?: WixMediaSlot[] };\n };\n price?: { formatted?: { price?: string }; price?: number; currency?: string };\n priceData?: { formatted?: { price?: string }; price?: number; currency?: string };\n currency?: string;\n actualPriceRange?: {\n minValue?: { amount?: string; formattedAmount?: string; currency?: string };\n maxValue?: { amount?: string; formattedAmount?: string; currency?: string };\n };\n /** Option groups, both spellings: V1 `productOptions`, V3 `options`. Declared\n * because the wire carries them on BOTH catalogs and this type denying them is\n * what let every template product screen drop the colour/size picker. Shapes\n * differ per catalog, so read them with `productOptions()` from ./options. */\n productOptions?: unknown[];\n options?: unknown[];\n /** V3 purchasable variants. The cart addresses a V3 option choice by `variantId`,\n * which `cartOptionsPayload()` resolves out of this. */\n variantsInfo?: { variants?: unknown[] };\n
|
|
25052
|
+
"decl": "export interface StoreProduct {\n id?: string;\n productType?: string;\n name?: string;\n slug?: string;\n description?: string;\n plainDescription?: string;\n /** Both gallery layouts: V1 `mainMedia`/`items`, V3 `main`/`itemsInfo.items`. */\n media?: {\n mainMedia?: WixMediaSlot;\n main?: WixMediaSlot;\n items?: WixMediaSlot[];\n itemsInfo?: { items?: WixMediaSlot[] };\n };\n price?: { formatted?: { price?: string }; price?: number; currency?: string };\n priceData?: { formatted?: { price?: string }; price?: number; currency?: string };\n currency?: string;\n actualPriceRange?: {\n minValue?: { amount?: string; formattedAmount?: string; currency?: string };\n maxValue?: { amount?: string; formattedAmount?: string; currency?: string };\n };\n /** Catalog V3 original price, when the actual price is discounted. */\n compareAtPriceRange?: {\n minValue?: { amount?: string; formattedAmount?: string; currency?: string };\n maxValue?: { amount?: string; formattedAmount?: string; currency?: string };\n };\n /** Option groups, both spellings: V1 `productOptions`, V3 `options`. Declared\n * because the wire carries them on BOTH catalogs and this type denying them is\n * what let every template product screen drop the colour/size picker. Shapes\n * differ per catalog, so read them with `productOptions()` from ./options. */\n productOptions?: unknown[];\n options?: unknown[];\n /** V3 purchasable variants. The cart addresses a V3 option choice by `variantId`,\n * which `cartOptionsPayload()` resolves out of this. */\n variantsInfo?: { variants?: unknown[] };\n /\n/* … */"
|
|
24704
25053
|
},
|
|
24705
25054
|
{
|
|
24706
25055
|
"name": "StoreProductsResponse",
|