@wix/himalaya-cli 0.1496.0 → 0.1498.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 (138) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/attendance-classifier.d.ts +37 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/catalog-pricing-contract.d.ts +1 -1
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/index.d.ts +2 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +11 -3
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +27 -3
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/commerce-contract.d.ts +1 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance.d.ts +10 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +1 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/events/src/index.d.ts +33 -2
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +346 -26
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +132 -3
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +366 -48
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-events.mjs +5 -0
  15. package/dist/cli.mjs +817 -666
  16. package/guides/iap-products.md +7 -1
  17. package/package.json +2 -2
  18. package/templates/beauty-salon/dev/index.ts +394 -0
  19. package/templates/beauty-salon/tier5-src/_shared/iap-attendance-form.ts +106 -0
  20. package/templates/beauty-salon/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
  21. package/templates/beauty-salon/tier5-src/_shared/iap-attendance.ts +38 -0
  22. package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +52 -7
  23. package/templates/beauty-salon-owner/dev/index.ts +571 -0
  24. package/templates/beauty-salon-owner/himalaya.content.json +6 -0
  25. package/templates/beauty-salon-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  26. package/templates/beauty-salon-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  27. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  28. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  29. package/templates/branded-lite/dev/index.ts +1429 -278
  30. package/templates/branded-lite/tier5-src/_shared/business-chat-presenter.ts +46 -8
  31. package/templates/branded-lite/tier5-src/_shared/iap-attendance-form.ts +106 -0
  32. package/templates/branded-lite/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
  33. package/templates/branded-lite/tier5-src/_shared/iap-attendance.ts +38 -0
  34. package/templates/branded-lite/tier5-src/business-chat/index.ts +3 -2
  35. package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +52 -7
  36. package/templates/branded-lite/tier5-src/himi-events-detail/index.ts +112 -21
  37. package/templates/community-club/dev/index.ts +397 -2
  38. package/templates/community-club/tier5-src/_shared/iap-attendance-form.ts +106 -0
  39. package/templates/community-club/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
  40. package/templates/community-club/tier5-src/_shared/iap-attendance.ts +38 -0
  41. package/templates/community-club/tier5-src/himi-events-detail/index.ts +112 -21
  42. package/templates/community-club-owner/dev/index.ts +571 -0
  43. package/templates/community-club-owner/himalaya.content.json +6 -0
  44. package/templates/community-club-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  45. package/templates/community-club-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  46. package/templates/community-club-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  47. package/templates/community-club-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  48. package/templates/events-meetups/dev/index.ts +397 -2
  49. package/templates/events-meetups/tier5-src/_shared/iap-attendance-form.ts +106 -0
  50. package/templates/events-meetups/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
  51. package/templates/events-meetups/tier5-src/_shared/iap-attendance.ts +38 -0
  52. package/templates/events-meetups/tier5-src/himi-events-detail/index.ts +112 -21
  53. package/templates/events-meetups-owner/dev/index.ts +571 -0
  54. package/templates/events-meetups-owner/himalaya.content.json +6 -0
  55. package/templates/events-meetups-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  56. package/templates/events-meetups-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  57. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  58. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  59. package/templates/gym-fitness/dev/index.ts +828 -39
  60. package/templates/gym-fitness/tier5-src/_shared/iap-attendance-form.ts +106 -0
  61. package/templates/gym-fitness/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
  62. package/templates/gym-fitness/tier5-src/_shared/iap-attendance.ts +38 -0
  63. package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +52 -7
  64. package/templates/gym-fitness/tier5-src/himi-events-detail/index.ts +112 -21
  65. package/templates/gym-fitness-owner/dev/index.ts +571 -0
  66. package/templates/gym-fitness-owner/himalaya.content.json +6 -0
  67. package/templates/gym-fitness-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  68. package/templates/gym-fitness-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  69. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  70. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  71. package/templates/nonprofit-cause/dev/index.ts +397 -2
  72. package/templates/nonprofit-cause/tier5-src/_shared/iap-attendance-form.ts +106 -0
  73. package/templates/nonprofit-cause/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
  74. package/templates/nonprofit-cause/tier5-src/_shared/iap-attendance.ts +38 -0
  75. package/templates/nonprofit-cause/tier5-src/himi-events-detail/index.ts +112 -21
  76. package/templates/nonprofit-cause-owner/dev/index.ts +571 -0
  77. package/templates/nonprofit-cause-owner/himalaya.content.json +6 -0
  78. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  79. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  80. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  81. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  82. package/templates/owner-lite/dev/index.ts +571 -0
  83. package/templates/owner-lite/himalaya.content.json +6 -0
  84. package/templates/owner-lite/tier5-src/_shared/owner-today-rollup.ts +307 -0
  85. package/templates/owner-lite/tier5-src/_shared/owner-widget-reads.ts +23 -0
  86. package/templates/owner-lite/tier5-src/himi-owner-lite-today/index.ts +8 -20
  87. package/templates/owner-lite/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  88. package/templates/podcast-creator/dev/index.ts +397 -2
  89. package/templates/podcast-creator/tier5-src/_shared/iap-attendance-form.ts +106 -0
  90. package/templates/podcast-creator/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
  91. package/templates/podcast-creator/tier5-src/_shared/iap-attendance.ts +38 -0
  92. package/templates/podcast-creator/tier5-src/himi-events-detail/index.ts +112 -21
  93. package/templates/podcast-creator-owner/dev/index.ts +571 -0
  94. package/templates/podcast-creator-owner/himalaya.content.json +6 -0
  95. package/templates/podcast-creator-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  96. package/templates/podcast-creator-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  97. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  98. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  99. package/templates/portfolio-creative/dev/index.ts +397 -2
  100. package/templates/portfolio-creative/tier5-src/_shared/iap-attendance-form.ts +106 -0
  101. package/templates/portfolio-creative/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
  102. package/templates/portfolio-creative/tier5-src/_shared/iap-attendance.ts +38 -0
  103. package/templates/portfolio-creative/tier5-src/himi-events-detail/index.ts +112 -21
  104. package/templates/portfolio-creative-owner/dev/index.ts +571 -0
  105. package/templates/portfolio-creative-owner/himalaya.content.json +6 -0
  106. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  107. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  108. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  109. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  110. package/templates/restaurant/dev/index.ts +397 -2
  111. package/templates/restaurant/tier5-src/_shared/iap-attendance-form.ts +106 -0
  112. package/templates/restaurant/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
  113. package/templates/restaurant/tier5-src/_shared/iap-attendance.ts +38 -0
  114. package/templates/restaurant/tier5-src/himi-events-detail/index.ts +112 -21
  115. package/templates/restaurant-owner/dev/index.ts +571 -0
  116. package/templates/restaurant-owner/himalaya.content.json +6 -0
  117. package/templates/restaurant-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  118. package/templates/restaurant-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  119. package/templates/restaurant-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  120. package/templates/restaurant-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  121. package/templates/retail-store-owner/dev/index.ts +571 -0
  122. package/templates/retail-store-owner/himalaya.content.json +6 -0
  123. package/templates/retail-store-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  124. package/templates/retail-store-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  125. package/templates/retail-store-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  126. package/templates/retail-store-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
  127. package/templates/yoga-studio/dev/index.ts +828 -39
  128. package/templates/yoga-studio/tier5-src/_shared/iap-attendance-form.ts +106 -0
  129. package/templates/yoga-studio/tier5-src/_shared/iap-attendance-purchase.ts +211 -0
  130. package/templates/yoga-studio/tier5-src/_shared/iap-attendance.ts +38 -0
  131. package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +52 -7
  132. package/templates/yoga-studio/tier5-src/himi-events-detail/index.ts +112 -21
  133. package/templates/yoga-studio-owner/dev/index.ts +571 -0
  134. package/templates/yoga-studio-owner/himalaya.content.json +6 -0
  135. package/templates/yoga-studio-owner/tier5-src/_shared/owner-today-rollup.ts +307 -0
  136. package/templates/yoga-studio-owner/tier5-src/_shared/owner-widget-reads.ts +23 -0
  137. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-today/index.ts +8 -20
  138. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-today-rollup/index.ts +121 -0
@@ -0,0 +1,37 @@
1
+ export type AppleAttendanceRoute = "appleIap" | "wixPayments" | "decide";
2
+ interface AttendancePrice {
3
+ attendance?: "online" | "physical" | "hybrid";
4
+ hidden?: boolean;
5
+ priceType?: string;
6
+ amount?: string;
7
+ currency?: string;
8
+ }
9
+ export interface BookingAttendance extends AttendancePrice {
10
+ kind: "bookingsService";
11
+ type?: string;
12
+ capacity?: number;
13
+ maxParticipantsPerBooking?: number;
14
+ conferencing?: boolean;
15
+ locations?: readonly string[];
16
+ onlineBooking?: boolean;
17
+ onlinePayment?: boolean;
18
+ deposit?: boolean;
19
+ }
20
+ export interface TicketAttendance extends AttendancePrice {
21
+ kind: "eventsTicket";
22
+ location?: string;
23
+ registration?: string;
24
+ eventStatus?: string;
25
+ saleStatus?: string;
26
+ }
27
+ /** Delivery metadata decides the route; online booking and online payment alone never do. */
28
+ export declare function classifyForApple(item: BookingAttendance | TicketAttendance, currency: string): AppleAttendanceRoute;
29
+ /** Applies platform support and activation switches without sending uncertain iOS offers to web checkout. */
30
+ export declare function attendanceCheckoutRoute(item: BookingAttendance | TicketAttendance, currency: string, platform: string): "regular" | "appleIap" | "blocked";
31
+ /** Preserves missing Wix service fields as unknown so absent metadata cannot authorize a payment route. */
32
+ export declare function bookingAttendanceOf(raw: unknown): BookingAttendance;
33
+ /** Combines event delivery and ticket-definition pricing metadata for conservative route classification. */
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. */
36
+ export declare function availableTicketAttendanceOf(event: unknown, ticket: unknown): TicketAttendance;
37
+ export {};
@@ -1,7 +1,7 @@
1
1
  import type { CatalogReference, PricingMappingProvider, PricingUnavailableReason } from "./pricing-contract.js";
2
2
  /** The Wix entity types `himi store iap` writes into its Wix→Apple mapping, so a mapping
3
3
  * backend can serve that export without translating kinds. */
4
- export declare const IAP_CATALOG_KINDS: readonly ["onlineProgram", "storesProduct", "pricingPlan"];
4
+ export declare const IAP_CATALOG_KINDS: readonly ["onlineProgram", "storesProduct", "pricingPlan", "bookingsService", "eventsTicket"];
5
5
  export type IapCatalogKind = typeof IAP_CATALOG_KINDS[number];
6
6
  export interface IapCatalogItem {
7
7
  reference: CatalogReference;
@@ -11,6 +11,7 @@ export * from "./catalog-adapters/online-programs.js";
11
11
  export * from "./wix-payments-contract.js";
12
12
  export * from "./wix-payments.js";
13
13
  export * from "./host-session.js";
14
+ export * from "./attendance-classifier.js";
14
15
  /** The three store product categories. */
15
16
  export type ProductType = "subscription" | "nonConsumable" | "consumable";
16
17
  export interface Product {
@@ -133,7 +134,7 @@ export type UnfinishedTransactionsResult = {
133
134
  export type FinishTransactionResult = {
134
135
  status: "finished" | "notFound";
135
136
  } | TransactionFailure;
136
- /** Apple non-consumables only. The token comes from authenticated backend context.
137
+ /** Apple consumables and non-consumables. The token comes from authenticated backend context.
137
138
  * Leaves the transaction unfinished. Never falls back to legacy purchase on old binaries. */
138
139
  export declare function purchaseForVerification(input: {
139
140
  productId: string;
@@ -35,8 +35,10 @@ export declare const HIMALAYA_SERVE_IAP_ROUTE: WixIapRoute;
35
35
  * the only product type the purchase flow sells it as. */
36
36
  export interface AppleSaleRule {
37
37
  appProductId(entityId: string): string;
38
- productType: "NON_CONSUMABLE";
38
+ productType: "NON_CONSUMABLE" | "CONSUMABLE";
39
39
  }
40
+ export declare const BOOKINGS_APPLE_SALES_ENABLED = false;
41
+ export declare const EVENTS_APPLE_SALES_ENABLED = false;
40
42
  /**
41
43
  * Whether Wix Stores items sell through the App Store, through wix-iap StartItemPayment
42
44
  * (catalyst-server #24496), which places the member's eCom order for one catalog item. OFF: that RPC
@@ -67,12 +69,18 @@ export declare const PRICING_PLAN_APPLE_SALES_ENABLED = true;
67
69
  * Programs builds that order with the program id as the item id; programs are one-time unlocks.
68
70
  * Wix Stores and one-time unlimited Pricing Plans join only with their independent switches.
69
71
  */
70
- export declare function appleSaleRules(options?: {
72
+ export interface AppleSaleOptions {
71
73
  storesAppleSalesEnabled?: boolean;
72
74
  storesItemPaymentEnabled?: boolean;
73
75
  pricingPlanAppleSalesEnabled?: boolean;
74
- }): Readonly<Record<string, AppleSaleRule>>;
76
+ bookingsAppleSalesEnabled?: boolean;
77
+ eventsAppleSalesEnabled?: boolean;
78
+ }
79
+ /** Resolves runtime sale eligibility independently from the catalog's provisioning support. */
80
+ export declare function appleSaleRules(options?: AppleSaleOptions): Readonly<Record<string, AppleSaleRule>>;
75
81
  export declare const APPLE_SALE_RULES: Readonly<Record<string, AppleSaleRule>>;
82
+ /** Catalog setup may precede activation; purchases still require the independent sales switches. */
83
+ export declare const APPLE_PROVISIONING_RULES: Readonly<Record<string, AppleSaleRule>>;
76
84
  /** Captured when a protected call starts. The native bridge checks it and never puts it on
77
85
  * the HTTP request. */
78
86
  export interface HostCallExpectation {
@@ -38,6 +38,25 @@ export interface CashierRoute {
38
38
  /** One item a screen sells. `reference` is the same catalog reference its price came from. */
39
39
  export interface IapOrderItem {
40
40
  reference: CatalogReference;
41
+ /** One intentional purchase; reuse on retries, replace only for an explicit new purchase. */
42
+ attemptId?: string;
43
+ /** Ephemeral selection and form answers; never written to order references or screen state. */
44
+ attendance?: {
45
+ amount: string;
46
+ currency: string;
47
+ booking?: {
48
+ slot: Record<string, unknown>;
49
+ contactDetails: Record<string, unknown>;
50
+ formInfo?: Record<string, unknown>;
51
+ };
52
+ ticket?: {
53
+ eventId: string;
54
+ buyer: Record<string, unknown>;
55
+ guests?: Record<string, unknown>[];
56
+ buyerSubmission?: Record<string, unknown>;
57
+ guestSubmissions?: Record<string, unknown>[];
58
+ };
59
+ };
41
60
  /** eCom catalog reference, required for a Wix Stores item. */
42
61
  catalogReference?: {
43
62
  appId: string;
@@ -57,7 +76,7 @@ export type IapEligibility = {
57
76
  };
58
77
  /** `open`: a pending order the cashier can charge. `granted`: the vertical already gives the
59
78
  * member access, so nothing is sold. */
60
- export type OrderAttempt = {
79
+ export type OrderAttempt = ({
61
80
  status: "open";
62
81
  cashierOrderId: string;
63
82
  verticalRef: VerticalRef;
@@ -70,6 +89,8 @@ export type OrderAttempt = {
70
89
  status: "unavailable";
71
90
  } | {
72
91
  status: "sessionChanged";
92
+ }) & {
93
+ noOrderCreated?: true;
73
94
  };
74
95
  export type AccessRead = "granted" | "pending" | "none" | "unavailable" | "sessionChanged";
75
96
  /** An item wix-iap can order itself (StartItemPayment): the item as eCom's catalog reference, and
@@ -83,10 +104,13 @@ export interface ItemPayment {
83
104
  export interface IapOrderAdapter {
84
105
  /** The catalog kind it sells (`onlineProgram`, `pricingPlan`, `storesProduct`, or a custom one). */
85
106
  readonly kind: string;
107
+ readonly repeatable?: boolean;
86
108
  /** Structural check before any call: one item, quantity 1, a supported shape. */
87
109
  eligibility(item: IapOrderItem): IapEligibility;
88
110
  /** Opens, or reuses the vertical's own open, order for the signed-in member. */
89
- openOrder(item: IapOrderItem, bridge: SessionBoundBridge): Promise<OrderAttempt>;
111
+ /** Repeatable adapters call beforeCreate immediately before their first inventory write,
112
+ * after read-only checks, and abort without writing if it returns false. */
113
+ openOrder(item: IapOrderItem, bridge: SessionBoundBridge, beforeCreate?: () => boolean): Promise<OrderAttempt>;
90
114
  /** Re-reads an order opened earlier; `open` only while it can still be paid. */
91
115
  reopenOrder(order: {
92
116
  cashierOrderId: string;
@@ -114,7 +138,7 @@ export interface OrderPartitionKey {
114
138
  * item until it expires. `held`: Apple charged, and CompletePayment refused the proof without
115
139
  * recording it, so the transaction stays unfinished and is retried. `needsSupport`: recorded and
116
140
  * refused for good. */
117
- export type OrderRefStage = "startingItem" | "ordered" | "charged" | "started" | "submitted" | "held" | "needsSupport";
141
+ export type OrderRefStage = "startingItem" | "openingOrder" | "ordered" | "charged" | "started" | "submitted" | "fulfilled" | "held" | "needsSupport";
118
142
  export interface OrderRef {
119
143
  /** `<kind>:<id>` of the item, or `payment:<paymentId>` for a payment with no local order. */
120
144
  key: string;
@@ -86,6 +86,7 @@ export type IapRestoreResult = {
86
86
  /** Labels from the screen's copy pack; the shared layer only chooses between them. */
87
87
  export interface IapPurchaseCopy {
88
88
  buy: string;
89
+ buyAnother?: string;
89
90
  processing: string;
90
91
  awaitingApproval: string;
91
92
  unavailable: string;
@@ -0,0 +1,10 @@
1
+ import type { IapOrderAdapter } from "../apple-iap-contract.js";
2
+ export declare function attendanceOrdersWith(options: {
3
+ bookingsEnabled: boolean;
4
+ eventsEnabled: boolean;
5
+ now?: () => number;
6
+ }): {
7
+ bookingOrders: IapOrderAdapter;
8
+ eventTicketOrders: IapOrderAdapter;
9
+ };
10
+ export declare const bookingOrders: IapOrderAdapter, eventTicketOrders: IapOrderAdapter;
@@ -1,3 +1,4 @@
1
1
  export { onlineProgramOrders } from "./online-programs.js";
2
2
  export { pricingPlanOrders } from "./pricing-plans.js";
3
3
  export { storesProductOrders, classifyCart } from "./stores.js";
4
+ export { bookingOrders, eventTicketOrders } from "./attendance.js";
@@ -1,7 +1,7 @@
1
1
  export { createIapCommerce } from "./commerce.js";
2
2
  export { iapPurchaseFields } from "./purchase-fields.js";
3
3
  export { createAppleIapCheckout } from "./apple-iap.js";
4
- export { onlineProgramOrders, pricingPlanOrders, storesProductOrders, classifyCart } from "./iap-verticals/index.js";
4
+ export { onlineProgramOrders, pricingPlanOrders, storesProductOrders, bookingOrders, eventTicketOrders, classifyCart } from "./iap-verticals/index.js";
5
5
  export { createWorkerOrderRefStore } from "./order-refs.js";
6
6
  export { itemPaymentEnabled, storesAppleSalesEnabled } from "./checkout-source.js";
7
7
  export type { AccessRead, AppleIapCheckout, AppleIapCheckoutDependencies, AppleIapCheckoutPhase, AppleIapCheckoutState, BridgeOutcome, BridgeRefusal, CashierRoute, IapEligibility, IapOrderAdapter, IapOrderItem, OrderAttempt, OrderFailureCode, OrderPartitionKey, OrderRef, OrderRefPartition, OrderRefStage, OrderRefStore, PaymentAccess, PaymentProgress, SessionBoundBridge, VerticalRef, WixBridge, } from "./apple-iap-contract.js";
@@ -136,8 +136,9 @@ export declare function decodeEvent(raw: WixEvent): WixEvent;
136
136
  export declare function queryEvents(opts?: WixQueryEventsOptions): Promise<WixGetEventListResponse>;
137
137
  /** Events v3 response fieldsets (`RequestedFields`). A bare read returns the base fieldset;
138
138
  * each value adds fields: `DETAILS` → `shortDescription`, `mainImage`, `calendarUrls`;
139
- * `TEXTS` → the Ricos `description`; `REGISTRATION` → `registration`; `URLS` → `eventPageUrl`. */
140
- export type WixEventFieldset = "DETAILS" | "TEXTS" | "REGISTRATION" | "URLS";
139
+ * `TEXTS` → the Ricos `description`; `REGISTRATION` → `registration`; `URLS` → `eventPageUrl`;
140
+ * `FORM` → `form`, the published registration controls and inputs. */
141
+ export type WixEventFieldset = "DETAILS" | "TEXTS" | "REGISTRATION" | "URLS" | "FORM";
141
142
  /** A Ricos document (Events v3 `description`). Opaque here: read it with a Ricos walker, and
142
143
  * write it back whole — a PATCH replaces the entire description. */
143
144
  export interface WixEventRichContent {
@@ -246,6 +247,7 @@ export interface WixTicketPrice {
246
247
  }
247
248
  export interface WixAvailableTicket {
248
249
  id?: string;
250
+ eventId?: string;
249
251
  name?: string;
250
252
  description?: string;
251
253
  price?: WixTicketPrice;
@@ -253,10 +255,39 @@ export interface WixAvailableTicket {
253
255
  limitPerCheckout?: number;
254
256
  orderIndex?: number;
255
257
  saleStatus?: string;
258
+ state?: string[];
259
+ pricing?: {
260
+ pricingType?: string;
261
+ fixedPrice?: WixTicketPrice;
262
+ };
263
+ dashboard?: {
264
+ hidden?: boolean;
265
+ };
256
266
  }
257
267
  export interface WixQueryAvailableTicketsResponse {
258
268
  definitions?: WixAvailableTicket[];
259
269
  }
270
+ /** Read management pricing/visibility for a required ticket-definition ID; absence is not a free offer.
271
+ * Authorization errors propagate and must block checkout.
272
+ * @scope owner — Wix documents app/user identity with Manage Ticket Definitions permission.
273
+ * Member checkout uses queryAvailableTickets; LiftGear member reads returned 403 here.
274
+ * @see https://dev.wix.com/docs/api-reference/business-solutions/events/event-management/ticket-definitions-v3/get-ticket-definition
275
+ */
276
+ export declare function getTicketDefinition(id: string): Promise<{
277
+ ticketDefinition?: {
278
+ id?: string;
279
+ eventId?: string;
280
+ hidden?: boolean;
281
+ saleStatus?: string;
282
+ pricingMethod?: {
283
+ pricingType?: string;
284
+ fixedPrice?: {
285
+ value?: string;
286
+ currency?: string;
287
+ };
288
+ };
289
+ };
290
+ }>;
260
291
  /** One tier's ask in a reservation — `{ticketDefinitionId, quantity}`. */
261
292
  export interface WixTicketQuantity {
262
293
  ticketDefinitionId: string;