@wix/himalaya-cli 0.1487.0 → 0.1489.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 (59) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +12 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +13 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/bookings-v2/src/extensions.d.ts +48 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-bookings.mjs +22 -0
  5. package/dist/cli.mjs +145 -42
  6. package/dist/preview-assets.generated.bin +0 -0
  7. package/package.json +2 -2
  8. package/templates/beauty-salon/config.ts +13 -0
  9. package/templates/beauty-salon/dev/index.ts +784 -0
  10. package/templates/beauty-salon/himalaya.content.json +3 -0
  11. package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +2 -1
  12. package/templates/beauty-salon/tier5-src/_shared/branded-load-state.ts +106 -0
  13. package/templates/beauty-salon/tier5-src/_shared/himi-bookings.ts +14 -0
  14. package/templates/beauty-salon/tier5-src/_shared/member-account-routes.ts +2 -1
  15. package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +25 -11
  16. package/templates/beauty-salon/tier5-src/himi-branded-lite-agenda/index.ts +769 -0
  17. package/templates/branded-lite/config.ts +13 -0
  18. package/templates/branded-lite/dev/index.ts +930 -66
  19. package/templates/branded-lite/himalaya.content.json +3 -0
  20. package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +2 -1
  21. package/templates/branded-lite/tier5-src/_shared/business-chat-model.ts +5 -3
  22. package/templates/branded-lite/tier5-src/_shared/business-chat-presenter.ts +84 -5
  23. package/templates/branded-lite/tier5-src/_shared/himi-bookings.ts +14 -0
  24. package/templates/branded-lite/tier5-src/_shared/member-account-routes.ts +2 -1
  25. package/templates/branded-lite/tier5-src/business-chat/index.ts +135 -35
  26. package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +25 -11
  27. package/templates/branded-lite/tier5-src/himi-branded-lite-agenda/index.ts +769 -0
  28. package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +2 -1
  29. package/templates/community-club/tier5-src/_shared/member-account-routes.ts +2 -1
  30. package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +2 -1
  31. package/templates/events-meetups/tier5-src/_shared/member-account-routes.ts +2 -1
  32. package/templates/gym-fitness/config.ts +13 -0
  33. package/templates/gym-fitness/dev/index.ts +784 -0
  34. package/templates/gym-fitness/himalaya.content.json +3 -0
  35. package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +2 -1
  36. package/templates/gym-fitness/tier5-src/_shared/branded-load-state.ts +106 -0
  37. package/templates/gym-fitness/tier5-src/_shared/himi-bookings.ts +14 -0
  38. package/templates/gym-fitness/tier5-src/_shared/member-account-routes.ts +2 -1
  39. package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +25 -11
  40. package/templates/gym-fitness/tier5-src/himi-branded-lite-agenda/index.ts +769 -0
  41. package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +2 -1
  42. package/templates/nonprofit-cause/tier5-src/_shared/member-account-routes.ts +2 -1
  43. package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +2 -1
  44. package/templates/podcast-creator/tier5-src/_shared/member-account-routes.ts +2 -1
  45. package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +2 -1
  46. package/templates/portfolio-creative/tier5-src/_shared/member-account-routes.ts +2 -1
  47. package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +2 -1
  48. package/templates/restaurant/tier5-src/_shared/member-account-routes.ts +2 -1
  49. package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +2 -1
  50. package/templates/retail-store/tier5-src/_shared/member-account-routes.ts +2 -1
  51. package/templates/yoga-studio/config.ts +13 -0
  52. package/templates/yoga-studio/dev/index.ts +784 -0
  53. package/templates/yoga-studio/himalaya.content.json +3 -0
  54. package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +2 -1
  55. package/templates/yoga-studio/tier5-src/_shared/branded-load-state.ts +106 -0
  56. package/templates/yoga-studio/tier5-src/_shared/himi-bookings.ts +14 -0
  57. package/templates/yoga-studio/tier5-src/_shared/member-account-routes.ts +2 -1
  58. package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +25 -11
  59. package/templates/yoga-studio/tier5-src/himi-branded-lite-agenda/index.ts +769 -0
@@ -48,7 +48,7 @@ export const HOSTED_ALWAYS: readonly BrandedLiteVertical[] = ["members"];
48
48
 
49
49
  /** The screen each vertical's nav rows open, so a route to an uninstalled vertical can be answered. */
50
50
  export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>> = {
51
- store: ["himi_shop"], bookings: ["himi_services"], restaurants: ["himi_menu", "himi_reserve"],
51
+ store: ["himi_shop"], bookings: ["himi_services", "himi_agenda"], restaurants: ["himi_menu", "himi_reserve"],
52
52
  programs: ["himi_programs"], plans: ["himi_plans"], feed: ["himi_feed"], members: ["himi_members"],
53
53
  forum: ["himi_forum"], coupons: ["himi_coupons"], notifications: ["himi_notifications"],
54
54
  loyalty: ["himi_loyalty"], reviews: ["himi_reviews"], portfolio: ["himi_portfolio"],
@@ -67,6 +67,7 @@ export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>>
67
67
  export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLiteVertical[]>> = {
68
68
  himi_address: ["restaurants", "store"],
69
69
  himi_addresses: ["restaurants", "store"],
70
+ himi_agenda: ["bookings"],
70
71
  himi_badge: ["badges"],
71
72
  himi_badges: ["badges"],
72
73
  himi_blog: ["blog"],
@@ -18,7 +18,8 @@ export const MEMBER_ACCOUNT_ROUTES_MIN_BINARY = "1.4.0";
18
18
  export const MEMBER_MEDIA_FIELD_MIN_BINARY = "1.5.0";
19
19
  export const MEMBER_PASSWORD_ACTIONS_MIN_BINARY = "1.5.0";
20
20
 
21
- function atLeast(version: string, floor: string): boolean {
21
+ /** `version` (a HimalayaCore binary version, pre-release suffix ignored) is `floor` or later. */
22
+ export function atLeast(version: string, floor: string): boolean {
22
23
  const parts = (v: string) => v.split("-")[0].split(".").map((p) => Number.parseInt(p, 10) || 0);
23
24
  const a = parts(version), b = parts(floor);
24
25
  for (let i = 0; i < Math.max(a.length, b.length); i++) {
@@ -48,7 +48,7 @@ export const HOSTED_ALWAYS: readonly BrandedLiteVertical[] = ["members"];
48
48
 
49
49
  /** The screen each vertical's nav rows open, so a route to an uninstalled vertical can be answered. */
50
50
  export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>> = {
51
- store: ["himi_shop"], bookings: ["himi_services"], restaurants: ["himi_menu", "himi_reserve"],
51
+ store: ["himi_shop"], bookings: ["himi_services", "himi_agenda"], restaurants: ["himi_menu", "himi_reserve"],
52
52
  programs: ["himi_programs"], plans: ["himi_plans"], feed: ["himi_feed"], members: ["himi_members"],
53
53
  forum: ["himi_forum"], coupons: ["himi_coupons"], notifications: ["himi_notifications"],
54
54
  loyalty: ["himi_loyalty"], reviews: ["himi_reviews"], portfolio: ["himi_portfolio"],
@@ -67,6 +67,7 @@ export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>>
67
67
  export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLiteVertical[]>> = {
68
68
  himi_address: ["restaurants", "store"],
69
69
  himi_addresses: ["restaurants", "store"],
70
+ himi_agenda: ["bookings"],
70
71
  himi_badge: ["badges"],
71
72
  himi_badges: ["badges"],
72
73
  himi_blog: ["blog"],
@@ -18,7 +18,8 @@ export const MEMBER_ACCOUNT_ROUTES_MIN_BINARY = "1.4.0";
18
18
  export const MEMBER_MEDIA_FIELD_MIN_BINARY = "1.5.0";
19
19
  export const MEMBER_PASSWORD_ACTIONS_MIN_BINARY = "1.5.0";
20
20
 
21
- function atLeast(version: string, floor: string): boolean {
21
+ /** `version` (a HimalayaCore binary version, pre-release suffix ignored) is `floor` or later. */
22
+ export function atLeast(version: string, floor: string): boolean {
22
23
  const parts = (v: string) => v.split("-")[0].split(".").map((p) => Number.parseInt(p, 10) || 0);
23
24
  const a = parts(version), b = parts(floor);
24
25
  for (let i = 0; i < Math.max(a.length, b.length); i++) {
@@ -48,7 +48,7 @@ export const HOSTED_ALWAYS: readonly BrandedLiteVertical[] = ["members"];
48
48
 
49
49
  /** The screen each vertical's nav rows open, so a route to an uninstalled vertical can be answered. */
50
50
  export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>> = {
51
- store: ["himi_shop"], bookings: ["himi_services"], restaurants: ["himi_menu", "himi_reserve"],
51
+ store: ["himi_shop"], bookings: ["himi_services", "himi_agenda"], restaurants: ["himi_menu", "himi_reserve"],
52
52
  programs: ["himi_programs"], plans: ["himi_plans"], feed: ["himi_feed"], members: ["himi_members"],
53
53
  forum: ["himi_forum"], coupons: ["himi_coupons"], notifications: ["himi_notifications"],
54
54
  loyalty: ["himi_loyalty"], reviews: ["himi_reviews"], portfolio: ["himi_portfolio"],
@@ -67,6 +67,7 @@ export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>>
67
67
  export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLiteVertical[]>> = {
68
68
  himi_address: ["restaurants", "store"],
69
69
  himi_addresses: ["restaurants", "store"],
70
+ himi_agenda: ["bookings"],
70
71
  himi_badge: ["badges"],
71
72
  himi_badges: ["badges"],
72
73
  himi_blog: ["blog"],
@@ -18,7 +18,8 @@ export const MEMBER_ACCOUNT_ROUTES_MIN_BINARY = "1.4.0";
18
18
  export const MEMBER_MEDIA_FIELD_MIN_BINARY = "1.5.0";
19
19
  export const MEMBER_PASSWORD_ACTIONS_MIN_BINARY = "1.5.0";
20
20
 
21
- function atLeast(version: string, floor: string): boolean {
21
+ /** `version` (a HimalayaCore binary version, pre-release suffix ignored) is `floor` or later. */
22
+ export function atLeast(version: string, floor: string): boolean {
22
23
  const parts = (v: string) => v.split("-")[0].split(".").map((p) => Number.parseInt(p, 10) || 0);
23
24
  const a = parts(version), b = parts(floor);
24
25
  for (let i = 0; i < Math.max(a.length, b.length); i++) {
@@ -48,7 +48,7 @@ export const HOSTED_ALWAYS: readonly BrandedLiteVertical[] = ["members"];
48
48
 
49
49
  /** The screen each vertical's nav rows open, so a route to an uninstalled vertical can be answered. */
50
50
  export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>> = {
51
- store: ["himi_shop"], bookings: ["himi_services"], restaurants: ["himi_menu", "himi_reserve"],
51
+ store: ["himi_shop"], bookings: ["himi_services", "himi_agenda"], restaurants: ["himi_menu", "himi_reserve"],
52
52
  programs: ["himi_programs"], plans: ["himi_plans"], feed: ["himi_feed"], members: ["himi_members"],
53
53
  forum: ["himi_forum"], coupons: ["himi_coupons"], notifications: ["himi_notifications"],
54
54
  loyalty: ["himi_loyalty"], reviews: ["himi_reviews"], portfolio: ["himi_portfolio"],
@@ -67,6 +67,7 @@ export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>>
67
67
  export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLiteVertical[]>> = {
68
68
  himi_address: ["restaurants", "store"],
69
69
  himi_addresses: ["restaurants", "store"],
70
+ himi_agenda: ["bookings"],
70
71
  himi_badge: ["badges"],
71
72
  himi_badges: ["badges"],
72
73
  himi_blog: ["blog"],
@@ -18,7 +18,8 @@ export const MEMBER_ACCOUNT_ROUTES_MIN_BINARY = "1.4.0";
18
18
  export const MEMBER_MEDIA_FIELD_MIN_BINARY = "1.5.0";
19
19
  export const MEMBER_PASSWORD_ACTIONS_MIN_BINARY = "1.5.0";
20
20
 
21
- function atLeast(version: string, floor: string): boolean {
21
+ /** `version` (a HimalayaCore binary version, pre-release suffix ignored) is `floor` or later. */
22
+ export function atLeast(version: string, floor: string): boolean {
22
23
  const parts = (v: string) => v.split("-")[0].split(".").map((p) => Number.parseInt(p, 10) || 0);
23
24
  const a = parts(version), b = parts(floor);
24
25
  for (let i = 0; i < Math.max(a.length, b.length); i++) {
@@ -48,7 +48,7 @@ export const HOSTED_ALWAYS: readonly BrandedLiteVertical[] = ["members"];
48
48
 
49
49
  /** The screen each vertical's nav rows open, so a route to an uninstalled vertical can be answered. */
50
50
  export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>> = {
51
- store: ["himi_shop"], bookings: ["himi_services"], restaurants: ["himi_menu", "himi_reserve"],
51
+ store: ["himi_shop"], bookings: ["himi_services", "himi_agenda"], restaurants: ["himi_menu", "himi_reserve"],
52
52
  programs: ["himi_programs"], plans: ["himi_plans"], feed: ["himi_feed"], members: ["himi_members"],
53
53
  forum: ["himi_forum"], coupons: ["himi_coupons"], notifications: ["himi_notifications"],
54
54
  loyalty: ["himi_loyalty"], reviews: ["himi_reviews"], portfolio: ["himi_portfolio"],
@@ -67,6 +67,7 @@ export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>>
67
67
  export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLiteVertical[]>> = {
68
68
  himi_address: ["restaurants", "store"],
69
69
  himi_addresses: ["restaurants", "store"],
70
+ himi_agenda: ["bookings"],
70
71
  himi_badge: ["badges"],
71
72
  himi_badges: ["badges"],
72
73
  himi_blog: ["blog"],
@@ -18,7 +18,8 @@ export const MEMBER_ACCOUNT_ROUTES_MIN_BINARY = "1.4.0";
18
18
  export const MEMBER_MEDIA_FIELD_MIN_BINARY = "1.5.0";
19
19
  export const MEMBER_PASSWORD_ACTIONS_MIN_BINARY = "1.5.0";
20
20
 
21
- function atLeast(version: string, floor: string): boolean {
21
+ /** `version` (a HimalayaCore binary version, pre-release suffix ignored) is `floor` or later. */
22
+ export function atLeast(version: string, floor: string): boolean {
22
23
  const parts = (v: string) => v.split("-")[0].split(".").map((p) => Number.parseInt(p, 10) || 0);
23
24
  const a = parts(version), b = parts(floor);
24
25
  for (let i = 0; i < Math.max(a.length, b.length); i++) {
@@ -139,6 +139,13 @@ export default defineApp({
139
139
  "parentScreenId": "himi_account",
140
140
  "tabId": "profile"
141
141
  },
142
+ {
143
+ "screenId": "himi_agenda",
144
+ "isPublic": true,
145
+ "paramKeys": [],
146
+ "parentScreenId": "himi_services",
147
+ "tabId": "book"
148
+ },
142
149
  {
143
150
  "screenId": "himi_programs",
144
151
  "isPublic": true,
@@ -330,6 +337,12 @@ export default defineApp({
330
337
  "label": "Classes",
331
338
  "icon": "calendar"
332
339
  },
340
+ {
341
+ "id": "drawer_agenda",
342
+ "screenId": "himi_agenda",
343
+ "label": "Agenda",
344
+ "icon": "list"
345
+ },
333
346
  {
334
347
  "id": "drawer_plans",
335
348
  "screenId": "himi_plans",