@wix/himalaya-cli 0.1494.0 → 0.1496.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 (82) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/live-activity/src/index.d.ts +4 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ecom/src/extensions.d.ts +16 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/display.d.ts +24 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/live-activity.mjs +3 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ecom.mjs +14 -0
  9. package/dist/cli.mjs +3584 -2541
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/himi-json-output.md +46 -4
  12. package/guides/iap-products.md +68 -9
  13. package/guides/one-app-to-himi-app.md +80 -5
  14. package/guides/sdk-reference.json +11 -256
  15. package/guides/widgets.md +5 -3
  16. package/package.json +2 -2
  17. package/templates/beauty-salon/dev/index.ts +2590 -1034
  18. package/templates/beauty-salon/himalaya.content.json +1 -1
  19. package/templates/beauty-salon/tier5-src/_shared/himi-store-collection.ts +6 -3
  20. package/templates/beauty-salon/tier5-src/_shared/himi-store-saved.ts +7 -1
  21. package/templates/beauty-salon/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  22. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +196 -34
  23. package/templates/beauty-salon/tier5-src/himi-store-saved/index.ts +21 -5
  24. package/templates/beauty-salon/tier5-src/himi-store-shop/index.ts +14 -2
  25. package/templates/beauty-salon/tokens.json +15 -0
  26. package/templates/branded-lite/dev/index.ts +2696 -1140
  27. package/templates/branded-lite/himalaya.content.json +1 -1
  28. package/templates/branded-lite/tier5-src/_shared/business-chat-model.ts +35 -4
  29. package/templates/branded-lite/tier5-src/_shared/business-chat-transport.ts +12 -5
  30. package/templates/branded-lite/tier5-src/_shared/himi-store-collection.ts +6 -3
  31. package/templates/branded-lite/tier5-src/_shared/himi-store-saved.ts +7 -1
  32. package/templates/branded-lite/tier5-src/business-chat/index.ts +50 -17
  33. package/templates/branded-lite/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  34. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +196 -34
  35. package/templates/branded-lite/tier5-src/himi-store-saved/index.ts +21 -5
  36. package/templates/branded-lite/tier5-src/himi-store-shop/index.ts +14 -2
  37. package/templates/branded-lite/tokens.json +8 -0
  38. package/templates/community-club/dev/index.ts +1 -1
  39. package/templates/community-club/tier5-src/_shared/himi-store-saved.ts +7 -1
  40. package/templates/community-club/tokens.json +15 -0
  41. package/templates/events-meetups/dev/index.ts +1 -1
  42. package/templates/events-meetups/tier5-src/_shared/himi-store-saved.ts +7 -1
  43. package/templates/events-meetups/tokens.json +15 -0
  44. package/templates/gym-fitness/dev/index.ts +2695 -1139
  45. package/templates/gym-fitness/himalaya.content.json +1 -1
  46. package/templates/gym-fitness/tier5-src/_shared/himi-store-collection.ts +6 -3
  47. package/templates/gym-fitness/tier5-src/_shared/himi-store-saved.ts +7 -1
  48. package/templates/gym-fitness/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  49. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +196 -34
  50. package/templates/gym-fitness/tier5-src/himi-store-saved/index.ts +21 -5
  51. package/templates/gym-fitness/tier5-src/himi-store-shop/index.ts +14 -2
  52. package/templates/gym-fitness/tokens.json +15 -0
  53. package/templates/nonprofit-cause/dev/index.ts +1 -1
  54. package/templates/nonprofit-cause/tier5-src/_shared/himi-store-saved.ts +7 -1
  55. package/templates/nonprofit-cause/tokens.json +15 -0
  56. package/templates/podcast-creator/dev/index.ts +1 -1
  57. package/templates/podcast-creator/tier5-src/_shared/himi-store-saved.ts +7 -1
  58. package/templates/podcast-creator/tokens.json +15 -0
  59. package/templates/portfolio-creative/dev/index.ts +2569 -1013
  60. package/templates/portfolio-creative/himalaya.content.json +1 -1
  61. package/templates/portfolio-creative/tier5-src/_shared/himi-store-collection.ts +6 -3
  62. package/templates/portfolio-creative/tier5-src/_shared/himi-store-saved.ts +7 -1
  63. package/templates/portfolio-creative/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  64. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +196 -34
  65. package/templates/portfolio-creative/tier5-src/himi-store-saved/index.ts +21 -5
  66. package/templates/portfolio-creative/tier5-src/himi-store-shop/index.ts +14 -2
  67. package/templates/portfolio-creative/tokens.json +15 -0
  68. package/templates/restaurant/dev/index.ts +1 -1
  69. package/templates/restaurant/tier5-src/_shared/himi-store-saved.ts +7 -1
  70. package/templates/restaurant/tokens.json +15 -0
  71. package/templates/retail-store/dev/index.ts +2541 -985
  72. package/templates/retail-store/himalaya.content.json +1 -1
  73. package/templates/retail-store/tier5-src/_shared/himi-store-collection.ts +6 -3
  74. package/templates/retail-store/tier5-src/_shared/himi-store-saved.ts +7 -1
  75. package/templates/retail-store/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  76. package/templates/retail-store/tier5-src/himi-store-product/index.ts +196 -34
  77. package/templates/retail-store/tier5-src/himi-store-saved/index.ts +21 -5
  78. package/templates/retail-store/tier5-src/himi-store-shop/index.ts +14 -2
  79. package/templates/retail-store/tokens.json +15 -0
  80. package/templates/yoga-studio/dev/index.ts +1 -1
  81. package/templates/yoga-studio/tier5-src/_shared/himi-store-saved.ts +7 -1
  82. package/templates/yoga-studio/tokens.json +15 -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\" | \"APP_NOT_CONFIGURED\" | \"SUBSCRIPTION_NOT_IN_APP\" | \"ALREADY_SUBSCRIBED\";"
2200
+ "decl": "export type StartPaymentErrorCode = \"NOT_PENDING\" | \"WRONG_PAYMENT_METHOD\" | \"NOT_ORDER_BUYER\" | \"UNSUPPORTED_ORDER\"\n | \"PRODUCT_NOT_AVAILABLE\" | \"ALREADY_OWNED\";"
2201
2201
  },
2202
2202
  {
2203
2203
  "name": "StartItemPaymentErrorCode",
@@ -8963,25 +8963,7 @@
8963
8963
  "name": "WixServiceFixedPayment",
8964
8964
  "kind": "interface",
8965
8965
  "jsdoc": "",
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}"
8966
+ "decl": "export interface WixServiceFixedPayment {\n price?: WixServiceMoney;\n}"
8985
8967
  },
8986
8968
  {
8987
8969
  "name": "WixServiceRateLabel",
@@ -8993,199 +8975,25 @@
8993
8975
  "name": "WixServicePayment",
8994
8976
  "kind": "interface",
8995
8977
  "jsdoc": "",
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}"
8978
+ "decl": "export interface WixServicePayment {\n fixed?: WixServiceFixedPayment;\n rateLabel?: WixServiceRateLabel;\n price?: number;\n currency?: string;\n}"
9021
8979
  },
9022
8980
  {
9023
8981
  "name": "WixServiceAvailabilityConstraints",
9024
8982
  "kind": "interface",
9025
8983
  "jsdoc": "",
9026
- "decl": "export interface WixServiceAvailabilityConstraints {\n durations?: WixServiceDuration[];\n sessionDurations?: number[];\n durationRange?: WixServiceDurationRange;\n}"
8984
+ "decl": "export interface WixServiceAvailabilityConstraints {\n sessionDurations?: number[];\n}"
9027
8985
  },
9028
8986
  {
9029
8987
  "name": "WixServiceSchedule",
9030
8988
  "kind": "interface",
9031
8989
  "jsdoc": "",
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}"
8990
+ "decl": "export interface WixServiceSchedule {\n availabilityConstraints?: WixServiceAvailabilityConstraints;\n}"
9183
8991
  },
9184
8992
  {
9185
8993
  "name": "WixService",
9186
8994
  "kind": "interface",
9187
8995
  "jsdoc": "",
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}"
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}"
9189
8997
  },
9190
8998
  {
9191
8999
  "name": "WixServicesSearchPaging",
@@ -9217,12 +9025,6 @@
9217
9025
  "jsdoc": "",
9218
9026
  "decl": "export interface WixGetServiceResponse {\n service: WixService;\n}"
9219
9027
  },
9220
- {
9221
- "name": "WixGetServiceOptions",
9222
- "kind": "interface",
9223
- "jsdoc": "",
9224
- "decl": "export interface WixGetServiceOptions {\n conditionalFields?: string[];\n}"
9225
- },
9226
9028
  {
9227
9029
  "name": "WixServiceWrite",
9228
9030
  "kind": "interface",
@@ -9361,13 +9163,13 @@
9361
9163
  "name": "WixServicePayment",
9362
9164
  "kind": "interface",
9363
9165
  "jsdoc": "",
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}"
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}"
9365
9167
  },
9366
9168
  {
9367
9169
  "name": "WixService",
9368
9170
  "kind": "interface",
9369
9171
  "jsdoc": "",
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}"
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}"
9371
9173
  },
9372
9174
  {
9373
9175
  "name": "decodeService",
@@ -9446,8 +9248,9 @@
9446
9248
  {
9447
9249
  "name": "getService",
9448
9250
  "kind": "function",
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>;"
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/{…}"
9451
9254
  },
9452
9255
  {
9453
9256
  "name": "WixServiceWrite",
@@ -9563,54 +9366,6 @@
9563
9366
  "decl": "export function cancelBookingAsMember(bookingId: string, revision: string, notify = true): Promise<WixUpdateBookingResponse>;",
9564
9367
  "http": "POST /bookings/v2/bookings/{…}/cancel"
9565
9368
  },
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
- },
9614
9369
  {
9615
9370
  "name": "isBookingPolicyViolation",
9616
9371
  "kind": "function",
package/guides/widgets.md CHANGED
@@ -58,9 +58,11 @@ the OS grants a background refresh, never on its own. An app that embeds Himalay
58
58
  produce from `HimalayaEmbedSurfaces.publishWidgets` (see
59
59
  [embedding → widgets](embedding-sdk.md#home-and-lock-screen-widgets)).
60
60
 
61
- `refresh.pushTopic` exists in the type definitions, but nothing consumes it yet: setting it does not
62
- make the widget update when data changes. Without a device produce, plan the widget around what you
63
- know when the app is built — a call to action, a constant, or a schedule (see
61
+ `refresh.pushTopic` is consumed only by an app that embeds Himalaya apps: its push handler hands the
62
+ topic to `HimalayaEmbedSurfaces.handlePush`, which publishes the place again (see
63
+ [embedding → push refresh](embedding-sdk.md#push-refresh-widgets-and-live-activities)). A standalone
64
+ app does nothing with it: setting it does not make the widget update when data changes. Without a
65
+ device produce or that host, plan the widget around what you know when the app is built — a call to action, a constant, or a schedule (see
64
66
  [timelines](#content-whose-future-you-know-live-time-and-timelines)) — and let the tap take the user
65
67
  into the app, where the live data is.
66
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1494.0",
3
+ "version": "0.1496.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": "83e398472e7eab5d1c81ff13de41fb87a660cfc7364c8cbd61d59411"
74
+ "falconPackageHash": "62f2d72e731199e9639b54a6fe134fb94787cad79d777403144183b4"
75
75
  }