@wix/himalaya-cli 0.1391.0 → 0.1393.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 +31 -23
- package/dist/preview-assets.generated.bin +0 -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
|
@@ -20,10 +20,9 @@ export function isOwnerPreviewLive(): boolean {
|
|
|
20
20
|
*
|
|
21
21
|
* `isBridgeUnavailable` cannot answer this: it reads "not live" as "preview",
|
|
22
22
|
* and on NATIVE there is no input at all, so `undefined` satisfies it. That is
|
|
23
|
-
*
|
|
24
|
-
* write
|
|
25
|
-
*
|
|
26
|
-
* their failures the same way (`"HTTP \(code): \(body)"`, JSWorker.swift;
|
|
23
|
+
* left alone for the other apps that use it to pick a demo fallback or to queue
|
|
24
|
+
* a write. Owner-lite reads ask `ownerDemoFallback` instead. It is NOT
|
|
25
|
+
* harmless for choosing COPY: native workers format their failures the same way (`"HTTP \(code): \(body)"`, JSWorker.swift;
|
|
27
26
|
* `"HTTP ${e.code}: ..."`, WebViewJSWorker.kt), so a transient `HTTP 503` on a
|
|
28
27
|
* phone would otherwise be answered with "open this app on a device" — on the
|
|
29
28
|
* device. Callers that pick a SENTENCE ask this instead.
|
|
@@ -43,11 +42,89 @@ export function isBridgeUnavailable(e: unknown): boolean {
|
|
|
43
42
|
return /HTTP (405|501|502|503)\b/.test(String((e as Error)?.message ?? e));
|
|
44
43
|
}
|
|
45
44
|
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Whether a failed owner-lite READ may answer with the built-in demo records.
|
|
47
|
+
*
|
|
48
|
+
* Only where a demo was asked for: a web preview host that is not live. On a phone no
|
|
49
|
+
* mode is injected, so `isBridgeUnavailable` alone is `true` for a transient Wix
|
|
50
|
+
* `HTTP 503` — and the owner was shown sample appointments, orders and sites as if
|
|
51
|
+
* they were their business. Native falls through to the screen's error state.
|
|
52
|
+
* `isBridgeUnavailable` keeps its semantics: other apps' callers depend on it.
|
|
53
|
+
*/
|
|
54
|
+
export function ownerDemoFallback(e: unknown): boolean {
|
|
55
|
+
return isOwnerPreviewHost() && !isOwnerPreviewLive() && isBridgeUnavailable(e);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The sentence for an owner WRITE that failed because the device could not reach Wix at
|
|
60
|
+
* all (a transport failure). Nothing replays a queued write on any platform — every host's
|
|
61
|
+
* `drain` passes an empty closure — so the honest answer is that nothing was saved.
|
|
62
|
+
* Copy-as-configuration under `ownerCommon.`, which every owner screen forwards.
|
|
63
|
+
*/
|
|
64
|
+
export function ownerOfflineNotSaved(): string {
|
|
65
|
+
return copyParam(
|
|
66
|
+
"ownerCommon.offlineNotSaved",
|
|
67
|
+
"You’re offline — nothing was saved. Try again when you reconnect.",
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** The sentence for an owner WRITE that Wix answered with an unavailable status: the
|
|
72
|
+
* device is online, so it is not "offline" — but nothing was saved all the same. */
|
|
73
|
+
/**
|
|
74
|
+
* Whether a failed WRITE may have landed on Wix anyway, so the user must not be told it
|
|
75
|
+
* was not saved: a transport failure mid-request (timeout, reset, fetch rejection), the web
|
|
76
|
+
* host's after-send envelope (`HTTP 502 {…"sent":true}`), the serve bridge's mid-request
|
|
77
|
+
* `webwix_bridge_upstream_failed`, or a gateway status (502/503/504) that can arrive after
|
|
78
|
+
* the backend already ran. Only connect-time failures (`isOfflineFailure`) and the designed
|
|
79
|
+
* 405/501 bridge refusals prove nothing happened.
|
|
80
|
+
*/
|
|
81
|
+
export function writeMayHaveLanded(e: unknown): boolean {
|
|
82
|
+
if (isOfflineFailure(e)) return false;
|
|
83
|
+
if (isTransportFailure(e)) return true;
|
|
84
|
+
const msg = String((e as Error)?.message ?? e ?? "");
|
|
85
|
+
if (/"sent"\s*:\s*true/.test(msg)) return true;
|
|
86
|
+
// The web host's own envelope WITHOUT `sent: true` failed before the request left it, and
|
|
87
|
+
// a disabled owner rung / bridge refuses by design without sending anything.
|
|
88
|
+
if (/\bwebwix_(?:direct_failed|owner_disabled|bridge_disabled)\b/.test(msg)) return false;
|
|
89
|
+
// `webwix_bridge_upstream_failed` stays ambiguous: the same code covers a lookup that failed
|
|
90
|
+
// before sending and a serve-bridge failure mid-request, and nothing in it says which.
|
|
91
|
+
return /\bwebwix_bridge_upstream_failed\b/.test(msg) || /HTTP (502|503|504)\b/.test(msg);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** Wix answered that the record does not exist (`HTTP 404`). A detail must not fall back to
|
|
95
|
+
* its cached row then: that row is what a delete whose reply was lost leaves behind. */
|
|
96
|
+
export function isNotFound(e: unknown): boolean {
|
|
97
|
+
if (/HTTP 404\b/.test(String((e as Error)?.message ?? e ?? ""))) return true;
|
|
98
|
+
// An SDK that answers a 404 with its own "not found" error keeps the HTTP one as `cause`
|
|
99
|
+
// (the blog SDK's getPost, after its query fallback also finds nothing).
|
|
100
|
+
const cause = (e as { cause?: unknown } | null | undefined)?.cause;
|
|
101
|
+
return cause !== undefined && cause !== e && /HTTP 404\b/.test(String((cause as Error)?.message ?? cause));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function ownerUnavailableNotSaved(): string {
|
|
105
|
+
return copyParam(
|
|
106
|
+
"ownerCommon.unavailableNotSaved",
|
|
107
|
+
"Wix isn’t available right now — nothing was saved. Try again in a moment.",
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** The sentence for an owner WRITE that may have landed (`writeMayHaveLanded`): it can't
|
|
112
|
+
* be called saved or not saved. */
|
|
113
|
+
export function ownerWriteUnconfirmed(): string {
|
|
114
|
+
return copyParam(
|
|
115
|
+
"ownerCommon.writeUnconfirmed",
|
|
116
|
+
"Wix didn’t confirm this, so it may or may not have been saved. Check before trying again.",
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** Display copy for a failed owner write: `ownerOfflineNotSaved` when the request never
|
|
121
|
+
* left the device, `ownerWriteUnconfirmed` when it may have landed, `ownerUnavailableNotSaved`
|
|
122
|
+
* for the designed 405/501 bridge refusals outside a live preview, else `ownerLoadError`. */
|
|
123
|
+
export function ownerWriteError(e: unknown): string {
|
|
124
|
+
if (isOfflineFailure(e)) return ownerOfflineNotSaved();
|
|
125
|
+
if (writeMayHaveLanded(e)) return ownerWriteUnconfirmed();
|
|
126
|
+
if (!isOwnerPreviewLive() && /HTTP (405|501)\b/.test(String((e as Error)?.message ?? e))) return ownerUnavailableNotSaved();
|
|
127
|
+
return ownerLoadError(e);
|
|
51
128
|
}
|
|
52
129
|
|
|
53
130
|
/** `HTTP 403: …` → "403", when the message carries a status at all. */
|
|
@@ -99,6 +176,10 @@ const TRANSPORT = [
|
|
|
99
176
|
/^Failed to connect to \S/,
|
|
100
177
|
/^Unable to resolve host\b/,
|
|
101
178
|
/\b(?:Connection refused|Network is unreachable|Software caused connection abort)\b/,
|
|
179
|
+
// OkHttp / HttpURLConnection messages a dropped connection produces mid-request, which
|
|
180
|
+
// Android's bridge forwards without the exception class.
|
|
181
|
+
/\b(?:Connection reset|ECONNRESET|ETIMEDOUT|EPIPE|Broken pipe|stream was reset)\b/,
|
|
182
|
+
/^unexpected end of stream\b/i,
|
|
102
183
|
/^(?:timeout|Read timed out|connect timed out)$/i,
|
|
103
184
|
/\bFailed to fetch\b/,
|
|
104
185
|
/\bNetworkError when attempting to fetch\b/,
|
|
@@ -113,6 +194,27 @@ export function isTransportFailure(e: unknown): boolean {
|
|
|
113
194
|
return TRANSPORT.some((re) => re.test(msg));
|
|
114
195
|
}
|
|
115
196
|
|
|
197
|
+
/** Transport failures that happen while CONNECTING — no connection, no route, no such host,
|
|
198
|
+
* connection refused — so the request provably never left the device. Every other
|
|
199
|
+
* transport failure (a timeout, a reset, a bad or truncated response, a browser's fetch
|
|
200
|
+
* rejection, which says nothing about when it failed) may come after Wix took the write. */
|
|
201
|
+
const NEVER_SENT = [
|
|
202
|
+
/\bNSURLErrorDomain Code=-10(?:09|04|03|06|20|18)\b/, // not connected / cannot connect / no host / DNS / data not allowed / roaming off
|
|
203
|
+
/\b(?:UnknownHost|Connect|NoRouteToHost)Exception\b/,
|
|
204
|
+
/^Failed to connect to \S/,
|
|
205
|
+
/^Unable to resolve host\b/,
|
|
206
|
+
/\b(?:Connection refused|Network is unreachable)\b/,
|
|
207
|
+
/\bnet::ERR_(?:INTERNET_DISCONNECTED|NAME_NOT_RESOLVED|CONNECTION_REFUSED|ADDRESS_UNREACHABLE|NETWORK_ACCESS_DENIED)\b/,
|
|
208
|
+
];
|
|
209
|
+
|
|
210
|
+
/** No HTTP answer, and the request provably never left the device: the user is offline, and
|
|
211
|
+
* a write certainly did not happen. Anything else may have landed (see `NEVER_SENT`). */
|
|
212
|
+
export function isOfflineFailure(e: unknown): boolean {
|
|
213
|
+
if (!isTransportFailure(e)) return false;
|
|
214
|
+
const msg = String((e as Error)?.message ?? e ?? "");
|
|
215
|
+
return NEVER_SENT.some((re) => re.test(msg));
|
|
216
|
+
}
|
|
217
|
+
|
|
116
218
|
/** The one sentence for a transport failure. Copy-as-configuration: the key is
|
|
117
219
|
* under `ownerCommon.`, which every owner screen (Aria included) forwards. */
|
|
118
220
|
export function ownerTransportFailureText(): string {
|
|
@@ -194,8 +296,8 @@ export function ownerPreviewUnavailable(): string {
|
|
|
194
296
|
* error says: this names the web preview when there IS one. `isBridgeUnavailable`
|
|
195
297
|
* reads "not live" as "preview", and native injects no mode at all, so the
|
|
196
298
|
* default would answer a device-side `HTTP 503` with "open this app on a device"
|
|
197
|
-
* — on the device. That predicate is deliberately left alone:
|
|
198
|
-
* write-
|
|
299
|
+
* — on the device. That predicate is deliberately left alone: other apps'
|
|
300
|
+
* demo and write-queue decisions depend on exactly it.
|
|
199
301
|
*
|
|
200
302
|
* The reductions this used to add are now in `humanWireError`, so every owner
|
|
201
303
|
* screen gets them rather than the two that happened to call this.
|
|
@@ -232,6 +334,7 @@ export function ownerDisplayError(e: unknown): string {
|
|
|
232
334
|
*/
|
|
233
335
|
export function ownerLoadError(e: unknown): string {
|
|
234
336
|
const msg = String((e as Error)?.message ?? e);
|
|
235
|
-
|
|
337
|
+
// Same host guard as `ownerDisplayError`: on a phone, "open this app on a device" is false.
|
|
338
|
+
if (isOwnerPreviewHost() && isBridgeUnavailable(e)) return ownerPreviewUnavailable();
|
|
236
339
|
return humanWireError(msg);
|
|
237
340
|
}
|
|
@@ -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": "Creator",
|
|
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\":\"Creator\",\"ownerAccount.subtitle\":\"Show owner\"}"
|
|
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
|
}
|