@wix/himalaya-cli 0.1899.0 → 0.1901.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/app-info/src/index.d.ts +1 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{3c8ce407707a87e172345007371329f9c47e65e182a1e2ff617b7f75e6bb95ab.bin → e8580dd7946999b652493628a07600d2e5a0c7864cc0a8a807b8a20903f0698d.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +75775 -74157
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/ads.md +92 -0
- package/guides/himi-json-output.md +37 -2
- package/guides/index.json +6 -0
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +2 -1
- package/templates/beauty-salon/l10n/ar.json +5 -0
- package/templates/beauty-salon/l10n/cs.json +5 -0
- package/templates/beauty-salon/l10n/da.json +5 -0
- package/templates/beauty-salon/l10n/de.json +5 -0
- package/templates/beauty-salon/l10n/el.json +5 -0
- package/templates/beauty-salon/l10n/es.json +5 -0
- package/templates/beauty-salon/l10n/fi.json +5 -0
- package/templates/beauty-salon/l10n/fr.json +5 -0
- package/templates/beauty-salon/l10n/he.json +4 -0
- package/templates/beauty-salon/l10n/hu.json +5 -0
- package/templates/beauty-salon/l10n/id.json +5 -0
- package/templates/beauty-salon/l10n/it.json +5 -0
- package/templates/beauty-salon/l10n/ja.json +5 -0
- package/templates/beauty-salon/l10n/ko.json +5 -0
- package/templates/beauty-salon/l10n/lt.json +5 -0
- package/templates/beauty-salon/l10n/nl.json +5 -0
- package/templates/beauty-salon/l10n/no.json +5 -0
- package/templates/beauty-salon/l10n/pl.json +5 -0
- package/templates/beauty-salon/l10n/pt.json +5 -0
- package/templates/beauty-salon/l10n/ru.json +5 -0
- package/templates/beauty-salon/l10n/sv.json +5 -0
- package/templates/beauty-salon/l10n/th.json +5 -0
- package/templates/beauty-salon/l10n/tr.json +5 -0
- package/templates/beauty-salon/l10n/uk.json +5 -0
- package/templates/beauty-salon/l10n/vi.json +5 -0
- package/templates/beauty-salon/l10n/zh.json +5 -0
- package/templates/beauty-salon/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/beauty-salon/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/beauty-salon/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/beauty-salon-owner/config.ts +32 -1
- package/templates/beauty-salon-owner/dev/index.ts +565 -1
- package/templates/beauty-salon-owner/himalaya.content.json +3 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/beauty-salon-owner/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/branded-lite/dev/index.ts +2 -1
- package/templates/branded-lite/l10n/ar.json +5 -0
- package/templates/branded-lite/l10n/cs.json +5 -0
- package/templates/branded-lite/l10n/da.json +5 -0
- package/templates/branded-lite/l10n/de.json +5 -0
- package/templates/branded-lite/l10n/el.json +5 -0
- package/templates/branded-lite/l10n/es.json +5 -0
- package/templates/branded-lite/l10n/fi.json +5 -0
- package/templates/branded-lite/l10n/fr.json +5 -0
- package/templates/branded-lite/l10n/he.json +4 -0
- package/templates/branded-lite/l10n/hu.json +5 -0
- package/templates/branded-lite/l10n/id.json +5 -0
- package/templates/branded-lite/l10n/it.json +5 -0
- package/templates/branded-lite/l10n/ja.json +5 -0
- package/templates/branded-lite/l10n/ko.json +5 -0
- package/templates/branded-lite/l10n/lt.json +5 -0
- package/templates/branded-lite/l10n/nl.json +5 -0
- package/templates/branded-lite/l10n/no.json +5 -0
- package/templates/branded-lite/l10n/pl.json +5 -0
- package/templates/branded-lite/l10n/pt.json +5 -0
- package/templates/branded-lite/l10n/ru.json +5 -0
- package/templates/branded-lite/l10n/sv.json +5 -0
- package/templates/branded-lite/l10n/th.json +5 -0
- package/templates/branded-lite/l10n/tr.json +5 -0
- package/templates/branded-lite/l10n/uk.json +5 -0
- package/templates/branded-lite/l10n/vi.json +5 -0
- package/templates/branded-lite/l10n/zh.json +5 -0
- package/templates/branded-lite/recipes/events-inline.json +2 -2
- package/templates/branded-lite/recipes/subscriptions-list.json +2 -1
- package/templates/branded-lite/tier5-src/_shared/my-subscriptions-section.ts +6 -8
- package/templates/branded-lite/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/branded-lite/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/branded-lite/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/brandy/dev/member-screens.ts +4 -2
- package/templates/brandy/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/brandy/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/brandy/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/community-club-owner/config.ts +32 -1
- package/templates/community-club-owner/dev/index.ts +538 -1
- package/templates/community-club-owner/himalaya.content.json +3 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/events-meetups-owner/config.ts +32 -1
- package/templates/events-meetups-owner/dev/index.ts +511 -1
- package/templates/events-meetups-owner/himalaya.content.json +3 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/fitness-gym/dev/index.ts +2 -1
- package/templates/fitness-gym/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/fitness-gym/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/fitness-gym/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/gym-fitness/dev/index.ts +2 -1
- package/templates/gym-fitness/l10n/ar.json +5 -0
- package/templates/gym-fitness/l10n/cs.json +5 -0
- package/templates/gym-fitness/l10n/da.json +5 -0
- package/templates/gym-fitness/l10n/de.json +5 -0
- package/templates/gym-fitness/l10n/el.json +5 -0
- package/templates/gym-fitness/l10n/es.json +5 -0
- package/templates/gym-fitness/l10n/fi.json +5 -0
- package/templates/gym-fitness/l10n/fr.json +5 -0
- package/templates/gym-fitness/l10n/he.json +4 -0
- package/templates/gym-fitness/l10n/hu.json +5 -0
- package/templates/gym-fitness/l10n/id.json +5 -0
- package/templates/gym-fitness/l10n/it.json +5 -0
- package/templates/gym-fitness/l10n/ja.json +5 -0
- package/templates/gym-fitness/l10n/ko.json +5 -0
- package/templates/gym-fitness/l10n/lt.json +5 -0
- package/templates/gym-fitness/l10n/nl.json +5 -0
- package/templates/gym-fitness/l10n/no.json +5 -0
- package/templates/gym-fitness/l10n/pl.json +5 -0
- package/templates/gym-fitness/l10n/pt.json +5 -0
- package/templates/gym-fitness/l10n/ru.json +5 -0
- package/templates/gym-fitness/l10n/sv.json +5 -0
- package/templates/gym-fitness/l10n/th.json +5 -0
- package/templates/gym-fitness/l10n/tr.json +5 -0
- package/templates/gym-fitness/l10n/uk.json +5 -0
- package/templates/gym-fitness/l10n/vi.json +5 -0
- package/templates/gym-fitness/l10n/zh.json +5 -0
- package/templates/gym-fitness/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/gym-fitness/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/gym-fitness/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/gym-fitness-owner/config.ts +32 -1
- package/templates/gym-fitness-owner/dev/index.ts +565 -1
- package/templates/gym-fitness-owner/himalaya.content.json +3 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/gym-fitness-owner/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/nonprofit-cause/dev/index.ts +2 -1
- package/templates/nonprofit-cause/l10n/ar.json +5 -0
- package/templates/nonprofit-cause/l10n/cs.json +5 -0
- package/templates/nonprofit-cause/l10n/da.json +5 -0
- package/templates/nonprofit-cause/l10n/de.json +5 -0
- package/templates/nonprofit-cause/l10n/el.json +5 -0
- package/templates/nonprofit-cause/l10n/es.json +5 -0
- package/templates/nonprofit-cause/l10n/fi.json +5 -0
- package/templates/nonprofit-cause/l10n/fr.json +5 -0
- package/templates/nonprofit-cause/l10n/he.json +4 -0
- package/templates/nonprofit-cause/l10n/hu.json +5 -0
- package/templates/nonprofit-cause/l10n/id.json +5 -0
- package/templates/nonprofit-cause/l10n/it.json +5 -0
- package/templates/nonprofit-cause/l10n/ja.json +5 -0
- package/templates/nonprofit-cause/l10n/ko.json +5 -0
- package/templates/nonprofit-cause/l10n/lt.json +5 -0
- package/templates/nonprofit-cause/l10n/nl.json +5 -0
- package/templates/nonprofit-cause/l10n/no.json +5 -0
- package/templates/nonprofit-cause/l10n/pl.json +5 -0
- package/templates/nonprofit-cause/l10n/pt.json +5 -0
- package/templates/nonprofit-cause/l10n/ru.json +5 -0
- package/templates/nonprofit-cause/l10n/sv.json +5 -0
- package/templates/nonprofit-cause/l10n/th.json +5 -0
- package/templates/nonprofit-cause/l10n/tr.json +5 -0
- package/templates/nonprofit-cause/l10n/uk.json +5 -0
- package/templates/nonprofit-cause/l10n/vi.json +5 -0
- package/templates/nonprofit-cause/l10n/zh.json +5 -0
- package/templates/nonprofit-cause/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/nonprofit-cause/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/nonprofit-cause/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/nonprofit-cause-owner/config.ts +32 -1
- package/templates/nonprofit-cause-owner/dev/index.ts +538 -1
- package/templates/nonprofit-cause-owner/himalaya.content.json +3 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/nonprofit-cause-owner/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/owner-lite/config.ts +32 -1
- package/templates/owner-lite/dev/index.ts +565 -1
- package/templates/owner-lite/himalaya.content.json +3 -0
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/owner-lite/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/personal-fitness-trainer/dev/index.ts +2 -1
- package/templates/personal-fitness-trainer/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/personal-fitness-trainer/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/personal-fitness-trainer/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/podcast-creator/dev/index.ts +2 -1
- package/templates/podcast-creator/l10n/ar.json +5 -0
- package/templates/podcast-creator/l10n/cs.json +5 -0
- package/templates/podcast-creator/l10n/da.json +5 -0
- package/templates/podcast-creator/l10n/de.json +5 -0
- package/templates/podcast-creator/l10n/el.json +5 -0
- package/templates/podcast-creator/l10n/es.json +5 -0
- package/templates/podcast-creator/l10n/fi.json +5 -0
- package/templates/podcast-creator/l10n/fr.json +5 -0
- package/templates/podcast-creator/l10n/he.json +4 -0
- package/templates/podcast-creator/l10n/hu.json +5 -0
- package/templates/podcast-creator/l10n/id.json +5 -0
- package/templates/podcast-creator/l10n/it.json +5 -0
- package/templates/podcast-creator/l10n/ja.json +5 -0
- package/templates/podcast-creator/l10n/ko.json +5 -0
- package/templates/podcast-creator/l10n/lt.json +5 -0
- package/templates/podcast-creator/l10n/nl.json +5 -0
- package/templates/podcast-creator/l10n/no.json +5 -0
- package/templates/podcast-creator/l10n/pl.json +5 -0
- package/templates/podcast-creator/l10n/pt.json +5 -0
- package/templates/podcast-creator/l10n/ru.json +5 -0
- package/templates/podcast-creator/l10n/sv.json +5 -0
- package/templates/podcast-creator/l10n/th.json +5 -0
- package/templates/podcast-creator/l10n/tr.json +5 -0
- package/templates/podcast-creator/l10n/uk.json +5 -0
- package/templates/podcast-creator/l10n/vi.json +5 -0
- package/templates/podcast-creator/l10n/zh.json +5 -0
- package/templates/podcast-creator/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/podcast-creator/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/podcast-creator/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/podcast-creator-owner/config.ts +32 -1
- package/templates/podcast-creator-owner/dev/index.ts +538 -1
- package/templates/podcast-creator-owner/himalaya.content.json +3 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/portfolio-creative-owner/config.ts +32 -1
- package/templates/portfolio-creative-owner/dev/index.ts +565 -1
- package/templates/portfolio-creative-owner/himalaya.content.json +3 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/portfolio-creative-owner/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/professional-services/dev/index.ts +2 -1
- package/templates/professional-services/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/professional-services/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/professional-services/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/restaurant-owner/config.ts +32 -1
- package/templates/restaurant-owner/dev/index.ts +565 -1
- package/templates/restaurant-owner/himalaya.content.json +3 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/restaurant-owner/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/retail-store-owner/config.ts +32 -1
- package/templates/retail-store-owner/dev/index.ts +538 -1
- package/templates/retail-store-owner/himalaya.content.json +3 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/yoga-studio/dev/index.ts +2 -1
- package/templates/yoga-studio/l10n/ar.json +5 -0
- package/templates/yoga-studio/l10n/cs.json +5 -0
- package/templates/yoga-studio/l10n/da.json +5 -0
- package/templates/yoga-studio/l10n/de.json +5 -0
- package/templates/yoga-studio/l10n/el.json +5 -0
- package/templates/yoga-studio/l10n/es.json +5 -0
- package/templates/yoga-studio/l10n/fi.json +5 -0
- package/templates/yoga-studio/l10n/fr.json +5 -0
- package/templates/yoga-studio/l10n/he.json +4 -0
- package/templates/yoga-studio/l10n/hu.json +5 -0
- package/templates/yoga-studio/l10n/id.json +5 -0
- package/templates/yoga-studio/l10n/it.json +5 -0
- package/templates/yoga-studio/l10n/ja.json +5 -0
- package/templates/yoga-studio/l10n/ko.json +5 -0
- package/templates/yoga-studio/l10n/lt.json +5 -0
- package/templates/yoga-studio/l10n/nl.json +5 -0
- package/templates/yoga-studio/l10n/no.json +5 -0
- package/templates/yoga-studio/l10n/pl.json +5 -0
- package/templates/yoga-studio/l10n/pt.json +5 -0
- package/templates/yoga-studio/l10n/ru.json +5 -0
- package/templates/yoga-studio/l10n/sv.json +5 -0
- package/templates/yoga-studio/l10n/th.json +5 -0
- package/templates/yoga-studio/l10n/tr.json +5 -0
- package/templates/yoga-studio/l10n/uk.json +5 -0
- package/templates/yoga-studio/l10n/vi.json +5 -0
- package/templates/yoga-studio/l10n/zh.json +5 -0
- package/templates/yoga-studio/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/yoga-studio/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/yoga-studio/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/yoga-studio-owner/config.ts +32 -1
- package/templates/yoga-studio-owner/dev/index.ts +538 -1
- package/templates/yoga-studio-owner/himalaya.content.json +3 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/yoga-studio-owner/tier5-src/wix-owner-booking/index.ts +9 -3
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
// Maestro's conversations, as __HIMI_APP_NAME__ reads them from Symphony: the list of past chats for a
|
|
2
|
+
// business, one chat's messages, and the decisions Maestro raised and is waiting on.
|
|
3
|
+
//
|
|
4
|
+
// Shapes follow the Symphony clients (wix-private/ai-scheduling-assistant, read 2026-11-25).
|
|
5
|
+
// Everything is asked over the owner's own Wix session through the host: nothing here holds a
|
|
6
|
+
// credential. Shared by the Maestro screen and its history screen.
|
|
7
|
+
|
|
8
|
+
import type { MaestroWixApi } from "./owner-maestro-availability.js";
|
|
9
|
+
|
|
10
|
+
const NATIVE_DATA = "https://manage.wix.com/_serverless/ai-scheduling-assistant-server/native-data";
|
|
11
|
+
|
|
12
|
+
/** Reply text as the Text renderer can show it. The renderer draws inline markdown only (bold,
|
|
13
|
+
* italic, code), so a heading becomes a bold line, a list marker a bullet, and a link or an
|
|
14
|
+
* image its label. Safe on a half-streamed reply and on its own output. */
|
|
15
|
+
export function replyText(src: string): string {
|
|
16
|
+
if (!src) return "";
|
|
17
|
+
let t = src;
|
|
18
|
+
t = t.replace(/```[a-zA-Z0-9]*\n?/g, "").replace(/```/g, "");
|
|
19
|
+
t = t.replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1");
|
|
20
|
+
t = t.replace(/\[([^\]]+)\]\([^)]*\)/g, "$1");
|
|
21
|
+
// Spaces and tabs only: `\s` also matches a line break, which would join a list to the line above it.
|
|
22
|
+
t = t.replace(/^[ \t]{0,3}#{1,6}[ \t]+(.+?)[ \t]*#*[ \t]*$/gm, "**$1**");
|
|
23
|
+
t = t.replace(/^[ \t]*[-*+][ \t]+/gm, "• ");
|
|
24
|
+
t = t.replace(/^[ \t]*>[ \t]?/gm, "");
|
|
25
|
+
t = t.replace(/\n{3,}/g, "\n\n");
|
|
26
|
+
return t.trim();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface PastChat { id: string; title: string; updated: string }
|
|
30
|
+
|
|
31
|
+
interface ConversationEntity {
|
|
32
|
+
id?: string; name?: string; source?: string; active?: boolean;
|
|
33
|
+
createdDate?: string; updatedDate?: string;
|
|
34
|
+
metadata?: { wixSiteId?: string } | null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** The owner's Maestro chats about one business, newest first. Symphony's list cannot be asked
|
|
38
|
+
* for one business, so the business is matched here on what each chat was created with.
|
|
39
|
+
* Throws when Symphony could not be asked. */
|
|
40
|
+
export async function pastChats(api: MaestroWixApi, site: string): Promise<PastChat[]> {
|
|
41
|
+
const res = (await api.call("POST", NATIVE_DATA, { action: "conversations" })) as { conversations?: ConversationEntity[] } | null;
|
|
42
|
+
const rows: PastChat[] = [];
|
|
43
|
+
for (const c of res?.conversations ?? []) {
|
|
44
|
+
if (typeof c?.id !== "string" || !c.id) continue;
|
|
45
|
+
if (c.source !== "SCHEDULER" || c.active === false) continue;
|
|
46
|
+
if (!site || c.metadata?.wixSiteId !== site) continue;
|
|
47
|
+
rows.push({ id: c.id, title: (c.name ?? "").trim(), updated: c.updatedDate ?? c.createdDate ?? "" });
|
|
48
|
+
}
|
|
49
|
+
return rows.sort((a, b) => (a.updated < b.updated ? 1 : a.updated > b.updated ? -1 : 0));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface PastMessage { id: string; role: "USER" | "ASSISTANT"; text: string; decisionIds: string[]; link: LinkCard | null }
|
|
53
|
+
|
|
54
|
+
export interface LinkCard { name: string; url: string }
|
|
55
|
+
|
|
56
|
+
interface MessageRow {
|
|
57
|
+
id?: string; role?: string; content?: string; createdDate?: string;
|
|
58
|
+
metadata?: Record<string, unknown> | null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** The decisions a card names. The card carries ids only: what each one asks is read separately. */
|
|
62
|
+
export function decisionIdsOf(bag: Record<string, unknown> | null | undefined): string[] {
|
|
63
|
+
const card = bag?.proposalsCard as { decisionIds?: unknown } | undefined;
|
|
64
|
+
return Array.isArray(card?.decisionIds) ? card.decisionIds.filter((d): d is string => typeof d === "string" && !!d) : [];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** A card whose only job is to open a link: connecting a service Maestro needs. Only an https
|
|
68
|
+
* link is kept, since the app opens it. */
|
|
69
|
+
export function linkCardOf(bag: Record<string, unknown> | null | undefined): LinkCard | null {
|
|
70
|
+
const card = bag?.connectorCard as { name?: unknown; connectUrl?: unknown } | undefined;
|
|
71
|
+
const name = typeof card?.name === "string" ? card.name.trim() : "";
|
|
72
|
+
const url = typeof card?.connectUrl === "string" ? card.connectUrl.trim() : "";
|
|
73
|
+
if (!name || !isHttpsUrl(url)) return null;
|
|
74
|
+
return { name, url };
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** An https address with a plain host. A worker has no `URL` on every host (JavaScriptCore has
|
|
78
|
+
* none), so the shape is checked here; the host still decides whether to open it. */
|
|
79
|
+
function isHttpsUrl(value: string): boolean {
|
|
80
|
+
return /^https:\/\/[a-z0-9]([a-z0-9.-]*[a-z0-9])?(:\d+)?([/?#]\S*)?$/i.test(value);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** One chat's messages, oldest first: the owner's turns and Maestro's replies. Steps and
|
|
84
|
+
* thoughts are left out, as they are while a turn streams. Throws when it could not be read. */
|
|
85
|
+
export async function chatMessages(api: MaestroWixApi, conversationId: string): Promise<PastMessage[]> {
|
|
86
|
+
const res = (await api.call("POST", NATIVE_DATA, {
|
|
87
|
+
action: "conversation-message-window", conversationId, requestId: requestId(), limit: 40,
|
|
88
|
+
})) as { conversationMessages?: MessageRow[] } | null;
|
|
89
|
+
const rows = (res?.conversationMessages ?? []).filter((m) => typeof m?.id === "string" && !!m.id);
|
|
90
|
+
// The order of the answer is not part of the contract: the two Symphony clients disagree on it.
|
|
91
|
+
rows.sort((a, b) => ((a.createdDate ?? "") < (b.createdDate ?? "") ? -1 : (a.createdDate ?? "") > (b.createdDate ?? "") ? 1 : 0));
|
|
92
|
+
const out: PastMessage[] = [];
|
|
93
|
+
for (const m of rows) {
|
|
94
|
+
if (m.role !== "USER" && m.role !== "ASSISTANT") continue;
|
|
95
|
+
const text = typeof m.content === "string" ? m.content : "";
|
|
96
|
+
const decisionIds = decisionIdsOf(m.metadata);
|
|
97
|
+
const link = linkCardOf(m.metadata);
|
|
98
|
+
if (!text.trim() && !decisionIds.length && !link) continue;
|
|
99
|
+
out.push({ id: m.id as string, role: m.role, text, decisionIds, link });
|
|
100
|
+
}
|
|
101
|
+
return out;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
let requestSeq = 0;
|
|
105
|
+
/** Unique per request within this worker: Symphony uses it to drop a repeated read. */
|
|
106
|
+
function requestId(): string {
|
|
107
|
+
requestSeq += 1;
|
|
108
|
+
return `owner-lite-${Date.now().toString(36)}-${requestSeq}`;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface Decision {
|
|
112
|
+
id: string;
|
|
113
|
+
question: string;
|
|
114
|
+
detail: string;
|
|
115
|
+
/** Still waiting on the owner: nothing has settled it. */
|
|
116
|
+
open: boolean;
|
|
117
|
+
/** How it was settled: `ACCEPTED`, `REFUSED` or "". */
|
|
118
|
+
resolution: string;
|
|
119
|
+
/** A decision that asks the owner to pick one of several options cannot be answered with
|
|
120
|
+
* yes or no. */
|
|
121
|
+
hasOptions: boolean;
|
|
122
|
+
planVersion: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface DecisionRow {
|
|
126
|
+
decision?: {
|
|
127
|
+
id?: string; question?: string; detail?: string; settledDate?: string | null; planVersion?: string;
|
|
128
|
+
outcome?: { resolution?: string } | null; options?: unknown[];
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function decisionOf(row: DecisionRow["decision"]): Decision | null {
|
|
133
|
+
if (typeof row?.id !== "string" || !row.id) return null;
|
|
134
|
+
const resolution = typeof row.outcome?.resolution === "string" ? row.outcome.resolution : "";
|
|
135
|
+
return {
|
|
136
|
+
id: row.id,
|
|
137
|
+
question: typeof row.question === "string" ? row.question.trim() : "",
|
|
138
|
+
detail: typeof row.detail === "string" ? row.detail.trim() : "",
|
|
139
|
+
open: !resolution && !row.settledDate,
|
|
140
|
+
resolution,
|
|
141
|
+
hasOptions: Array.isArray(row.options) && row.options.length > 0,
|
|
142
|
+
planVersion: typeof row.planVersion === "string" ? row.planVersion : "",
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/** The decisions of one chat, settled ones included, so a card can say how it ended. Throws
|
|
147
|
+
* when they could not be read. */
|
|
148
|
+
export async function chatDecisions(api: MaestroWixApi, conversationId: string): Promise<Decision[]> {
|
|
149
|
+
const res = (await api.call("POST", NATIVE_DATA, {
|
|
150
|
+
action: "conversation-decisions", conversationId, includeClosedProposals: true,
|
|
151
|
+
})) as { decisions?: DecisionRow[] } | null;
|
|
152
|
+
const out: Decision[] = [];
|
|
153
|
+
for (const row of res?.decisions ?? []) {
|
|
154
|
+
const d = decisionOf(row?.decision);
|
|
155
|
+
if (d) out.push(d);
|
|
156
|
+
}
|
|
157
|
+
return out;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type Verdict = "ACCEPTED" | "REFUSED";
|
|
161
|
+
|
|
162
|
+
/** Tell Symphony the owner's answer. `verdictId` is minted once per card and sent again on a
|
|
163
|
+
* retry, which is what makes a retry safe: Symphony applies one verdict per id.
|
|
164
|
+
* Returns the decision as Symphony now has it, or null when it did not take the answer.
|
|
165
|
+
* Throws when the outcome is unknown, and the same `verdictId` may then be sent again. */
|
|
166
|
+
export async function sendVerdict(
|
|
167
|
+
api: MaestroWixApi,
|
|
168
|
+
o: { decisionId: string; verdictId: string; resolution: Verdict; planVersion: string; conversationId: string },
|
|
169
|
+
): Promise<Decision | null> {
|
|
170
|
+
const res = (await api.call("POST", NATIVE_DATA, {
|
|
171
|
+
action: "decision-verdict", decisionId: o.decisionId, verdictId: o.verdictId, resolution: o.resolution,
|
|
172
|
+
...(o.planVersion ? { planVersion: o.planVersion } : {}),
|
|
173
|
+
...(o.conversationId ? { answeredIn: o.conversationId } : {}),
|
|
174
|
+
})) as { ok?: boolean; decision?: DecisionRow["decision"] } | null;
|
|
175
|
+
if (res?.ok !== true) return null;
|
|
176
|
+
return decisionOf(res.decision) ?? {
|
|
177
|
+
id: o.decisionId, question: "", detail: "", open: false, resolution: o.resolution, hasOptions: false, planVersion: o.planVersion,
|
|
178
|
+
};
|
|
179
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Which business the assistant tab is Maestro for, shared between __HIMI_APP_NAME__'s workers.
|
|
2
|
+
//
|
|
3
|
+
// The app-level worker judges it (it owns the tab) and records the business here; a detail
|
|
4
|
+
// screen's worker reads it to decide whether to offer "Ask Maestro". The channel is
|
|
5
|
+
// `himalaya.storage`, the app-scoped store every worker of the app shares on every host and
|
|
6
|
+
// that needs no capability. A screen cannot bind the app-level worker's state directly: that
|
|
7
|
+
// (`$app:`) needs a binary with app services, and __HIMI_APP_NAME__ has shipped binaries without them.
|
|
8
|
+
//
|
|
9
|
+
// Only a business id is stored, and only while the tab is Maestro: anything else reads as "no".
|
|
10
|
+
//
|
|
11
|
+
// A detail screen reads the record when it loads, which is every time it appears. It is not told
|
|
12
|
+
// when the record changes while it stays on screen, so the button can lag one visit behind the tab.
|
|
13
|
+
// Shown too long, it opens the Maestro screen, which says so itself when Maestro is unavailable.
|
|
14
|
+
|
|
15
|
+
import { readSelectedSite } from "./owner-selected-site.js";
|
|
16
|
+
|
|
17
|
+
type StorageLike = { getItem(key: string): string | null; setItem(key: string, value: string): void };
|
|
18
|
+
type Host = { storage?: StorageLike; input?: Record<string, unknown> };
|
|
19
|
+
const host = (): Host | undefined => (globalThis as { himalaya?: Host }).himalaya;
|
|
20
|
+
|
|
21
|
+
const KEY = "himi.ownerLite.maestroTab.v1";
|
|
22
|
+
|
|
23
|
+
/** Record the business the tab is Maestro for, or "" when the tab is Aria. Never throws: a
|
|
24
|
+
* host without storage only loses the button. */
|
|
25
|
+
export function recordMaestroTab(site: string): void {
|
|
26
|
+
try { host()?.storage?.setItem(KEY, site); } catch { /* no storage on this host: nothing to record */ }
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** Whether the assistant tab is Maestro for `site`. */
|
|
30
|
+
export function maestroTabIsFor(site: string): boolean {
|
|
31
|
+
if (!site) return false;
|
|
32
|
+
try { return host()?.storage?.getItem(KEY) === site; } catch { return false; }
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** For a detail screen's "Ask Maestro" button: "false" (shown) only while the assistant tab is
|
|
36
|
+
* Maestro for the business on screen. The business is the one the host scoped, else the one
|
|
37
|
+
* picked on Sites, as the Maestro screen reads it. */
|
|
38
|
+
export function askMaestroHidden(): "true" | "false" {
|
|
39
|
+
const scoped = host()?.input?.__himiPreferenceBusiness;
|
|
40
|
+
const site = (typeof scoped === "string" ? scoped.trim() : "") || readSelectedSite()?.id || "";
|
|
41
|
+
return maestroTabIsFor(site) ? "false" : "true";
|
|
42
|
+
}
|