@wix/himalaya-cli 0.1929.0 → 0.1930.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 +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/chat-web/src/index.d.ts +12 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-chat-web.mjs +19 -9
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{95a3ae045bad903e458ea7a5800e60e1044f0f754a65d7127de66ba62e897068.bin → 7656e5effbeaee2ab20810b9903e7e785d9dffb0a0563f25c2746011cf4e23e9.bin} +1 -1
- package/dist/browser-plane/sw.js +10 -10
- package/dist/cli.mjs +254 -70
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-index.md +1 -1
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +7 -0
- package/guides/sdk-reference.json +2 -2
- package/package.json +2 -2
- package/templates/bare-fashion/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/beauty-salon/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/beauty-salon-owner/dev/index.ts +169 -139
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/beauty-salon-owner/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/branded-lite/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/brandy/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/community-club/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/community-club-owner/dev/index.ts +167 -132
- package/templates/community-club-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/community-club-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/community-club-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/community-club-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/community-club-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/community-club-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/conference/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/events-meetups/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/events-meetups-owner/dev/index.ts +165 -125
- package/templates/events-meetups-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/events-meetups-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/fitness-gym/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/gym-fitness/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/gym-fitness-owner/dev/index.ts +169 -139
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/gym-fitness-owner/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/himi-chat/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/medical-services/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/nonprofit-cause/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/nonprofit-cause-owner/dev/index.ts +167 -132
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/nonprofit-cause-owner/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/owner-lite/dev/index.ts +171 -141
- package/templates/owner-lite/himalaya.content.json +1 -1
- package/templates/owner-lite/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/owner-lite/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/owner-lite/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/owner-lite/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/owner-lite/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/owner-lite/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/owner-lite/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/owner-lite/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/personal-fitness-trainer/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/podcast-creator/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/podcast-creator-owner/dev/index.ts +167 -132
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/portfolio-creative/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/portfolio-creative-owner/dev/index.ts +169 -139
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/portfolio-creative-owner/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/professional-services/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/restaurant/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/restaurant-owner/dev/index.ts +169 -139
- package/templates/restaurant-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/restaurant-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/restaurant-owner/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/retail-store/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/retail-store-owner/dev/index.ts +167 -132
- package/templates/retail-store-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/retail-store-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/salon-spa/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/wholesale-store/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/yoga-studio/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/yoga-studio-owner/dev/index.ts +167 -132
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/yoga-studio-owner/tier5-src/wix-owner-booking/index.ts +4 -1
|
@@ -13104,13 +13104,9 @@ const SCREENS = runtimeSetting({
|
|
|
13104
13104
|
"fullWidth": true,
|
|
13105
13105
|
"leadingIcon": "ai",
|
|
13106
13106
|
"action": {
|
|
13107
|
-
"actionId": "
|
|
13107
|
+
"actionId": "tier5.himiOwnerRecord.askMaestro",
|
|
13108
13108
|
"params": {
|
|
13109
|
-
"
|
|
13110
|
-
"kind": "contact",
|
|
13111
|
-
"id": "$service:himiOwnerRecord.id",
|
|
13112
|
-
"title": "Maestro",
|
|
13113
|
-
"subtitle": "Your business assistant, by Symphony."
|
|
13109
|
+
"kind": "contact"
|
|
13114
13110
|
}
|
|
13115
13111
|
}
|
|
13116
13112
|
}
|
|
@@ -57127,6 +57123,9 @@ const SCREENS = runtimeSetting({
|
|
|
57127
57123
|
],
|
|
57128
57124
|
"minBinaryVersion": "0.1.0",
|
|
57129
57125
|
"bundleVersion": "0.0.1"
|
|
57126
|
+
},
|
|
57127
|
+
"topBar": {
|
|
57128
|
+
"actions": []
|
|
57130
57129
|
}
|
|
57131
57130
|
},
|
|
57132
57131
|
"himi_owner_lite_brief": {
|
|
@@ -64002,6 +64001,22 @@ const SCREENS = runtimeSetting({
|
|
|
64002
64001
|
"collapseWhenEmpty": true
|
|
64003
64002
|
}
|
|
64004
64003
|
}
|
|
64004
|
+
},
|
|
64005
|
+
{
|
|
64006
|
+
"id": "himi_owner_lite_maestro.context",
|
|
64007
|
+
"body": {
|
|
64008
|
+
"package": "himalaya",
|
|
64009
|
+
"type": "Text",
|
|
64010
|
+
"props": {
|
|
64011
|
+
"text": "$service:himiOwnerLiteMaestro.contextLabel",
|
|
64012
|
+
"style": "footnote",
|
|
64013
|
+
"color": "textSecondary",
|
|
64014
|
+
"maxLines": 1
|
|
64015
|
+
}
|
|
64016
|
+
},
|
|
64017
|
+
"modifiers": {
|
|
64018
|
+
"hiddenPath": "$service:himiOwnerLiteMaestro.contextHidden"
|
|
64019
|
+
}
|
|
64005
64020
|
}
|
|
64006
64021
|
]
|
|
64007
64022
|
}
|
|
@@ -64265,16 +64280,32 @@ const SCREENS = runtimeSetting({
|
|
|
64265
64280
|
"package": "himalaya",
|
|
64266
64281
|
"type": "Text",
|
|
64267
64282
|
"props": {
|
|
64268
|
-
"text": "
|
|
64283
|
+
"text": "$item.content",
|
|
64269
64284
|
"style": "footnote",
|
|
64270
64285
|
"color": "textSecondary",
|
|
64271
|
-
"maxLines":
|
|
64286
|
+
"maxLines": 2
|
|
64272
64287
|
}
|
|
64273
64288
|
},
|
|
64274
64289
|
"modifiers": {
|
|
64275
64290
|
"hiddenPath": "$item.thinkingHidden"
|
|
64276
64291
|
}
|
|
64277
64292
|
},
|
|
64293
|
+
{
|
|
64294
|
+
"id": "",
|
|
64295
|
+
"body": {
|
|
64296
|
+
"package": "himalaya",
|
|
64297
|
+
"type": "Text",
|
|
64298
|
+
"props": {
|
|
64299
|
+
"text": "$item.content",
|
|
64300
|
+
"style": "footnote",
|
|
64301
|
+
"color": "textSecondary",
|
|
64302
|
+
"maxLines": 3
|
|
64303
|
+
}
|
|
64304
|
+
},
|
|
64305
|
+
"modifiers": {
|
|
64306
|
+
"hiddenPath": "$item.noteHidden"
|
|
64307
|
+
}
|
|
64308
|
+
},
|
|
64278
64309
|
{
|
|
64279
64310
|
"id": "himi_owner_lite_maestro.card_$item.id",
|
|
64280
64311
|
"body": {
|
|
@@ -64465,6 +64496,7 @@ const SCREENS = runtimeSetting({
|
|
|
64465
64496
|
"top": 18,
|
|
64466
64497
|
"bottom": 24
|
|
64467
64498
|
},
|
|
64499
|
+
"keyboardDismiss": "tap",
|
|
64468
64500
|
"onAppear": {
|
|
64469
64501
|
"actionId": "tier5.himiOwnerLiteMaestro.load"
|
|
64470
64502
|
}
|
|
@@ -64483,88 +64515,34 @@ const SCREENS = runtimeSetting({
|
|
|
64483
64515
|
"minBinaryVersion": "0.1.0",
|
|
64484
64516
|
"bundleVersion": "0.0.1"
|
|
64485
64517
|
},
|
|
64486
|
-
"
|
|
64487
|
-
"
|
|
64488
|
-
|
|
64489
|
-
|
|
64490
|
-
|
|
64491
|
-
|
|
64492
|
-
"
|
|
64493
|
-
|
|
64494
|
-
{
|
|
64495
|
-
"
|
|
64496
|
-
"
|
|
64497
|
-
|
|
64498
|
-
"type": "Text",
|
|
64499
|
-
"props": {
|
|
64500
|
-
"text": "$service:himiOwnerLiteMaestro.contextLabel",
|
|
64501
|
-
"style": "footnote",
|
|
64502
|
-
"color": "textSecondary",
|
|
64503
|
-
"maxLines": 1,
|
|
64504
|
-
"collapseWhenEmpty": true
|
|
64505
|
-
}
|
|
64506
|
-
}
|
|
64507
|
-
},
|
|
64508
|
-
{
|
|
64509
|
-
"id": "",
|
|
64510
|
-
"body": {
|
|
64511
|
-
"package": "himalaya",
|
|
64512
|
-
"type": "Spacer",
|
|
64513
|
-
"props": {}
|
|
64514
|
-
}
|
|
64515
|
-
},
|
|
64516
|
-
{
|
|
64517
|
-
"id": "himi_owner_lite_maestro.history",
|
|
64518
|
-
"body": {
|
|
64519
|
-
"package": "himalaya",
|
|
64520
|
-
"type": "Button",
|
|
64521
|
-
"props": {
|
|
64522
|
-
"title": "History",
|
|
64523
|
-
"style": "link",
|
|
64524
|
-
"size": "sm",
|
|
64525
|
-
"fullWidth": false,
|
|
64526
|
-
"action": {
|
|
64527
|
-
"actionId": "himi.open",
|
|
64528
|
-
"params": {
|
|
64529
|
-
"screenId": "himi_owner_lite_maestro_history",
|
|
64530
|
-
"title": "Conversations",
|
|
64531
|
-
"subtitle": "Pick up where you left off."
|
|
64532
|
-
}
|
|
64533
|
-
}
|
|
64534
|
-
}
|
|
64535
|
-
}
|
|
64536
|
-
},
|
|
64537
|
-
{
|
|
64538
|
-
"id": "himi_owner_lite_maestro.newChat",
|
|
64539
|
-
"body": {
|
|
64540
|
-
"package": "himalaya",
|
|
64541
|
-
"type": "Button",
|
|
64542
|
-
"props": {
|
|
64543
|
-
"title": "New chat",
|
|
64544
|
-
"style": "link",
|
|
64545
|
-
"size": "sm",
|
|
64546
|
-
"fullWidth": false,
|
|
64547
|
-
"action": {
|
|
64548
|
-
"actionId": "tier5.himiOwnerLiteMaestro.newChat"
|
|
64549
|
-
}
|
|
64550
|
-
}
|
|
64551
|
-
}
|
|
64518
|
+
"topBar": {
|
|
64519
|
+
"actions": [
|
|
64520
|
+
{
|
|
64521
|
+
"id": "himi_owner_lite_maestro.history",
|
|
64522
|
+
"icon": "clock",
|
|
64523
|
+
"accessibilityLabel": "History",
|
|
64524
|
+
"onTap": {
|
|
64525
|
+
"actionId": "himi.open",
|
|
64526
|
+
"params": {
|
|
64527
|
+
"screenId": "himi_owner_lite_maestro_history",
|
|
64528
|
+
"title": "Conversations",
|
|
64529
|
+
"subtitle": "Pick up where you left off."
|
|
64552
64530
|
}
|
|
64553
|
-
|
|
64554
|
-
|
|
64555
|
-
|
|
64556
|
-
"modifiers": {
|
|
64557
|
-
"background": {
|
|
64558
|
-
"token": "surfacePrimary"
|
|
64531
|
+
},
|
|
64532
|
+
"hiddenPath": "$service:himiOwnerLiteMaestro.chatHidden",
|
|
64533
|
+
"hiddenPathScope": "screen"
|
|
64559
64534
|
},
|
|
64560
|
-
|
|
64561
|
-
"
|
|
64562
|
-
"
|
|
64563
|
-
"
|
|
64564
|
-
"
|
|
64565
|
-
|
|
64566
|
-
|
|
64567
|
-
|
|
64535
|
+
{
|
|
64536
|
+
"id": "himi_owner_lite_maestro.newChat",
|
|
64537
|
+
"icon": "edit",
|
|
64538
|
+
"accessibilityLabel": "New chat",
|
|
64539
|
+
"onTap": {
|
|
64540
|
+
"actionId": "tier5.himiOwnerLiteMaestro.newChat"
|
|
64541
|
+
},
|
|
64542
|
+
"hiddenPath": "$service:himiOwnerLiteMaestro.chatHidden",
|
|
64543
|
+
"hiddenPathScope": "screen"
|
|
64544
|
+
}
|
|
64545
|
+
]
|
|
64568
64546
|
},
|
|
64569
64547
|
"stickyFooter": {
|
|
64570
64548
|
"id": "himi_owner_lite_maestro.composer",
|
|
@@ -64662,50 +64640,111 @@ const SCREENS = runtimeSetting({
|
|
|
64662
64640
|
}
|
|
64663
64641
|
},
|
|
64664
64642
|
{
|
|
64665
|
-
"id": "
|
|
64643
|
+
"id": "",
|
|
64666
64644
|
"body": {
|
|
64667
64645
|
"package": "himalaya",
|
|
64668
|
-
"type": "
|
|
64646
|
+
"type": "HStack",
|
|
64669
64647
|
"props": {
|
|
64670
|
-
"
|
|
64671
|
-
"
|
|
64648
|
+
"spacing": 8,
|
|
64649
|
+
"alignment": "trailing",
|
|
64650
|
+
"children": [
|
|
64672
64651
|
{
|
|
64673
|
-
"id": "
|
|
64652
|
+
"id": "himi_owner_lite_maestro.input",
|
|
64674
64653
|
"body": {
|
|
64675
64654
|
"package": "himalaya",
|
|
64676
|
-
"type": "
|
|
64655
|
+
"type": "TextField",
|
|
64677
64656
|
"props": {
|
|
64678
|
-
"
|
|
64679
|
-
"
|
|
64680
|
-
"
|
|
64681
|
-
"
|
|
64682
|
-
|
|
64683
|
-
|
|
64684
|
-
|
|
64685
|
-
"
|
|
64686
|
-
|
|
64687
|
-
|
|
64688
|
-
|
|
64689
|
-
|
|
64690
|
-
|
|
64657
|
+
"valuePath": "$service:himiOwnerLiteMaestro.input",
|
|
64658
|
+
"placeholder": "Ask Maestro…",
|
|
64659
|
+
"keyboard": "default",
|
|
64660
|
+
"autoCapitalization": "sentences",
|
|
64661
|
+
"multilineMaxLines": 4,
|
|
64662
|
+
"maxLength": 4000,
|
|
64663
|
+
"onChange": {
|
|
64664
|
+
"actionId": "tier5.himiOwnerLiteMaestro.setInput"
|
|
64665
|
+
},
|
|
64666
|
+
"borderless": true
|
|
64667
|
+
}
|
|
64668
|
+
},
|
|
64669
|
+
"modifiers": {
|
|
64670
|
+
"weight": 1,
|
|
64671
|
+
"accessibilityLabel": "Ask Maestro…",
|
|
64672
|
+
"background": {
|
|
64673
|
+
"token": "surfaceSecondary"
|
|
64674
|
+
},
|
|
64675
|
+
"cornerRadius": 22,
|
|
64676
|
+
"padding": {
|
|
64677
|
+
"leading": 16,
|
|
64678
|
+
"trailing": 12,
|
|
64679
|
+
"top": 11,
|
|
64680
|
+
"bottom": 11
|
|
64691
64681
|
}
|
|
64692
64682
|
}
|
|
64693
|
-
}
|
|
64694
|
-
|
|
64695
|
-
|
|
64696
|
-
|
|
64697
|
-
|
|
64698
|
-
|
|
64699
|
-
|
|
64700
|
-
|
|
64701
|
-
|
|
64702
|
-
|
|
64703
|
-
|
|
64704
|
-
|
|
64683
|
+
},
|
|
64684
|
+
{
|
|
64685
|
+
"id": "",
|
|
64686
|
+
"body": {
|
|
64687
|
+
"package": "himalaya",
|
|
64688
|
+
"type": "ZStack",
|
|
64689
|
+
"props": {
|
|
64690
|
+
"alignment": "center",
|
|
64691
|
+
"children": [
|
|
64692
|
+
{
|
|
64693
|
+
"id": "himi_owner_lite_maestro.send_off",
|
|
64694
|
+
"body": {
|
|
64695
|
+
"package": "himalaya",
|
|
64696
|
+
"type": "Icon",
|
|
64697
|
+
"props": {
|
|
64698
|
+
"name": "send",
|
|
64699
|
+
"size": 20,
|
|
64700
|
+
"tint": "textTertiary"
|
|
64701
|
+
}
|
|
64702
|
+
},
|
|
64703
|
+
"modifiers": {
|
|
64704
|
+
"accessibilityRole": "decorative",
|
|
64705
|
+
"width": 44,
|
|
64706
|
+
"height": 44,
|
|
64707
|
+
"cornerRadius": 22,
|
|
64708
|
+
"background": {
|
|
64709
|
+
"token": "surfaceSecondary"
|
|
64710
|
+
}
|
|
64711
|
+
}
|
|
64712
|
+
},
|
|
64713
|
+
{
|
|
64714
|
+
"id": "himi_owner_lite_maestro.send",
|
|
64715
|
+
"body": {
|
|
64716
|
+
"package": "himalaya",
|
|
64717
|
+
"type": "Icon",
|
|
64718
|
+
"props": {
|
|
64719
|
+
"name": "send",
|
|
64720
|
+
"size": 20,
|
|
64721
|
+
"tint": "textOnAccent"
|
|
64722
|
+
}
|
|
64723
|
+
},
|
|
64724
|
+
"modifiers": {
|
|
64725
|
+
"accessibilityRole": "button",
|
|
64726
|
+
"width": 44,
|
|
64727
|
+
"height": 44,
|
|
64728
|
+
"cornerRadius": 22,
|
|
64729
|
+
"background": {
|
|
64730
|
+
"token": "accentPrimary"
|
|
64731
|
+
},
|
|
64732
|
+
"accessibilityLabel": "Send",
|
|
64733
|
+
"onTap": {
|
|
64734
|
+
"actionId": "tier5.himiOwnerLiteMaestro.submit"
|
|
64735
|
+
},
|
|
64736
|
+
"hiddenPath": "$service:himiOwnerLiteMaestro.noInput"
|
|
64737
|
+
}
|
|
64738
|
+
}
|
|
64739
|
+
]
|
|
64705
64740
|
}
|
|
64741
|
+
},
|
|
64742
|
+
"modifiers": {
|
|
64743
|
+
"width": 44,
|
|
64744
|
+
"height": 44
|
|
64706
64745
|
}
|
|
64707
64746
|
}
|
|
64708
|
-
|
|
64747
|
+
]
|
|
64709
64748
|
}
|
|
64710
64749
|
}
|
|
64711
64750
|
}
|
|
@@ -64732,8 +64771,7 @@ const SCREENS = runtimeSetting({
|
|
|
64732
64771
|
},
|
|
64733
64772
|
"hostTitle": {
|
|
64734
64773
|
"title": "Maestro",
|
|
64735
|
-
"
|
|
64736
|
-
"replaces": "himi_owner_lite_maestro.header"
|
|
64774
|
+
"replaces": "himi_owner_lite_maestro.header.title"
|
|
64737
64775
|
}
|
|
64738
64776
|
},
|
|
64739
64777
|
"himi_owner_lite_maestro_history": {
|
|
@@ -64870,7 +64908,7 @@ const SCREENS = runtimeSetting({
|
|
|
64870
64908
|
"package": "himalaya",
|
|
64871
64909
|
"type": "Icon",
|
|
64872
64910
|
"props": {
|
|
64873
|
-
"name": "
|
|
64911
|
+
"name": "chat",
|
|
64874
64912
|
"size": 20,
|
|
64875
64913
|
"tint": "accentPrimary"
|
|
64876
64914
|
}
|
|
@@ -64956,8 +64994,7 @@ const SCREENS = runtimeSetting({
|
|
|
64956
64994
|
"screenId": "himi_owner_lite_maestro",
|
|
64957
64995
|
"conversationId": "$item.id",
|
|
64958
64996
|
"n": "$item.stamp",
|
|
64959
|
-
"title": "Maestro"
|
|
64960
|
-
"subtitle": "Your business assistant, by Symphony."
|
|
64997
|
+
"title": "Maestro"
|
|
64961
64998
|
}
|
|
64962
64999
|
}
|
|
64963
65000
|
}
|
|
@@ -65045,6 +65082,9 @@ const SCREENS = runtimeSetting({
|
|
|
65045
65082
|
"minBinaryVersion": "0.1.0",
|
|
65046
65083
|
"bundleVersion": "0.0.1"
|
|
65047
65084
|
},
|
|
65085
|
+
"topBar": {
|
|
65086
|
+
"actions": []
|
|
65087
|
+
},
|
|
65048
65088
|
"hostTitle": {
|
|
65049
65089
|
"title": "Conversations",
|
|
65050
65090
|
"subtitle": "Pick up where you left off.",
|
|
@@ -79439,14 +79479,9 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
|
|
|
79439
79479
|
"fullWidth": true,
|
|
79440
79480
|
"leadingIcon": "ai",
|
|
79441
79481
|
"action": {
|
|
79442
|
-
"actionId": "
|
|
79482
|
+
"actionId": "tier5.himiOwnerLiteOrder.askMaestro",
|
|
79443
79483
|
"params": {
|
|
79444
|
-
"
|
|
79445
|
-
"kind": "order",
|
|
79446
|
-
"id": "$service:himiOwnerLiteOrder.id",
|
|
79447
|
-
"subject": "$service:himiOwnerLiteOrder.title",
|
|
79448
|
-
"title": "Maestro",
|
|
79449
|
-
"subtitle": "Your business assistant, by Symphony."
|
|
79484
|
+
"kind": "order"
|
|
79450
79485
|
}
|
|
79451
79486
|
}
|
|
79452
79487
|
}
|
|
@@ -146,7 +146,7 @@ const CODED = /HTTP (\d{3}) \[([A-Z0-9_]+)\]/;
|
|
|
146
146
|
* `HTTP 428 [MISSING_METASITE_ID]: Couldn't extract metasiteId from the request
|
|
147
147
|
* context` where "6 orders" belongs.
|
|
148
148
|
*/
|
|
149
|
-
const SITE_CONTEXT_CODES = ["MISSING_METASITE_ID", "MISSING_REQUEST_SITE_CONTEXT", "MISSING_SITE_CONTEXT"];
|
|
149
|
+
export const SITE_CONTEXT_CODES = ["MISSING_METASITE_ID", "MISSING_REQUEST_SITE_CONTEXT", "MISSING_SITE_CONTEXT"];
|
|
150
150
|
/** Longest raw upstream text worth showing. Beyond this it stops being a
|
|
151
151
|
* message and starts being a payload dump. */
|
|
152
152
|
const MAX_RAW = 200;
|
|
@@ -28,9 +28,19 @@ export async function symphonyAccount(api: MaestroWixApi): Promise<string> {
|
|
|
28
28
|
return typeof id === "string" ? id.trim() : "";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/** The account's Spaces. Throws when they could not be asked.
|
|
32
|
+
*
|
|
33
|
+
* Not asked a second time here after a refusal. The first call a run makes for the Symphony
|
|
34
|
+
* account can answer 403 (measured live 2026-11-28), but a worker has no timer to wait with, and
|
|
35
|
+
* the host remembers a credential it could not get for ten seconds, so an immediate second ask
|
|
36
|
+
* is refused the same way. The caller asks again on its own schedule. */
|
|
37
|
+
async function readSpaces(api: MaestroWixApi, account: string): Promise<Spaces | null> {
|
|
38
|
+
return (await api.call("POST", SPACES, {}, forSymphonyAccount(account))) as Spaces | null;
|
|
39
|
+
}
|
|
40
|
+
|
|
31
41
|
/** Whether `site` is the website of one of the owner's Spaces. Throws when it could not be asked. */
|
|
32
42
|
export async function isSpaceWebsite(api: MaestroWixApi, account: string, site: string): Promise<boolean> {
|
|
33
|
-
const res =
|
|
43
|
+
const res = await readSpaces(api, account);
|
|
34
44
|
return (res?.workspaces ?? []).some((w) => w?.website?.metaSiteId === site);
|
|
35
45
|
}
|
|
36
46
|
|
|
@@ -45,7 +55,7 @@ export interface SpaceWebsite { id: string; name: string; space: string }
|
|
|
45
55
|
export async function spaceWebsites(api: MaestroWixApi): Promise<SpaceWebsite[]> {
|
|
46
56
|
const account = await symphonyAccount(api);
|
|
47
57
|
if (!account) return [];
|
|
48
|
-
const res =
|
|
58
|
+
const res = await readSpaces(api, account);
|
|
49
59
|
const out: SpaceWebsite[] = [];
|
|
50
60
|
for (const w of res?.workspaces ?? []) {
|
|
51
61
|
const id = typeof w?.website?.metaSiteId === "string" ? w.website.metaSiteId.trim() : "";
|
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
// when the record changes while it stays on screen, so the button can lag one visit behind the tab.
|
|
13
13
|
// Shown too long, it opens the Maestro screen, which says so itself when Maestro is unavailable.
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { navigate, type NavDirective } from "@himalaya/state";
|
|
16
|
+
import { currentBusinessId } from "./owner-selected-site.js";
|
|
16
17
|
|
|
17
18
|
type StorageLike = { getItem(key: string): string | null; setItem(key: string, value: string): void };
|
|
18
|
-
type Host = { storage?: StorageLike
|
|
19
|
+
type Host = { storage?: StorageLike };
|
|
19
20
|
const host = (): Host | undefined => (globalThis as { himalaya?: Host }).himalaya;
|
|
20
21
|
|
|
21
22
|
const KEY = "himi.ownerLite.maestroTab.v1";
|
|
@@ -36,7 +37,82 @@ export function maestroTabIsFor(site: string): boolean {
|
|
|
36
37
|
* Maestro for the business on screen. The business is the one the host scoped, else the one
|
|
37
38
|
* picked on Sites, as the Maestro screen reads it. */
|
|
38
39
|
export function askMaestroHidden(): "true" | "false" {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
return maestroTabIsFor(currentBusinessId()) ? "false" : "true";
|
|
41
|
+
}
|
|
42
|
+
// ── "Ask Maestro" from a detail screen ─────────────────────────────────────────────────────
|
|
43
|
+
// The detail screen's worker leaves the item here and switches to the Maestro tab; the Maestro
|
|
44
|
+
// screen's worker reads it when the tab appears. A screen param cannot carry it: a tab switch
|
|
45
|
+
// takes none. The request names the business it was left for, and is good for half a minute:
|
|
46
|
+
// the Maestro worker acts on each stamp once, for that business only, and a request the tab
|
|
47
|
+
// never picked up (the switch was dropped, or a turn was streaming there) is then ignored.
|
|
48
|
+
// It is dropped as soon as its chat is used (a first turn) or left (New chat), and when the
|
|
49
|
+
// owner changes. Not on the read itself: the Maestro screen loads twice as it opens, and both
|
|
50
|
+
// loads must find it.
|
|
51
|
+
|
|
52
|
+
const ASK_KEY = "himi.ownerLite.maestroAsk.v1";
|
|
53
|
+
const ASK_REQUEST_TTL_MS = 30_000;
|
|
54
|
+
|
|
55
|
+
export type AskMaestroKind = "order" | "booking" | "contact";
|
|
56
|
+
export interface AskMaestroRequest { kind: AskMaestroKind; id: string; subject: string; site: string; n: number }
|
|
57
|
+
|
|
58
|
+
export const isAskMaestroKind = (v: unknown): v is AskMaestroKind => v === "order" || v === "booking" || v === "contact";
|
|
59
|
+
|
|
60
|
+
/** Leave "ask Maestro about this item" for the Maestro tab. False when it could not be left
|
|
61
|
+
* (no id, no business, or a host without storage): the caller then opens the Maestro screen
|
|
62
|
+
* with params. */
|
|
63
|
+
export function requestAskMaestro(kind: unknown, id: unknown, subject: unknown, now: number): boolean {
|
|
64
|
+
const item = typeof id === "string" ? id.trim() : "";
|
|
65
|
+
const site = currentBusinessId();
|
|
66
|
+
if (!isAskMaestroKind(kind) || !item || !site) return false;
|
|
67
|
+
const storage = host()?.storage;
|
|
68
|
+
if (!storage) return false;
|
|
69
|
+
try {
|
|
70
|
+
storage.setItem(ASK_KEY, JSON.stringify({ kind, id: item, subject: typeof subject === "string" ? subject.trim() : "", site, n: now }));
|
|
71
|
+
return true;
|
|
72
|
+
} catch { return false; }
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** The request a detail screen left for `site`, while it is recent. */
|
|
76
|
+
export function pendingAskRequest(now: number, site: string): AskMaestroRequest | null {
|
|
77
|
+
try {
|
|
78
|
+
const raw = host()?.storage?.getItem(ASK_KEY);
|
|
79
|
+
if (!raw) return null;
|
|
80
|
+
const v = JSON.parse(raw) as Partial<AskMaestroRequest> | null;
|
|
81
|
+
if (!v || !isAskMaestroKind(v.kind) || typeof v.id !== "string" || !v.id || typeof v.n !== "number") return null;
|
|
82
|
+
// An item of another business is never asked about here: the owner switched in between.
|
|
83
|
+
if (!site || v.site !== site) return null;
|
|
84
|
+
if (now < v.n || now - v.n > ASK_REQUEST_TTL_MS) return null;
|
|
85
|
+
return { kind: v.kind, id: v.id, subject: typeof v.subject === "string" ? v.subject : "", site, n: v.n };
|
|
86
|
+
} catch { return null; }
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Drop the request: its chat was used or left (`stamp`: only the request with that stamp, so a
|
|
90
|
+
* newer one a detail screen left meanwhile stays), or the owner changed (no stamp: whatever is
|
|
91
|
+
* there). Never throws. */
|
|
92
|
+
export function clearAskRequest(stamp?: number): void {
|
|
93
|
+
try {
|
|
94
|
+
const storage = host()?.storage;
|
|
95
|
+
if (!storage) return;
|
|
96
|
+
if (stamp !== undefined) {
|
|
97
|
+
const raw = storage.getItem(ASK_KEY);
|
|
98
|
+
if (!raw || (JSON.parse(raw) as { n?: unknown } | null)?.n !== stamp) return;
|
|
99
|
+
}
|
|
100
|
+
storage.setItem(ASK_KEY, "");
|
|
101
|
+
} catch { /* no storage on this host, or nothing readable there: nothing to drop */ }
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** A detail worker's `askMaestro` action: leave the item, then switch to the Maestro tab at its
|
|
105
|
+
* root: a tab left on History or on a past chat would otherwise show that, and the root is
|
|
106
|
+
* what reads the request. Every binary that can show the Maestro tab knows `{ tab, reset }`:
|
|
107
|
+
* the form shipped on 2026-10-27, and the tab needs the NDJSON stream of 2026-11-25.
|
|
108
|
+
* On a host where the item cannot be left, open the Maestro screen about it instead. */
|
|
109
|
+
export function askMaestroNav<S extends object>(state: S, arg: unknown): S & { _nav: NavDirective } {
|
|
110
|
+
const a = (arg && typeof arg === "object" ? arg : {}) as { kind?: unknown; id?: unknown; subject?: unknown };
|
|
111
|
+
if (requestAskMaestro(a.kind, a.id, a.subject, Date.now())) return navigate(state, { tab: "maestro", reset: true });
|
|
112
|
+
const args: Record<string, string> = {};
|
|
113
|
+
for (const key of ["kind", "id", "subject"] as const) {
|
|
114
|
+
const value = a[key];
|
|
115
|
+
if (typeof value === "string" && value) args[key] = value;
|
|
116
|
+
}
|
|
117
|
+
return navigate(state, { screenId: "himi_owner_lite_maestro", args });
|
|
42
118
|
}
|
|
@@ -107,3 +107,18 @@ export function fallbackNameFrom(arg: unknown, current = ""): string {
|
|
|
107
107
|
const v = (arg as { businessName?: unknown } | undefined)?.businessName;
|
|
108
108
|
return typeof v === "string" && v.trim() ? v.trim() : current;
|
|
109
109
|
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The business the owner is working in, as an id for a call that must name it ("" = none known).
|
|
113
|
+
*
|
|
114
|
+
* The picked one first: the Sites pick records it at the moment of the switch, for every worker.
|
|
115
|
+
* The host's own scope (`__himiPreferenceBusiness`) is the fallback, not the first choice: a tab
|
|
116
|
+
* kept alive across a switch keeps the scope it was opened with (measured live 2026-11-28: after
|
|
117
|
+
* a switch the Inbox tab went on reading the first business, while Home read the new one).
|
|
118
|
+
*/
|
|
119
|
+
export function currentBusinessId(): string {
|
|
120
|
+
const picked = readSelectedSite()?.id?.trim();
|
|
121
|
+
if (picked) return picked;
|
|
122
|
+
const scoped = (globalThis as { himalaya?: { input?: Record<string, unknown> } }).himalaya?.input?.__himiPreferenceBusiness;
|
|
123
|
+
return typeof scoped === "string" ? scoped.trim() : "";
|
|
124
|
+
}
|
|
@@ -21,3 +21,10 @@ export function isSectionUnavailable(e: unknown): boolean {
|
|
|
21
21
|
const text = String((e as Error)?.message ?? e);
|
|
22
22
|
return /^HTTP (?:403|404|428)\b/.test(text) || /^HTTP \d{3} \[(?:FAILED_PRECONDITION|PERMISSION_DENIED)\]/.test(text);
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
/** The business has not set this area up: its app is not installed on the site, which Wix
|
|
26
|
+
* answers with 428. Narrower than `isSectionUnavailable`: a 403 or a 404 may be a mistake
|
|
27
|
+
* worth showing, while this one is simply "nothing here". Read from the leading status only. */
|
|
28
|
+
export function isNotInstalled(e: unknown): boolean {
|
|
29
|
+
return /^HTTP 428\b/.test(String((e as Error)?.message ?? e));
|
|
30
|
+
}
|