@wix/himalaya-cli 0.1583.0 → 0.1584.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 (304) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/blog-v3/src/extensions.d.ts +2 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/comments-v1/src/extensions.d.ts +2 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/events/src/index.d.ts +3 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/groups/src/extensions.d.ts +15 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/loyalty/src/extensions.d.ts +13 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +19 -4
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-comments.mjs +3 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-events.mjs +4 -2
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-groups.mjs +5 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-loyalty.mjs +4 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members.mjs +10 -3
  12. package/dist/cli.mjs +247 -186
  13. package/dist/preview-assets.generated.bin +0 -0
  14. package/fixtures/wix-canned.json +25 -0
  15. package/guides/one-app-to-himi-app.md +52 -1
  16. package/guides/sdk-reference.json +37 -9
  17. package/guides/wix-api-usage.md +9 -0
  18. package/package.json +2 -2
  19. package/templates/beauty-salon/config.ts +7 -0
  20. package/templates/beauty-salon/dev/index.ts +758 -352
  21. package/templates/beauty-salon/himalaya.content.json +3 -0
  22. package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +1 -1
  23. package/templates/beauty-salon/tier5-src/_shared/collection-contract.ts +19 -3
  24. package/templates/beauty-salon/tier5-src/_shared/himi-restaurants.ts +2 -1
  25. package/templates/beauty-salon/tier5-src/_shared/owner-editor-value.ts +164 -0
  26. package/templates/beauty-salon/tier5-src/_shared/store-product-info.ts +50 -0
  27. package/templates/beauty-salon/tier5-src/himi-blog-post/index.ts +21 -8
  28. package/templates/beauty-salon/tier5-src/himi-branded-lite-category/index.ts +3 -2
  29. package/templates/beauty-salon/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  30. package/templates/beauty-salon/tier5-src/himi-branded-lite-plans/index.ts +2 -1
  31. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +14 -3
  32. package/templates/beauty-salon/tier5-src/wix-spaces-plan-detail/index.ts +2 -1
  33. package/templates/beauty-salon/tier5-src/wix-spaces-whats-new/index.ts +2 -1
  34. package/templates/beauty-salon-owner/dev/index.ts +129 -66
  35. package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +19 -3
  36. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-post/index.ts +7 -0
  37. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-product/index.ts +39 -6
  38. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-product-form/index.ts +14 -8
  39. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-products/index.ts +7 -4
  40. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-service/index.ts +38 -7
  41. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-service-form/index.ts +53 -7
  42. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-services/index.ts +4 -2
  43. package/templates/branded-lite/config.ts +9 -0
  44. package/templates/branded-lite/dev/index.ts +4988 -3304
  45. package/templates/branded-lite/himalaya.content.json +3 -0
  46. package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +1 -1
  47. package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +19 -3
  48. package/templates/branded-lite/tier5-src/_shared/event-registration.ts +86 -0
  49. package/templates/branded-lite/tier5-src/_shared/himi-restaurants.ts +2 -1
  50. package/templates/branded-lite/tier5-src/_shared/owner-editor-value.ts +164 -0
  51. package/templates/branded-lite/tier5-src/_shared/store-product-info.ts +50 -0
  52. package/templates/branded-lite/tier5-src/himi-blog-post/index.ts +21 -8
  53. package/templates/branded-lite/tier5-src/himi-branded-lite-badges/index.ts +2 -1
  54. package/templates/branded-lite/tier5-src/himi-branded-lite-category/index.ts +3 -2
  55. package/templates/branded-lite/tier5-src/himi-branded-lite-feed/index.ts +4 -3
  56. package/templates/branded-lite/tier5-src/himi-branded-lite-group-about/index.ts +243 -0
  57. package/templates/branded-lite/tier5-src/himi-branded-lite-loyalty/index.ts +115 -49
  58. package/templates/branded-lite/tier5-src/himi-branded-lite-plans/index.ts +2 -1
  59. package/templates/branded-lite/tier5-src/himi-branded-lite-podcasts/index.ts +2 -1
  60. package/templates/branded-lite/tier5-src/himi-branded-lite-portfolio/index.ts +2 -1
  61. package/templates/branded-lite/tier5-src/himi-branded-lite-portfolio-project/index.ts +3 -2
  62. package/templates/branded-lite/tier5-src/himi-branded-lite-program/facts.ts +52 -0
  63. package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +21 -11
  64. package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +2 -1
  65. package/templates/branded-lite/tier5-src/himi-events-detail/index.ts +12 -86
  66. package/templates/branded-lite/tier5-src/himi-events-list/index.ts +47 -6
  67. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +13 -3
  68. package/templates/branded-lite/tier5-src/wix-spaces-forum-post/index.ts +3 -2
  69. package/templates/branded-lite/tier5-src/wix-spaces-member-detail/index.ts +53 -37
  70. package/templates/branded-lite/tier5-src/wix-spaces-members/index.ts +100 -34
  71. package/templates/branded-lite/tier5-src/wix-spaces-plan-detail/index.ts +2 -1
  72. package/templates/branded-lite/tier5-src/wix-spaces-whats-new/index.ts +2 -1
  73. package/templates/community-club/config.ts +16 -0
  74. package/templates/community-club/dev/index.ts +1930 -401
  75. package/templates/community-club/himalaya.content.json +6 -0
  76. package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +1 -1
  77. package/templates/community-club/tier5-src/_shared/collection-contract.ts +19 -3
  78. package/templates/community-club/tier5-src/_shared/event-registration.ts +86 -0
  79. package/templates/community-club/tier5-src/_shared/himi-restaurants.ts +2 -1
  80. package/templates/community-club/tier5-src/himi-blog-post/index.ts +21 -8
  81. package/templates/community-club/tier5-src/himi-branded-lite-feed/index.ts +4 -3
  82. package/templates/community-club/tier5-src/himi-branded-lite-group-about/index.ts +243 -0
  83. package/templates/community-club/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  84. package/templates/community-club/tier5-src/himi-events-detail/index.ts +12 -86
  85. package/templates/community-club/tier5-src/himi-events-list/index.ts +47 -6
  86. package/templates/community-club/tier5-src/wix-spaces-whats-new/index.ts +2 -1
  87. package/templates/community-club-owner/dev/index.ts +53 -1
  88. package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +19 -3
  89. package/templates/community-club-owner/tier5-src/himi-owner-lite-event/index.ts +16 -8
  90. package/templates/community-club-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -7
  91. package/templates/community-club-owner/tier5-src/himi-owner-lite-events/index.ts +4 -2
  92. package/templates/community-club-owner/tier5-src/himi-owner-lite-post/index.ts +7 -0
  93. package/templates/community-club-owner/tier5-src/himi-owner-lite-product/index.ts +39 -6
  94. package/templates/community-club-owner/tier5-src/himi-owner-lite-product-form/index.ts +14 -8
  95. package/templates/community-club-owner/tier5-src/himi-owner-lite-products/index.ts +7 -4
  96. package/templates/events-meetups/config.ts +16 -0
  97. package/templates/events-meetups/dev/index.ts +1930 -401
  98. package/templates/events-meetups/himalaya.content.json +6 -0
  99. package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +1 -1
  100. package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +19 -3
  101. package/templates/events-meetups/tier5-src/_shared/event-registration.ts +86 -0
  102. package/templates/events-meetups/tier5-src/_shared/himi-restaurants.ts +2 -1
  103. package/templates/events-meetups/tier5-src/himi-blog-post/index.ts +21 -8
  104. package/templates/events-meetups/tier5-src/himi-branded-lite-feed/index.ts +4 -3
  105. package/templates/events-meetups/tier5-src/himi-branded-lite-group-about/index.ts +243 -0
  106. package/templates/events-meetups/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  107. package/templates/events-meetups/tier5-src/himi-events-detail/index.ts +12 -86
  108. package/templates/events-meetups/tier5-src/himi-events-list/index.ts +47 -6
  109. package/templates/events-meetups/tier5-src/wix-spaces-whats-new/index.ts +2 -1
  110. package/templates/events-meetups-owner/dev/index.ts +6 -0
  111. package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +19 -3
  112. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-event/index.ts +16 -8
  113. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -7
  114. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-events/index.ts +4 -2
  115. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-post/index.ts +7 -0
  116. package/templates/gym-fitness/config.ts +7 -0
  117. package/templates/gym-fitness/dev/index.ts +1115 -278
  118. package/templates/gym-fitness/himalaya.content.json +3 -0
  119. package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +1 -1
  120. package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +19 -3
  121. package/templates/gym-fitness/tier5-src/_shared/event-registration.ts +86 -0
  122. package/templates/gym-fitness/tier5-src/_shared/himi-restaurants.ts +2 -1
  123. package/templates/gym-fitness/tier5-src/_shared/owner-editor-value.ts +164 -0
  124. package/templates/gym-fitness/tier5-src/_shared/store-product-info.ts +50 -0
  125. package/templates/gym-fitness/tier5-src/himi-blog-post/index.ts +21 -8
  126. package/templates/gym-fitness/tier5-src/himi-branded-lite-category/index.ts +3 -2
  127. package/templates/gym-fitness/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  128. package/templates/gym-fitness/tier5-src/himi-branded-lite-plans/index.ts +2 -1
  129. package/templates/gym-fitness/tier5-src/himi-events-detail/index.ts +12 -86
  130. package/templates/gym-fitness/tier5-src/himi-events-list/index.ts +47 -6
  131. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +14 -3
  132. package/templates/gym-fitness/tier5-src/wix-spaces-plan-detail/index.ts +2 -1
  133. package/templates/gym-fitness/tier5-src/wix-spaces-whats-new/index.ts +2 -1
  134. package/templates/gym-fitness-owner/dev/index.ts +132 -66
  135. package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +19 -3
  136. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-event/index.ts +16 -8
  137. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -7
  138. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-events/index.ts +4 -2
  139. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-post/index.ts +7 -0
  140. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-product/index.ts +39 -6
  141. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-product-form/index.ts +14 -8
  142. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-products/index.ts +7 -4
  143. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-service/index.ts +38 -7
  144. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-service-form/index.ts +53 -7
  145. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-services/index.ts +4 -2
  146. package/templates/nonprofit-cause/config.ts +16 -0
  147. package/templates/nonprofit-cause/dev/index.ts +1925 -396
  148. package/templates/nonprofit-cause/himalaya.content.json +6 -0
  149. package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +1 -1
  150. package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +19 -3
  151. package/templates/nonprofit-cause/tier5-src/_shared/event-registration.ts +86 -0
  152. package/templates/nonprofit-cause/tier5-src/_shared/himi-restaurants.ts +2 -1
  153. package/templates/nonprofit-cause/tier5-src/himi-blog-post/index.ts +21 -8
  154. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-feed/index.ts +4 -3
  155. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-group-about/index.ts +243 -0
  156. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  157. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-plans/index.ts +2 -1
  158. package/templates/nonprofit-cause/tier5-src/himi-events-detail/index.ts +12 -86
  159. package/templates/nonprofit-cause/tier5-src/himi-events-list/index.ts +47 -6
  160. package/templates/nonprofit-cause/tier5-src/wix-spaces-plan-detail/index.ts +2 -1
  161. package/templates/nonprofit-cause/tier5-src/wix-spaces-whats-new/index.ts +2 -1
  162. package/templates/nonprofit-cause-owner/dev/index.ts +85 -65
  163. package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +19 -3
  164. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-rich-guard.ts +27 -0
  165. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-event/index.ts +16 -8
  166. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -7
  167. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-events/index.ts +4 -2
  168. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-post/index.ts +7 -0
  169. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-service/index.ts +38 -7
  170. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-service-form/index.ts +53 -7
  171. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-services/index.ts +4 -2
  172. package/templates/owner-lite/dev/index.ts +132 -66
  173. package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +19 -3
  174. package/templates/owner-lite/tier5-src/himi-owner-lite-event/index.ts +16 -8
  175. package/templates/owner-lite/tier5-src/himi-owner-lite-event-form/index.ts +16 -7
  176. package/templates/owner-lite/tier5-src/himi-owner-lite-events/index.ts +4 -2
  177. package/templates/owner-lite/tier5-src/himi-owner-lite-post/index.ts +7 -0
  178. package/templates/owner-lite/tier5-src/himi-owner-lite-product/index.ts +39 -6
  179. package/templates/owner-lite/tier5-src/himi-owner-lite-product-form/index.ts +14 -8
  180. package/templates/owner-lite/tier5-src/himi-owner-lite-products/index.ts +7 -4
  181. package/templates/owner-lite/tier5-src/himi-owner-lite-service/index.ts +38 -7
  182. package/templates/owner-lite/tier5-src/himi-owner-lite-service-form/index.ts +53 -7
  183. package/templates/owner-lite/tier5-src/himi-owner-lite-services/index.ts +4 -2
  184. package/templates/podcast-creator/config.ts +7 -0
  185. package/templates/podcast-creator/dev/index.ts +1051 -158
  186. package/templates/podcast-creator/himalaya.content.json +3 -0
  187. package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +1 -1
  188. package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +19 -3
  189. package/templates/podcast-creator/tier5-src/_shared/event-registration.ts +86 -0
  190. package/templates/podcast-creator/tier5-src/_shared/himi-restaurants.ts +2 -1
  191. package/templates/podcast-creator/tier5-src/himi-blog-post/index.ts +21 -8
  192. package/templates/podcast-creator/tier5-src/himi-branded-lite-feed/index.ts +4 -3
  193. package/templates/podcast-creator/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  194. package/templates/podcast-creator/tier5-src/himi-branded-lite-plans/index.ts +2 -1
  195. package/templates/podcast-creator/tier5-src/himi-branded-lite-podcasts/index.ts +2 -1
  196. package/templates/podcast-creator/tier5-src/himi-events-detail/index.ts +12 -86
  197. package/templates/podcast-creator/tier5-src/himi-events-list/index.ts +47 -6
  198. package/templates/podcast-creator/tier5-src/wix-spaces-plan-detail/index.ts +2 -1
  199. package/templates/podcast-creator/tier5-src/wix-spaces-whats-new/index.ts +2 -1
  200. package/templates/podcast-creator-owner/dev/index.ts +53 -1
  201. package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +19 -3
  202. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-event/index.ts +16 -8
  203. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -7
  204. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-events/index.ts +4 -2
  205. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-post/index.ts +7 -0
  206. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-product/index.ts +39 -6
  207. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-product-form/index.ts +14 -8
  208. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-products/index.ts +7 -4
  209. package/templates/portfolio-creative/config.ts +7 -0
  210. package/templates/portfolio-creative/dev/index.ts +1305 -468
  211. package/templates/portfolio-creative/himalaya.content.json +3 -0
  212. package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +1 -1
  213. package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +19 -3
  214. package/templates/portfolio-creative/tier5-src/_shared/event-registration.ts +86 -0
  215. package/templates/portfolio-creative/tier5-src/_shared/himi-restaurants.ts +2 -1
  216. package/templates/portfolio-creative/tier5-src/_shared/owner-editor-value.ts +164 -0
  217. package/templates/portfolio-creative/tier5-src/_shared/store-product-info.ts +50 -0
  218. package/templates/portfolio-creative/tier5-src/himi-blog-post/index.ts +21 -8
  219. package/templates/portfolio-creative/tier5-src/himi-branded-lite-category/index.ts +3 -2
  220. package/templates/portfolio-creative/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  221. package/templates/portfolio-creative/tier5-src/himi-branded-lite-portfolio/index.ts +2 -1
  222. package/templates/portfolio-creative/tier5-src/himi-branded-lite-portfolio-project/index.ts +3 -2
  223. package/templates/portfolio-creative/tier5-src/himi-events-detail/index.ts +12 -86
  224. package/templates/portfolio-creative/tier5-src/himi-events-list/index.ts +47 -6
  225. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +14 -3
  226. package/templates/portfolio-creative/tier5-src/wix-spaces-whats-new/index.ts +2 -1
  227. package/templates/portfolio-creative-owner/dev/index.ts +129 -66
  228. package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +19 -3
  229. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-post/index.ts +7 -0
  230. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-product/index.ts +39 -6
  231. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-product-form/index.ts +14 -8
  232. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-products/index.ts +7 -4
  233. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-service/index.ts +38 -7
  234. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-service-form/index.ts +53 -7
  235. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-services/index.ts +4 -2
  236. package/templates/restaurant/config.ts +7 -0
  237. package/templates/restaurant/dev/index.ts +1051 -158
  238. package/templates/restaurant/himalaya.content.json +3 -0
  239. package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +1 -1
  240. package/templates/restaurant/tier5-src/_shared/collection-contract.ts +19 -3
  241. package/templates/restaurant/tier5-src/_shared/event-registration.ts +86 -0
  242. package/templates/restaurant/tier5-src/_shared/himi-restaurants.ts +2 -1
  243. package/templates/restaurant/tier5-src/himi-blog-post/index.ts +21 -8
  244. package/templates/restaurant/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  245. package/templates/restaurant/tier5-src/himi-events-detail/index.ts +12 -86
  246. package/templates/restaurant/tier5-src/himi-events-list/index.ts +47 -6
  247. package/templates/restaurant/tier5-src/wix-spaces-whats-new/index.ts +2 -1
  248. package/templates/restaurant-owner/dev/index.ts +132 -66
  249. package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +19 -3
  250. package/templates/restaurant-owner/tier5-src/himi-owner-lite-event/index.ts +16 -8
  251. package/templates/restaurant-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -7
  252. package/templates/restaurant-owner/tier5-src/himi-owner-lite-events/index.ts +4 -2
  253. package/templates/restaurant-owner/tier5-src/himi-owner-lite-post/index.ts +7 -0
  254. package/templates/restaurant-owner/tier5-src/himi-owner-lite-product/index.ts +39 -6
  255. package/templates/restaurant-owner/tier5-src/himi-owner-lite-product-form/index.ts +14 -8
  256. package/templates/restaurant-owner/tier5-src/himi-owner-lite-products/index.ts +7 -4
  257. package/templates/restaurant-owner/tier5-src/himi-owner-lite-service/index.ts +38 -7
  258. package/templates/restaurant-owner/tier5-src/himi-owner-lite-service-form/index.ts +53 -7
  259. package/templates/restaurant-owner/tier5-src/himi-owner-lite-services/index.ts +4 -2
  260. package/templates/retail-store/config.ts +7 -0
  261. package/templates/retail-store/dev/index.ts +597 -191
  262. package/templates/retail-store/himalaya.content.json +3 -0
  263. package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +1 -1
  264. package/templates/retail-store/tier5-src/_shared/collection-contract.ts +19 -3
  265. package/templates/retail-store/tier5-src/_shared/himi-restaurants.ts +2 -1
  266. package/templates/retail-store/tier5-src/_shared/owner-editor-value.ts +164 -0
  267. package/templates/retail-store/tier5-src/_shared/store-product-info.ts +50 -0
  268. package/templates/retail-store/tier5-src/himi-blog-post/index.ts +21 -8
  269. package/templates/retail-store/tier5-src/himi-branded-lite-category/index.ts +3 -2
  270. package/templates/retail-store/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  271. package/templates/retail-store/tier5-src/himi-store-product/index.ts +13 -3
  272. package/templates/retail-store/tier5-src/wix-spaces-whats-new/index.ts +2 -1
  273. package/templates/retail-store-owner/dev/index.ts +50 -1
  274. package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +19 -3
  275. package/templates/retail-store-owner/tier5-src/himi-owner-lite-post/index.ts +7 -0
  276. package/templates/retail-store-owner/tier5-src/himi-owner-lite-product/index.ts +39 -6
  277. package/templates/retail-store-owner/tier5-src/himi-owner-lite-product-form/index.ts +14 -8
  278. package/templates/retail-store-owner/tier5-src/himi-owner-lite-products/index.ts +7 -4
  279. package/templates/yoga-studio/config.ts +7 -0
  280. package/templates/yoga-studio/dev/index.ts +1107 -110
  281. package/templates/yoga-studio/himalaya.content.json +3 -0
  282. package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +1 -1
  283. package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +19 -3
  284. package/templates/yoga-studio/tier5-src/_shared/event-registration.ts +86 -0
  285. package/templates/yoga-studio/tier5-src/_shared/himi-restaurants.ts +2 -1
  286. package/templates/yoga-studio/tier5-src/himi-blog-post/index.ts +21 -8
  287. package/templates/yoga-studio/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  288. package/templates/yoga-studio/tier5-src/himi-branded-lite-plans/index.ts +2 -1
  289. package/templates/yoga-studio/tier5-src/himi-branded-lite-program/facts.ts +52 -0
  290. package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +21 -11
  291. package/templates/yoga-studio/tier5-src/himi-events-detail/index.ts +12 -86
  292. package/templates/yoga-studio/tier5-src/himi-events-list/index.ts +47 -6
  293. package/templates/yoga-studio/tier5-src/wix-spaces-plan-detail/index.ts +2 -1
  294. package/templates/yoga-studio/tier5-src/wix-spaces-whats-new/index.ts +2 -1
  295. package/templates/yoga-studio-owner/dev/index.ts +85 -65
  296. package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +19 -3
  297. package/templates/yoga-studio-owner/tier5-src/_shared/owner-rich-guard.ts +27 -0
  298. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-event/index.ts +16 -8
  299. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-event-form/index.ts +16 -7
  300. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-events/index.ts +4 -2
  301. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-post/index.ts +7 -0
  302. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-service/index.ts +38 -7
  303. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-service-form/index.ts +53 -7
  304. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-services/index.ts +4 -2
@@ -6,6 +6,8 @@ export declare function getDraftPost(postId: string, options?: WixCallOptions):
6
6
  * list projection (no body), so the body-bearing fields live here on the read
7
7
  * shape `getPost` returns once the body fieldsets are requested. */
8
8
  export interface WixPostWithContent extends WixPost {
9
+ /** Legacy Comments resource ID. Present when INTERNAL_ID was requested. */
10
+ internalId?: string;
9
11
  /** Ricos rich-content body (opaque JSON). Present only when RICH_CONTENT was requested. */
10
12
  richContent?: WixRichContent;
11
13
  /** Plain-text rendering of the body. Present only when CONTENT_TEXT was requested. */
@@ -29,7 +29,9 @@ type BlogCommentLike = {
29
29
  /** A created or listed comment as the blog screen's row. Accepts the curated and the auto-tier
30
30
  * (`comments.createComment`) response shapes alike — both are the same REST wire object. */
31
31
  export declare function blogCommentRow(comment: BlogCommentLike | undefined): WixBlogCommentRow;
32
+ /** `postId` is Blog v3 `post.internalId` (request INTERNAL_ID), not its navigation UUID. */
32
33
  export declare function createBlogComment(postId: string, text: string): Promise<WixBlogCommentRow>;
34
+ /** First Comments page for Blog v3 `post.internalId`, not its navigation UUID. */
33
35
  export declare function listBlogComments(postId: string): Promise<WixBlogCommentRow[]>;
34
36
  /** The appId Wix Groups registers as its comments provider. Same value as
35
37
  * GROUPS_APP_ID/GROUPS_APP_DEF_ID used elsewhere in this repo (social-feed's
@@ -126,6 +126,9 @@ export interface WixQueryEventsOptions {
126
126
  limit?: number;
127
127
  /** Page offset. */
128
128
  offset?: number;
129
+ /** Extra Events v3 fieldsets to read with each row (see {@link WixEventFieldset}), as
130
+ * {@link getEvent} takes. Omitted → the default fieldset, and the request is unchanged. */
131
+ fields?: WixEventFieldset[];
129
132
  /** Status filter (e.g. `["UPCOMING"]`), matched exactly against each row's `eventStatus`.
130
133
  * Omitted → all statuses returned; a value no row carries selects nothing.
131
134
  *
@@ -16,6 +16,21 @@ export declare function queryGroups(req?: WixGroupsQueryRequest, opts?: WixCallO
16
16
  * public group.
17
17
  */
18
18
  export declare function getGroup(id: string, opts?: WixCallOptions): Promise<WixGroup>;
19
+ export interface WixGroupRule {
20
+ title?: string;
21
+ description?: string;
22
+ }
23
+ export interface WixListGroupRulesResponse {
24
+ rules?: WixGroupRule[];
25
+ }
26
+ /**
27
+ * List a group's community rules — GET /social-groups/v2/rules/{groupId}.
28
+ *
29
+ * @scope visitor — a Visitor read of a public group returned 200 with `{ rules: [] }`
30
+ * (2026-11-05). Whether a private/secret group's rules are visible to a non-member
31
+ * is unconfirmed — needsLiveProbe. A group with no rules answers an empty `rules`.
32
+ */
33
+ export declare function listRules(groupId: string, opts?: WixCallOptions): Promise<WixListGroupRulesResponse>;
19
34
  export interface WixGroupCoverImage {
20
35
  /** A previously-uploaded Wix Media file id (from site-media generate-upload-url + PUT). */
21
36
  mediaId?: string;
@@ -1,3 +1,4 @@
1
+ import { type WixCallOptions } from "./index.js";
1
2
  export interface LoyaltyOverview {
2
3
  balance?: number;
3
4
  earned?: number;
@@ -41,3 +42,15 @@ export interface LoyaltyDashboardResponse {
41
42
  /** Loyalty BFF dashboard — program status + points overview + customers page.
42
43
  * GET /v1/loyalty-dashboard?limit=N. User-instance authed (auto-attached). */
43
44
  export declare function getLoyaltyBffDashboard(limit?: number): Promise<LoyaltyDashboardResponse>;
45
+ /** Read the authenticated member's own Loyalty account; no customer ID is accepted.
46
+ * Source contract: loyalty-v1.getCurrentMemberAccount. Anonymous visitors are refused.
47
+ * A signed-in customer recording is still required for migration acceptance.
48
+ * @scope member
49
+ */
50
+ export declare function getCurrentMemberLoyaltyAccount(readOptions?: WixCallOptions): Promise<{
51
+ account?: {
52
+ points?: {
53
+ balance?: number;
54
+ };
55
+ };
56
+ }>;
@@ -34,6 +34,11 @@ export interface WixPaging {
34
34
  export interface WixMembersQuery {
35
35
  filter?: Record<string, unknown>;
36
36
  paging?: WixPaging;
37
+ /** REST Query's wire name is `sorting`; `sort` remains for existing callers. */
38
+ sorting?: Array<{
39
+ fieldName: string;
40
+ order?: "ASC" | "DESC";
41
+ }>;
37
42
  sort?: unknown[];
38
43
  }
39
44
  export interface WixMemberImage {
@@ -77,10 +82,16 @@ export interface WixMembersMetadata {
77
82
  count?: number;
78
83
  offset?: number;
79
84
  total?: number;
85
+ tooManyToCount?: boolean;
80
86
  }
81
87
  export interface WixQueryMembersRequest {
82
88
  query?: WixMembersQuery;
83
89
  fieldsets?: string[];
90
+ /** Branded directory search uses these public member fields, on the server. */
91
+ search?: {
92
+ expression: string;
93
+ fields?: string[];
94
+ };
84
95
  }
85
96
  export interface WixQueryMembersResponse {
86
97
  members: WixMember[];
@@ -177,8 +188,11 @@ export interface WixActivityCounter {
177
188
  /** The app the counters belong to (match against MEMBERS_FOLLOWERS_APP_ID). */
178
189
  appId?: string;
179
190
  memberId?: string;
180
- /** Per-key counters, e.g. { followerCount: { count }, followingCount: { count } }. */
181
- counters?: Record<string, {
191
+ /** Branded's REST wire shape is a keyed array. Keep the older map shape readable too. */
192
+ counters?: Array<{
193
+ key?: string;
194
+ count?: number;
195
+ }> | Record<string, {
182
196
  count?: number;
183
197
  }>;
184
198
  }
@@ -198,8 +212,9 @@ export interface WixMyConnectionsResponse {
198
212
  connectedMembers?: WixMemberConnection[];
199
213
  }
200
214
  /** Followers / following totals for a member — POST
201
- * /members/v1/activity-counters/query. Parses the Followers-app counter entry;
202
- * defaults each total to 0 when absent. May 403 → caller should default. */
215
+ * /members/v1/activity-counters/query. Requires explicit nonnegative safe integer
216
+ * totals for this member's Followers-app entry. Missing/invalid totals reject,
217
+ * as do permission failures; callers should hide unavailable counts, never invent zero. */
203
218
  export declare function getFollowCounts(memberId: string, options?: WixCallOptions): Promise<WixFollowCounts>;
204
219
  /** Whether the signed-in member follows `targetId` — POST
205
220
  * /members/v3/followers/my/connections. Returns false on any miss. May 403 →
@@ -80,6 +80,9 @@ async function listBlogComments(postId) {
80
80
  "GET",
81
81
  `/comments/v1/comments/list-by-resource?${query}`
82
82
  );
83
+ if (!Array.isArray(response?.comments) && !(response?.comments == null && response?.pagingMetadata?.count === 0)) {
84
+ throw new Error("Blog comments response has no comment page");
85
+ }
83
86
  const rows = (response.comments ?? []).map((comment) => ({
84
87
  id: comment.id ?? "comment",
85
88
  authorName: commentAuthor(comment),
@@ -230,7 +230,9 @@ function normalizeEventAt(e, now) {
230
230
  id,
231
231
  title,
232
232
  day: date && !Number.isNaN(date.getTime()) ? String(date.getDate()) : title.slice(0, 1).toUpperCase(),
233
- month: date && !Number.isNaN(date.getTime()) ? date.toLocaleString("en-US", { month: "short" }).toUpperCase() : "",
233
+ // From the fixed table, not `toLocaleString`: QuickJS (the watch engine) has no ECMA-402 and
234
+ // answers that call with the whole "11/10/2030, 12:00:00 PM" string.
235
+ month: date && !Number.isNaN(date.getTime()) ? MONTHS_SHORT[date.getMonth()].toUpperCase() : "",
234
236
  dateLine: eventWhen(e, now),
235
237
  // "Past" for a finished event, "" otherwise — the shared collection row prints it in the
236
238
  // meta line, so an event from last month no longer reads as current.
@@ -300,7 +302,7 @@ function eventStartMs(e) {
300
302
  async function queryEvents(opts = {}, readOptions) {
301
303
  const limit = opts.limit ?? opts.query?.paging?.limit ?? 50;
302
304
  const offset = opts.offset ?? opts.query?.paging?.offset ?? 0;
303
- const res = await wixCall("POST", "/events/v3/events/query", { query: { ...opts.query, paging: { limit, offset } } }, readOptions);
305
+ const res = await wixCall("POST", "/events/v3/events/query", { query: { ...opts.query, paging: { limit, offset } }, ...opts.fields?.length ? { fields: opts.fields } : {} }, readOptions);
304
306
  let events = (res.events ?? []).map(decodeEvent);
305
307
  if (opts.statuses) {
306
308
  const wanted = new Set(opts.statuses);
@@ -6,6 +6,10 @@ function getGroup(id, opts) {
6
6
  if (!id) throw new Error("getGroup: id is required");
7
7
  return wixCall("GET", `/social-groups-proxy/groups/v2/groups/${encodeURIComponent(id)}`, void 0, opts);
8
8
  }
9
+ function listRules(groupId, opts) {
10
+ if (!groupId) throw new Error("listRules: groupId is required");
11
+ return wixCall("GET", `/social-groups/v2/rules/${encodeURIComponent(groupId)}`, void 0, opts);
12
+ }
9
13
  function createGroup(group) {
10
14
  return wixCall("POST", "/social-groups-proxy/groups/v2/groups", { group });
11
15
  }
@@ -102,6 +106,7 @@ export {
102
106
  joinGroup,
103
107
  leaveGroup,
104
108
  listJoinGroupRequests,
109
+ listRules,
105
110
  queryGroups,
106
111
  queryMembers,
107
112
  rejectJoinGroupRequests,
@@ -3,6 +3,9 @@ var LOYALTY_BFF = "https://apps.wix.com/loyalty/mobile-api/v1";
3
3
  function getLoyaltyBffDashboard(limit = 25) {
4
4
  return wixCall("GET", `${LOYALTY_BFF}/loyalty-dashboard?limit=${encodeURIComponent(String(limit))}`);
5
5
  }
6
+ function getCurrentMemberLoyaltyAccount(readOptions) {
7
+ return wixCall("GET", "/loyalty-accounts/v1/accounts/my-account", void 0, readOptions);
8
+ }
6
9
 
7
10
  // ../../stdlib/wix-sdk/loyalty/src/index.ts
8
11
  function wixCall(method, path, body, readOptions) {
@@ -40,6 +43,7 @@ function listLoyaltyEarningRules(readOptions) {
40
43
  return wixCall("GET", "/_api/loyalty-earning-rules/v1/earning-rules/rules", void 0, readOptions);
41
44
  }
42
45
  export {
46
+ getCurrentMemberLoyaltyAccount,
43
47
  getLoyaltyBffDashboard,
44
48
  getLoyaltyProgram,
45
49
  listLoyaltyEarningRules,
@@ -84,10 +84,17 @@ async function getFollowCounts(memberId, options) {
84
84
  { query: { filter: { memberId: { $in: [memberId] } } } },
85
85
  options
86
86
  );
87
- const entry = (res.activityCounters ?? []).find((c) => c.appId === MEMBERS_FOLLOWERS_APP_ID);
87
+ const entry = (res.activityCounters ?? []).find((c) => c.appId === MEMBERS_FOLLOWERS_APP_ID && c.memberId === memberId);
88
+ const counters = entry?.counters;
89
+ const value = (key) => Array.isArray(counters) ? counters.find((counter) => counter?.key === key)?.count : counters?.[key]?.count;
90
+ const followers = value("followerCount");
91
+ const following = value("followingCount");
92
+ if (typeof followers !== "number" || !Number.isSafeInteger(followers) || followers < 0 || typeof following !== "number" || !Number.isSafeInteger(following) || following < 0) {
93
+ throw new Error("getFollowCounts: explicit member totals are unavailable");
94
+ }
88
95
  return {
89
- followers: entry?.counters?.followerCount?.count ?? 0,
90
- following: entry?.counters?.followingCount?.count ?? 0
96
+ followers,
97
+ following
91
98
  };
92
99
  }
93
100
  async function isFollowingMember(targetId) {