@wix/himalaya-cli 0.1392.0 → 0.1394.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/stdlib/wix-sdk/bookings-v2/src/extensions.d.ts +7 -5
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-bookings.mjs +4 -4
- package/dist/cli.mjs +41 -27
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/himi-json-output.md +1 -0
- package/guides/iap-products.md +5 -0
- package/guides/sdk-reference.json +4 -4
- package/package.json +2 -2
- package/templates/beauty-salon/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/beauty-salon/tier5-src/himi-branded-lite-cart/index.ts +52 -28
- package/templates/beauty-salon-owner/dev/index.ts +545 -100
- package/templates/beauty-salon-owner/himalaya.content.json +6 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-account.ts +6 -2
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-booking-respond.ts +82 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-account/index.ts +7 -4
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-appointments/index.ts +2 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-ask/live.ts +3 -3
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-home/index.ts +2 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-order/index.ts +3 -3
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-orders/index.ts +2 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-overview/index.ts +2 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-post/index.ts +60 -43
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -23
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-posts/index.ts +2 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-product/index.ts +31 -32
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-product-form/index.ts +23 -43
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-products/index.ts +2 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-service/index.ts +18 -20
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-service-form/index.ts +16 -29
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-services/index.ts +2 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-sites/index.ts +2 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-today/index.ts +315 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-wrist/index.ts +42 -15
- package/templates/branded-lite/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/branded-lite/tier5-src/himi-branded-lite-cart/index.ts +52 -28
- package/templates/branded-lite/tier5-src/himi-branded-lite-group/index.ts +24 -24
- package/templates/community-club/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/community-club/tier5-src/himi-branded-lite-group/index.ts +24 -24
- package/templates/community-club-owner/dev/index.ts +317 -100
- package/templates/community-club-owner/himalaya.content.json +6 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-account.ts +6 -2
- package/templates/community-club-owner/tier5-src/_shared/owner-booking-respond.ts +82 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/community-club-owner/tier5-src/himi-owner-lite-account/index.ts +7 -4
- package/templates/community-club-owner/tier5-src/himi-owner-lite-ask/live.ts +3 -3
- package/templates/community-club-owner/tier5-src/himi-owner-lite-event/index.ts +18 -20
- package/templates/community-club-owner/tier5-src/himi-owner-lite-event-form/index.ts +20 -28
- package/templates/community-club-owner/tier5-src/himi-owner-lite-events/index.ts +2 -2
- package/templates/community-club-owner/tier5-src/himi-owner-lite-home/index.ts +2 -2
- package/templates/community-club-owner/tier5-src/himi-owner-lite-order/index.ts +3 -3
- package/templates/community-club-owner/tier5-src/himi-owner-lite-orders/index.ts +2 -2
- package/templates/community-club-owner/tier5-src/himi-owner-lite-overview/index.ts +2 -2
- package/templates/community-club-owner/tier5-src/himi-owner-lite-post/index.ts +60 -43
- package/templates/community-club-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -23
- package/templates/community-club-owner/tier5-src/himi-owner-lite-posts/index.ts +2 -2
- package/templates/community-club-owner/tier5-src/himi-owner-lite-product/index.ts +31 -32
- package/templates/community-club-owner/tier5-src/himi-owner-lite-product-form/index.ts +23 -43
- package/templates/community-club-owner/tier5-src/himi-owner-lite-products/index.ts +2 -2
- package/templates/community-club-owner/tier5-src/himi-owner-lite-sites/index.ts +2 -2
- package/templates/community-club-owner/tier5-src/himi-owner-lite-today/index.ts +315 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-wrist/index.ts +42 -15
- package/templates/events-meetups/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/events-meetups/tier5-src/himi-branded-lite-group/index.ts +24 -24
- package/templates/events-meetups-owner/dev/index.ts +275 -100
- package/templates/events-meetups-owner/himalaya.content.json +6 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-account.ts +6 -2
- package/templates/events-meetups-owner/tier5-src/_shared/owner-booking-respond.ts +82 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-account/index.ts +7 -4
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-ask/live.ts +3 -3
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-event/index.ts +18 -20
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-event-form/index.ts +20 -28
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-events/index.ts +2 -2
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-home/index.ts +2 -2
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-overview/index.ts +2 -2
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-post/index.ts +60 -43
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -23
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-posts/index.ts +2 -2
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-sites/index.ts +2 -2
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-today/index.ts +315 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-wrist/index.ts +42 -15
- package/templates/gym-fitness/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/gym-fitness/tier5-src/himi-branded-lite-cart/index.ts +52 -28
- package/templates/gym-fitness-owner/dev/index.ts +545 -100
- package/templates/gym-fitness-owner/himalaya.content.json +6 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-account.ts +6 -2
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-booking-respond.ts +82 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-account/index.ts +7 -4
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-appointments/index.ts +2 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-ask/live.ts +3 -3
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-event/index.ts +18 -20
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-event-form/index.ts +20 -28
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-events/index.ts +2 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-home/index.ts +2 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-order/index.ts +3 -3
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-orders/index.ts +2 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-overview/index.ts +2 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-post/index.ts +60 -43
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -23
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-posts/index.ts +2 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-product/index.ts +31 -32
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-product-form/index.ts +23 -43
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-products/index.ts +2 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-service/index.ts +18 -20
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-service-form/index.ts +16 -29
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-services/index.ts +2 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-sites/index.ts +2 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-today/index.ts +315 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-wrist/index.ts +42 -15
- package/templates/himi-chat/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/nonprofit-cause/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-group/index.ts +24 -24
- package/templates/nonprofit-cause-owner/dev/index.ts +503 -100
- package/templates/nonprofit-cause-owner/himalaya.content.json +6 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-account.ts +6 -2
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-booking-respond.ts +82 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-account/index.ts +7 -4
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-appointments/index.ts +2 -2
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-ask/live.ts +3 -3
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-event/index.ts +18 -20
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-event-form/index.ts +20 -28
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-events/index.ts +2 -2
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-home/index.ts +2 -2
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-overview/index.ts +2 -2
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-post/index.ts +60 -43
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -23
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-posts/index.ts +2 -2
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-service/index.ts +18 -20
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-service-form/index.ts +16 -29
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-services/index.ts +2 -2
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-sites/index.ts +2 -2
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-today/index.ts +315 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-wrist/index.ts +42 -15
- package/templates/owner-lite/dev/index.ts +545 -100
- package/templates/owner-lite/himalaya.content.json +6 -0
- package/templates/owner-lite/tier5-src/_shared/owner-account.ts +6 -2
- package/templates/owner-lite/tier5-src/_shared/owner-booking-respond.ts +82 -0
- package/templates/owner-lite/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/owner-lite/tier5-src/himi-owner-lite-account/index.ts +7 -4
- package/templates/owner-lite/tier5-src/himi-owner-lite-appointments/index.ts +2 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-ask/live.ts +3 -3
- package/templates/owner-lite/tier5-src/himi-owner-lite-event/index.ts +18 -20
- package/templates/owner-lite/tier5-src/himi-owner-lite-event-form/index.ts +20 -28
- package/templates/owner-lite/tier5-src/himi-owner-lite-events/index.ts +2 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-home/index.ts +2 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-order/index.ts +3 -3
- package/templates/owner-lite/tier5-src/himi-owner-lite-orders/index.ts +2 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-overview/index.ts +2 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-post/index.ts +60 -43
- package/templates/owner-lite/tier5-src/himi-owner-lite-post-form/index.ts +10 -23
- package/templates/owner-lite/tier5-src/himi-owner-lite-posts/index.ts +2 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-product/index.ts +31 -32
- package/templates/owner-lite/tier5-src/himi-owner-lite-product-form/index.ts +23 -43
- package/templates/owner-lite/tier5-src/himi-owner-lite-products/index.ts +2 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-service/index.ts +18 -20
- package/templates/owner-lite/tier5-src/himi-owner-lite-service-form/index.ts +16 -29
- package/templates/owner-lite/tier5-src/himi-owner-lite-services/index.ts +2 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-sites/index.ts +2 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-today/index.ts +315 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-wrist/index.ts +42 -15
- package/templates/podcast-creator/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/podcast-creator-owner/dev/index.ts +317 -100
- package/templates/podcast-creator-owner/himalaya.content.json +6 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-account.ts +6 -2
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-booking-respond.ts +82 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-account/index.ts +7 -4
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-ask/live.ts +3 -3
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-event/index.ts +18 -20
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-event-form/index.ts +20 -28
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-events/index.ts +2 -2
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-home/index.ts +2 -2
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-order/index.ts +3 -3
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-orders/index.ts +2 -2
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-overview/index.ts +2 -2
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-post/index.ts +60 -43
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -23
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-posts/index.ts +2 -2
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-product/index.ts +31 -32
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-product-form/index.ts +23 -43
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-products/index.ts +2 -2
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-sites/index.ts +2 -2
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-today/index.ts +315 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-wrist/index.ts +42 -15
- package/templates/portfolio-creative/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-cart/index.ts +52 -28
- package/templates/portfolio-creative-owner/dev/index.ts +545 -100
- package/templates/portfolio-creative-owner/himalaya.content.json +6 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-account.ts +6 -2
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-booking-respond.ts +82 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-account/index.ts +7 -4
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-appointments/index.ts +2 -2
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-ask/live.ts +3 -3
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-home/index.ts +2 -2
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-order/index.ts +3 -3
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-orders/index.ts +2 -2
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-overview/index.ts +2 -2
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-post/index.ts +60 -43
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -23
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-posts/index.ts +2 -2
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-product/index.ts +31 -32
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-product-form/index.ts +23 -43
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-products/index.ts +2 -2
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-service/index.ts +18 -20
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-service-form/index.ts +16 -29
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-services/index.ts +2 -2
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-sites/index.ts +2 -2
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-today/index.ts +315 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-wrist/index.ts +42 -15
- package/templates/restaurant/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/restaurant-owner/dev/index.ts +545 -100
- package/templates/restaurant-owner/himalaya.content.json +6 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-account.ts +6 -2
- package/templates/restaurant-owner/tier5-src/_shared/owner-booking-respond.ts +82 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-account/index.ts +7 -4
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-appointments/index.ts +2 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-ask/live.ts +3 -3
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-event/index.ts +18 -20
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-event-form/index.ts +20 -28
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-events/index.ts +2 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-home/index.ts +2 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-order/index.ts +3 -3
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-orders/index.ts +2 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-overview/index.ts +2 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-post/index.ts +60 -43
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -23
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-posts/index.ts +2 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-product/index.ts +31 -32
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-product-form/index.ts +23 -43
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-products/index.ts +2 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-service/index.ts +18 -20
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-service-form/index.ts +16 -29
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-services/index.ts +2 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-sites/index.ts +2 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-today/index.ts +315 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-wrist/index.ts +42 -15
- package/templates/retail-store/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/retail-store/tier5-src/himi-branded-lite-cart/index.ts +52 -28
- package/templates/retail-store-owner/dev/index.ts +317 -100
- package/templates/retail-store-owner/himalaya.content.json +6 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-account.ts +6 -2
- package/templates/retail-store-owner/tier5-src/_shared/owner-booking-respond.ts +82 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-account/index.ts +7 -4
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-ask/live.ts +3 -3
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-home/index.ts +2 -2
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-order/index.ts +3 -3
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-orders/index.ts +2 -2
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-overview/index.ts +2 -2
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-post/index.ts +60 -43
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -23
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-posts/index.ts +2 -2
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-product/index.ts +31 -32
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-product-form/index.ts +23 -43
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-products/index.ts +2 -2
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-sites/index.ts +2 -2
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-today/index.ts +315 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-wrist/index.ts +42 -15
- package/templates/yoga-studio/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/yoga-studio-owner/dev/index.ts +503 -100
- package/templates/yoga-studio-owner/himalaya.content.json +6 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-account.ts +6 -2
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-booking-respond.ts +82 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-load-error.ts +115 -12
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-account/index.ts +7 -4
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-appointments/index.ts +2 -2
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-ask/live.ts +3 -3
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-event/index.ts +18 -20
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-event-form/index.ts +20 -28
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-events/index.ts +2 -2
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-home/index.ts +2 -2
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-overview/index.ts +2 -2
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-post/index.ts +60 -43
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -23
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-posts/index.ts +2 -2
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-service/index.ts +18 -20
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-service-form/index.ts +16 -29
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-services/index.ts +2 -2
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-sites/index.ts +2 -2
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-today/index.ts +315 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-wrist/index.ts +42 -15
|
@@ -52267,106 +52267,6 @@ const SCREENS = runtimeSetting({
|
|
|
52267
52267
|
]
|
|
52268
52268
|
}
|
|
52269
52269
|
}
|
|
52270
|
-
},
|
|
52271
|
-
{
|
|
52272
|
-
"id": "himi_owner_lite_account.role",
|
|
52273
|
-
"body": {
|
|
52274
|
-
"package": "himalaya",
|
|
52275
|
-
"type": "HStack",
|
|
52276
|
-
"props": {
|
|
52277
|
-
"spacing": 0,
|
|
52278
|
-
"children": [
|
|
52279
|
-
{
|
|
52280
|
-
"id": "",
|
|
52281
|
-
"body": {
|
|
52282
|
-
"package": "himalaya",
|
|
52283
|
-
"type": "Text",
|
|
52284
|
-
"props": {
|
|
52285
|
-
"text": "Role",
|
|
52286
|
-
"style": "footnote",
|
|
52287
|
-
"color": "textSecondary"
|
|
52288
|
-
}
|
|
52289
|
-
},
|
|
52290
|
-
"modifiers": {
|
|
52291
|
-
"padding": {
|
|
52292
|
-
"trailing": 10
|
|
52293
|
-
}
|
|
52294
|
-
}
|
|
52295
|
-
},
|
|
52296
|
-
{
|
|
52297
|
-
"id": "",
|
|
52298
|
-
"body": {
|
|
52299
|
-
"package": "himalaya",
|
|
52300
|
-
"type": "Spacer",
|
|
52301
|
-
"props": {}
|
|
52302
|
-
}
|
|
52303
|
-
},
|
|
52304
|
-
{
|
|
52305
|
-
"id": "",
|
|
52306
|
-
"body": {
|
|
52307
|
-
"package": "himalaya",
|
|
52308
|
-
"type": "Text",
|
|
52309
|
-
"props": {
|
|
52310
|
-
"text": "Committee",
|
|
52311
|
-
"style": "bodyEmphasis",
|
|
52312
|
-
"maxLines": 1,
|
|
52313
|
-
"collapseWhenEmpty": true
|
|
52314
|
-
}
|
|
52315
|
-
}
|
|
52316
|
-
}
|
|
52317
|
-
]
|
|
52318
|
-
}
|
|
52319
|
-
}
|
|
52320
|
-
},
|
|
52321
|
-
{
|
|
52322
|
-
"id": "himi_owner_lite_account.plan",
|
|
52323
|
-
"body": {
|
|
52324
|
-
"package": "himalaya",
|
|
52325
|
-
"type": "HStack",
|
|
52326
|
-
"props": {
|
|
52327
|
-
"spacing": 0,
|
|
52328
|
-
"children": [
|
|
52329
|
-
{
|
|
52330
|
-
"id": "",
|
|
52331
|
-
"body": {
|
|
52332
|
-
"package": "himalaya",
|
|
52333
|
-
"type": "Text",
|
|
52334
|
-
"props": {
|
|
52335
|
-
"text": "Plan",
|
|
52336
|
-
"style": "footnote",
|
|
52337
|
-
"color": "textSecondary"
|
|
52338
|
-
}
|
|
52339
|
-
},
|
|
52340
|
-
"modifiers": {
|
|
52341
|
-
"padding": {
|
|
52342
|
-
"trailing": 10
|
|
52343
|
-
}
|
|
52344
|
-
}
|
|
52345
|
-
},
|
|
52346
|
-
{
|
|
52347
|
-
"id": "",
|
|
52348
|
-
"body": {
|
|
52349
|
-
"package": "himalaya",
|
|
52350
|
-
"type": "Spacer",
|
|
52351
|
-
"props": {}
|
|
52352
|
-
}
|
|
52353
|
-
},
|
|
52354
|
-
{
|
|
52355
|
-
"id": "",
|
|
52356
|
-
"body": {
|
|
52357
|
-
"package": "himalaya",
|
|
52358
|
-
"type": "Text",
|
|
52359
|
-
"props": {
|
|
52360
|
-
"text": "Business",
|
|
52361
|
-
"style": "bodyEmphasis",
|
|
52362
|
-
"maxLines": 1,
|
|
52363
|
-
"collapseWhenEmpty": true
|
|
52364
|
-
}
|
|
52365
|
-
}
|
|
52366
|
-
}
|
|
52367
|
-
]
|
|
52368
|
-
}
|
|
52369
|
-
}
|
|
52370
52270
|
}
|
|
52371
52271
|
]
|
|
52372
52272
|
}
|
|
@@ -52462,6 +52362,28 @@ const SCREENS = runtimeSetting({
|
|
|
52462
52362
|
"modifiers": {
|
|
52463
52363
|
"hiddenPath": "$service:himiOwnerLiteAccount.noTerms"
|
|
52464
52364
|
}
|
|
52365
|
+
},
|
|
52366
|
+
{
|
|
52367
|
+
"id": "himi_owner_lite_account.deleteAccount",
|
|
52368
|
+
"body": {
|
|
52369
|
+
"package": "himalaya",
|
|
52370
|
+
"type": "Button",
|
|
52371
|
+
"props": {
|
|
52372
|
+
"title": "Delete account",
|
|
52373
|
+
"style": "plain",
|
|
52374
|
+
"fullWidth": true,
|
|
52375
|
+
"role": "destructive",
|
|
52376
|
+
"action": {
|
|
52377
|
+
"actionId": "tier5.himiOwnerLiteAccount.openLink",
|
|
52378
|
+
"params": {
|
|
52379
|
+
"kind": "deleteAccount"
|
|
52380
|
+
}
|
|
52381
|
+
}
|
|
52382
|
+
}
|
|
52383
|
+
},
|
|
52384
|
+
"modifiers": {
|
|
52385
|
+
"hiddenPath": "$service:himiOwnerLiteAccount.noDeleteAccount"
|
|
52386
|
+
}
|
|
52465
52387
|
}
|
|
52466
52388
|
]
|
|
52467
52389
|
}
|
|
@@ -52533,6 +52455,7 @@ const SCREENS = runtimeSetting({
|
|
|
52533
52455
|
"supportUrl": "https://www.wix.com/support",
|
|
52534
52456
|
"privacyUrl": "https://www.wix.com/about/privacy",
|
|
52535
52457
|
"termsUrl": "https://www.wix.com/about/terms-of-use",
|
|
52458
|
+
"deleteAccountUrl": "https://manage.wix.com/account/account-settings",
|
|
52536
52459
|
"businessName": "__HIMI_APP_NAME__",
|
|
52537
52460
|
"copy": "{\"ownerAccount.roleValue\":\"Committee\",\"ownerAccount.subtitle\":\"Club committee\"}"
|
|
52538
52461
|
}
|
|
@@ -63809,6 +63732,300 @@ const SCREENS = runtimeSetting({
|
|
|
63809
63732
|
"bundleVersion": "0.0.1"
|
|
63810
63733
|
}
|
|
63811
63734
|
},
|
|
63735
|
+
"himi_owner_lite_widget_today_small": {
|
|
63736
|
+
"screenId": "himi_owner_lite_widget_today_small",
|
|
63737
|
+
"renderer": "sdui_intent",
|
|
63738
|
+
"title": "Today widget (small)",
|
|
63739
|
+
"schemaVersion": 1,
|
|
63740
|
+
"cacheControl": {
|
|
63741
|
+
"maxAge": 0,
|
|
63742
|
+
"staleWhileRevalidate": 0
|
|
63743
|
+
},
|
|
63744
|
+
"telemetryScreenName": "himi_owner_lite_widget_today_small",
|
|
63745
|
+
"payload": {
|
|
63746
|
+
"id": "himi_owner_lite_widget_today_small.root",
|
|
63747
|
+
"body": {
|
|
63748
|
+
"package": "himalaya",
|
|
63749
|
+
"type": "VStack",
|
|
63750
|
+
"props": {
|
|
63751
|
+
"spacing": 4,
|
|
63752
|
+
"alignment": "leading",
|
|
63753
|
+
"children": [
|
|
63754
|
+
{
|
|
63755
|
+
"id": "owner_widget.small.header",
|
|
63756
|
+
"body": {
|
|
63757
|
+
"package": "himalaya",
|
|
63758
|
+
"type": "HStack",
|
|
63759
|
+
"props": {
|
|
63760
|
+
"spacing": 4,
|
|
63761
|
+
"children": [
|
|
63762
|
+
{
|
|
63763
|
+
"id": "owner_widget.small.icon",
|
|
63764
|
+
"body": {
|
|
63765
|
+
"package": "himalaya",
|
|
63766
|
+
"type": "Icon",
|
|
63767
|
+
"props": {
|
|
63768
|
+
"name": "calendar",
|
|
63769
|
+
"size": 12,
|
|
63770
|
+
"tint": "accentPrimary"
|
|
63771
|
+
}
|
|
63772
|
+
},
|
|
63773
|
+
"modifiers": {
|
|
63774
|
+
"accessibilityRole": "decorative"
|
|
63775
|
+
}
|
|
63776
|
+
},
|
|
63777
|
+
{
|
|
63778
|
+
"id": "owner_widget.small.title",
|
|
63779
|
+
"body": {
|
|
63780
|
+
"package": "himalaya",
|
|
63781
|
+
"type": "Text",
|
|
63782
|
+
"props": {
|
|
63783
|
+
"text": "Today",
|
|
63784
|
+
"style": "caption",
|
|
63785
|
+
"color": "textSecondary",
|
|
63786
|
+
"maxLines": 1
|
|
63787
|
+
}
|
|
63788
|
+
}
|
|
63789
|
+
}
|
|
63790
|
+
]
|
|
63791
|
+
}
|
|
63792
|
+
}
|
|
63793
|
+
},
|
|
63794
|
+
{
|
|
63795
|
+
"id": "owner_widget.small.message",
|
|
63796
|
+
"body": {
|
|
63797
|
+
"package": "himalaya",
|
|
63798
|
+
"type": "Text",
|
|
63799
|
+
"props": {
|
|
63800
|
+
"text": "$service:ownerToday.message",
|
|
63801
|
+
"style": "footnote",
|
|
63802
|
+
"color": "textSecondary",
|
|
63803
|
+
"maxLines": 3
|
|
63804
|
+
}
|
|
63805
|
+
},
|
|
63806
|
+
"modifiers": {
|
|
63807
|
+
"hiddenPath": "$service:ownerToday.hideMessage"
|
|
63808
|
+
}
|
|
63809
|
+
},
|
|
63810
|
+
{
|
|
63811
|
+
"id": "owner_widget.small.spacer",
|
|
63812
|
+
"body": {
|
|
63813
|
+
"package": "himalaya",
|
|
63814
|
+
"type": "Spacer",
|
|
63815
|
+
"props": {}
|
|
63816
|
+
}
|
|
63817
|
+
},
|
|
63818
|
+
{
|
|
63819
|
+
"id": "owner_widget.small.counts",
|
|
63820
|
+
"body": {
|
|
63821
|
+
"package": "himalaya",
|
|
63822
|
+
"type": "Text",
|
|
63823
|
+
"props": {
|
|
63824
|
+
"text": "$service:ownerToday.countsShort",
|
|
63825
|
+
"style": "caption",
|
|
63826
|
+
"maxLines": 1,
|
|
63827
|
+
"monospacedDigits": true
|
|
63828
|
+
}
|
|
63829
|
+
},
|
|
63830
|
+
"modifiers": {
|
|
63831
|
+
"hiddenPath": "$service:ownerToday.message"
|
|
63832
|
+
}
|
|
63833
|
+
}
|
|
63834
|
+
]
|
|
63835
|
+
}
|
|
63836
|
+
}
|
|
63837
|
+
},
|
|
63838
|
+
"input": {
|
|
63839
|
+
"verticals": "store"
|
|
63840
|
+
},
|
|
63841
|
+
"logicBundle": {
|
|
63842
|
+
"url": "http://localhost:8190/v1/bundles/himi-owner-lite-today",
|
|
63843
|
+
"integrity": "",
|
|
63844
|
+
"contentType": "application/javascript+ts-bundle",
|
|
63845
|
+
"declaredCapabilities": [
|
|
63846
|
+
"wix_api"
|
|
63847
|
+
],
|
|
63848
|
+
"minBinaryVersion": "0.1.0",
|
|
63849
|
+
"bundleVersion": "0.0.1"
|
|
63850
|
+
}
|
|
63851
|
+
},
|
|
63852
|
+
"himi_owner_lite_widget_today_medium": {
|
|
63853
|
+
"screenId": "himi_owner_lite_widget_today_medium",
|
|
63854
|
+
"renderer": "sdui_intent",
|
|
63855
|
+
"title": "Today widget (medium)",
|
|
63856
|
+
"schemaVersion": 1,
|
|
63857
|
+
"cacheControl": {
|
|
63858
|
+
"maxAge": 0,
|
|
63859
|
+
"staleWhileRevalidate": 0
|
|
63860
|
+
},
|
|
63861
|
+
"telemetryScreenName": "himi_owner_lite_widget_today_medium",
|
|
63862
|
+
"payload": {
|
|
63863
|
+
"id": "himi_owner_lite_widget_today_medium.root",
|
|
63864
|
+
"body": {
|
|
63865
|
+
"package": "himalaya",
|
|
63866
|
+
"type": "VStack",
|
|
63867
|
+
"props": {
|
|
63868
|
+
"spacing": 6,
|
|
63869
|
+
"alignment": "leading",
|
|
63870
|
+
"children": [
|
|
63871
|
+
{
|
|
63872
|
+
"id": "owner_widget.medium.header_row",
|
|
63873
|
+
"body": {
|
|
63874
|
+
"package": "himalaya",
|
|
63875
|
+
"type": "HStack",
|
|
63876
|
+
"props": {
|
|
63877
|
+
"spacing": 4,
|
|
63878
|
+
"children": [
|
|
63879
|
+
{
|
|
63880
|
+
"id": "owner_widget.medium.icon",
|
|
63881
|
+
"body": {
|
|
63882
|
+
"package": "himalaya",
|
|
63883
|
+
"type": "Icon",
|
|
63884
|
+
"props": {
|
|
63885
|
+
"name": "calendar",
|
|
63886
|
+
"size": 12,
|
|
63887
|
+
"tint": "accentPrimary"
|
|
63888
|
+
}
|
|
63889
|
+
},
|
|
63890
|
+
"modifiers": {
|
|
63891
|
+
"accessibilityRole": "decorative"
|
|
63892
|
+
}
|
|
63893
|
+
},
|
|
63894
|
+
{
|
|
63895
|
+
"id": "owner_widget.medium.header",
|
|
63896
|
+
"body": {
|
|
63897
|
+
"package": "himalaya",
|
|
63898
|
+
"type": "Text",
|
|
63899
|
+
"props": {
|
|
63900
|
+
"text": "$service:ownerToday.header",
|
|
63901
|
+
"style": "caption",
|
|
63902
|
+
"color": "textSecondary",
|
|
63903
|
+
"maxLines": 1
|
|
63904
|
+
}
|
|
63905
|
+
}
|
|
63906
|
+
}
|
|
63907
|
+
]
|
|
63908
|
+
}
|
|
63909
|
+
}
|
|
63910
|
+
},
|
|
63911
|
+
{
|
|
63912
|
+
"id": "owner_widget.medium.message",
|
|
63913
|
+
"body": {
|
|
63914
|
+
"package": "himalaya",
|
|
63915
|
+
"type": "Text",
|
|
63916
|
+
"props": {
|
|
63917
|
+
"text": "$service:ownerToday.message",
|
|
63918
|
+
"style": "footnote",
|
|
63919
|
+
"color": "textSecondary",
|
|
63920
|
+
"maxLines": 3
|
|
63921
|
+
}
|
|
63922
|
+
},
|
|
63923
|
+
"modifiers": {
|
|
63924
|
+
"hiddenPath": "$service:ownerToday.hideMessage"
|
|
63925
|
+
}
|
|
63926
|
+
},
|
|
63927
|
+
{
|
|
63928
|
+
"id": "owner_widget.medium.spacer",
|
|
63929
|
+
"body": {
|
|
63930
|
+
"package": "himalaya",
|
|
63931
|
+
"type": "Spacer",
|
|
63932
|
+
"props": {}
|
|
63933
|
+
}
|
|
63934
|
+
},
|
|
63935
|
+
{
|
|
63936
|
+
"id": "owner_widget.medium.divider",
|
|
63937
|
+
"body": {
|
|
63938
|
+
"package": "himalaya",
|
|
63939
|
+
"type": "Divider",
|
|
63940
|
+
"props": {}
|
|
63941
|
+
},
|
|
63942
|
+
"modifiers": {
|
|
63943
|
+
"hiddenPath": "$service:ownerToday.message"
|
|
63944
|
+
}
|
|
63945
|
+
},
|
|
63946
|
+
{
|
|
63947
|
+
"id": "owner_widget.medium.counts",
|
|
63948
|
+
"body": {
|
|
63949
|
+
"package": "himalaya",
|
|
63950
|
+
"type": "HStack",
|
|
63951
|
+
"props": {
|
|
63952
|
+
"spacing": 8,
|
|
63953
|
+
"children": [
|
|
63954
|
+
{
|
|
63955
|
+
"id": "owner_widget.medium.counts_spacer",
|
|
63956
|
+
"body": {
|
|
63957
|
+
"package": "himalaya",
|
|
63958
|
+
"type": "Spacer",
|
|
63959
|
+
"props": {}
|
|
63960
|
+
}
|
|
63961
|
+
},
|
|
63962
|
+
{
|
|
63963
|
+
"id": "owner_widget.medium.orders_row",
|
|
63964
|
+
"body": {
|
|
63965
|
+
"package": "himalaya",
|
|
63966
|
+
"type": "HStack",
|
|
63967
|
+
"props": {
|
|
63968
|
+
"spacing": 4,
|
|
63969
|
+
"children": [
|
|
63970
|
+
{
|
|
63971
|
+
"id": "owner_widget.medium.orders_icon",
|
|
63972
|
+
"body": {
|
|
63973
|
+
"package": "himalaya",
|
|
63974
|
+
"type": "Icon",
|
|
63975
|
+
"props": {
|
|
63976
|
+
"name": "bag",
|
|
63977
|
+
"size": 12,
|
|
63978
|
+
"tint": "accentPrimary"
|
|
63979
|
+
}
|
|
63980
|
+
},
|
|
63981
|
+
"modifiers": {
|
|
63982
|
+
"accessibilityRole": "decorative"
|
|
63983
|
+
}
|
|
63984
|
+
},
|
|
63985
|
+
{
|
|
63986
|
+
"id": "owner_widget.medium.orders",
|
|
63987
|
+
"body": {
|
|
63988
|
+
"package": "himalaya",
|
|
63989
|
+
"type": "Text",
|
|
63990
|
+
"props": {
|
|
63991
|
+
"text": "$service:ownerToday.orderLabel",
|
|
63992
|
+
"style": "footnote",
|
|
63993
|
+
"maxLines": 1
|
|
63994
|
+
}
|
|
63995
|
+
}
|
|
63996
|
+
}
|
|
63997
|
+
]
|
|
63998
|
+
}
|
|
63999
|
+
},
|
|
64000
|
+
"modifiers": {
|
|
64001
|
+
"hiddenPath": "$service:ownerToday.hideOrders"
|
|
64002
|
+
}
|
|
64003
|
+
}
|
|
64004
|
+
]
|
|
64005
|
+
}
|
|
64006
|
+
},
|
|
64007
|
+
"modifiers": {
|
|
64008
|
+
"hiddenPath": "$service:ownerToday.message"
|
|
64009
|
+
}
|
|
64010
|
+
}
|
|
64011
|
+
]
|
|
64012
|
+
}
|
|
64013
|
+
}
|
|
64014
|
+
},
|
|
64015
|
+
"input": {
|
|
64016
|
+
"verticals": "store"
|
|
64017
|
+
},
|
|
64018
|
+
"logicBundle": {
|
|
64019
|
+
"url": "http://localhost:8190/v1/bundles/himi-owner-lite-today",
|
|
64020
|
+
"integrity": "",
|
|
64021
|
+
"contentType": "application/javascript+ts-bundle",
|
|
64022
|
+
"declaredCapabilities": [
|
|
64023
|
+
"wix_api"
|
|
64024
|
+
],
|
|
64025
|
+
"minBinaryVersion": "0.1.0",
|
|
64026
|
+
"bundleVersion": "0.0.1"
|
|
64027
|
+
}
|
|
64028
|
+
},
|
|
63812
64029
|
"himi_owner_lite_wrist_home": {
|
|
63813
64030
|
"screenId": "himi_owner_lite_wrist_home",
|
|
63814
64031
|
"renderer": "sdui_intent",
|
|
@@ -172,6 +172,12 @@
|
|
|
172
172
|
"himi_owner_lite_sites": {
|
|
173
173
|
"displayName": "Sites"
|
|
174
174
|
},
|
|
175
|
+
"himi_owner_lite_widget_today_medium": {
|
|
176
|
+
"displayName": "Today widget (medium)"
|
|
177
|
+
},
|
|
178
|
+
"himi_owner_lite_widget_today_small": {
|
|
179
|
+
"displayName": "Today widget (small)"
|
|
180
|
+
},
|
|
175
181
|
"himi_owner_lite_wrist_home": {
|
|
176
182
|
"displayName": "Next up"
|
|
177
183
|
},
|
|
@@ -15,10 +15,13 @@ export interface AccountState {
|
|
|
15
15
|
supportUrl: string;
|
|
16
16
|
privacyUrl: string;
|
|
17
17
|
termsUrl: string;
|
|
18
|
+
/** Wix's own account-deletion destination (App Store 5.1.1(v)). */
|
|
19
|
+
deleteAccountUrl: string;
|
|
18
20
|
/** hiddenPath flags — TRUE hides, so each is phrased negatively. */
|
|
19
21
|
noSupport: boolean;
|
|
20
22
|
noPrivacy: boolean;
|
|
21
23
|
noTerms: boolean;
|
|
24
|
+
noDeleteAccount: boolean;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
/** Only absolute http(s) URLs are openable; anything else is treated as absent. */
|
|
@@ -37,13 +40,14 @@ export function ownerLineOf(name: string, email: string): string {
|
|
|
37
40
|
|
|
38
41
|
export function shapeAccount(s: Partial<AccountState>): AccountState {
|
|
39
42
|
const supportUrl = safeUrl(s.supportUrl), privacyUrl = safeUrl(s.privacyUrl), termsUrl = safeUrl(s.termsUrl);
|
|
43
|
+
const deleteAccountUrl = safeUrl(s.deleteAccountUrl);
|
|
40
44
|
return {
|
|
41
45
|
status: s.status ?? "loading",
|
|
42
46
|
businessName: s.businessName ?? "",
|
|
43
47
|
ownerLine: s.ownerLine ?? "",
|
|
44
48
|
versionLine: s.versionLine ?? "",
|
|
45
49
|
error: s.error ?? "",
|
|
46
|
-
supportUrl, privacyUrl, termsUrl,
|
|
47
|
-
noSupport: !supportUrl, noPrivacy: !privacyUrl, noTerms: !termsUrl,
|
|
50
|
+
supportUrl, privacyUrl, termsUrl, deleteAccountUrl,
|
|
51
|
+
noSupport: !supportUrl, noPrivacy: !privacyUrl, noTerms: !termsUrl, noDeleteAccount: !deleteAccountUrl,
|
|
48
52
|
};
|
|
49
53
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Accept / Decline ONE booking request — the write shared by the two __HIMI_APP_NAME__ surfaces that
|
|
2
|
+
// answer a request without opening the booking screen: the paired watch (`himi-owner-lite-wrist`)
|
|
3
|
+
// and the notification's action buttons (`himi-owner-lite-nav`).
|
|
4
|
+
//
|
|
5
|
+
// Both follow the same rules:
|
|
6
|
+
// • the press names the business it was shown for, and is REFUSED unless that is the business
|
|
7
|
+
// the phone has active — a site switched between delivery and press must never confirm
|
|
8
|
+
// another business's booking;
|
|
9
|
+
// • the write itself is addressed at that business (`wix-site-id`), so even a switch that lands
|
|
10
|
+
// between the check and the request cannot move it;
|
|
11
|
+
// • only a request still pending is written, at the revision Wix last reported.
|
|
12
|
+
|
|
13
|
+
import { getBooking, confirmBooking, declineBooking } from "@himalaya/wix-bookings";
|
|
14
|
+
|
|
15
|
+
type Rec = Record<string, unknown>;
|
|
16
|
+
|
|
17
|
+
/** The statuses that are waiting on the owner. */
|
|
18
|
+
export const PENDING_BOOKING_STATUSES: ReadonlySet<string> = new Set(["PENDING", "PENDING_APPROVAL", "WAITING_LIST"]);
|
|
19
|
+
|
|
20
|
+
export type BookingResponse = "confirm" | "decline";
|
|
21
|
+
|
|
22
|
+
/** A press may write only for the business the phone has active. Fails CLOSED: a press that
|
|
23
|
+
* names no business, or a host that cannot say which one is active, writes nothing. */
|
|
24
|
+
export function isForActiveBusiness(siteId: string, activeSiteId: string): boolean {
|
|
25
|
+
return !!siteId && !!activeSiteId && siteId === activeSiteId;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Wix refused the write because the booking moved on (another revision, already handled). */
|
|
29
|
+
export function isStaleBookingWrite(e: unknown): boolean {
|
|
30
|
+
return /revision|\b409\b|ABORTED|conflict/i.test(String((e as Error)?.message ?? e));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Confirm or decline `bookingId` at `revision`, addressed at `siteId`. Rejects without a
|
|
34
|
+
* request when `siteId` is empty: an unaddressed write would land on whatever business the
|
|
35
|
+
* ambient bridge is scoped to. */
|
|
36
|
+
export function writeBookingResponse(kind: BookingResponse, bookingId: string, revision: string, siteId: string): Promise<unknown> {
|
|
37
|
+
const site = siteId.trim();
|
|
38
|
+
if (!site) return Promise.reject(new Error("writeBookingResponse: a booking write must name its business"));
|
|
39
|
+
const opts = { site };
|
|
40
|
+
return kind === "confirm" ? confirmBooking(bookingId, revision, opts) : declineBooking(bookingId, revision, false, opts);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type BookingResponseOutcome =
|
|
44
|
+
| "confirmed" | "declined"
|
|
45
|
+
/** Not written: no booking id, or a press for a business other than the active one. */
|
|
46
|
+
| "refused"
|
|
47
|
+
/** Not written: the booking is no longer waiting on the owner (or no longer exists). */
|
|
48
|
+
| "notPending"
|
|
49
|
+
/** Not written: Wix reported a newer revision between the read and the write. */
|
|
50
|
+
| "stale"
|
|
51
|
+
/** Not written: the read or the write failed. */
|
|
52
|
+
| "failed";
|
|
53
|
+
|
|
54
|
+
function str(r: Rec | undefined, key: string): string {
|
|
55
|
+
const v = r?.[key];
|
|
56
|
+
return typeof v === "string" ? v : typeof v === "number" ? String(v) : "";
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Answer a request known only by id — a notification carries no revision, so the booking is
|
|
60
|
+
* read first (from the business the press names) and written only while it is still pending. */
|
|
61
|
+
export async function respondToBookingById(
|
|
62
|
+
kind: BookingResponse,
|
|
63
|
+
bookingId: string,
|
|
64
|
+
siteId: string,
|
|
65
|
+
activeSiteId: string,
|
|
66
|
+
): Promise<BookingResponseOutcome> {
|
|
67
|
+
if (!bookingId || !isForActiveBusiness(siteId, activeSiteId)) return "refused";
|
|
68
|
+
let booking: Rec | undefined;
|
|
69
|
+
try {
|
|
70
|
+
booking = ((await getBooking(bookingId, { site: siteId })) as unknown as { booking?: Rec } | undefined)?.booking;
|
|
71
|
+
} catch {
|
|
72
|
+
return "failed";
|
|
73
|
+
}
|
|
74
|
+
const revision = str(booking, "revision");
|
|
75
|
+
if (!booking || !revision || !PENDING_BOOKING_STATUSES.has(str(booking, "status"))) return "notPending";
|
|
76
|
+
try {
|
|
77
|
+
await writeBookingResponse(kind, bookingId, revision, siteId);
|
|
78
|
+
} catch (e) {
|
|
79
|
+
return isStaleBookingWrite(e) ? "stale" : "failed";
|
|
80
|
+
}
|
|
81
|
+
return kind === "confirm" ? "confirmed" : "declined";
|
|
82
|
+
}
|