@wix/himalaya-cli 0.1035.0 → 0.1037.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +7 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/events/src/display.d.ts +13 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/portfolio/src/index.d.ts +46 -9
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-events.mjs +28 -6
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-portfolio.mjs +14 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores-collections.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +7 -1
- package/dist/cli.mjs +482 -113
- package/dist/preview-assets.generated.bin +0 -0
- package/fixtures/wix-canned.json +51 -2
- package/guides/sdk-reference.json +32 -14
- package/guides/wix-business-context.md +13 -1
- package/guides/wix-site-to-himi-app.md +10 -1
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +72 -175
- package/templates/beauty-salon/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/beauty-salon/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/beauty-salon/tier5-src/_shared/himi-restaurants.ts +4 -4
- package/templates/beauty-salon/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/beauty-salon/tier5-src/_shared/wix-service-price.ts +1 -1
- package/templates/beauty-salon/tier5-src/himi-booking-bookings/index.ts +14 -8
- package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +12 -1
- package/templates/beauty-salon/tier5-src/himi-branded-lite-info/index.ts +5 -2
- package/templates/beauty-salon/tier5-src/himi-branded-lite-plans/index.ts +1 -1
- package/templates/beauty-salon/tier5-src/wix-spaces-collections/index.ts +1 -1
- package/templates/beauty-salon/tier5-src/wix-spaces-whats-new/index.ts +4 -4
- package/templates/beauty-salon-owner/dev/index.ts +84 -599
- package/templates/beauty-salon-owner/tier5-src/_shared/aria-chat.ts +22 -6
- package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/beauty-salon-owner/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-module-data.ts +2 -2
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-appointments/index.ts +4 -1
- package/templates/branded-lite/dev/index.ts +178 -264
- package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/branded-lite/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/branded-lite/tier5-src/_shared/himi-restaurants.ts +4 -4
- package/templates/branded-lite/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/branded-lite/tier5-src/_shared/wix-service-price.ts +1 -1
- package/templates/branded-lite/tier5-src/himi-booking-bookings/index.ts +14 -8
- package/templates/branded-lite/tier5-src/himi-branded-lite-cms/index.ts +5 -5
- package/templates/branded-lite/tier5-src/himi-branded-lite-coupons/index.ts +33 -7
- package/templates/branded-lite/tier5-src/himi-branded-lite-donations/index.ts +3 -3
- package/templates/branded-lite/tier5-src/himi-branded-lite-forms/index.ts +11 -10
- package/templates/branded-lite/tier5-src/himi-branded-lite-giftcards/index.ts +3 -3
- package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +12 -1
- package/templates/branded-lite/tier5-src/himi-branded-lite-info/index.ts +5 -2
- package/templates/branded-lite/tier5-src/himi-branded-lite-invoices/index.ts +3 -3
- package/templates/branded-lite/tier5-src/himi-branded-lite-loyalty/index.ts +1 -1
- package/templates/branded-lite/tier5-src/himi-branded-lite-plans/index.ts +1 -1
- package/templates/branded-lite/tier5-src/himi-branded-lite-portfolio/index.ts +2 -2
- package/templates/branded-lite/tier5-src/himi-branded-lite-portfolio-project/index.ts +3 -3
- package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +1 -1
- package/templates/branded-lite/tier5-src/himi-branded-lite-reserve/index.ts +5 -3
- package/templates/branded-lite/tier5-src/himi-events-detail/index.ts +1 -1
- package/templates/branded-lite/tier5-src/himi-events-list/index.ts +20 -4
- package/templates/branded-lite/tier5-src/himi-events-my-events/index.ts +2 -2
- package/templates/branded-lite/tier5-src/wix-spaces-collections/index.ts +1 -1
- package/templates/branded-lite/tier5-src/wix-spaces-forum/index.ts +7 -1
- package/templates/branded-lite/tier5-src/wix-spaces-whats-new/index.ts +4 -4
- package/templates/community-club/dev/index.ts +62 -81
- package/templates/community-club/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/community-club/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/community-club/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/community-club/tier5-src/_shared/himi-restaurants.ts +4 -4
- package/templates/community-club/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/community-club/tier5-src/_shared/wix-service-price.ts +1 -1
- package/templates/community-club/tier5-src/himi-branded-lite-cms/index.ts +5 -5
- package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +12 -1
- package/templates/community-club/tier5-src/himi-branded-lite-info/index.ts +5 -2
- package/templates/community-club/tier5-src/himi-events-detail/index.ts +1 -1
- package/templates/community-club/tier5-src/himi-events-list/index.ts +20 -4
- package/templates/community-club/tier5-src/himi-events-my-events/index.ts +2 -2
- package/templates/community-club/tier5-src/wix-spaces-whats-new/index.ts +4 -4
- package/templates/community-club-owner/dev/index.ts +84 -599
- package/templates/community-club-owner/tier5-src/_shared/aria-chat.ts +22 -6
- package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/community-club-owner/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-module-data.ts +2 -2
- package/templates/community-club-owner/tier5-src/himi-owner-lite-events/index.ts +1 -0
- package/templates/events-meetups/dev/index.ts +60 -79
- package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/events-meetups/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/events-meetups/tier5-src/_shared/himi-restaurants.ts +4 -4
- package/templates/events-meetups/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/events-meetups/tier5-src/_shared/wix-service-price.ts +1 -1
- package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +12 -1
- package/templates/events-meetups/tier5-src/himi-branded-lite-info/index.ts +5 -2
- package/templates/events-meetups/tier5-src/himi-events-detail/index.ts +1 -1
- package/templates/events-meetups/tier5-src/himi-events-list/index.ts +20 -4
- package/templates/events-meetups/tier5-src/himi-events-my-events/index.ts +2 -2
- package/templates/events-meetups/tier5-src/wix-spaces-whats-new/index.ts +4 -4
- package/templates/events-meetups-owner/dev/index.ts +84 -543
- package/templates/events-meetups-owner/tier5-src/_shared/aria-chat.ts +22 -6
- package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/events-meetups-owner/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-module-data.ts +2 -2
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-events/index.ts +1 -0
- package/templates/gym-fitness/dev/index.ts +73 -204
- package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/gym-fitness/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/gym-fitness/tier5-src/_shared/himi-restaurants.ts +4 -4
- package/templates/gym-fitness/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/gym-fitness/tier5-src/_shared/wix-service-price.ts +1 -1
- package/templates/gym-fitness/tier5-src/himi-booking-bookings/index.ts +14 -8
- package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +12 -1
- package/templates/gym-fitness/tier5-src/himi-branded-lite-info/index.ts +5 -2
- package/templates/gym-fitness/tier5-src/himi-branded-lite-plans/index.ts +1 -1
- package/templates/gym-fitness/tier5-src/himi-events-detail/index.ts +1 -1
- package/templates/gym-fitness/tier5-src/himi-events-list/index.ts +20 -4
- package/templates/gym-fitness/tier5-src/himi-events-my-events/index.ts +2 -2
- package/templates/gym-fitness/tier5-src/wix-spaces-collections/index.ts +1 -1
- package/templates/gym-fitness/tier5-src/wix-spaces-whats-new/index.ts +4 -4
- package/templates/gym-fitness-owner/dev/index.ts +84 -627
- package/templates/gym-fitness-owner/tier5-src/_shared/aria-chat.ts +22 -6
- package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/gym-fitness-owner/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-module-data.ts +2 -2
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-appointments/index.ts +4 -1
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-events/index.ts +1 -0
- package/templates/himi-chat/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/nonprofit-cause/dev/index.ts +71 -90
- package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/nonprofit-cause/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/nonprofit-cause/tier5-src/_shared/himi-restaurants.ts +4 -4
- package/templates/nonprofit-cause/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/nonprofit-cause/tier5-src/_shared/wix-service-price.ts +1 -1
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +12 -1
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-info/index.ts +5 -2
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-plans/index.ts +1 -1
- package/templates/nonprofit-cause/tier5-src/himi-events-detail/index.ts +1 -1
- package/templates/nonprofit-cause/tier5-src/himi-events-list/index.ts +20 -4
- package/templates/nonprofit-cause/tier5-src/himi-events-my-events/index.ts +2 -2
- package/templates/nonprofit-cause/tier5-src/wix-spaces-whats-new/index.ts +4 -4
- package/templates/nonprofit-cause-owner/dev/index.ts +84 -571
- package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-chat.ts +22 -6
- package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-module-data.ts +2 -2
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-appointments/index.ts +4 -1
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-events/index.ts +1 -0
- package/templates/owner-lite/dev/index.ts +84 -627
- package/templates/owner-lite/tier5-src/_shared/aria-chat.ts +22 -6
- package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/owner-lite/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/owner-lite/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/owner-lite/tier5-src/_shared/owner-module-data.ts +2 -2
- package/templates/owner-lite/tier5-src/himi-owner-lite-appointments/index.ts +4 -1
- package/templates/owner-lite/tier5-src/himi-owner-lite-events/index.ts +1 -0
- package/templates/podcast-creator/dev/index.ts +71 -90
- package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/podcast-creator/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/podcast-creator/tier5-src/_shared/himi-restaurants.ts +4 -4
- package/templates/podcast-creator/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/podcast-creator/tier5-src/_shared/wix-service-price.ts +1 -1
- package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +12 -1
- package/templates/podcast-creator/tier5-src/himi-branded-lite-info/index.ts +5 -2
- package/templates/podcast-creator/tier5-src/himi-branded-lite-plans/index.ts +1 -1
- package/templates/podcast-creator/tier5-src/himi-events-detail/index.ts +1 -1
- package/templates/podcast-creator/tier5-src/himi-events-list/index.ts +20 -4
- package/templates/podcast-creator/tier5-src/himi-events-my-events/index.ts +2 -2
- package/templates/podcast-creator/tier5-src/wix-spaces-whats-new/index.ts +4 -4
- package/templates/podcast-creator-owner/dev/index.ts +84 -599
- package/templates/podcast-creator-owner/tier5-src/_shared/aria-chat.ts +22 -6
- package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/podcast-creator-owner/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-module-data.ts +2 -2
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-events/index.ts +1 -0
- package/templates/portfolio-creative/dev/index.ts +62 -137
- package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/portfolio-creative/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/portfolio-creative/tier5-src/_shared/himi-restaurants.ts +4 -4
- package/templates/portfolio-creative/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/portfolio-creative/tier5-src/_shared/wix-service-price.ts +1 -1
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +12 -1
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-info/index.ts +5 -2
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-portfolio/index.ts +2 -2
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-portfolio-project/index.ts +3 -3
- package/templates/portfolio-creative/tier5-src/himi-events-detail/index.ts +1 -1
- package/templates/portfolio-creative/tier5-src/himi-events-list/index.ts +20 -4
- package/templates/portfolio-creative/tier5-src/himi-events-my-events/index.ts +2 -2
- package/templates/portfolio-creative/tier5-src/wix-spaces-collections/index.ts +1 -1
- package/templates/portfolio-creative/tier5-src/wix-spaces-whats-new/index.ts +4 -4
- package/templates/portfolio-creative-owner/dev/index.ts +84 -599
- package/templates/portfolio-creative-owner/tier5-src/_shared/aria-chat.ts +22 -6
- package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/portfolio-creative-owner/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-module-data.ts +2 -2
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-appointments/index.ts +4 -1
- package/templates/restaurant/dev/index.ts +124 -101
- package/templates/restaurant/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/restaurant/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/restaurant/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/restaurant/tier5-src/_shared/himi-restaurants.ts +4 -4
- package/templates/restaurant/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/restaurant/tier5-src/_shared/wix-service-price.ts +1 -1
- package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +12 -1
- package/templates/restaurant/tier5-src/himi-branded-lite-info/index.ts +5 -2
- package/templates/restaurant/tier5-src/himi-branded-lite-reserve/index.ts +5 -3
- package/templates/restaurant/tier5-src/himi-events-detail/index.ts +1 -1
- package/templates/restaurant/tier5-src/himi-events-list/index.ts +20 -4
- package/templates/restaurant/tier5-src/himi-events-my-events/index.ts +2 -2
- package/templates/restaurant/tier5-src/wix-spaces-whats-new/index.ts +4 -4
- package/templates/restaurant-owner/dev/index.ts +84 -627
- package/templates/restaurant-owner/tier5-src/_shared/aria-chat.ts +22 -6
- package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/restaurant-owner/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-module-data.ts +2 -2
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-appointments/index.ts +4 -1
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-events/index.ts +1 -0
- package/templates/retail-store/dev/index.ts +59 -106
- package/templates/retail-store/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/retail-store/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/retail-store/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/retail-store/tier5-src/_shared/himi-restaurants.ts +4 -4
- package/templates/retail-store/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/retail-store/tier5-src/_shared/wix-service-price.ts +1 -1
- package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +12 -1
- package/templates/retail-store/tier5-src/himi-branded-lite-info/index.ts +5 -2
- package/templates/retail-store/tier5-src/wix-spaces-collections/index.ts +1 -1
- package/templates/retail-store/tier5-src/wix-spaces-whats-new/index.ts +4 -4
- package/templates/retail-store-owner/dev/index.ts +84 -571
- package/templates/retail-store-owner/tier5-src/_shared/aria-chat.ts +22 -6
- package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/retail-store-owner/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-module-data.ts +2 -2
- package/templates/yoga-studio/dev/index.ts +73 -148
- package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/yoga-studio/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/yoga-studio/tier5-src/_shared/himi-restaurants.ts +4 -4
- package/templates/yoga-studio/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/yoga-studio/tier5-src/_shared/wix-service-price.ts +1 -1
- package/templates/yoga-studio/tier5-src/himi-booking-bookings/index.ts +14 -8
- package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +12 -1
- package/templates/yoga-studio/tier5-src/himi-branded-lite-info/index.ts +5 -2
- package/templates/yoga-studio/tier5-src/himi-branded-lite-plans/index.ts +1 -1
- package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +1 -1
- package/templates/yoga-studio/tier5-src/himi-events-detail/index.ts +1 -1
- package/templates/yoga-studio/tier5-src/himi-events-list/index.ts +20 -4
- package/templates/yoga-studio/tier5-src/himi-events-my-events/index.ts +2 -2
- package/templates/yoga-studio/tier5-src/wix-spaces-whats-new/index.ts +4 -4
- package/templates/yoga-studio-owner/dev/index.ts +84 -571
- package/templates/yoga-studio-owner/tier5-src/_shared/aria-chat.ts +22 -6
- package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +16 -9
- package/templates/yoga-studio-owner/tier5-src/_shared/collection-service.ts +19 -5
- package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +51 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-load-error.ts +49 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-module-data.ts +2 -2
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-appointments/index.ts +4 -1
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-events/index.ts +1 -0
|
Binary file
|
package/fixtures/wix-canned.json
CHANGED
|
@@ -1057,20 +1057,69 @@
|
|
|
1057
1057
|
"title": "Roastery Rebuild",
|
|
1058
1058
|
"description": "A 12-week fit-out, start to finish.",
|
|
1059
1059
|
"slug": "roastery-rebuild",
|
|
1060
|
-
"coverImage":
|
|
1060
|
+
"coverImage": {
|
|
1061
|
+
"type": "WIX_MEDIA",
|
|
1062
|
+
"imageInfo": {
|
|
1063
|
+
"id": "example-rebuild.jpg",
|
|
1064
|
+
"url": "https://static.wixstatic.com/media/example-rebuild.jpg",
|
|
1065
|
+
"width": 2752,
|
|
1066
|
+
"height": 1536
|
|
1067
|
+
},
|
|
1068
|
+
"secure": false
|
|
1069
|
+
}
|
|
1061
1070
|
},
|
|
1062
1071
|
{
|
|
1063
1072
|
"id": "proj-0002",
|
|
1064
1073
|
"title": "Harvest Field Notes",
|
|
1065
1074
|
"description": "Photography from the 2026 trip.",
|
|
1066
1075
|
"slug": "harvest-field-notes",
|
|
1067
|
-
"coverImage":
|
|
1076
|
+
"coverImage": {
|
|
1077
|
+
"type": "WIX_MEDIA",
|
|
1078
|
+
"imageInfo": {
|
|
1079
|
+
"id": "example-fieldnotes.jpg",
|
|
1080
|
+
"url": "https://static.wixstatic.com/media/example-fieldnotes.jpg",
|
|
1081
|
+
"width": 1024,
|
|
1082
|
+
"height": 1024
|
|
1083
|
+
},
|
|
1084
|
+
"secure": false
|
|
1085
|
+
}
|
|
1068
1086
|
}
|
|
1069
1087
|
],
|
|
1070
1088
|
"pagingMetadata": {
|
|
1071
1089
|
"count": 2
|
|
1072
1090
|
}
|
|
1073
1091
|
},
|
|
1092
|
+
"POST /portfolio/v1/items/query": {
|
|
1093
|
+
"items": [
|
|
1094
|
+
{
|
|
1095
|
+
"id": "item-0001",
|
|
1096
|
+
"projectId": "proj-0001",
|
|
1097
|
+
"sortOrder": 1,
|
|
1098
|
+
"type": "IMAGE",
|
|
1099
|
+
"title": "The finished bar",
|
|
1100
|
+
"image": {
|
|
1101
|
+
"type": "WIX_MEDIA",
|
|
1102
|
+
"imageInfo": {
|
|
1103
|
+
"id": "example-rebuild-bar.jpg",
|
|
1104
|
+
"url": "https://static.wixstatic.com/media/example-rebuild-bar.jpg",
|
|
1105
|
+
"width": 1600,
|
|
1106
|
+
"height": 1067
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"id": "item-0002",
|
|
1112
|
+
"projectId": "proj-0001",
|
|
1113
|
+
"sortOrder": 2,
|
|
1114
|
+
"type": "TEXT",
|
|
1115
|
+
"title": "Twelve weeks",
|
|
1116
|
+
"description": "Stripped to the brick, rebuilt around the roaster."
|
|
1117
|
+
}
|
|
1118
|
+
],
|
|
1119
|
+
"metadata": {
|
|
1120
|
+
"count": 2
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1074
1123
|
"POST /badges/v4/badges/query": {
|
|
1075
1124
|
"badges": [
|
|
1076
1125
|
{
|
|
@@ -14603,7 +14603,7 @@
|
|
|
14603
14603
|
"name": "EventRow",
|
|
14604
14604
|
"kind": "interface",
|
|
14605
14605
|
"jsdoc": "",
|
|
14606
|
-
"decl": "export interface EventRow {\n id: string;\n title: string;\n day: string;\n month: string;\n dateLine: string;\n location: string;\n status: string;\n image: string;\n hasImage: boolean;\n noImage: boolean;\n detailScreenId: string;\n}"
|
|
14606
|
+
"decl": "export interface EventRow {\n id: string;\n title: string;\n day: string;\n month: string;\n dateLine: string;\n /** \"Past\" once the event has finished, else \"\". */\n statusLabel: string;\n location: string;\n status: string;\n image: string;\n hasImage: boolean;\n noImage: boolean;\n detailScreenId: string;\n}"
|
|
14607
14607
|
},
|
|
14608
14608
|
{
|
|
14609
14609
|
"name": "titleCase",
|
|
@@ -14662,15 +14662,27 @@
|
|
|
14662
14662
|
{
|
|
14663
14663
|
"name": "eventWhen",
|
|
14664
14664
|
"kind": "function",
|
|
14665
|
-
"jsdoc": "",
|
|
14666
|
-
"decl": "export function eventWhen(e: WixEvent): string;"
|
|
14665
|
+
"jsdoc": "/** The event's date line. The year is written only when it is not the current year, so a\n * past-year event can no longer pass for an upcoming one (\"Sat, Jul 18\"). `now` is injectable\n * for tests; it defaults to the wall clock. */",
|
|
14666
|
+
"decl": "export function eventWhen(e: WixEvent, now: number = Date.now()): string;"
|
|
14667
|
+
},
|
|
14668
|
+
{
|
|
14669
|
+
"name": "eventIsPast",
|
|
14670
|
+
"kind": "function",
|
|
14671
|
+
"jsdoc": "/** Has the event finished? Its end when it has one, else its start. */",
|
|
14672
|
+
"decl": "export function eventIsPast(e: WixEvent, now: number = Date.now()): boolean;"
|
|
14667
14673
|
},
|
|
14668
14674
|
{
|
|
14669
14675
|
"name": "normalizeEvent",
|
|
14670
14676
|
"kind": "function",
|
|
14671
|
-
"jsdoc": "",
|
|
14677
|
+
"jsdoc": "/** One-argument on purpose: callers write `.map(normalizeEvent)`, which would pass the array\n * index as a second argument. Use {@link normalizeEventAt} to pin the clock. */",
|
|
14672
14678
|
"decl": "export function normalizeEvent(e: WixEvent): EventRow;"
|
|
14673
14679
|
},
|
|
14680
|
+
{
|
|
14681
|
+
"name": "normalizeEventAt",
|
|
14682
|
+
"kind": "function",
|
|
14683
|
+
"jsdoc": "/** {@link normalizeEvent} against an explicit clock (epoch ms): `now` decides whether the date\n * line carries the year and whether `statusLabel` reads \"Past\". Pure — no API call, any scope. */",
|
|
14684
|
+
"decl": "export function normalizeEventAt(e: WixEvent, now: number): EventRow;"
|
|
14685
|
+
},
|
|
14674
14686
|
{
|
|
14675
14687
|
"name": "eventDescription",
|
|
14676
14688
|
"kind": "function",
|
|
@@ -19552,11 +19564,23 @@
|
|
|
19552
19564
|
"source": "stdlib/wix-sdk/portfolio/src/index.ts",
|
|
19553
19565
|
"description": "Portfolio — projects and collections",
|
|
19554
19566
|
"api": [
|
|
19567
|
+
{
|
|
19568
|
+
"name": "WixMediaImage",
|
|
19569
|
+
"kind": "interface",
|
|
19570
|
+
"jsdoc": "/** A Wix Portfolio media image — a project / collection cover or a project item's image. */",
|
|
19571
|
+
"decl": "export interface WixMediaImage {\n type?: string;\n imageInfo?: { id?: string; url?: string; width?: number; height?: number };\n}"
|
|
19572
|
+
},
|
|
19573
|
+
{
|
|
19574
|
+
"name": "portfolioCoverRef",
|
|
19575
|
+
"kind": "function",
|
|
19576
|
+
"jsdoc": "/**\n * The Wix media reference of a Portfolio cover or item image — its `imageInfo.url`, else\n * its `imageInfo.id` — for `wixMediaUrl` to resolve and size. `\"\"` when there is none.\n * A bare string is still accepted, so a cover stored as a url string keeps rendering.\n *\n * @example\n * const image = wixMediaUrl(portfolioCoverRef(project.coverImage));\n */",
|
|
19577
|
+
"decl": "export function portfolioCoverRef(cover: WixMediaImage | string | null | undefined): string;"
|
|
19578
|
+
},
|
|
19555
19579
|
{
|
|
19556
19580
|
"name": "WixPortfolioProject",
|
|
19557
19581
|
"kind": "interface",
|
|
19558
19582
|
"jsdoc": "",
|
|
19559
|
-
"decl": "export interface WixPortfolioProject {\n id: string;\n title?: string;\n description?: string;\n
|
|
19583
|
+
"decl": "export interface WixPortfolioProject {\n id: string;\n title?: string;\n description?: string;\n /**\n * Project cover. The live wire shape is a media OBJECT\n * (`{type:\"WIX_MEDIA\", imageInfo:{id,url,width,height}}`), not a url string —\n * read it with {@link portfolioCoverRef}; `wixMediaUrl` returns `\"\"` for the object.\n * A url string is still accepted, for projects constructed by hand.\n */\n coverImage?: WixMediaImage | string;\n slug?: string;\n hidden?: boolean;\n createdDate?: string;\n updatedDate?: string;\n}"
|
|
19560
19584
|
},
|
|
19561
19585
|
{
|
|
19562
19586
|
"name": "WixListProjectsResponse",
|
|
@@ -19571,12 +19595,6 @@
|
|
|
19571
19595
|
"decl": "export function listProjects(limit = 100, cursor?: string): Promise<WixListProjectsResponse>;",
|
|
19572
19596
|
"http": "GET /portfolio/v1/projects?{…}"
|
|
19573
19597
|
},
|
|
19574
|
-
{
|
|
19575
|
-
"name": "WixMediaImage",
|
|
19576
|
-
"kind": "interface",
|
|
19577
|
-
"jsdoc": "",
|
|
19578
|
-
"decl": "export interface WixMediaImage { imageInfo?: { id?: string; url?: string } }"
|
|
19579
|
-
},
|
|
19580
19598
|
{
|
|
19581
19599
|
"name": "WixPortfolioCollection",
|
|
19582
19600
|
"kind": "interface",
|
|
@@ -19606,14 +19624,14 @@
|
|
|
19606
19624
|
"name": "WixListProjectItemsResponse",
|
|
19607
19625
|
"kind": "interface",
|
|
19608
19626
|
"jsdoc": "",
|
|
19609
|
-
"decl": "export interface WixListProjectItemsResponse {\n items?: WixPortfolioProjectItem[];\n pagingMetadata?: { count?: number; cursors?: { next?: string }; hasNext?: boolean };\n}"
|
|
19627
|
+
"decl": "export interface WixListProjectItemsResponse {\n items?: WixPortfolioProjectItem[];\n /**\n * Paging, under the name this function always documented. A Wix query reports it as\n * `metadata`; {@link listProjectItems} copies that here when `pagingMetadata` is absent.\n */\n pagingMetadata?: { count?: number; cursors?: { next?: string }; hasNext?: boolean };\n /** The query endpoint's own name for the paging block. */\n metadata?: { count?: number; cursors?: { next?: string }; hasNext?: boolean };\n}"
|
|
19610
19628
|
},
|
|
19611
19629
|
{
|
|
19612
19630
|
"name": "listProjectItems",
|
|
19613
19631
|
"kind": "function",
|
|
19614
|
-
"jsdoc": "
|
|
19632
|
+
"jsdoc": "/**\n * POST /portfolio/v1/items/query — list a project's items.\n *\n * A first page filters on `projectId` with `paging.limit`. Passing a `cursor` (a previous\n * page's `pagingMetadata.cursors.next`) switches to `cursorPaging` and drops the filter,\n * because a Wix query cursor already carries it. Items come back in the order Wix returns\n * them — sort on `sortOrder` for the author's order.\n */",
|
|
19615
19633
|
"decl": "export function listProjectItems(projectId: string, limit = 100, cursor?: string): Promise<WixListProjectItemsResponse>;",
|
|
19616
|
-
"http": "
|
|
19634
|
+
"http": "POST /portfolio/v1/items/query"
|
|
19617
19635
|
}
|
|
19618
19636
|
]
|
|
19619
19637
|
},
|
|
@@ -122,9 +122,21 @@ never change. If nothing is reachable, keep the default kit.
|
|
|
122
122
|
RFC 0048 refused a **content dump** on the runtime facade. The dump lives here, at **build time**:
|
|
123
123
|
|
|
124
124
|
```bash
|
|
125
|
-
himi site analyze --
|
|
125
|
+
himi site analyze --url https://… --out .himi/business-book # visitor-only pass
|
|
126
|
+
himi site analyze --url https://… --client-id <id> [--site <msid>] --out .himi/business-book [--apply]
|
|
126
127
|
```
|
|
127
128
|
|
|
129
|
+
`--url` alone is the **visitor-only pass**: the published pages, their look (screenshots,
|
|
130
|
+
`--wst-*`), the Copy chapter and the Placeholders chapter (template phone/email, Wix editor text, a
|
|
131
|
+
second business name, repeated images). It needs no OAuth client, so no anonymous token is minted
|
|
132
|
+
and every vertical probe reports `visitor skipped` — the Catalog has no counts. `--client-id` (the
|
|
133
|
+
site's Headless client) adds those counts, each Bookings service's price and payment mode
|
|
134
|
+
(`pay online only`, `pay in person only`, `free`, …), and the `wix` binding `--apply` writes;
|
|
135
|
+
`--apply` without it exits 2. `--site` adds the owner-only chapters (CMS, media, roles); an
|
|
136
|
+
ambient `WIX_SITE_ID` does so only beside an explicit `--client-id` flag (an exported
|
|
137
|
+
`WIX_CLIENT_ID` does not count), so a URL-only pass is never silently upgraded to an owner read
|
|
138
|
+
of whichever site that variable names.
|
|
139
|
+
|
|
128
140
|
Same collector, three doors:
|
|
129
141
|
|
|
130
142
|
| Door | Artifact |
|
|
@@ -59,14 +59,23 @@ banner. Keep **only the first ASCII line** (`head -1`) or HTTP headers throw
|
|
|
59
59
|
### 1. Analyze — do not re-fetch Wix
|
|
60
60
|
|
|
61
61
|
```sh
|
|
62
|
+
# Visitor-only pass — the URL is all it needs (published pages, look, copy, template leftovers):
|
|
63
|
+
himi site analyze --url https://customer.wixsite.com/site --out .himi/business-book
|
|
64
|
+
|
|
65
|
+
# Full pass — --client-id adds catalog counts, service payment modes and the --apply binding;
|
|
66
|
+
# --site adds the owner chapters (CMS, media, roles):
|
|
62
67
|
himi site analyze \
|
|
63
|
-
--client-id <headless-oauth-client-id> \
|
|
64
68
|
--url https://customer.wixsite.com/site \
|
|
69
|
+
--client-id <headless-oauth-client-id> \
|
|
65
70
|
--site <msid> \
|
|
66
71
|
--out .himi/business-book
|
|
67
72
|
# screenshots + --wst-*: npx playwright install chromium
|
|
68
73
|
```
|
|
69
74
|
|
|
75
|
+
Check `book.md` → **Placeholders** before reusing any copy: a template phone (`123-456-7890`),
|
|
76
|
+
Wix editor text, a second business name or one photo repeated across a gallery is the
|
|
77
|
+
template's, not the customer's.
|
|
78
|
+
|
|
70
79
|
Read `book.json`, `book.md`, `evidence/pages/`, `media/`, `velo/` (via
|
|
71
80
|
`book.velo.files[].localPath`). Write `.himi/business-book/look.notes.md` for mood,
|
|
72
81
|
overlay tie-break, language. **Never rewrite `book.json`.** Never log
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1037.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"artifactId": "himalaya-cli"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
"falconPackageHash": "
|
|
68
|
+
"falconPackageHash": "e35236017e826d4e25212e7448f29f8004d84cec687b348a8231366e"
|
|
69
69
|
}
|