@wix/himalaya-cli 0.1493.0 → 0.1494.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 (39) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +2 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/bookings-v2/src/extensions.d.ts +52 -2
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/bookings-v2/src/index.d.ts +180 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-bookings.mjs +4 -2
  5. package/dist/cli.mjs +30 -29
  6. package/dist/preview-assets.generated.bin +0 -0
  7. package/guides/qa-builds.md +2 -2
  8. package/guides/sdk-reference.json +256 -11
  9. package/package.json +2 -2
  10. package/templates/beauty-salon/dev/index.ts +1624 -270
  11. package/templates/beauty-salon/tier5-src/_shared/wix-service-price.ts +18 -0
  12. package/templates/beauty-salon/tier5-src/himi-booking-service/index.ts +514 -117
  13. package/templates/beauty-salon/tokens.json +6 -0
  14. package/templates/branded-lite/dev/index.ts +1621 -260
  15. package/templates/branded-lite/tier5-src/_shared/wix-service-price.ts +18 -0
  16. package/templates/branded-lite/tier5-src/himi-booking-service/index.ts +514 -117
  17. package/templates/branded-lite/tokens.json +1 -0
  18. package/templates/community-club/tier5-src/_shared/wix-service-price.ts +18 -0
  19. package/templates/community-club/tokens.json +6 -0
  20. package/templates/events-meetups/tier5-src/_shared/wix-service-price.ts +18 -0
  21. package/templates/events-meetups/tokens.json +6 -0
  22. package/templates/gym-fitness/dev/index.ts +1623 -269
  23. package/templates/gym-fitness/tier5-src/_shared/wix-service-price.ts +18 -0
  24. package/templates/gym-fitness/tier5-src/himi-booking-service/index.ts +514 -117
  25. package/templates/gym-fitness/tokens.json +6 -0
  26. package/templates/nonprofit-cause/tier5-src/_shared/wix-service-price.ts +18 -0
  27. package/templates/nonprofit-cause/tokens.json +6 -0
  28. package/templates/podcast-creator/tier5-src/_shared/wix-service-price.ts +18 -0
  29. package/templates/podcast-creator/tokens.json +6 -0
  30. package/templates/portfolio-creative/tier5-src/_shared/wix-service-price.ts +18 -0
  31. package/templates/portfolio-creative/tokens.json +6 -0
  32. package/templates/restaurant/tier5-src/_shared/wix-service-price.ts +18 -0
  33. package/templates/restaurant/tokens.json +6 -0
  34. package/templates/retail-store/tier5-src/_shared/wix-service-price.ts +18 -0
  35. package/templates/retail-store/tokens.json +6 -0
  36. package/templates/yoga-studio/dev/index.ts +1617 -263
  37. package/templates/yoga-studio/tier5-src/_shared/wix-service-price.ts +18 -0
  38. package/templates/yoga-studio/tier5-src/himi-booking-service/index.ts +514 -117
  39. package/templates/yoga-studio/tokens.json +6 -0
@@ -2197,7 +2197,7 @@
2197
2197
  "name": "StartPaymentErrorCode",
2198
2198
  "kind": "type",
2199
2199
  "jsdoc": "",
2200
- "decl": "export type StartPaymentErrorCode = \"NOT_PENDING\" | \"WRONG_PAYMENT_METHOD\" | \"NOT_ORDER_BUYER\" | \"UNSUPPORTED_ORDER\"\n | \"PRODUCT_NOT_AVAILABLE\" | \"ALREADY_OWNED\";"
2200
+ "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
2201
  },
2202
2202
  {
2203
2203
  "name": "StartItemPaymentErrorCode",
@@ -8963,7 +8963,25 @@
8963
8963
  "name": "WixServiceFixedPayment",
8964
8964
  "kind": "interface",
8965
8965
  "jsdoc": "",
8966
- "decl": "export interface WixServiceFixedPayment {\n price?: WixServiceMoney;\n}"
8966
+ "decl": "export interface WixServiceFixedPayment {\n price?: WixServiceMoney;\n deposit?: WixServiceMoney;\n fullUpfrontPaymentAllowed?: boolean;\n}"
8967
+ },
8968
+ {
8969
+ "name": "WixServiceVariedPayment",
8970
+ "kind": "interface",
8971
+ "jsdoc": "",
8972
+ "decl": "export interface WixServiceVariedPayment {\n defaultPrice?: WixServiceMoney;\n deposit?: WixServiceMoney;\n minPrice?: WixServiceMoney;\n maxPrice?: WixServiceMoney;\n}"
8973
+ },
8974
+ {
8975
+ "name": "WixServiceCustomPayment",
8976
+ "kind": "interface",
8977
+ "jsdoc": "",
8978
+ "decl": "export interface WixServiceCustomPayment {\n description?: string;\n}"
8979
+ },
8980
+ {
8981
+ "name": "WixServicePaymentOptions",
8982
+ "kind": "interface",
8983
+ "jsdoc": "",
8984
+ "decl": "export interface WixServicePaymentOptions {\n online?: boolean;\n inPerson?: boolean;\n deposit?: boolean;\n pricingPlan?: boolean;\n}"
8967
8985
  },
8968
8986
  {
8969
8987
  "name": "WixServiceRateLabel",
@@ -8975,25 +8993,199 @@
8975
8993
  "name": "WixServicePayment",
8976
8994
  "kind": "interface",
8977
8995
  "jsdoc": "",
8978
- "decl": "export interface WixServicePayment {\n fixed?: WixServiceFixedPayment;\n rateLabel?: WixServiceRateLabel;\n price?: number;\n currency?: string;\n}"
8996
+ "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}"
8997
+ },
8998
+ {
8999
+ "name": "WixServiceDuration",
9000
+ "kind": "interface",
9001
+ "jsdoc": "",
9002
+ "decl": "export interface WixServiceDuration {\n minutes?: number;\n}"
9003
+ },
9004
+ {
9005
+ "name": "WixServiceHourlyConfig",
9006
+ "kind": "interface",
9007
+ "jsdoc": "",
9008
+ "decl": "export interface WixServiceHourlyConfig {\n minDurationInMinutes?: number;\n maxDurationInMinutes?: number;\n}"
9009
+ },
9010
+ {
9011
+ "name": "WixServiceDailyConfig",
9012
+ "kind": "interface",
9013
+ "jsdoc": "",
9014
+ "decl": "export interface WixServiceDailyConfig {\n minDurationInDays?: number;\n maxDurationInDays?: number;\n}"
9015
+ },
9016
+ {
9017
+ "name": "WixServiceDurationRange",
9018
+ "kind": "interface",
9019
+ "jsdoc": "",
9020
+ "decl": "export interface WixServiceDurationRange {\n hourOptions?: WixServiceHourlyConfig;\n dayOptions?: WixServiceDailyConfig;\n unitType?: string;\n}"
8979
9021
  },
8980
9022
  {
8981
9023
  "name": "WixServiceAvailabilityConstraints",
8982
9024
  "kind": "interface",
8983
9025
  "jsdoc": "",
8984
- "decl": "export interface WixServiceAvailabilityConstraints {\n sessionDurations?: number[];\n}"
9026
+ "decl": "export interface WixServiceAvailabilityConstraints {\n durations?: WixServiceDuration[];\n sessionDurations?: number[];\n durationRange?: WixServiceDurationRange;\n}"
8985
9027
  },
8986
9028
  {
8987
9029
  "name": "WixServiceSchedule",
8988
9030
  "kind": "interface",
8989
9031
  "jsdoc": "",
8990
- "decl": "export interface WixServiceSchedule {\n availabilityConstraints?: WixServiceAvailabilityConstraints;\n}"
9032
+ "decl": "export interface WixServiceSchedule {\n id?: string;\n firstSessionStart?: string;\n lastSessionEnd?: string;\n availabilityConstraints?: WixServiceAvailabilityConstraints;\n}"
9033
+ },
9034
+ {
9035
+ "name": "WixServiceImage",
9036
+ "kind": "interface",
9037
+ "jsdoc": "",
9038
+ "decl": "export interface WixServiceImage {\n id?: string;\n url?: string;\n height?: number;\n width?: number;\n altText?: string;\n}"
9039
+ },
9040
+ {
9041
+ "name": "WixServiceMediaItem",
9042
+ "kind": "interface",
9043
+ "jsdoc": "",
9044
+ "decl": "export interface WixServiceMediaItem {\n image?: WixServiceImage;\n}"
9045
+ },
9046
+ {
9047
+ "name": "WixServiceMedia",
9048
+ "kind": "interface",
9049
+ "jsdoc": "",
9050
+ "decl": "export interface WixServiceMedia {\n items?: WixServiceMediaItem[];\n mainMedia?: WixServiceMediaItem;\n coverMedia?: WixServiceMediaItem;\n}"
9051
+ },
9052
+ {
9053
+ "name": "WixServiceStreetAddress",
9054
+ "kind": "interface",
9055
+ "jsdoc": "",
9056
+ "decl": "export interface WixServiceStreetAddress {\n number?: string;\n name?: string;\n apt?: string;\n}"
9057
+ },
9058
+ {
9059
+ "name": "WixServiceAddress",
9060
+ "kind": "interface",
9061
+ "jsdoc": "",
9062
+ "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}"
9063
+ },
9064
+ {
9065
+ "name": "WixServiceBusinessLocation",
9066
+ "kind": "interface",
9067
+ "jsdoc": "",
9068
+ "decl": "export interface WixServiceBusinessLocation {\n id?: string;\n name?: string;\n default?: boolean;\n address?: WixServiceAddress;\n}"
9069
+ },
9070
+ {
9071
+ "name": "WixServiceCustomLocation",
9072
+ "kind": "interface",
9073
+ "jsdoc": "",
9074
+ "decl": "export interface WixServiceCustomLocation {\n id?: string;\n address?: WixServiceAddress;\n}"
9075
+ },
9076
+ {
9077
+ "name": "WixServiceLocation",
9078
+ "kind": "interface",
9079
+ "jsdoc": "",
9080
+ "decl": "export interface WixServiceLocation {\n id?: string;\n type?: string;\n business?: WixServiceBusinessLocation;\n custom?: WixServiceCustomLocation;\n calculatedAddress?: WixServiceAddress;\n}"
9081
+ },
9082
+ {
9083
+ "name": "WixServiceOnlineBooking",
9084
+ "kind": "interface",
9085
+ "jsdoc": "",
9086
+ "decl": "export interface WixServiceOnlineBooking {\n enabled?: boolean;\n requireManualApproval?: boolean;\n allowMultipleRequests?: boolean;\n}"
9087
+ },
9088
+ {
9089
+ "name": "WixServiceConferencing",
9090
+ "kind": "interface",
9091
+ "jsdoc": "",
9092
+ "decl": "export interface WixServiceConferencing {\n enabled?: boolean;\n}"
9093
+ },
9094
+ {
9095
+ "name": "WixServicePolicyDescription",
9096
+ "kind": "interface",
9097
+ "jsdoc": "",
9098
+ "decl": "export interface WixServicePolicyDescription {\n enabled?: boolean;\n description?: string;\n}"
9099
+ },
9100
+ {
9101
+ "name": "WixServiceLimitEarlyBookingPolicy",
9102
+ "kind": "interface",
9103
+ "jsdoc": "",
9104
+ "decl": "export interface WixServiceLimitEarlyBookingPolicy {\n enabled?: boolean;\n earliestBookingInMinutes?: number;\n}"
9105
+ },
9106
+ {
9107
+ "name": "WixServiceLimitLateBookingPolicy",
9108
+ "kind": "interface",
9109
+ "jsdoc": "",
9110
+ "decl": "export interface WixServiceLimitLateBookingPolicy {\n enabled?: boolean;\n latestBookingInMinutes?: number;\n}"
9111
+ },
9112
+ {
9113
+ "name": "WixServiceBookAfterStartPolicy",
9114
+ "kind": "interface",
9115
+ "jsdoc": "",
9116
+ "decl": "export interface WixServiceBookAfterStartPolicy {\n enabled?: boolean;\n}"
9117
+ },
9118
+ {
9119
+ "name": "WixServiceCancellationPolicy",
9120
+ "kind": "interface",
9121
+ "jsdoc": "",
9122
+ "decl": "export interface WixServiceCancellationPolicy {\n enabled?: boolean;\n limitLatestCancellation?: boolean;\n latestCancellationInMinutes?: number;\n}"
9123
+ },
9124
+ {
9125
+ "name": "WixServiceReschedulePolicy",
9126
+ "kind": "interface",
9127
+ "jsdoc": "",
9128
+ "decl": "export interface WixServiceReschedulePolicy {\n enabled?: boolean;\n limitLatestReschedule?: boolean;\n latestRescheduleInMinutes?: number;\n}"
9129
+ },
9130
+ {
9131
+ "name": "WixServiceWaitlistPolicy",
9132
+ "kind": "interface",
9133
+ "jsdoc": "",
9134
+ "decl": "export interface WixServiceWaitlistPolicy {\n enabled?: boolean;\n capacity?: number;\n reservationTimeInMinutes?: number;\n}"
9135
+ },
9136
+ {
9137
+ "name": "WixServiceParticipantsPolicy",
9138
+ "kind": "interface",
9139
+ "jsdoc": "",
9140
+ "decl": "export interface WixServiceParticipantsPolicy {\n maxParticipantsPerBooking?: number;\n}"
9141
+ },
9142
+ {
9143
+ "name": "WixServiceCancellationWindow",
9144
+ "kind": "interface",
9145
+ "jsdoc": "",
9146
+ "decl": "export interface WixServiceCancellationWindow {\n amount?: WixServiceMoney;\n percentage?: string;\n startInMinutes?: number;\n}"
9147
+ },
9148
+ {
9149
+ "name": "WixServiceCancellationFeePolicy",
9150
+ "kind": "interface",
9151
+ "jsdoc": "",
9152
+ "decl": "export interface WixServiceCancellationFeePolicy {\n enabled?: boolean;\n cancellationWindows?: WixServiceCancellationWindow[];\n}"
9153
+ },
9154
+ {
9155
+ "name": "WixServiceBookingPolicy",
9156
+ "kind": "interface",
9157
+ "jsdoc": "",
9158
+ "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}"
9159
+ },
9160
+ {
9161
+ "name": "WixServiceStaffMember",
9162
+ "kind": "interface",
9163
+ "jsdoc": "",
9164
+ "decl": "export interface WixServiceStaffMember {\n staffMemberId?: string;\n name?: string;\n mainMedia?: WixServiceMediaItem;\n}"
9165
+ },
9166
+ {
9167
+ "name": "WixServiceStaffMemberDetails",
9168
+ "kind": "interface",
9169
+ "jsdoc": "",
9170
+ "decl": "export interface WixServiceStaffMemberDetails {\n staffMembers?: WixServiceStaffMember[];\n}"
9171
+ },
9172
+ {
9173
+ "name": "WixServicePageUrl",
9174
+ "kind": "interface",
9175
+ "jsdoc": "",
9176
+ "decl": "export interface WixServicePageUrl {\n relativePath?: string;\n url?: string;\n}"
9177
+ },
9178
+ {
9179
+ "name": "WixServiceUrls",
9180
+ "kind": "interface",
9181
+ "jsdoc": "",
9182
+ "decl": "export interface WixServiceUrls {\n servicePage?: WixServicePageUrl;\n bookingPage?: WixServicePageUrl;\n}"
8991
9183
  },
8992
9184
  {
8993
9185
  "name": "WixService",
8994
9186
  "kind": "interface",
8995
9187
  "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}"
9188
+ "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
9189
  },
8998
9190
  {
8999
9191
  "name": "WixServicesSearchPaging",
@@ -9025,6 +9217,12 @@
9025
9217
  "jsdoc": "",
9026
9218
  "decl": "export interface WixGetServiceResponse {\n service: WixService;\n}"
9027
9219
  },
9220
+ {
9221
+ "name": "WixGetServiceOptions",
9222
+ "kind": "interface",
9223
+ "jsdoc": "",
9224
+ "decl": "export interface WixGetServiceOptions {\n conditionalFields?: string[];\n}"
9225
+ },
9028
9226
  {
9029
9227
  "name": "WixServiceWrite",
9030
9228
  "kind": "interface",
@@ -9163,13 +9361,13 @@
9163
9361
  "name": "WixServicePayment",
9164
9362
  "kind": "interface",
9165
9363
  "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}"
9364
+ "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
9365
  },
9168
9366
  {
9169
9367
  "name": "WixService",
9170
9368
  "kind": "interface",
9171
9369
  "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[] } };\n /** @deprecated Compatibility projection populated by `decodeService`. */\n price?: number;\n /** @deprecated Legacy v1 compatibility field. */\n category?: string;\n}"
9370
+ "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
9371
  },
9174
9372
  {
9175
9373
  "name": "decodeService",
@@ -9248,9 +9446,8 @@
9248
9446
  {
9249
9447
  "name": "getService",
9250
9448
  "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/{…}"
9449
+ "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. */",
9450
+ "decl": "export async function getService(serviceId: string, options?: WixGetServiceOptions): Promise<WixGetServiceResponse>;"
9254
9451
  },
9255
9452
  {
9256
9453
  "name": "WixServiceWrite",
@@ -9366,6 +9563,54 @@
9366
9563
  "decl": "export function cancelBookingAsMember(bookingId: string, revision: string, notify = true): Promise<WixUpdateBookingResponse>;",
9367
9564
  "http": "POST /bookings/v2/bookings/{…}/cancel"
9368
9565
  },
9566
+ {
9567
+ "name": "WixWaitlistContact",
9568
+ "kind": "interface",
9569
+ "jsdoc": "",
9570
+ "decl": "export interface WixWaitlistContact {\n email: string;\n firstName?: string;\n lastName?: string;\n}"
9571
+ },
9572
+ {
9573
+ "name": "WixWaitlistRegistration",
9574
+ "kind": "interface",
9575
+ "jsdoc": "",
9576
+ "decl": "export interface WixWaitlistRegistration {\n id?: string;\n bookingId?: string;\n waitingResource?: string;\n status?: string;\n availableActions?: { leave?: boolean; enroll?: boolean };\n}"
9577
+ },
9578
+ {
9579
+ "name": "WixWaitlistEntry",
9580
+ "kind": "interface",
9581
+ "jsdoc": "",
9582
+ "decl": "export interface WixWaitlistEntry {\n /** The waitlisted session id. */\n waitingResource?: string;\n registrations?: WixWaitlistRegistration[];\n}"
9583
+ },
9584
+ {
9585
+ "name": "WixRegisterToWaitlistResponse",
9586
+ "kind": "interface",
9587
+ "jsdoc": "",
9588
+ "decl": "export interface WixRegisterToWaitlistResponse {\n registrationId?: string;\n booking?: { id?: string; status?: string };\n}"
9589
+ },
9590
+ {
9591
+ "name": "registerToWaitlist",
9592
+ "kind": "function",
9593
+ "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. */",
9594
+ "decl": "export function registerToWaitlist(sessionId: string, contact: WixWaitlistContact): Promise<WixRegisterToWaitlistResponse>;",
9595
+ "http": "POST /bookings/v1/waitlist/register",
9596
+ "scope": "member"
9597
+ },
9598
+ {
9599
+ "name": "listWaitlists",
9600
+ "kind": "function",
9601
+ "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. */",
9602
+ "decl": "export function listWaitlists(sessionIds: string[]): Promise<{ list?: WixWaitlistEntry[] }>;",
9603
+ "http": "GET /bookings/v1/waitlist/list",
9604
+ "scope": "visitor"
9605
+ },
9606
+ {
9607
+ "name": "leaveWaitlist",
9608
+ "kind": "function",
9609
+ "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`. */",
9610
+ "decl": "export function leaveWaitlist(registrationId: string, sessionId: string): Promise<{ registrationId?: string; waitingResource?: string }>;",
9611
+ "http": "POST /bookings/v1/waitlist/leave",
9612
+ "scope": "member"
9613
+ },
9369
9614
  {
9370
9615
  "name": "isBookingPolicyViolation",
9371
9616
  "kind": "function",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1493.0",
3
+ "version": "0.1494.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -71,5 +71,5 @@
71
71
  "artifactId": "himalaya-cli"
72
72
  }
73
73
  },
74
- "falconPackageHash": "d2eeb47ce49ed50cfc591ba002a2c9a9c660921fbff44acc5be02a54"
74
+ "falconPackageHash": "83e398472e7eab5d1c81ff13de41fb87a660cfc7364c8cbd61d59411"
75
75
  }