@wix/himalaya-cli 0.1766.0 → 0.1768.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/builder.d.ts +9 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{cba469735852da3b19235ce6d163f0e0bb4fd2e751c0042493147e4d9c143d92.bin → 7977d7340513225ef7609b9983b621e2b48c10deb7427e059e595d2fc66f7983.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +602 -381
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/capabilities.md +6 -4
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +4 -0
- package/guides/himi-json-output.md +22 -9
- package/guides/one-app-to-himi-app.md +19 -9
- package/guides/store-submission.md +13 -4
- package/guides/wix-login-integration.md +15 -0
- package/package.json +2 -2
- package/templates/beauty-salon/l10n/ar.json +45 -0
- package/templates/beauty-salon/l10n/cs.json +45 -0
- package/templates/beauty-salon/l10n/da.json +45 -0
- package/templates/beauty-salon/l10n/de.json +45 -0
- package/templates/beauty-salon/l10n/el.json +45 -0
- package/templates/beauty-salon/l10n/en.json +1 -1
- package/templates/beauty-salon/l10n/es.json +45 -0
- package/templates/beauty-salon/l10n/fi.json +45 -0
- package/templates/beauty-salon/l10n/fr.json +45 -0
- package/templates/beauty-salon/l10n/he.json +36 -0
- package/templates/beauty-salon/l10n/hu.json +45 -0
- package/templates/beauty-salon/l10n/id.json +45 -0
- package/templates/beauty-salon/l10n/it.json +45 -0
- package/templates/beauty-salon/l10n/ja.json +45 -0
- package/templates/beauty-salon/l10n/ko.json +45 -0
- package/templates/beauty-salon/l10n/lt.json +45 -0
- package/templates/beauty-salon/l10n/nl.json +45 -0
- package/templates/beauty-salon/l10n/no.json +45 -0
- package/templates/beauty-salon/l10n/pl.json +45 -0
- package/templates/beauty-salon/l10n/pt.json +45 -0
- package/templates/beauty-salon/l10n/ru.json +45 -0
- package/templates/beauty-salon/l10n/sv.json +45 -0
- package/templates/beauty-salon/l10n/th.json +45 -0
- package/templates/beauty-salon/l10n/tr.json +45 -0
- package/templates/beauty-salon/l10n/uk.json +45 -0
- package/templates/beauty-salon/l10n/vi.json +45 -0
- package/templates/beauty-salon/l10n/zh.json +45 -0
- package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/beauty-salon/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/branded-lite/config.ts +9 -0
- package/templates/branded-lite/dev/index.ts +1086 -85
- package/templates/branded-lite/himalaya.content.json +3 -0
- package/templates/branded-lite/l10n/ar.json +139 -0
- package/templates/branded-lite/l10n/cs.json +139 -0
- package/templates/branded-lite/l10n/da.json +139 -0
- package/templates/branded-lite/l10n/de.json +139 -0
- package/templates/branded-lite/l10n/el.json +139 -0
- package/templates/branded-lite/l10n/en.json +65 -2
- package/templates/branded-lite/l10n/es.json +139 -0
- package/templates/branded-lite/l10n/fi.json +139 -0
- package/templates/branded-lite/l10n/fr.json +139 -0
- package/templates/branded-lite/l10n/he.json +113 -0
- package/templates/branded-lite/l10n/hu.json +139 -0
- package/templates/branded-lite/l10n/id.json +139 -0
- package/templates/branded-lite/l10n/it.json +139 -0
- package/templates/branded-lite/l10n/ja.json +139 -0
- package/templates/branded-lite/l10n/ko.json +139 -0
- package/templates/branded-lite/l10n/lt.json +139 -0
- package/templates/branded-lite/l10n/nl.json +139 -0
- package/templates/branded-lite/l10n/no.json +139 -0
- package/templates/branded-lite/l10n/pl.json +139 -0
- package/templates/branded-lite/l10n/pt.json +139 -0
- package/templates/branded-lite/l10n/ru.json +139 -0
- package/templates/branded-lite/l10n/sv.json +139 -0
- package/templates/branded-lite/l10n/th.json +139 -0
- package/templates/branded-lite/l10n/tr.json +139 -0
- package/templates/branded-lite/l10n/uk.json +139 -0
- package/templates/branded-lite/l10n/vi.json +139 -0
- package/templates/branded-lite/l10n/zh.json +139 -0
- package/templates/branded-lite/recipes/programs-card.json +2 -2
- package/templates/branded-lite/recipes/programs-carousel.json +2 -2
- package/templates/branded-lite/recipes/programs-participant-carousel.json +2 -2
- package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/branded-lite/tier5-src/_shared/program-standing.ts +21 -0
- package/templates/branded-lite/tier5-src/_shared/programs-section.ts +8 -4
- package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
- package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +17 -3
- package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/index.ts +336 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/model.ts +206 -0
- package/templates/brandy/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/community-club/l10n/ar.json +30 -0
- package/templates/community-club/l10n/cs.json +30 -0
- package/templates/community-club/l10n/da.json +30 -0
- package/templates/community-club/l10n/de.json +30 -0
- package/templates/community-club/l10n/el.json +30 -0
- package/templates/community-club/l10n/en.json +2 -2
- package/templates/community-club/l10n/es.json +30 -0
- package/templates/community-club/l10n/fi.json +30 -0
- package/templates/community-club/l10n/fr.json +30 -0
- package/templates/community-club/l10n/he.json +24 -0
- package/templates/community-club/l10n/hu.json +30 -0
- package/templates/community-club/l10n/id.json +30 -0
- package/templates/community-club/l10n/it.json +30 -0
- package/templates/community-club/l10n/ja.json +30 -0
- package/templates/community-club/l10n/ko.json +30 -0
- package/templates/community-club/l10n/lt.json +30 -0
- package/templates/community-club/l10n/nl.json +30 -0
- package/templates/community-club/l10n/no.json +30 -0
- package/templates/community-club/l10n/pl.json +30 -0
- package/templates/community-club/l10n/pt.json +30 -0
- package/templates/community-club/l10n/ru.json +30 -0
- package/templates/community-club/l10n/sv.json +30 -0
- package/templates/community-club/l10n/th.json +30 -0
- package/templates/community-club/l10n/tr.json +30 -0
- package/templates/community-club/l10n/uk.json +30 -0
- package/templates/community-club/l10n/vi.json +30 -0
- package/templates/community-club/l10n/zh.json +30 -0
- package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/community-club/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/community-club/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/conference/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/events-meetups/l10n/ar.json +30 -0
- package/templates/events-meetups/l10n/cs.json +30 -0
- package/templates/events-meetups/l10n/da.json +30 -0
- package/templates/events-meetups/l10n/de.json +30 -0
- package/templates/events-meetups/l10n/el.json +30 -0
- package/templates/events-meetups/l10n/en.json +1 -1
- package/templates/events-meetups/l10n/es.json +30 -0
- package/templates/events-meetups/l10n/fi.json +30 -0
- package/templates/events-meetups/l10n/fr.json +30 -0
- package/templates/events-meetups/l10n/he.json +24 -0
- package/templates/events-meetups/l10n/hu.json +30 -0
- package/templates/events-meetups/l10n/id.json +30 -0
- package/templates/events-meetups/l10n/it.json +30 -0
- package/templates/events-meetups/l10n/ja.json +30 -0
- package/templates/events-meetups/l10n/ko.json +30 -0
- package/templates/events-meetups/l10n/lt.json +30 -0
- package/templates/events-meetups/l10n/nl.json +30 -0
- package/templates/events-meetups/l10n/no.json +30 -0
- package/templates/events-meetups/l10n/pl.json +30 -0
- package/templates/events-meetups/l10n/pt.json +30 -0
- package/templates/events-meetups/l10n/ru.json +30 -0
- package/templates/events-meetups/l10n/sv.json +30 -0
- package/templates/events-meetups/l10n/th.json +30 -0
- package/templates/events-meetups/l10n/tr.json +30 -0
- package/templates/events-meetups/l10n/uk.json +30 -0
- package/templates/events-meetups/l10n/vi.json +30 -0
- package/templates/events-meetups/l10n/zh.json +30 -0
- package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/events-meetups/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/events-meetups/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/fitness-gym/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/fitness-gym/tier5-src/_shared/program-standing.ts +21 -0
- package/templates/fitness-gym/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/fitness-gym/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
- package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +17 -3
- package/templates/gym-fitness/l10n/ar.json +45 -0
- package/templates/gym-fitness/l10n/cs.json +45 -0
- package/templates/gym-fitness/l10n/da.json +45 -0
- package/templates/gym-fitness/l10n/de.json +45 -0
- package/templates/gym-fitness/l10n/el.json +45 -0
- package/templates/gym-fitness/l10n/en.json +1 -1
- package/templates/gym-fitness/l10n/es.json +45 -0
- package/templates/gym-fitness/l10n/fi.json +45 -0
- package/templates/gym-fitness/l10n/fr.json +45 -0
- package/templates/gym-fitness/l10n/he.json +36 -0
- package/templates/gym-fitness/l10n/hu.json +45 -0
- package/templates/gym-fitness/l10n/id.json +45 -0
- package/templates/gym-fitness/l10n/it.json +45 -0
- package/templates/gym-fitness/l10n/ja.json +45 -0
- package/templates/gym-fitness/l10n/ko.json +45 -0
- package/templates/gym-fitness/l10n/lt.json +45 -0
- package/templates/gym-fitness/l10n/nl.json +45 -0
- package/templates/gym-fitness/l10n/no.json +45 -0
- package/templates/gym-fitness/l10n/pl.json +45 -0
- package/templates/gym-fitness/l10n/pt.json +45 -0
- package/templates/gym-fitness/l10n/ru.json +45 -0
- package/templates/gym-fitness/l10n/sv.json +45 -0
- package/templates/gym-fitness/l10n/th.json +45 -0
- package/templates/gym-fitness/l10n/tr.json +45 -0
- package/templates/gym-fitness/l10n/uk.json +45 -0
- package/templates/gym-fitness/l10n/vi.json +45 -0
- package/templates/gym-fitness/l10n/zh.json +45 -0
- package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/gym-fitness/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/medical-services/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/medical-services/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/nonprofit-cause/l10n/ar.json +30 -0
- package/templates/nonprofit-cause/l10n/cs.json +30 -0
- package/templates/nonprofit-cause/l10n/da.json +30 -0
- package/templates/nonprofit-cause/l10n/de.json +30 -0
- package/templates/nonprofit-cause/l10n/el.json +30 -0
- package/templates/nonprofit-cause/l10n/en.json +1 -1
- package/templates/nonprofit-cause/l10n/es.json +30 -0
- package/templates/nonprofit-cause/l10n/fi.json +30 -0
- package/templates/nonprofit-cause/l10n/fr.json +30 -0
- package/templates/nonprofit-cause/l10n/he.json +24 -0
- package/templates/nonprofit-cause/l10n/hu.json +30 -0
- package/templates/nonprofit-cause/l10n/id.json +30 -0
- package/templates/nonprofit-cause/l10n/it.json +30 -0
- package/templates/nonprofit-cause/l10n/ja.json +30 -0
- package/templates/nonprofit-cause/l10n/ko.json +30 -0
- package/templates/nonprofit-cause/l10n/lt.json +30 -0
- package/templates/nonprofit-cause/l10n/nl.json +30 -0
- package/templates/nonprofit-cause/l10n/no.json +30 -0
- package/templates/nonprofit-cause/l10n/pl.json +30 -0
- package/templates/nonprofit-cause/l10n/pt.json +30 -0
- package/templates/nonprofit-cause/l10n/ru.json +30 -0
- package/templates/nonprofit-cause/l10n/sv.json +30 -0
- package/templates/nonprofit-cause/l10n/th.json +30 -0
- package/templates/nonprofit-cause/l10n/tr.json +30 -0
- package/templates/nonprofit-cause/l10n/uk.json +30 -0
- package/templates/nonprofit-cause/l10n/vi.json +30 -0
- package/templates/nonprofit-cause/l10n/zh.json +30 -0
- package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/nonprofit-cause/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/podcast-creator/l10n/ar.json +35 -0
- package/templates/podcast-creator/l10n/cs.json +35 -0
- package/templates/podcast-creator/l10n/da.json +35 -0
- package/templates/podcast-creator/l10n/de.json +35 -0
- package/templates/podcast-creator/l10n/el.json +35 -0
- package/templates/podcast-creator/l10n/en.json +1 -1
- package/templates/podcast-creator/l10n/es.json +35 -0
- package/templates/podcast-creator/l10n/fi.json +35 -0
- package/templates/podcast-creator/l10n/fr.json +35 -0
- package/templates/podcast-creator/l10n/he.json +28 -0
- package/templates/podcast-creator/l10n/hu.json +35 -0
- package/templates/podcast-creator/l10n/id.json +35 -0
- package/templates/podcast-creator/l10n/it.json +35 -0
- package/templates/podcast-creator/l10n/ja.json +35 -0
- package/templates/podcast-creator/l10n/ko.json +35 -0
- package/templates/podcast-creator/l10n/lt.json +35 -0
- package/templates/podcast-creator/l10n/nl.json +35 -0
- package/templates/podcast-creator/l10n/no.json +35 -0
- package/templates/podcast-creator/l10n/pl.json +35 -0
- package/templates/podcast-creator/l10n/pt.json +35 -0
- package/templates/podcast-creator/l10n/ru.json +35 -0
- package/templates/podcast-creator/l10n/sv.json +35 -0
- package/templates/podcast-creator/l10n/th.json +35 -0
- package/templates/podcast-creator/l10n/tr.json +35 -0
- package/templates/podcast-creator/l10n/uk.json +35 -0
- package/templates/podcast-creator/l10n/vi.json +35 -0
- package/templates/podcast-creator/l10n/zh.json +35 -0
- package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/podcast-creator/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/portfolio-creative/l10n/ar.json +35 -0
- package/templates/portfolio-creative/l10n/cs.json +35 -0
- package/templates/portfolio-creative/l10n/da.json +35 -0
- package/templates/portfolio-creative/l10n/de.json +35 -0
- package/templates/portfolio-creative/l10n/el.json +35 -0
- package/templates/portfolio-creative/l10n/en.json +1 -1
- package/templates/portfolio-creative/l10n/es.json +35 -0
- package/templates/portfolio-creative/l10n/fi.json +35 -0
- package/templates/portfolio-creative/l10n/fr.json +35 -0
- package/templates/portfolio-creative/l10n/he.json +28 -0
- package/templates/portfolio-creative/l10n/hu.json +35 -0
- package/templates/portfolio-creative/l10n/id.json +35 -0
- package/templates/portfolio-creative/l10n/it.json +35 -0
- package/templates/portfolio-creative/l10n/ja.json +35 -0
- package/templates/portfolio-creative/l10n/ko.json +35 -0
- package/templates/portfolio-creative/l10n/lt.json +35 -0
- package/templates/portfolio-creative/l10n/nl.json +35 -0
- package/templates/portfolio-creative/l10n/no.json +35 -0
- package/templates/portfolio-creative/l10n/pl.json +35 -0
- package/templates/portfolio-creative/l10n/pt.json +35 -0
- package/templates/portfolio-creative/l10n/ru.json +35 -0
- package/templates/portfolio-creative/l10n/sv.json +35 -0
- package/templates/portfolio-creative/l10n/th.json +35 -0
- package/templates/portfolio-creative/l10n/tr.json +35 -0
- package/templates/portfolio-creative/l10n/uk.json +35 -0
- package/templates/portfolio-creative/l10n/vi.json +35 -0
- package/templates/portfolio-creative/l10n/zh.json +35 -0
- package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/portfolio-creative/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/restaurant/l10n/ar.json +35 -0
- package/templates/restaurant/l10n/cs.json +35 -0
- package/templates/restaurant/l10n/da.json +35 -0
- package/templates/restaurant/l10n/de.json +35 -0
- package/templates/restaurant/l10n/el.json +35 -0
- package/templates/restaurant/l10n/en.json +1 -1
- package/templates/restaurant/l10n/es.json +35 -0
- package/templates/restaurant/l10n/fi.json +35 -0
- package/templates/restaurant/l10n/fr.json +35 -0
- package/templates/restaurant/l10n/he.json +28 -0
- package/templates/restaurant/l10n/hu.json +35 -0
- package/templates/restaurant/l10n/id.json +35 -0
- package/templates/restaurant/l10n/it.json +35 -0
- package/templates/restaurant/l10n/ja.json +35 -0
- package/templates/restaurant/l10n/ko.json +35 -0
- package/templates/restaurant/l10n/lt.json +35 -0
- package/templates/restaurant/l10n/nl.json +35 -0
- package/templates/restaurant/l10n/no.json +35 -0
- package/templates/restaurant/l10n/pl.json +35 -0
- package/templates/restaurant/l10n/pt.json +35 -0
- package/templates/restaurant/l10n/ru.json +35 -0
- package/templates/restaurant/l10n/sv.json +35 -0
- package/templates/restaurant/l10n/th.json +35 -0
- package/templates/restaurant/l10n/tr.json +35 -0
- package/templates/restaurant/l10n/uk.json +35 -0
- package/templates/restaurant/l10n/vi.json +35 -0
- package/templates/restaurant/l10n/zh.json +35 -0
- package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/restaurant/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/restaurant/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/retail-store/l10n/ar.json +35 -0
- package/templates/retail-store/l10n/cs.json +35 -0
- package/templates/retail-store/l10n/da.json +35 -0
- package/templates/retail-store/l10n/de.json +35 -0
- package/templates/retail-store/l10n/el.json +35 -0
- package/templates/retail-store/l10n/en.json +1 -1
- package/templates/retail-store/l10n/es.json +35 -0
- package/templates/retail-store/l10n/fi.json +35 -0
- package/templates/retail-store/l10n/fr.json +35 -0
- package/templates/retail-store/l10n/he.json +28 -0
- package/templates/retail-store/l10n/hu.json +35 -0
- package/templates/retail-store/l10n/id.json +35 -0
- package/templates/retail-store/l10n/it.json +35 -0
- package/templates/retail-store/l10n/ja.json +35 -0
- package/templates/retail-store/l10n/ko.json +35 -0
- package/templates/retail-store/l10n/lt.json +35 -0
- package/templates/retail-store/l10n/nl.json +35 -0
- package/templates/retail-store/l10n/no.json +35 -0
- package/templates/retail-store/l10n/pl.json +35 -0
- package/templates/retail-store/l10n/pt.json +35 -0
- package/templates/retail-store/l10n/ru.json +35 -0
- package/templates/retail-store/l10n/sv.json +35 -0
- package/templates/retail-store/l10n/th.json +35 -0
- package/templates/retail-store/l10n/tr.json +35 -0
- package/templates/retail-store/l10n/uk.json +35 -0
- package/templates/retail-store/l10n/vi.json +35 -0
- package/templates/retail-store/l10n/zh.json +35 -0
- package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/retail-store/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/retail-store/tier5-src/_shared/program-standing.ts +67 -0
- package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/salon-spa/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/salon-spa/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/wholesale-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/yoga-studio/config.ts +9 -0
- package/templates/yoga-studio/dev/index.ts +1134 -133
- package/templates/yoga-studio/himalaya.content.json +3 -0
- package/templates/yoga-studio/l10n/ar.json +150 -0
- package/templates/yoga-studio/l10n/cs.json +150 -0
- package/templates/yoga-studio/l10n/da.json +150 -0
- package/templates/yoga-studio/l10n/de.json +150 -0
- package/templates/yoga-studio/l10n/el.json +150 -0
- package/templates/yoga-studio/l10n/en.json +70 -1
- package/templates/yoga-studio/l10n/es.json +150 -0
- package/templates/yoga-studio/l10n/fi.json +150 -0
- package/templates/yoga-studio/l10n/fr.json +150 -0
- package/templates/yoga-studio/l10n/he.json +122 -0
- package/templates/yoga-studio/l10n/hu.json +150 -0
- package/templates/yoga-studio/l10n/id.json +150 -0
- package/templates/yoga-studio/l10n/it.json +150 -0
- package/templates/yoga-studio/l10n/ja.json +150 -0
- package/templates/yoga-studio/l10n/ko.json +150 -0
- package/templates/yoga-studio/l10n/lt.json +150 -0
- package/templates/yoga-studio/l10n/nl.json +150 -0
- package/templates/yoga-studio/l10n/no.json +150 -0
- package/templates/yoga-studio/l10n/pl.json +150 -0
- package/templates/yoga-studio/l10n/pt.json +150 -0
- package/templates/yoga-studio/l10n/ru.json +150 -0
- package/templates/yoga-studio/l10n/sv.json +150 -0
- package/templates/yoga-studio/l10n/th.json +150 -0
- package/templates/yoga-studio/l10n/tr.json +150 -0
- package/templates/yoga-studio/l10n/uk.json +150 -0
- package/templates/yoga-studio/l10n/vi.json +150 -0
- package/templates/yoga-studio/l10n/zh.json +150 -0
- package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/yoga-studio/tier5-src/_shared/program-standing.ts +21 -0
- package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +56 -12
- package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +5 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-member-programs/index.ts +23 -7
- package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +17 -3
- package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/index.ts +336 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/model.ts +206 -0
|
@@ -2061,11 +2061,41 @@
|
|
|
2061
2061
|
"translation": "Programa",
|
|
2062
2062
|
"origin": "machine"
|
|
2063
2063
|
},
|
|
2064
|
+
"h_d1e51f92e970": {
|
|
2065
|
+
"source": "Request approved",
|
|
2066
|
+
"translation": "Solicitação aprovada",
|
|
2067
|
+
"origin": "machine"
|
|
2068
|
+
},
|
|
2069
|
+
"h_e887512cff1a": {
|
|
2070
|
+
"source": "Program complete",
|
|
2071
|
+
"translation": "Programa concluído",
|
|
2072
|
+
"origin": "machine"
|
|
2073
|
+
},
|
|
2074
|
+
"h_ba5bf80d6b73": {
|
|
2075
|
+
"source": "Program ended",
|
|
2076
|
+
"translation": "Programa encerrado",
|
|
2077
|
+
"origin": "machine"
|
|
2078
|
+
},
|
|
2079
|
+
"h_53469df1c48f": {
|
|
2080
|
+
"source": "Invited",
|
|
2081
|
+
"translation": "Convidado",
|
|
2082
|
+
"origin": "machine"
|
|
2083
|
+
},
|
|
2084
|
+
"h_43a1c6266f88": {
|
|
2085
|
+
"source": "Joined",
|
|
2086
|
+
"translation": "Participando",
|
|
2087
|
+
"origin": "machine"
|
|
2088
|
+
},
|
|
2064
2089
|
"h_1c5c8843fc67": {
|
|
2065
2090
|
"source": "Pending request",
|
|
2066
2091
|
"translation": "Solicitação pendente",
|
|
2067
2092
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2068
2093
|
},
|
|
2094
|
+
"h_dbf11c902c73": {
|
|
2095
|
+
"source": "Participation suspended",
|
|
2096
|
+
"translation": "Participação suspensa",
|
|
2097
|
+
"origin": "machine"
|
|
2098
|
+
},
|
|
2069
2099
|
"h_8b6d1209a35d": {
|
|
2070
2100
|
"source": "About & rules",
|
|
2071
2101
|
"translation": "Sobre e regras",
|
|
@@ -2061,11 +2061,41 @@
|
|
|
2061
2061
|
"translation": "Программа",
|
|
2062
2062
|
"origin": "machine"
|
|
2063
2063
|
},
|
|
2064
|
+
"h_d1e51f92e970": {
|
|
2065
|
+
"source": "Request approved",
|
|
2066
|
+
"translation": "Запрос одобрен",
|
|
2067
|
+
"origin": "machine"
|
|
2068
|
+
},
|
|
2069
|
+
"h_e887512cff1a": {
|
|
2070
|
+
"source": "Program complete",
|
|
2071
|
+
"translation": "Программа завершена",
|
|
2072
|
+
"origin": "machine"
|
|
2073
|
+
},
|
|
2074
|
+
"h_ba5bf80d6b73": {
|
|
2075
|
+
"source": "Program ended",
|
|
2076
|
+
"translation": "Программа окончена",
|
|
2077
|
+
"origin": "machine"
|
|
2078
|
+
},
|
|
2079
|
+
"h_53469df1c48f": {
|
|
2080
|
+
"source": "Invited",
|
|
2081
|
+
"translation": "Приглашены",
|
|
2082
|
+
"origin": "machine"
|
|
2083
|
+
},
|
|
2084
|
+
"h_43a1c6266f88": {
|
|
2085
|
+
"source": "Joined",
|
|
2086
|
+
"translation": "Присоединились",
|
|
2087
|
+
"origin": "machine"
|
|
2088
|
+
},
|
|
2064
2089
|
"h_1c5c8843fc67": {
|
|
2065
2090
|
"source": "Pending request",
|
|
2066
2091
|
"translation": "Запрос в ожидании",
|
|
2067
2092
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2068
2093
|
},
|
|
2094
|
+
"h_dbf11c902c73": {
|
|
2095
|
+
"source": "Participation suspended",
|
|
2096
|
+
"translation": "Участие приостановлено",
|
|
2097
|
+
"origin": "machine"
|
|
2098
|
+
},
|
|
2069
2099
|
"h_8b6d1209a35d": {
|
|
2070
2100
|
"source": "About & rules",
|
|
2071
2101
|
"translation": "О группе и правила",
|
|
@@ -2061,11 +2061,41 @@
|
|
|
2061
2061
|
"translation": "Program",
|
|
2062
2062
|
"origin": "machine"
|
|
2063
2063
|
},
|
|
2064
|
+
"h_d1e51f92e970": {
|
|
2065
|
+
"source": "Request approved",
|
|
2066
|
+
"translation": "Begäran godkänd",
|
|
2067
|
+
"origin": "machine"
|
|
2068
|
+
},
|
|
2069
|
+
"h_e887512cff1a": {
|
|
2070
|
+
"source": "Program complete",
|
|
2071
|
+
"translation": "Programmet är slutfört",
|
|
2072
|
+
"origin": "machine"
|
|
2073
|
+
},
|
|
2074
|
+
"h_ba5bf80d6b73": {
|
|
2075
|
+
"source": "Program ended",
|
|
2076
|
+
"translation": "Programmet har avslutats",
|
|
2077
|
+
"origin": "machine"
|
|
2078
|
+
},
|
|
2079
|
+
"h_53469df1c48f": {
|
|
2080
|
+
"source": "Invited",
|
|
2081
|
+
"translation": "Inbjuden",
|
|
2082
|
+
"origin": "machine"
|
|
2083
|
+
},
|
|
2084
|
+
"h_43a1c6266f88": {
|
|
2085
|
+
"source": "Joined",
|
|
2086
|
+
"translation": "Har gått med",
|
|
2087
|
+
"origin": "machine"
|
|
2088
|
+
},
|
|
2064
2089
|
"h_1c5c8843fc67": {
|
|
2065
2090
|
"source": "Pending request",
|
|
2066
2091
|
"translation": "Väntande",
|
|
2067
2092
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2068
2093
|
},
|
|
2094
|
+
"h_dbf11c902c73": {
|
|
2095
|
+
"source": "Participation suspended",
|
|
2096
|
+
"translation": "Deltagandet är avstängt",
|
|
2097
|
+
"origin": "machine"
|
|
2098
|
+
},
|
|
2069
2099
|
"h_8b6d1209a35d": {
|
|
2070
2100
|
"source": "About & rules",
|
|
2071
2101
|
"translation": "Om och regler",
|
|
@@ -2061,11 +2061,41 @@
|
|
|
2061
2061
|
"translation": "โปรแกรม",
|
|
2062
2062
|
"origin": "machine"
|
|
2063
2063
|
},
|
|
2064
|
+
"h_d1e51f92e970": {
|
|
2065
|
+
"source": "Request approved",
|
|
2066
|
+
"translation": "อนุมัติคำขอแล้ว",
|
|
2067
|
+
"origin": "machine"
|
|
2068
|
+
},
|
|
2069
|
+
"h_e887512cff1a": {
|
|
2070
|
+
"source": "Program complete",
|
|
2071
|
+
"translation": "โปรแกรมเสร็จสมบูรณ์",
|
|
2072
|
+
"origin": "machine"
|
|
2073
|
+
},
|
|
2074
|
+
"h_ba5bf80d6b73": {
|
|
2075
|
+
"source": "Program ended",
|
|
2076
|
+
"translation": "โปรแกรมสิ้นสุดแล้ว",
|
|
2077
|
+
"origin": "machine"
|
|
2078
|
+
},
|
|
2079
|
+
"h_53469df1c48f": {
|
|
2080
|
+
"source": "Invited",
|
|
2081
|
+
"translation": "ได้รับเชิญ",
|
|
2082
|
+
"origin": "machine"
|
|
2083
|
+
},
|
|
2084
|
+
"h_43a1c6266f88": {
|
|
2085
|
+
"source": "Joined",
|
|
2086
|
+
"translation": "เข้าร่วมแล้ว",
|
|
2087
|
+
"origin": "machine"
|
|
2088
|
+
},
|
|
2064
2089
|
"h_1c5c8843fc67": {
|
|
2065
2090
|
"source": "Pending request",
|
|
2066
2091
|
"translation": "คำขออยู่ระหว่างดำเนินการ",
|
|
2067
2092
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2068
2093
|
},
|
|
2094
|
+
"h_dbf11c902c73": {
|
|
2095
|
+
"source": "Participation suspended",
|
|
2096
|
+
"translation": "ระงับการเข้าร่วม",
|
|
2097
|
+
"origin": "machine"
|
|
2098
|
+
},
|
|
2069
2099
|
"h_8b6d1209a35d": {
|
|
2070
2100
|
"source": "About & rules",
|
|
2071
2101
|
"translation": "เกี่ยวกับและกฎ",
|
|
@@ -2061,11 +2061,41 @@
|
|
|
2061
2061
|
"translation": "Program",
|
|
2062
2062
|
"origin": "machine"
|
|
2063
2063
|
},
|
|
2064
|
+
"h_d1e51f92e970": {
|
|
2065
|
+
"source": "Request approved",
|
|
2066
|
+
"translation": "Talep onaylandı",
|
|
2067
|
+
"origin": "machine"
|
|
2068
|
+
},
|
|
2069
|
+
"h_e887512cff1a": {
|
|
2070
|
+
"source": "Program complete",
|
|
2071
|
+
"translation": "Program tamamlandı",
|
|
2072
|
+
"origin": "machine"
|
|
2073
|
+
},
|
|
2074
|
+
"h_ba5bf80d6b73": {
|
|
2075
|
+
"source": "Program ended",
|
|
2076
|
+
"translation": "Program sona erdi",
|
|
2077
|
+
"origin": "machine"
|
|
2078
|
+
},
|
|
2079
|
+
"h_53469df1c48f": {
|
|
2080
|
+
"source": "Invited",
|
|
2081
|
+
"translation": "Davet edildi",
|
|
2082
|
+
"origin": "machine"
|
|
2083
|
+
},
|
|
2084
|
+
"h_43a1c6266f88": {
|
|
2085
|
+
"source": "Joined",
|
|
2086
|
+
"translation": "Katıldı",
|
|
2087
|
+
"origin": "machine"
|
|
2088
|
+
},
|
|
2064
2089
|
"h_1c5c8843fc67": {
|
|
2065
2090
|
"source": "Pending request",
|
|
2066
2091
|
"translation": "Bekleyen talep",
|
|
2067
2092
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2068
2093
|
},
|
|
2094
|
+
"h_dbf11c902c73": {
|
|
2095
|
+
"source": "Participation suspended",
|
|
2096
|
+
"translation": "Katılım askıya alındı",
|
|
2097
|
+
"origin": "machine"
|
|
2098
|
+
},
|
|
2069
2099
|
"h_8b6d1209a35d": {
|
|
2070
2100
|
"source": "About & rules",
|
|
2071
2101
|
"translation": "Hakkında ve kurallar",
|
|
@@ -2061,11 +2061,41 @@
|
|
|
2061
2061
|
"translation": "Програма",
|
|
2062
2062
|
"origin": "machine"
|
|
2063
2063
|
},
|
|
2064
|
+
"h_d1e51f92e970": {
|
|
2065
|
+
"source": "Request approved",
|
|
2066
|
+
"translation": "Запит схвалено",
|
|
2067
|
+
"origin": "machine"
|
|
2068
|
+
},
|
|
2069
|
+
"h_e887512cff1a": {
|
|
2070
|
+
"source": "Program complete",
|
|
2071
|
+
"translation": "Програму завершено",
|
|
2072
|
+
"origin": "machine"
|
|
2073
|
+
},
|
|
2074
|
+
"h_ba5bf80d6b73": {
|
|
2075
|
+
"source": "Program ended",
|
|
2076
|
+
"translation": "Програму закінчено",
|
|
2077
|
+
"origin": "machine"
|
|
2078
|
+
},
|
|
2079
|
+
"h_53469df1c48f": {
|
|
2080
|
+
"source": "Invited",
|
|
2081
|
+
"translation": "Запрошено",
|
|
2082
|
+
"origin": "machine"
|
|
2083
|
+
},
|
|
2084
|
+
"h_43a1c6266f88": {
|
|
2085
|
+
"source": "Joined",
|
|
2086
|
+
"translation": "Приєднано",
|
|
2087
|
+
"origin": "machine"
|
|
2088
|
+
},
|
|
2064
2089
|
"h_1c5c8843fc67": {
|
|
2065
2090
|
"source": "Pending request",
|
|
2066
2091
|
"translation": "Запит в очікуванні",
|
|
2067
2092
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2068
2093
|
},
|
|
2094
|
+
"h_dbf11c902c73": {
|
|
2095
|
+
"source": "Participation suspended",
|
|
2096
|
+
"translation": "Участь призупинено",
|
|
2097
|
+
"origin": "machine"
|
|
2098
|
+
},
|
|
2069
2099
|
"h_8b6d1209a35d": {
|
|
2070
2100
|
"source": "About & rules",
|
|
2071
2101
|
"translation": "Про групу та правила",
|
|
@@ -2061,11 +2061,41 @@
|
|
|
2061
2061
|
"translation": "Chương trình",
|
|
2062
2062
|
"origin": "machine"
|
|
2063
2063
|
},
|
|
2064
|
+
"h_d1e51f92e970": {
|
|
2065
|
+
"source": "Request approved",
|
|
2066
|
+
"translation": "Yêu cầu đã được phê duyệt",
|
|
2067
|
+
"origin": "machine"
|
|
2068
|
+
},
|
|
2069
|
+
"h_e887512cff1a": {
|
|
2070
|
+
"source": "Program complete",
|
|
2071
|
+
"translation": "Chương trình đã hoàn thành",
|
|
2072
|
+
"origin": "machine"
|
|
2073
|
+
},
|
|
2074
|
+
"h_ba5bf80d6b73": {
|
|
2075
|
+
"source": "Program ended",
|
|
2076
|
+
"translation": "Chương trình đã kết thúc",
|
|
2077
|
+
"origin": "machine"
|
|
2078
|
+
},
|
|
2079
|
+
"h_53469df1c48f": {
|
|
2080
|
+
"source": "Invited",
|
|
2081
|
+
"translation": "Đã được mời",
|
|
2082
|
+
"origin": "machine"
|
|
2083
|
+
},
|
|
2084
|
+
"h_43a1c6266f88": {
|
|
2085
|
+
"source": "Joined",
|
|
2086
|
+
"translation": "Đã tham gia",
|
|
2087
|
+
"origin": "machine"
|
|
2088
|
+
},
|
|
2064
2089
|
"h_1c5c8843fc67": {
|
|
2065
2090
|
"source": "Pending request",
|
|
2066
2091
|
"translation": "Yêu cầu đang chờ xử lý",
|
|
2067
2092
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2068
2093
|
},
|
|
2094
|
+
"h_dbf11c902c73": {
|
|
2095
|
+
"source": "Participation suspended",
|
|
2096
|
+
"translation": "Đã đình chỉ tham gia",
|
|
2097
|
+
"origin": "machine"
|
|
2098
|
+
},
|
|
2069
2099
|
"h_8b6d1209a35d": {
|
|
2070
2100
|
"source": "About & rules",
|
|
2071
2101
|
"translation": "Giới thiệu và nội quy",
|
|
@@ -2061,11 +2061,41 @@
|
|
|
2061
2061
|
"translation": "計劃",
|
|
2062
2062
|
"origin": "machine"
|
|
2063
2063
|
},
|
|
2064
|
+
"h_d1e51f92e970": {
|
|
2065
|
+
"source": "Request approved",
|
|
2066
|
+
"translation": "請求已核准",
|
|
2067
|
+
"origin": "machine"
|
|
2068
|
+
},
|
|
2069
|
+
"h_e887512cff1a": {
|
|
2070
|
+
"source": "Program complete",
|
|
2071
|
+
"translation": "計劃已完成",
|
|
2072
|
+
"origin": "machine"
|
|
2073
|
+
},
|
|
2074
|
+
"h_ba5bf80d6b73": {
|
|
2075
|
+
"source": "Program ended",
|
|
2076
|
+
"translation": "計劃已結束",
|
|
2077
|
+
"origin": "machine"
|
|
2078
|
+
},
|
|
2079
|
+
"h_53469df1c48f": {
|
|
2080
|
+
"source": "Invited",
|
|
2081
|
+
"translation": "已受邀",
|
|
2082
|
+
"origin": "machine"
|
|
2083
|
+
},
|
|
2084
|
+
"h_43a1c6266f88": {
|
|
2085
|
+
"source": "Joined",
|
|
2086
|
+
"translation": "已加入",
|
|
2087
|
+
"origin": "machine"
|
|
2088
|
+
},
|
|
2064
2089
|
"h_1c5c8843fc67": {
|
|
2065
2090
|
"source": "Pending request",
|
|
2066
2091
|
"translation": "請求待處理",
|
|
2067
2092
|
"origin": "one-app:wix-one-app-crm-contacts:CONTACTS_CONTACT_CARD_SCREEN_STATUS_BADGE.PENDING"
|
|
2068
2093
|
},
|
|
2094
|
+
"h_dbf11c902c73": {
|
|
2095
|
+
"source": "Participation suspended",
|
|
2096
|
+
"translation": "參與已暫停",
|
|
2097
|
+
"origin": "machine"
|
|
2098
|
+
},
|
|
2069
2099
|
"h_8b6d1209a35d": {
|
|
2070
2100
|
"source": "About & rules",
|
|
2071
2101
|
"translation": "關於與規則",
|
|
@@ -123,6 +123,7 @@ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLi
|
|
|
123
123
|
himi_portfolio_project: ["portfolio"],
|
|
124
124
|
himi_programs: ["programs"],
|
|
125
125
|
himi_member_programs: ["programs"],
|
|
126
|
+
himi_program_participant: ["programs"],
|
|
126
127
|
himi_reservations: ["reservations"],
|
|
127
128
|
himi_reserve: ["restaurants"],
|
|
128
129
|
himi_review: ["reviews"],
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// How a worker reads an Online Program's lifecycle and name. Wix returns them in more than one
|
|
2
|
+
// shape (v3 `status` or `state`; `description.title`, `settings.title`, a flat `title` or
|
|
3
|
+
// `details.title`), so every screen that lists programs reads them here, the same way.
|
|
4
|
+
import type { WixProgram } from "@himalaya/wix-online-programs";
|
|
5
|
+
import { cleanTitle } from "./himi-text.js";
|
|
6
|
+
|
|
7
|
+
export function programStatus(p: WixProgram): string {
|
|
8
|
+
return (p.status ?? p.state ?? "").toUpperCase();
|
|
9
|
+
}
|
|
10
|
+
export const isProgramEnded = (p: WixProgram): boolean => programStatus(p) === "ENDED" || programStatus(p) === "FINISHED";
|
|
11
|
+
export const isProgramDraft = (p: WixProgram): boolean => programStatus(p) === "DRAFT";
|
|
12
|
+
|
|
13
|
+
/** The program's own name, cleaned; "" when it has none (the caller picks its own fallback word). */
|
|
14
|
+
export function programName(p: WixProgram): string {
|
|
15
|
+
return cleanTitle(p.description?.title ?? p.settings?.title ?? p.title ?? p.details?.title);
|
|
16
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// The member's standing on one Online Program — the One App participant/application states, folded.
|
|
2
|
+
// Shared by the programs list cards and the program detail screen so both read a member the same way.
|
|
3
|
+
import type { WixJoinApplication, WixParticipant } from "@himalaya/wix-online-programs";
|
|
4
|
+
|
|
5
|
+
export type Standing = "none" | "joined" | "completed" | "finished" | "suspended" | "pending" | "approved" | "invited";
|
|
6
|
+
|
|
7
|
+
export function standingOf(ended: boolean, participant: WixParticipant | undefined, application: WixJoinApplication | undefined): Standing {
|
|
8
|
+
// A withdrawn participant is history even if its old progress says completed.
|
|
9
|
+
// Only its matching admitted application is history too; newer requests remain visible.
|
|
10
|
+
if (["LEFT", "REMOVED", "AUTO_REMOVED"].includes((participant?.enrollmentStatus ?? "").toUpperCase())) {
|
|
11
|
+
if (participant?.id && application?.participantId === participant.id && application.status?.toUpperCase() === "APPROVED") application = undefined;
|
|
12
|
+
participant = undefined;
|
|
13
|
+
}
|
|
14
|
+
if (participant) {
|
|
15
|
+
const progress = (participant.progressStatus ?? "").toUpperCase();
|
|
16
|
+
const enrollment = (participant.enrollmentStatus ?? "").toUpperCase();
|
|
17
|
+
if (progress === "COMPLETED") return "completed";
|
|
18
|
+
if (progress === "FAILED" || ended) return "finished";
|
|
19
|
+
if (enrollment === "SUSPENDED") return "suspended";
|
|
20
|
+
return "joined";
|
|
21
|
+
}
|
|
22
|
+
const status = (application?.status ?? "").toUpperCase();
|
|
23
|
+
const payment = (application?.paymentStatus ?? "").toUpperCase();
|
|
24
|
+
if (status === "APPROVAL_PENDING") return "pending";
|
|
25
|
+
if (status === "SUSPENDED") return "suspended";
|
|
26
|
+
if (status === "APPROVED") {
|
|
27
|
+
// The same reading as joinProgram: a free or settled approval is enrolling, and an offline payment
|
|
28
|
+
// waits on the owner. Only an approval that still owes money asks the member to pay.
|
|
29
|
+
if (payment === "NO_PAYMENT_REQUIRED" || payment === "PAYMENT_SUCCESSFUL") return application?.participantId ? "joined" : "pending";
|
|
30
|
+
if (payment === "PENDING_OWNER_APPROVAL") return "pending";
|
|
31
|
+
return "approved";
|
|
32
|
+
}
|
|
33
|
+
if (status === "PAYMENT_PENDING") return "approved";
|
|
34
|
+
if (status === "INVITED") return "invited";
|
|
35
|
+
return "none";
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const STATUS: Record<Exclude<Standing, "none">, { key: string; fallback: string; icon: string; color: string }> = {
|
|
39
|
+
joined: { key: "memberPrograms.status.joined", fallback: "Joined", icon: "checkmark", color: "accentPrimary" },
|
|
40
|
+
completed: { key: "memberPrograms.status.completed", fallback: "Program complete", icon: "trophy", color: "success" },
|
|
41
|
+
finished: { key: "memberPrograms.status.ended", fallback: "Program ended", icon: "flag", color: "textSecondary" },
|
|
42
|
+
suspended: { key: "memberPrograms.status.suspended", fallback: "Participation suspended", icon: "close", color: "warning" },
|
|
43
|
+
pending: { key: "memberPrograms.status.pending", fallback: "Pending request", icon: "clock", color: "warning" },
|
|
44
|
+
approved: { key: "memberPrograms.status.approved", fallback: "Request approved", icon: "checkmark", color: "success" },
|
|
45
|
+
invited: { key: "memberPrograms.status.invited", fallback: "Invited", icon: "mail", color: "accentPrimary" },
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** The participant page (`himi_program_participant`): what a member in the program opens instead of the sales page. */
|
|
49
|
+
export const PARTICIPANT_SCREEN = "himi_program_participant";
|
|
50
|
+
|
|
51
|
+
/** Standings that open the participant page: the member is in the program, or stayed in it to its end.
|
|
52
|
+
* A paused (suspended) member and everyone else open the program page, which owns joining and paying. */
|
|
53
|
+
export const PARTICIPANT_STANDINGS: ReadonlySet<Standing> = new Set<Standing>(["joined", "completed", "finished"]);
|
|
54
|
+
|
|
55
|
+
/** Whether the member is in the program: an actual participation (an admitted application alone is
|
|
56
|
+
* not one: the participant page reads the participation), not paused, with a standing that opens the
|
|
57
|
+
* participant page. Pass the participation the standing was read from. */
|
|
58
|
+
export function inProgram(standing: Standing, participant: WixParticipant | undefined): boolean {
|
|
59
|
+
return !!participant && PARTICIPANT_STANDINGS.has(standing)
|
|
60
|
+
&& String(participant.enrollmentStatus ?? "").toUpperCase() !== "SUSPENDED";
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** The screen a program row opens. `participantScreen` is the host's participant page; "" (a host
|
|
64
|
+
* without one) keeps every row on `programScreen`. */
|
|
65
|
+
export function programScreenFor(memberInProgram: boolean, programScreen: string, participantScreen: string): string {
|
|
66
|
+
return participantScreen && memberInProgram ? participantScreen : programScreen;
|
|
67
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { descriptionBody } from "../_shared/rich-body.js";
|
|
2
2
|
import { programDescription } from "../_shared/program-description.js";
|
|
3
|
+
import { inProgram, PARTICIPANT_SCREEN, programScreenFor, standingOf } from "../_shared/program-standing.js";
|
|
4
|
+
import { isProgramEnded } from "../_shared/program-fields.js";
|
|
3
5
|
import { fetchMemberBookings, type MemberBookingRow } from "../_shared/member-bookings.js";
|
|
4
6
|
import { hostSiteFromInput, hostedExploreCards, hostedHiddenFlags, type HostedExploreCard } from "../_shared/branded-lite-hosted.js";
|
|
5
7
|
import { memberAccess, assertMemberAccess } from "../_shared/member-access.js";
|
|
@@ -178,6 +180,8 @@ interface MemberProgramCard extends ProgramCard {
|
|
|
178
180
|
stateLabel: string;
|
|
179
181
|
progressFraction: number;
|
|
180
182
|
hideProgress: boolean;
|
|
183
|
+
/** A program the member is in opens the participant page; a request or invitation opens the program page. */
|
|
184
|
+
detailScreenId: string;
|
|
181
185
|
}
|
|
182
186
|
|
|
183
187
|
/** A communityPulse latest-activity Carousel card (design §4.5). */
|
|
@@ -818,6 +822,7 @@ async function fetchMemberProgramCards(programs: WixProgram[]): Promise<MemberPr
|
|
|
818
822
|
stateLabel,
|
|
819
823
|
progressFraction,
|
|
820
824
|
hideProgress: !hasProgress || !participant || (participant.enrollmentStatus ?? "").toUpperCase() === "SUSPENDED",
|
|
825
|
+
detailScreenId: programScreenFor(inProgram(standingOf(isProgramEnded(program), participant, undefined), participant), "himi_program", PARTICIPANT_SCREEN),
|
|
821
826
|
}];
|
|
822
827
|
});
|
|
823
828
|
} catch (error) {
|
|
@@ -123,6 +123,7 @@ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLi
|
|
|
123
123
|
himi_portfolio_project: ["portfolio"],
|
|
124
124
|
himi_programs: ["programs"],
|
|
125
125
|
himi_member_programs: ["programs"],
|
|
126
|
+
himi_program_participant: ["programs"],
|
|
126
127
|
himi_reservations: ["reservations"],
|
|
127
128
|
himi_reserve: ["restaurants"],
|
|
128
129
|
himi_review: ["reviews"],
|
|
@@ -44,3 +44,24 @@ export const STATUS: Record<Exclude<Standing, "none">, { key: string; fallback:
|
|
|
44
44
|
approved: { key: "memberPrograms.status.approved", fallback: "Request approved", icon: "checkmark", color: "success" },
|
|
45
45
|
invited: { key: "memberPrograms.status.invited", fallback: "Invited", icon: "mail", color: "accentPrimary" },
|
|
46
46
|
};
|
|
47
|
+
|
|
48
|
+
/** The participant page (`himi_program_participant`): what a member in the program opens instead of the sales page. */
|
|
49
|
+
export const PARTICIPANT_SCREEN = "himi_program_participant";
|
|
50
|
+
|
|
51
|
+
/** Standings that open the participant page: the member is in the program, or stayed in it to its end.
|
|
52
|
+
* A paused (suspended) member and everyone else open the program page, which owns joining and paying. */
|
|
53
|
+
export const PARTICIPANT_STANDINGS: ReadonlySet<Standing> = new Set<Standing>(["joined", "completed", "finished"]);
|
|
54
|
+
|
|
55
|
+
/** Whether the member is in the program: an actual participation (an admitted application alone is
|
|
56
|
+
* not one: the participant page reads the participation), not paused, with a standing that opens the
|
|
57
|
+
* participant page. Pass the participation the standing was read from. */
|
|
58
|
+
export function inProgram(standing: Standing, participant: WixParticipant | undefined): boolean {
|
|
59
|
+
return !!participant && PARTICIPANT_STANDINGS.has(standing)
|
|
60
|
+
&& String(participant.enrollmentStatus ?? "").toUpperCase() !== "SUSPENDED";
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** The screen a program row opens. `participantScreen` is the host's participant page; "" (a host
|
|
64
|
+
* without one) keeps every row on `programScreen`. */
|
|
65
|
+
export function programScreenFor(memberInProgram: boolean, programScreen: string, participantScreen: string): string {
|
|
66
|
+
return participantScreen && memberInProgram ? participantScreen : programScreen;
|
|
67
|
+
}
|
|
@@ -7,7 +7,7 @@ import { defineService as registerService, navigate } from "@himalaya/state";
|
|
|
7
7
|
// instant range, not a calendar day.
|
|
8
8
|
import { addDays as addLocalDays, dayKey, dayLabel, timeLabel, toDate } from "@himalaya/time";
|
|
9
9
|
import { dispatch } from "@himalaya/dispatch";
|
|
10
|
-
import { bookSchedule, bookSlot, getService, queryServiceAvailability, registerToWaitlist, type WixBookingSlotFull, type WixSelectedPaymentOption, type WixService } from "@himalaya/wix-bookings";
|
|
10
|
+
import { bookSchedule, bookSlot, cancelBookingAsMember, getService, queryServiceAvailability, registerToWaitlist, type WixBookingSlotFull, type WixSelectedPaymentOption, type WixService } from "@himalaya/wix-bookings";
|
|
11
11
|
import { createCheckout, createOrder } from "@himalaya/wix-ecom";
|
|
12
12
|
import { createRedirectSession } from "@himalaya/wix-redirects";
|
|
13
13
|
import { isPaymentSetupFailure, payCashierOrder } from "@himalaya/checkout";
|
|
@@ -19,7 +19,7 @@ import { stashCopy, copyParam, copyPlural, copyTemplate } from "../_shared/himi-
|
|
|
19
19
|
import { upsert as dbUpsert, remove as dbRemove, enqueue as dbEnqueue, type DbEntity } from "@himalaya/local-db";
|
|
20
20
|
import { locationChoice, readSharedLocationResult, writeSharedLocation } from "../_shared/booking-location.js";
|
|
21
21
|
import { memberScreenOpener } from "../_shared/member-screen.js";
|
|
22
|
-
import { isBridgeUnavailable } from "../_shared/owner-load-error.js";
|
|
22
|
+
import { isBridgeUnavailable, writeMayHaveLanded } from "../_shared/owner-load-error.js";
|
|
23
23
|
import { emitHostEvent, hostEventInstant } from "../_shared/host-events.js";
|
|
24
24
|
import { availabilityBeyond, courseReadWindows, courseSessionsAvailability, courseWindowOpen, slotIdAt } from "../_shared/himi-bookings.js";
|
|
25
25
|
import { wixMediaUrl, WIX_DETAIL_IMAGE, WIX_LIST_IMAGE } from "@himalaya/wix-media";
|
|
@@ -940,11 +940,17 @@ async function nextWindowWithTimes(serviceId: string, from: Date, now: Date, inc
|
|
|
940
940
|
return undefined;
|
|
941
941
|
}
|
|
942
942
|
|
|
943
|
-
/**
|
|
944
|
-
|
|
945
|
-
|
|
943
|
+
/** The answer to a free booking whose order may have been placed although its reply was lost. */
|
|
944
|
+
function freeBookingUncertainMessage(): string {
|
|
945
|
+
return copyParam("time.freeBookingUncertain", "We couldn't check if your booking is confirmed. See My Bookings before you book again.");
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
/** After a booking went through (or its checkout opened, or its order may have, either of which
|
|
949
|
+
* already holds a booking), the time is no longer bookable here: it shows greyed and is no longer
|
|
950
|
+
* selected, so another tap on it cannot send a second booking or charge. */
|
|
946
951
|
function afterBooking(result: S, slotId: string): S {
|
|
947
|
-
const booked = !!result.successMessage || result.message ===
|
|
952
|
+
const booked = !!result.successMessage || result.message === freeBookingUncertainMessage()
|
|
953
|
+
|| result.message === copyParam("time.checkoutOpened", "Complete your payment in the checkout to confirm this booking.");
|
|
948
954
|
if (!booked || !slotId || result.isCourse) return result;
|
|
949
955
|
allRows = allRows.map((row) => row.id === slotId ? { ...row, selectable: false, notSelectable: true } : row);
|
|
950
956
|
slotsById.delete(slotId);
|
|
@@ -1668,7 +1674,7 @@ async function bookSelectedIn(s: S): Promise<S> {
|
|
|
1668
1674
|
: copyParam("time.checkoutFailed", "Checkout could not start. Pick another time or try again.") });
|
|
1669
1675
|
}
|
|
1670
1676
|
}
|
|
1671
|
-
// FREE appointment/class —
|
|
1677
|
+
// FREE appointment/class — bookSlot, then a zero-total order that confirms it (offline-safe below).
|
|
1672
1678
|
// getMyData/signedInEmail carry their own fallbacks (never throw), so the
|
|
1673
1679
|
// booker identity is resolved up front — needed for both the optimistic
|
|
1674
1680
|
// cache row and the offline replay params.
|
|
@@ -1686,12 +1692,29 @@ async function bookSelectedIn(s: S): Promise<S> {
|
|
|
1686
1692
|
});
|
|
1687
1693
|
if (!offlineWritesEnabled) await cachePut(localRow(localId));
|
|
1688
1694
|
const pending = derive({ ...s, bookingInFlight: true, message: "", successMessage: "" });
|
|
1695
|
+
// Set once Wix has the booking: from then on a failure is the order's, never a reason to
|
|
1696
|
+
// queue the booking again.
|
|
1697
|
+
let created: Awaited<ReturnType<typeof bookSlot>> | undefined;
|
|
1698
|
+
// Set once the order is sent: a failure from then on may still have confirmed the booking.
|
|
1699
|
+
let ordering = false;
|
|
1689
1700
|
try {
|
|
1690
|
-
|
|
1691
|
-
// Reconcile the optimistic local id with the server-assigned booking id.
|
|
1701
|
+
created = await bookSlot(slot!, name.first, name.last, email);
|
|
1692
1702
|
const realId = created.booking?.id;
|
|
1693
|
-
if (
|
|
1694
|
-
|
|
1703
|
+
if (!realId) throw new Error("booking not created");
|
|
1704
|
+
// Create Booking leaves a booking CREATED: it holds no place and the business never sees
|
|
1705
|
+
// it. Wix confirms a booking when its eCommerce order is placed, so a free one goes through
|
|
1706
|
+
// the same checkout → order as a paid one; its order totals zero, so nothing is charged.
|
|
1707
|
+
// A site with no payment method refuses even a zero-total order (428
|
|
1708
|
+
// SITE_NOT_ACCEPTING_PAYMENTS), and a visitor or member has no other way to confirm.
|
|
1709
|
+
const checkoutId = (await createCheckout([
|
|
1710
|
+
{ quantity: 1, catalogReference: { appId: WIX_BOOKINGS_APP_ID, catalogItemId: realId } },
|
|
1711
|
+
])).checkout?.id;
|
|
1712
|
+
if (!checkoutId) throw new Error("checkout not created");
|
|
1713
|
+
ordering = true;
|
|
1714
|
+
await createOrder(checkoutId);
|
|
1715
|
+
// Reconcile the optimistic local id with the server-assigned booking id.
|
|
1716
|
+
if (offlineWritesEnabled) await cachePut(localRow(realId));
|
|
1717
|
+
else if (realId !== localId) { await cacheDrop(localId); await cachePut(localRow(realId)); }
|
|
1695
1718
|
await reportBooked(created.booking);
|
|
1696
1719
|
return derive({
|
|
1697
1720
|
...pending,
|
|
@@ -1700,7 +1723,11 @@ async function bookSelectedIn(s: S): Promise<S> {
|
|
|
1700
1723
|
message: "",
|
|
1701
1724
|
});
|
|
1702
1725
|
} catch (e) {
|
|
1703
|
-
|
|
1726
|
+
// Create Booking or the order may have reached Wix although the reply was lost (a gateway
|
|
1727
|
+
// status, a reset). Replaying it could book twice; withdrawing or "failed" could cancel a
|
|
1728
|
+
// real booking or invite a second one. Only a request that never left is queued.
|
|
1729
|
+
const mayHaveLanded = (ordering || !created) && writeMayHaveLanded(e);
|
|
1730
|
+
if (!created && !mayHaveLanded && !offlineWritesEnabled && isBridgeUnavailable(e)) {
|
|
1704
1731
|
// Offline / no bridge: the optimistic cache row already shows in My
|
|
1705
1732
|
// Bookings; queue the booking to replay (WriteQueue, idempotent) when
|
|
1706
1733
|
// connectivity returns.
|
|
@@ -1719,6 +1746,23 @@ async function bookSelectedIn(s: S): Promise<S> {
|
|
|
1719
1746
|
message: "",
|
|
1720
1747
|
});
|
|
1721
1748
|
}
|
|
1749
|
+
if (!offlineWritesEnabled) await cacheDrop(localId);
|
|
1750
|
+
if (mayHaveLanded) {
|
|
1751
|
+
// My Bookings reads the booking's real status from Wix.
|
|
1752
|
+
return derive({ ...s, bookingInFlight: false,
|
|
1753
|
+
message: freeBookingUncertainMessage() });
|
|
1754
|
+
}
|
|
1755
|
+
const booking = created?.booking;
|
|
1756
|
+
if (booking?.id) {
|
|
1757
|
+
// Wix has an unconfirmed booking the business cannot see. Withdraw it, so My Bookings
|
|
1758
|
+
// does not keep a booking that never happened; a failed withdrawal leaves it there,
|
|
1759
|
+
// tagged Not confirmed.
|
|
1760
|
+
if (booking.revision) await cancelBookingAsMember(booking.id, booking.revision, false).catch(() => undefined);
|
|
1761
|
+
if (isPaymentSetupFailure(e)) {
|
|
1762
|
+
return derive({ ...s, bookingInFlight: false,
|
|
1763
|
+
message: copyParam("time.freeBookingUnconfirmed", "The business can't confirm bookings in the app right now. Contact the business to book.") });
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1722
1766
|
return derive({ ...s, bookingInFlight: false, message: s.isCourse
|
|
1723
1767
|
? copyParam("time.courseBookFailed", "Course booking failed. Try again.")
|
|
1724
1768
|
: copyParam("time.bookFailed", "Booking failed. Pick another time or try again.") });
|