@withpotter/lib 0.13.0-next.101
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/__fixtures__/demo-content-server.json +484 -0
- package/dist/accessibility-context.d.ts +27 -0
- package/dist/accessibility-context.js +107 -0
- package/dist/accessibility-context.js.map +1 -0
- package/dist/active-workspace.d.ts +45 -0
- package/dist/active-workspace.js +34 -0
- package/dist/active-workspace.js.map +1 -0
- package/dist/admin-account-officer-api.d.ts +13 -0
- package/dist/admin-account-officer-api.js +12 -0
- package/dist/admin-account-officer-api.js.map +1 -0
- package/dist/admin-account-types.d.ts +122 -0
- package/dist/admin-account-types.js +1 -0
- package/dist/admin-account-types.js.map +1 -0
- package/dist/admin-adoption-api.d.ts +35 -0
- package/dist/admin-adoption-api.js +16 -0
- package/dist/admin-adoption-api.js.map +1 -0
- package/dist/admin-api.d.ts +1219 -0
- package/dist/admin-api.js +325 -0
- package/dist/admin-api.js.map +1 -0
- package/dist/admin-case-api.d.ts +32 -0
- package/dist/admin-case-api.js +63 -0
- package/dist/admin-case-api.js.map +1 -0
- package/dist/admin-case-types.d.ts +166 -0
- package/dist/admin-case-types.js +1 -0
- package/dist/admin-case-types.js.map +1 -0
- package/dist/admin-compliance-api.d.ts +31 -0
- package/dist/admin-compliance-api.js +20 -0
- package/dist/admin-compliance-api.js.map +1 -0
- package/dist/admin-country-api.d.ts +28 -0
- package/dist/admin-country-api.js +9 -0
- package/dist/admin-country-api.js.map +1 -0
- package/dist/admin-currency-types.d.ts +138 -0
- package/dist/admin-currency-types.js +1 -0
- package/dist/admin-currency-types.js.map +1 -0
- package/dist/admin-feedback-api.d.ts +215 -0
- package/dist/admin-feedback-api.js +63 -0
- package/dist/admin-feedback-api.js.map +1 -0
- package/dist/admin-inbox-seen.d.ts +22 -0
- package/dist/admin-inbox-seen.js +47 -0
- package/dist/admin-inbox-seen.js.map +1 -0
- package/dist/admin-ledger-api.d.ts +85 -0
- package/dist/admin-ledger-api.js +30 -0
- package/dist/admin-ledger-api.js.map +1 -0
- package/dist/admin-money-api.d.ts +127 -0
- package/dist/admin-money-api.js +125 -0
- package/dist/admin-money-api.js.map +1 -0
- package/dist/admin-newsletter-contacts-api.d.ts +70 -0
- package/dist/admin-newsletter-contacts-api.js +20 -0
- package/dist/admin-newsletter-contacts-api.js.map +1 -0
- package/dist/admin-newsletter-deliveries-api.d.ts +47 -0
- package/dist/admin-newsletter-deliveries-api.js +16 -0
- package/dist/admin-newsletter-deliveries-api.js.map +1 -0
- package/dist/admin-newsletters-api.d.ts +118 -0
- package/dist/admin-newsletters-api.js +47 -0
- package/dist/admin-newsletters-api.js.map +1 -0
- package/dist/admin-pos-api.d.ts +16 -0
- package/dist/admin-pos-api.js +35 -0
- package/dist/admin-pos-api.js.map +1 -0
- package/dist/admin-pos-query.d.ts +43 -0
- package/dist/admin-pos-query.js +55 -0
- package/dist/admin-pos-query.js.map +1 -0
- package/dist/admin-pos-types.d.ts +122 -0
- package/dist/admin-pos-types.js +1 -0
- package/dist/admin-pos-types.js.map +1 -0
- package/dist/admin-pricing-api.d.ts +88 -0
- package/dist/admin-pricing-api.js +66 -0
- package/dist/admin-pricing-api.js.map +1 -0
- package/dist/admin-readiness-api.d.ts +25 -0
- package/dist/admin-readiness-api.js +39 -0
- package/dist/admin-readiness-api.js.map +1 -0
- package/dist/admin-sales-api.d.ts +124 -0
- package/dist/admin-sales-api.js +41 -0
- package/dist/admin-sales-api.js.map +1 -0
- package/dist/admin-saved-replies-api.d.ts +35 -0
- package/dist/admin-saved-replies-api.js +70 -0
- package/dist/admin-saved-replies-api.js.map +1 -0
- package/dist/admin-service-operations-api.d.ts +142 -0
- package/dist/admin-service-operations-api.js +52 -0
- package/dist/admin-service-operations-api.js.map +1 -0
- package/dist/admin-signatures-api.d.ts +57 -0
- package/dist/admin-signatures-api.js +15 -0
- package/dist/admin-signatures-api.js.map +1 -0
- package/dist/admin-support-analytics-api.d.ts +36 -0
- package/dist/admin-support-analytics-api.js +71 -0
- package/dist/admin-support-analytics-api.js.map +1 -0
- package/dist/admin-tenant-setup-types.d.ts +85 -0
- package/dist/admin-tenant-setup-types.js +1 -0
- package/dist/admin-tenant-setup-types.js.map +1 -0
- package/dist/admin-tenants-query.d.ts +14 -0
- package/dist/admin-tenants-query.js +17 -0
- package/dist/admin-tenants-query.js.map +1 -0
- package/dist/analytics/PostHogProvider.d.ts +25 -0
- package/dist/analytics/PostHogProvider.js +44 -0
- package/dist/analytics/PostHogProvider.js.map +1 -0
- package/dist/analytics/index.d.ts +1 -0
- package/dist/analytics/index.js +11 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/analytics.d.ts +1 -0
- package/dist/analytics.js +1 -0
- package/dist/api/abandoned-cart.d.ts +18 -0
- package/dist/api/abandoned-cart.js +68 -0
- package/dist/api/abandoned-cart.js.map +1 -0
- package/dist/api/accounts.d.ts +176 -0
- package/dist/api/accounts.js +194 -0
- package/dist/api/accounts.js.map +1 -0
- package/dist/api/analytics-patterns.d.ts +18 -0
- package/dist/api/analytics-patterns.js +52 -0
- package/dist/api/analytics-patterns.js.map +1 -0
- package/dist/api/analytics.d.ts +143 -0
- package/dist/api/analytics.js +379 -0
- package/dist/api/analytics.js.map +1 -0
- package/dist/api/assignee-prefs.d.ts +7 -0
- package/dist/api/assignee-prefs.js +17 -0
- package/dist/api/assignee-prefs.js.map +1 -0
- package/dist/api/automations.d.ts +73 -0
- package/dist/api/automations.js +102 -0
- package/dist/api/automations.js.map +1 -0
- package/dist/api/behaviors.d.ts +15 -0
- package/dist/api/behaviors.js +15 -0
- package/dist/api/behaviors.js.map +1 -0
- package/dist/api/bio.d.ts +7 -0
- package/dist/api/bio.js +17 -0
- package/dist/api/bio.js.map +1 -0
- package/dist/api/booking-calendar.d.ts +14 -0
- package/dist/api/booking-calendar.js +33 -0
- package/dist/api/booking-calendar.js.map +1 -0
- package/dist/api/bookings.d.ts +199 -0
- package/dist/api/bookings.js +284 -0
- package/dist/api/bookings.js.map +1 -0
- package/dist/api/business-devices.d.ts +108 -0
- package/dist/api/business-devices.js +139 -0
- package/dist/api/business-devices.js.map +1 -0
- package/dist/api/business-locations.d.ts +26 -0
- package/dist/api/business-locations.js +39 -0
- package/dist/api/business-locations.js.map +1 -0
- package/dist/api/cache-bus.d.ts +56 -0
- package/dist/api/cache-bus.js +18 -0
- package/dist/api/cache-bus.js.map +1 -0
- package/dist/api/calendar-sync.d.ts +49 -0
- package/dist/api/calendar-sync.js +50 -0
- package/dist/api/calendar-sync.js.map +1 -0
- package/dist/api/campaign-initiatives.d.ts +115 -0
- package/dist/api/campaign-initiatives.js +42 -0
- package/dist/api/campaign-initiatives.js.map +1 -0
- package/dist/api/campaigns.d.ts +89 -0
- package/dist/api/campaigns.js +100 -0
- package/dist/api/campaigns.js.map +1 -0
- package/dist/api/capabilities.d.ts +12 -0
- package/dist/api/capabilities.js +16 -0
- package/dist/api/capabilities.js.map +1 -0
- package/dist/api/commerce.d.ts +19 -0
- package/dist/api/commerce.js +31 -0
- package/dist/api/commerce.js.map +1 -0
- package/dist/api/communications.d.ts +166 -0
- package/dist/api/communications.js +141 -0
- package/dist/api/communications.js.map +1 -0
- package/dist/api/connect.d.ts +72 -0
- package/dist/api/connect.js +50 -0
- package/dist/api/connect.js.map +1 -0
- package/dist/api/content.d.ts +146 -0
- package/dist/api/content.js +187 -0
- package/dist/api/content.js.map +1 -0
- package/dist/api/conversations.d.ts +79 -0
- package/dist/api/conversations.js +41 -0
- package/dist/api/conversations.js.map +1 -0
- package/dist/api/core.d.ts +62 -0
- package/dist/api/core.js +223 -0
- package/dist/api/core.js.map +1 -0
- package/dist/api/credentials.d.ts +65 -0
- package/dist/api/credentials.js +48 -0
- package/dist/api/credentials.js.map +1 -0
- package/dist/api/credits.d.ts +96 -0
- package/dist/api/credits.js +24 -0
- package/dist/api/credits.js.map +1 -0
- package/dist/api/crm-analytics.d.ts +10 -0
- package/dist/api/crm-analytics.js +22 -0
- package/dist/api/crm-analytics.js.map +1 -0
- package/dist/api/crm-segments.d.ts +14 -0
- package/dist/api/crm-segments.js +42 -0
- package/dist/api/crm-segments.js.map +1 -0
- package/dist/api/deliveries.d.ts +99 -0
- package/dist/api/deliveries.js +37 -0
- package/dist/api/deliveries.js.map +1 -0
- package/dist/api/demo-content.d.ts +104 -0
- package/dist/api/demo-content.js +36 -0
- package/dist/api/demo-content.js.map +1 -0
- package/dist/api/device-shifts.d.ts +56 -0
- package/dist/api/device-shifts.js +50 -0
- package/dist/api/device-shifts.js.map +1 -0
- package/dist/api/devices.d.ts +6 -0
- package/dist/api/devices.js +10 -0
- package/dist/api/devices.js.map +1 -0
- package/dist/api/digital-files.d.ts +22 -0
- package/dist/api/digital-files.js +55 -0
- package/dist/api/digital-files.js.map +1 -0
- package/dist/api/discounts.d.ts +29 -0
- package/dist/api/discounts.js +46 -0
- package/dist/api/discounts.js.map +1 -0
- package/dist/api/disputes.d.ts +47 -0
- package/dist/api/disputes.js +42 -0
- package/dist/api/disputes.js.map +1 -0
- package/dist/api/feature-locked.d.ts +11 -0
- package/dist/api/feature-locked.js +18 -0
- package/dist/api/feature-locked.js.map +1 -0
- package/dist/api/feedback-prompts.d.ts +45 -0
- package/dist/api/feedback-prompts.js +85 -0
- package/dist/api/feedback-prompts.js.map +1 -0
- package/dist/api/feedback.d.ts +254 -0
- package/dist/api/feedback.js +108 -0
- package/dist/api/feedback.js.map +1 -0
- package/dist/api/finance.d.ts +199 -0
- package/dist/api/finance.js +203 -0
- package/dist/api/finance.js.map +1 -0
- package/dist/api/gallery.d.ts +30 -0
- package/dist/api/gallery.js +48 -0
- package/dist/api/gallery.js.map +1 -0
- package/dist/api/geo.d.ts +18 -0
- package/dist/api/geo.js +19 -0
- package/dist/api/geo.js.map +1 -0
- package/dist/api/giftcards.d.ts +63 -0
- package/dist/api/giftcards.js +63 -0
- package/dist/api/giftcards.js.map +1 -0
- package/dist/api/hardware-orders.d.ts +40 -0
- package/dist/api/hardware-orders.js +37 -0
- package/dist/api/hardware-orders.js.map +1 -0
- package/dist/api/index.d.ts +71 -0
- package/dist/api/index.js +78 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/inquiries.d.ts +92 -0
- package/dist/api/inquiries.js +129 -0
- package/dist/api/inquiries.js.map +1 -0
- package/dist/api/inventory.d.ts +133 -0
- package/dist/api/inventory.js +203 -0
- package/dist/api/inventory.js.map +1 -0
- package/dist/api/invite-body.d.ts +19 -0
- package/dist/api/invite-body.js +8 -0
- package/dist/api/invite-body.js.map +1 -0
- package/dist/api/invoices.d.ts +19 -0
- package/dist/api/invoices.js +80 -0
- package/dist/api/invoices.js.map +1 -0
- package/dist/api/locations.d.ts +15 -0
- package/dist/api/locations.js +30 -0
- package/dist/api/locations.js.map +1 -0
- package/dist/api/loyalty.d.ts +68 -0
- package/dist/api/loyalty.js +112 -0
- package/dist/api/loyalty.js.map +1 -0
- package/dist/api/marketing-consent.d.ts +36 -0
- package/dist/api/marketing-consent.js +11 -0
- package/dist/api/marketing-consent.js.map +1 -0
- package/dist/api/marketing-suppressions.d.ts +81 -0
- package/dist/api/marketing-suppressions.js +65 -0
- package/dist/api/marketing-suppressions.js.map +1 -0
- package/dist/api/members.d.ts +79 -0
- package/dist/api/members.js +148 -0
- package/dist/api/members.js.map +1 -0
- package/dist/api/merchant-notifications.d.ts +27 -0
- package/dist/api/merchant-notifications.js +41 -0
- package/dist/api/merchant-notifications.js.map +1 -0
- package/dist/api/merchant-referrals.d.ts +23 -0
- package/dist/api/merchant-referrals.js +10 -0
- package/dist/api/merchant-referrals.js.map +1 -0
- package/dist/api/merchant-subscriptions.d.ts +117 -0
- package/dist/api/merchant-subscriptions.js +113 -0
- package/dist/api/merchant-subscriptions.js.map +1 -0
- package/dist/api/misc.d.ts +4 -0
- package/dist/api/misc.js +24 -0
- package/dist/api/misc.js.map +1 -0
- package/dist/api/odoo.d.ts +102 -0
- package/dist/api/odoo.js +36 -0
- package/dist/api/odoo.js.map +1 -0
- package/dist/api/onboarding.d.ts +48 -0
- package/dist/api/onboarding.js +78 -0
- package/dist/api/onboarding.js.map +1 -0
- package/dist/api/orders.d.ts +153 -0
- package/dist/api/orders.js +303 -0
- package/dist/api/orders.js.map +1 -0
- package/dist/api/organizations.d.ts +14 -0
- package/dist/api/organizations.js +19 -0
- package/dist/api/organizations.js.map +1 -0
- package/dist/api/packages.d.ts +16 -0
- package/dist/api/packages.js +25 -0
- package/dist/api/packages.js.map +1 -0
- package/dist/api/pages.d.ts +79 -0
- package/dist/api/pages.js +125 -0
- package/dist/api/pages.js.map +1 -0
- package/dist/api/payables.d.ts +34 -0
- package/dist/api/payables.js +70 -0
- package/dist/api/payables.js.map +1 -0
- package/dist/api/plan-refusal.d.ts +21 -0
- package/dist/api/plan-refusal.js +28 -0
- package/dist/api/plan-refusal.js.map +1 -0
- package/dist/api/pos.d.ts +66 -0
- package/dist/api/pos.js +115 -0
- package/dist/api/pos.js.map +1 -0
- package/dist/api/potter.d.ts +114 -0
- package/dist/api/potter.js +88 -0
- package/dist/api/potter.js.map +1 -0
- package/dist/api/push.d.ts +25 -0
- package/dist/api/push.js +23 -0
- package/dist/api/push.js.map +1 -0
- package/dist/api/referrals.d.ts +10 -0
- package/dist/api/referrals.js +16 -0
- package/dist/api/referrals.js.map +1 -0
- package/dist/api/resource-categories.d.ts +35 -0
- package/dist/api/resource-categories.js +76 -0
- package/dist/api/resource-categories.js.map +1 -0
- package/dist/api/resources.d.ts +54 -0
- package/dist/api/resources.js +92 -0
- package/dist/api/resources.js.map +1 -0
- package/dist/api/reviews.d.ts +18 -0
- package/dist/api/reviews.js +46 -0
- package/dist/api/reviews.js.map +1 -0
- package/dist/api/riders.d.ts +70 -0
- package/dist/api/riders.js +24 -0
- package/dist/api/riders.js.map +1 -0
- package/dist/api/role-permissions.d.ts +25 -0
- package/dist/api/role-permissions.js +47 -0
- package/dist/api/role-permissions.js.map +1 -0
- package/dist/api/sales-channels.d.ts +234 -0
- package/dist/api/sales-channels.js +119 -0
- package/dist/api/sales-channels.js.map +1 -0
- package/dist/api/service-missing.d.ts +10 -0
- package/dist/api/service-missing.js +19 -0
- package/dist/api/service-missing.js.map +1 -0
- package/dist/api/session-refresh.d.ts +18 -0
- package/dist/api/session-refresh.js +37 -0
- package/dist/api/session-refresh.js.map +1 -0
- package/dist/api/session-scope.d.ts +35 -0
- package/dist/api/session-scope.js +53 -0
- package/dist/api/session-scope.js.map +1 -0
- package/dist/api/settlements.d.ts +106 -0
- package/dist/api/settlements.js +114 -0
- package/dist/api/settlements.js.map +1 -0
- package/dist/api/share-links.d.ts +46 -0
- package/dist/api/share-links.js +25 -0
- package/dist/api/share-links.js.map +1 -0
- package/dist/api/shift-notes.d.ts +19 -0
- package/dist/api/shift-notes.js +13 -0
- package/dist/api/shift-notes.js.map +1 -0
- package/dist/api/shipping.d.ts +42 -0
- package/dist/api/shipping.js +53 -0
- package/dist/api/shipping.js.map +1 -0
- package/dist/api/social-sources.d.ts +58 -0
- package/dist/api/social-sources.js +23 -0
- package/dist/api/social-sources.js.map +1 -0
- package/dist/api/tabs.d.ts +14 -0
- package/dist/api/tabs.js +39 -0
- package/dist/api/tabs.js.map +1 -0
- package/dist/api/team.d.ts +112 -0
- package/dist/api/team.js +144 -0
- package/dist/api/team.js.map +1 -0
- package/dist/api/template-settings.d.ts +26 -0
- package/dist/api/template-settings.js +36 -0
- package/dist/api/template-settings.js.map +1 -0
- package/dist/api/templates.d.ts +21 -0
- package/dist/api/templates.js +25 -0
- package/dist/api/templates.js.map +1 -0
- package/dist/api/tenant-slug.d.ts +13 -0
- package/dist/api/tenant-slug.js +18 -0
- package/dist/api/tenant-slug.js.map +1 -0
- package/dist/api/tenant.d.ts +33 -0
- package/dist/api/tenant.js +51 -0
- package/dist/api/tenant.js.map +1 -0
- package/dist/api/types/analytics-attribution.d.ts +43 -0
- package/dist/api/types/analytics-attribution.js +1 -0
- package/dist/api/types/analytics-attribution.js.map +1 -0
- package/dist/api/types/analytics.d.ts +465 -0
- package/dist/api/types/analytics.js +1 -0
- package/dist/api/types/analytics.js.map +1 -0
- package/dist/api/types/auth.d.ts +206 -0
- package/dist/api/types/auth.js +7 -0
- package/dist/api/types/auth.js.map +1 -0
- package/dist/api/types/automation-flow.d.ts +199 -0
- package/dist/api/types/automation-flow.js +1 -0
- package/dist/api/types/automation-flow.js.map +1 -0
- package/dist/api/types/bookings.d.ts +226 -0
- package/dist/api/types/bookings.js +1 -0
- package/dist/api/types/bookings.js.map +1 -0
- package/dist/api/types/campaigns.d.ts +262 -0
- package/dist/api/types/campaigns.js +1 -0
- package/dist/api/types/campaigns.js.map +1 -0
- package/dist/api/types/catalog.d.ts +273 -0
- package/dist/api/types/catalog.js +1 -0
- package/dist/api/types/catalog.js.map +1 -0
- package/dist/api/types/collections.d.ts +189 -0
- package/dist/api/types/collections.js +1 -0
- package/dist/api/types/collections.js.map +1 -0
- package/dist/api/types/crm.d.ts +264 -0
- package/dist/api/types/crm.js +1 -0
- package/dist/api/types/crm.js.map +1 -0
- package/dist/api/types/customers.d.ts +269 -0
- package/dist/api/types/customers.js +1 -0
- package/dist/api/types/customers.js.map +1 -0
- package/dist/api/types/devices.d.ts +390 -0
- package/dist/api/types/devices.js +1 -0
- package/dist/api/types/devices.js.map +1 -0
- package/dist/api/types/discounts.d.ts +237 -0
- package/dist/api/types/discounts.js +1 -0
- package/dist/api/types/discounts.js.map +1 -0
- package/dist/api/types/filters.d.ts +258 -0
- package/dist/api/types/filters.js +1 -0
- package/dist/api/types/filters.js.map +1 -0
- package/dist/api/types/index.d.ts +31 -0
- package/dist/api/types/index.js +25 -0
- package/dist/api/types/index.js.map +1 -0
- package/dist/api/types/inquiries.d.ts +266 -0
- package/dist/api/types/inquiries.js +1 -0
- package/dist/api/types/inquiries.js.map +1 -0
- package/dist/api/types/locations.d.ts +208 -0
- package/dist/api/types/locations.js +1 -0
- package/dist/api/types/locations.js.map +1 -0
- package/dist/api/types/onboarding.d.ts +311 -0
- package/dist/api/types/onboarding.js +1 -0
- package/dist/api/types/onboarding.js.map +1 -0
- package/dist/api/types/operations.d.ts +136 -0
- package/dist/api/types/operations.js +1 -0
- package/dist/api/types/operations.js.map +1 -0
- package/dist/api/types/orders.d.ts +242 -0
- package/dist/api/types/orders.js +1 -0
- package/dist/api/types/orders.js.map +1 -0
- package/dist/api/types/payables.d.ts +140 -0
- package/dist/api/types/payables.js +1 -0
- package/dist/api/types/payables.js.map +1 -0
- package/dist/api/types/pos.d.ts +121 -0
- package/dist/api/types/pos.js +5 -0
- package/dist/api/types/pos.js.map +1 -0
- package/dist/api/types/record-analytics.d.ts +95 -0
- package/dist/api/types/record-analytics.js +1 -0
- package/dist/api/types/record-analytics.js.map +1 -0
- package/dist/api/types/sales-patterns.d.ts +58 -0
- package/dist/api/types/sales-patterns.js +1 -0
- package/dist/api/types/sales-patterns.js.map +1 -0
- package/dist/api/types/tabs.d.ts +210 -0
- package/dist/api/types/tabs.js +1 -0
- package/dist/api/types/tabs.js.map +1 -0
- package/dist/api/types/templates.d.ts +398 -0
- package/dist/api/types/templates.js +1 -0
- package/dist/api/types/templates.js.map +1 -0
- package/dist/api/types/waitlist.d.ts +324 -0
- package/dist/api/types/waitlist.js +1 -0
- package/dist/api/types/waitlist.js.map +1 -0
- package/dist/api/types.d.ts +1 -0
- package/dist/api/types.js +1 -0
- package/dist/api/unserved-routes.d.ts +4 -0
- package/dist/api/unserved-routes.js +15 -0
- package/dist/api/unserved-routes.js.map +1 -0
- package/dist/api/waitlist.d.ts +80 -0
- package/dist/api/waitlist.js +85 -0
- package/dist/api/waitlist.js.map +1 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/app-name.d.ts +29 -0
- package/dist/app-name.js +11 -0
- package/dist/app-name.js.map +1 -0
- package/dist/arrival.d.ts +48 -0
- package/dist/arrival.js +34 -0
- package/dist/arrival.js.map +1 -0
- package/dist/auth-context.d.ts +90 -0
- package/dist/auth-context.js +732 -0
- package/dist/auth-context.js.map +1 -0
- package/dist/auth-session.d.ts +1 -0
- package/dist/auth-session.js +25 -0
- package/dist/auth-session.js.map +1 -0
- package/dist/bank-phone.d.ts +2 -0
- package/dist/bank-phone.js +12 -0
- package/dist/bank-phone.js.map +1 -0
- package/dist/behavior-config-types.d.ts +49 -0
- package/dist/behavior-config-types.js +1 -0
- package/dist/behavior-config-types.js.map +1 -0
- package/dist/behavior-context.d.ts +15 -0
- package/dist/behavior-context.js +38 -0
- package/dist/behavior-context.js.map +1 -0
- package/dist/behavior-fields.d.ts +41 -0
- package/dist/behavior-fields.js +20 -0
- package/dist/behavior-fields.js.map +1 -0
- package/dist/blog/__fixtures__/paste-hygiene.d.ts +7 -0
- package/dist/blog/__fixtures__/paste-hygiene.js +36 -0
- package/dist/blog/__fixtures__/paste-hygiene.js.map +1 -0
- package/dist/blog/density.d.ts +65 -0
- package/dist/blog/density.js +126 -0
- package/dist/blog/density.js.map +1 -0
- package/dist/blog/paste-hygiene.d.ts +3 -0
- package/dist/blog/paste-hygiene.js +168 -0
- package/dist/blog/paste-hygiene.js.map +1 -0
- package/dist/booking-location-label.d.ts +10 -0
- package/dist/booking-location-label.js +24 -0
- package/dist/booking-location-label.js.map +1 -0
- package/dist/booking-meeting-link.d.ts +48 -0
- package/dist/booking-meeting-link.js +40 -0
- package/dist/booking-meeting-link.js.map +1 -0
- package/dist/box-channels.d.ts +22 -0
- package/dist/box-channels.js +16 -0
- package/dist/box-channels.js.map +1 -0
- package/dist/box-delivery.d.ts +10 -0
- package/dist/box-delivery.js +5 -0
- package/dist/box-delivery.js.map +1 -0
- package/dist/box-inbox.d.ts +11 -0
- package/dist/box-inbox.js +5 -0
- package/dist/box-inbox.js.map +1 -0
- package/dist/box-letting.d.ts +14 -0
- package/dist/box-letting.js +7 -0
- package/dist/box-letting.js.map +1 -0
- package/dist/box-mark-paths.d.ts +28 -0
- package/dist/box-mark-paths.js +23 -0
- package/dist/box-mark-paths.js.map +1 -0
- package/dist/box-media.d.ts +9 -0
- package/dist/box-media.js +5 -0
- package/dist/box-media.js.map +1 -0
- package/dist/box-products.d.ts +16 -0
- package/dist/box-products.js +9 -0
- package/dist/box-products.js.map +1 -0
- package/dist/box-splits.d.ts +12 -0
- package/dist/box-splits.js +5 -0
- package/dist/box-splits.js.map +1 -0
- package/dist/brand.d.ts +26 -0
- package/dist/brand.js +22 -0
- package/dist/brand.js.map +1 -0
- package/dist/business-categories.d.ts +50 -0
- package/dist/business-categories.js +378 -0
- package/dist/business-categories.js.map +1 -0
- package/dist/business-intents.d.ts +31 -0
- package/dist/business-intents.js +142 -0
- package/dist/business-intents.js.map +1 -0
- package/dist/capability-context.d.ts +63 -0
- package/dist/capability-context.js +84 -0
- package/dist/capability-context.js.map +1 -0
- package/dist/carriers.d.ts +83 -0
- package/dist/carriers.js +124 -0
- package/dist/carriers.js.map +1 -0
- package/dist/commerce-build/api.d.ts +29 -0
- package/dist/commerce-build/api.js +152 -0
- package/dist/commerce-build/api.js.map +1 -0
- package/dist/commerce-build/contracts-profile.d.ts +83 -0
- package/dist/commerce-build/contracts-profile.js +1 -0
- package/dist/commerce-build/contracts-profile.js.map +1 -0
- package/dist/commerce-build/contracts-spec.d.ts +217 -0
- package/dist/commerce-build/contracts-spec.js +1 -0
- package/dist/commerce-build/contracts-spec.js.map +1 -0
- package/dist/commerce-build/contracts.d.ts +2 -0
- package/dist/commerce-build/contracts.js +1 -0
- package/dist/commerce-build/contracts.js.map +1 -0
- package/dist/commerce-build/launch-state.d.ts +20 -0
- package/dist/commerce-build/launch-state.js +72 -0
- package/dist/commerce-build/launch-state.js.map +1 -0
- package/dist/commerce-build/profile-utils.d.ts +5 -0
- package/dist/commerce-build/profile-utils.js +14 -0
- package/dist/commerce-build/profile-utils.js.map +1 -0
- package/dist/commerce-build/setup-flow.d.ts +10 -0
- package/dist/commerce-build/setup-flow.js +24 -0
- package/dist/commerce-build/setup-flow.js.map +1 -0
- package/dist/commerce-build/setup-session.d.ts +26 -0
- package/dist/commerce-build/setup-session.js +70 -0
- package/dist/commerce-build/setup-session.js.map +1 -0
- package/dist/commerce-build/turn-streaming.d.ts +21 -0
- package/dist/commerce-build/turn-streaming.js +113 -0
- package/dist/commerce-build/turn-streaming.js.map +1 -0
- package/dist/commerce-build/workspace-components.d.ts +23 -0
- package/dist/commerce-build/workspace-components.js +66 -0
- package/dist/commerce-build/workspace-components.js.map +1 -0
- package/dist/commerce-build/workspace-config.d.ts +7 -0
- package/dist/commerce-build/workspace-config.js +74 -0
- package/dist/commerce-build/workspace-config.js.map +1 -0
- package/dist/companion/config.d.ts +31 -0
- package/dist/companion/config.js +59 -0
- package/dist/companion/config.js.map +1 -0
- package/dist/connect/catalog.d.ts +32 -0
- package/dist/connect/catalog.js +268 -0
- package/dist/connect/catalog.js.map +1 -0
- package/dist/connect/fixtures/commands.d.ts +8 -0
- package/dist/connect/fixtures/commands.js +146 -0
- package/dist/connect/fixtures/commands.js.map +1 -0
- package/dist/connect/fixtures/connections.d.ts +21 -0
- package/dist/connect/fixtures/connections.js +370 -0
- package/dist/connect/fixtures/connections.js.map +1 -0
- package/dist/connect/fixtures/identities.d.ts +10 -0
- package/dist/connect/fixtures/identities.js +61 -0
- package/dist/connect/fixtures/identities.js.map +1 -0
- package/dist/connect/fixtures/index.d.ts +11 -0
- package/dist/connect/fixtures/index.js +11 -0
- package/dist/connect/fixtures/index.js.map +1 -0
- package/dist/connect/fixtures/usage.d.ts +2 -0
- package/dist/connect/fixtures/usage.js +21 -0
- package/dist/connect/fixtures/usage.js.map +1 -0
- package/dist/connect/fixtures.d.ts +1 -0
- package/dist/connect/fixtures.js +1 -0
- package/dist/connect/from-notifications.d.ts +3 -0
- package/dist/connect/from-notifications.js +78 -0
- package/dist/connect/from-notifications.js.map +1 -0
- package/dist/connect/identity.d.ts +67 -0
- package/dist/connect/identity.js +24 -0
- package/dist/connect/identity.js.map +1 -0
- package/dist/connect/index.d.ts +13 -0
- package/dist/connect/index.js +22 -0
- package/dist/connect/index.js.map +1 -0
- package/dist/connect/next-up.d.ts +18 -0
- package/dist/connect/next-up.js +45 -0
- package/dist/connect/next-up.js.map +1 -0
- package/dist/connect/types.d.ts +354 -0
- package/dist/connect/types.js +68 -0
- package/dist/connect/types.js.map +1 -0
- package/dist/connect/use-connect.d.ts +51 -0
- package/dist/connect/use-connect.js +85 -0
- package/dist/connect/use-connect.js.map +1 -0
- package/dist/connect.d.ts +1 -0
- package/dist/connect.js +1 -0
- package/dist/converted-tag.d.ts +7 -0
- package/dist/converted-tag.js +9 -0
- package/dist/converted-tag.js.map +1 -0
- package/dist/countries.d.ts +65 -0
- package/dist/countries.js +374 -0
- package/dist/countries.js.map +1 -0
- package/dist/country-regions.d.ts +12 -0
- package/dist/country-regions.js +36 -0
- package/dist/country-regions.js.map +1 -0
- package/dist/csv.d.ts +28 -0
- package/dist/csv.js +91 -0
- package/dist/csv.js.map +1 -0
- package/dist/currency.d.ts +5 -0
- package/dist/currency.js +25 -0
- package/dist/currency.js.map +1 -0
- package/dist/customer-helpers.d.ts +30 -0
- package/dist/customer-helpers.js +66 -0
- package/dist/customer-helpers.js.map +1 -0
- package/dist/customer-stage.d.ts +125 -0
- package/dist/customer-stage.js +113 -0
- package/dist/customer-stage.js.map +1 -0
- package/dist/dashboard-destinations.d.ts +5 -0
- package/dist/dashboard-destinations.js +29 -0
- package/dist/dashboard-destinations.js.map +1 -0
- package/dist/demo-content-mock.d.ts +22 -0
- package/dist/demo-content-mock.js +70 -0
- package/dist/demo-content-mock.js.map +1 -0
- package/dist/demo-content-poller.d.ts +33 -0
- package/dist/demo-content-poller.js +80 -0
- package/dist/demo-content-poller.js.map +1 -0
- package/dist/demo-content.d.ts +43 -0
- package/dist/demo-content.js +78 -0
- package/dist/demo-content.js.map +1 -0
- package/dist/describe-activity.d.ts +44 -0
- package/dist/describe-activity.js +16 -0
- package/dist/describe-activity.js.map +1 -0
- package/dist/describe-invite.d.ts +19 -0
- package/dist/describe-invite.js +46 -0
- package/dist/describe-invite.js.map +1 -0
- package/dist/design-schema.d.ts +76 -0
- package/dist/design-schema.js +47 -0
- package/dist/design-schema.js.map +1 -0
- package/dist/destination-alias.d.ts +43 -0
- package/dist/destination-alias.js +146 -0
- package/dist/destination-alias.js.map +1 -0
- package/dist/document-numbering.d.ts +40 -0
- package/dist/document-numbering.js +48 -0
- package/dist/document-numbering.js.map +1 -0
- package/dist/document-title.d.ts +22 -0
- package/dist/document-title.js +85 -0
- package/dist/document-title.js.map +1 -0
- package/dist/editor/row-ops.d.ts +39 -0
- package/dist/editor/row-ops.js +25 -0
- package/dist/editor/row-ops.js.map +1 -0
- package/dist/editor-agent/apply-proposal.d.ts +12 -0
- package/dist/editor-agent/apply-proposal.js +44 -0
- package/dist/editor-agent/apply-proposal.js.map +1 -0
- package/dist/editor-agent/contracts.d.ts +174 -0
- package/dist/editor-agent/contracts.js +1 -0
- package/dist/editor-agent/contracts.js.map +1 -0
- package/dist/editor-agent/converse.d.ts +34 -0
- package/dist/editor-agent/converse.js +141 -0
- package/dist/editor-agent/converse.js.map +1 -0
- package/dist/editor-agent/flag.d.ts +12 -0
- package/dist/editor-agent/flag.js +19 -0
- package/dist/editor-agent/flag.js.map +1 -0
- package/dist/editor-agent/template-document.d.ts +52 -0
- package/dist/editor-agent/template-document.js +50 -0
- package/dist/editor-agent/template-document.js.map +1 -0
- package/dist/editor-agent/use-converse.d.ts +30 -0
- package/dist/editor-agent/use-converse.js +130 -0
- package/dist/editor-agent/use-converse.js.map +1 -0
- package/dist/effective-module-labels.d.ts +17 -0
- package/dist/effective-module-labels.js +14 -0
- package/dist/effective-module-labels.js.map +1 -0
- package/dist/embedded-frame.d.ts +30 -0
- package/dist/embedded-frame.js +23 -0
- package/dist/embedded-frame.js.map +1 -0
- package/dist/empty-state-copy.d.ts +27 -0
- package/dist/empty-state-copy.js +167 -0
- package/dist/empty-state-copy.js.map +1 -0
- package/dist/end-session.d.ts +23 -0
- package/dist/end-session.js +30 -0
- package/dist/end-session.js.map +1 -0
- package/dist/file-intake.d.ts +65 -0
- package/dist/file-intake.js +162 -0
- package/dist/file-intake.js.map +1 -0
- package/dist/first-run.d.ts +5 -0
- package/dist/first-run.js +13 -0
- package/dist/first-run.js.map +1 -0
- package/dist/form-answers.d.ts +57 -0
- package/dist/form-answers.js +79 -0
- package/dist/form-answers.js.map +1 -0
- package/dist/form-draft.d.ts +30 -0
- package/dist/form-draft.js +73 -0
- package/dist/form-draft.js.map +1 -0
- package/dist/format.d.ts +29 -0
- package/dist/format.js +21 -0
- package/dist/format.js.map +1 -0
- package/dist/fulfilment-nav.d.ts +79 -0
- package/dist/fulfilment-nav.js +18 -0
- package/dist/fulfilment-nav.js.map +1 -0
- package/dist/go-live-gate.d.ts +55 -0
- package/dist/go-live-gate.js +17 -0
- package/dist/go-live-gate.js.map +1 -0
- package/dist/group-activity.d.ts +37 -0
- package/dist/group-activity.js +43 -0
- package/dist/group-activity.js.map +1 -0
- package/dist/haptic.d.ts +5 -0
- package/dist/haptic.js +16 -0
- package/dist/haptic.js.map +1 -0
- package/dist/help-topics.d.ts +77 -0
- package/dist/help-topics.js +308 -0
- package/dist/help-topics.js.map +1 -0
- package/dist/icon-resolver.d.ts +45 -0
- package/dist/icon-resolver.js +40 -0
- package/dist/icon-resolver.js.map +1 -0
- package/dist/icons/commerce.d.ts +9 -0
- package/dist/icons/commerce.js +168 -0
- package/dist/icons/commerce.js.map +1 -0
- package/dist/icons/core.d.ts +9 -0
- package/dist/icons/core.js +173 -0
- package/dist/icons/core.js.map +1 -0
- package/dist/icons/making.d.ts +9 -0
- package/dist/icons/making.js +209 -0
- package/dist/icons/making.js.map +1 -0
- package/dist/icons/places.d.ts +9 -0
- package/dist/icons/places.js +232 -0
- package/dist/icons/places.js.map +1 -0
- package/dist/icons/world.d.ts +9 -0
- package/dist/icons/world.js +87 -0
- package/dist/icons/world.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/industry-configs/beauty.d.ts +2 -0
- package/dist/industry-configs/beauty.js +152 -0
- package/dist/industry-configs/beauty.js.map +1 -0
- package/dist/industry-configs/creative.d.ts +2 -0
- package/dist/industry-configs/creative.js +131 -0
- package/dist/industry-configs/creative.js.map +1 -0
- package/dist/industry-configs/default.d.ts +2 -0
- package/dist/industry-configs/default.js +77 -0
- package/dist/industry-configs/default.js.map +1 -0
- package/dist/industry-configs/education.d.ts +2 -0
- package/dist/industry-configs/education.js +137 -0
- package/dist/industry-configs/education.js.map +1 -0
- package/dist/industry-configs/events.d.ts +2 -0
- package/dist/industry-configs/events.js +118 -0
- package/dist/industry-configs/events.js.map +1 -0
- package/dist/industry-configs/fashion.d.ts +2 -0
- package/dist/industry-configs/fashion.js +128 -0
- package/dist/industry-configs/fashion.js.map +1 -0
- package/dist/industry-configs/fitness.d.ts +2 -0
- package/dist/industry-configs/fitness.js +128 -0
- package/dist/industry-configs/fitness.js.map +1 -0
- package/dist/industry-configs/food.d.ts +2 -0
- package/dist/industry-configs/food.js +138 -0
- package/dist/industry-configs/food.js.map +1 -0
- package/dist/industry-configs/hospitality.d.ts +2 -0
- package/dist/industry-configs/hospitality.js +157 -0
- package/dist/industry-configs/hospitality.js.map +1 -0
- package/dist/industry-configs/index.d.ts +25 -0
- package/dist/industry-configs/index.js +77 -0
- package/dist/industry-configs/index.js.map +1 -0
- package/dist/industry-configs/professional.d.ts +2 -0
- package/dist/industry-configs/professional.js +129 -0
- package/dist/industry-configs/professional.js.map +1 -0
- package/dist/industry-configs/realestate.d.ts +2 -0
- package/dist/industry-configs/realestate.js +146 -0
- package/dist/industry-configs/realestate.js.map +1 -0
- package/dist/industry-configs/retail.d.ts +2 -0
- package/dist/industry-configs/retail.js +108 -0
- package/dist/industry-configs/retail.js.map +1 -0
- package/dist/industry-configs/services.d.ts +2 -0
- package/dist/industry-configs/services.js +120 -0
- package/dist/industry-configs/services.js.map +1 -0
- package/dist/industry-configs/technology.d.ts +2 -0
- package/dist/industry-configs/technology.js +120 -0
- package/dist/industry-configs/technology.js.map +1 -0
- package/dist/industry-configs/types.d.ts +99 -0
- package/dist/industry-configs/types.js +1 -0
- package/dist/industry-configs/types.js.map +1 -0
- package/dist/industry-configs/wellness.d.ts +2 -0
- package/dist/industry-configs/wellness.js +112 -0
- package/dist/industry-configs/wellness.js.map +1 -0
- package/dist/industry-configs.d.ts +1 -0
- package/dist/industry-configs.js +1 -0
- package/dist/intents/analytics-labels.d.ts +70 -0
- package/dist/intents/analytics-labels.js +39 -0
- package/dist/intents/analytics-labels.js.map +1 -0
- package/dist/intents/archetype-flow.d.ts +146 -0
- package/dist/intents/archetype-flow.js +185 -0
- package/dist/intents/archetype-flow.js.map +1 -0
- package/dist/intents/booking-query-style.d.ts +32 -0
- package/dist/intents/booking-query-style.js +22 -0
- package/dist/intents/booking-query-style.js.map +1 -0
- package/dist/intents/capture-leads.config.d.ts +31 -0
- package/dist/intents/capture-leads.config.js +231 -0
- package/dist/intents/capture-leads.config.js.map +1 -0
- package/dist/intents/catalog-stock.d.ts +43 -0
- package/dist/intents/catalog-stock.js +43 -0
- package/dist/intents/catalog-stock.js.map +1 -0
- package/dist/intents/collapse-shared-nav.d.ts +95 -0
- package/dist/intents/collapse-shared-nav.js +171 -0
- package/dist/intents/collapse-shared-nav.js.map +1 -0
- package/dist/intents/default-commerce.config.d.ts +6 -0
- package/dist/intents/default-commerce.config.js +281 -0
- package/dist/intents/default-commerce.config.js.map +1 -0
- package/dist/intents/digital-products.config.d.ts +2 -0
- package/dist/intents/digital-products.config.js +239 -0
- package/dist/intents/digital-products.config.js.map +1 -0
- package/dist/intents/dine-in.config.d.ts +15 -0
- package/dist/intents/dine-in.config.js +331 -0
- package/dist/intents/dine-in.config.js.map +1 -0
- package/dist/intents/event-tickets.config.d.ts +2 -0
- package/dist/intents/event-tickets.config.js +368 -0
- package/dist/intents/event-tickets.config.js.map +1 -0
- package/dist/intents/food-orders.config.d.ts +2 -0
- package/dist/intents/food-orders.config.js +299 -0
- package/dist/intents/food-orders.config.js.map +1 -0
- package/dist/intents/icon-map.d.ts +15 -0
- package/dist/intents/icon-map.js +104 -0
- package/dist/intents/icon-map.js.map +1 -0
- package/dist/intents/index.d.ts +12 -0
- package/dist/intents/index.js +50 -0
- package/dist/intents/index.js.map +1 -0
- package/dist/intents/infer-intents.d.ts +10 -0
- package/dist/intents/infer-intents.js +23 -0
- package/dist/intents/infer-intents.js.map +1 -0
- package/dist/intents/intent-chips.d.ts +47 -0
- package/dist/intents/intent-chips.js +38 -0
- package/dist/intents/intent-chips.js.map +1 -0
- package/dist/intents/intent-nav.d.ts +95 -0
- package/dist/intents/intent-nav.js +423 -0
- package/dist/intents/intent-nav.js.map +1 -0
- package/dist/intents/intent-scope.d.ts +52 -0
- package/dist/intents/intent-scope.js +19 -0
- package/dist/intents/intent-scope.js.map +1 -0
- package/dist/intents/nav-coverage.d.ts +71 -0
- package/dist/intents/nav-coverage.js +132 -0
- package/dist/intents/nav-coverage.js.map +1 -0
- package/dist/intents/operating-shell.d.ts +45 -0
- package/dist/intents/operating-shell.js +142 -0
- package/dist/intents/operating-shell.js.map +1 -0
- package/dist/intents/order-display.d.ts +21 -0
- package/dist/intents/order-display.js +110 -0
- package/dist/intents/order-display.js.map +1 -0
- package/dist/intents/order-intent.d.ts +18 -0
- package/dist/intents/order-intent.js +14 -0
- package/dist/intents/order-intent.js.map +1 -0
- package/dist/intents/order-progress.d.ts +81 -0
- package/dist/intents/order-progress.js +91 -0
- package/dist/intents/order-progress.js.map +1 -0
- package/dist/intents/order-sections.d.ts +173 -0
- package/dist/intents/order-sections.js +188 -0
- package/dist/intents/order-sections.js.map +1 -0
- package/dist/intents/order-stats.d.ts +24 -0
- package/dist/intents/order-stats.js +16 -0
- package/dist/intents/order-stats.js.map +1 -0
- package/dist/intents/order-transitions.d.ts +19 -0
- package/dist/intents/order-transitions.js +66 -0
- package/dist/intents/order-transitions.js.map +1 -0
- package/dist/intents/product-editor-config.d.ts +23 -0
- package/dist/intents/product-editor-config.js +13 -0
- package/dist/intents/product-editor-config.js.map +1 -0
- package/dist/intents/product-intent.d.ts +38 -0
- package/dist/intents/product-intent.js +19 -0
- package/dist/intents/product-intent.js.map +1 -0
- package/dist/intents/registry.d.ts +32 -0
- package/dist/intents/registry.js +41 -0
- package/dist/intents/registry.js.map +1 -0
- package/dist/intents/rent-property.config.d.ts +2 -0
- package/dist/intents/rent-property.config.js +284 -0
- package/dist/intents/rent-property.config.js.map +1 -0
- package/dist/intents/resolve-stats.d.ts +7 -0
- package/dist/intents/resolve-stats.js +29 -0
- package/dist/intents/resolve-stats.js.map +1 -0
- package/dist/intents/resolve-tenant-intents.d.ts +11 -0
- package/dist/intents/resolve-tenant-intents.js +61 -0
- package/dist/intents/resolve-tenant-intents.js.map +1 -0
- package/dist/intents/resolvers.d.ts +52 -0
- package/dist/intents/resolvers.js +177 -0
- package/dist/intents/resolvers.js.map +1 -0
- package/dist/intents/row-identity.d.ts +62 -0
- package/dist/intents/row-identity.js +25 -0
- package/dist/intents/row-identity.js.map +1 -0
- package/dist/intents/sales-verb.d.ts +8 -0
- package/dist/intents/sales-verb.js +12 -0
- package/dist/intents/sales-verb.js.map +1 -0
- package/dist/intents/scoped-config.d.ts +12 -0
- package/dist/intents/scoped-config.js +17 -0
- package/dist/intents/scoped-config.js.map +1 -0
- package/dist/intents/screen-title.d.ts +27 -0
- package/dist/intents/screen-title.js +59 -0
- package/dist/intents/screen-title.js.map +1 -0
- package/dist/intents/section-registry.d.ts +48 -0
- package/dist/intents/section-registry.js +33 -0
- package/dist/intents/section-registry.js.map +1 -0
- package/dist/intents/sell-products.config.d.ts +2 -0
- package/dist/intents/sell-products.config.js +275 -0
- package/dist/intents/sell-products.config.js.map +1 -0
- package/dist/intents/send-invoices.config.d.ts +16 -0
- package/dist/intents/send-invoices.config.js +223 -0
- package/dist/intents/send-invoices.config.js.map +1 -0
- package/dist/intents/subscriptions.config.d.ts +2 -0
- package/dist/intents/subscriptions.config.js +260 -0
- package/dist/intents/subscriptions.config.js.map +1 -0
- package/dist/intents/take-bookings.config.d.ts +2 -0
- package/dist/intents/take-bookings.config.js +298 -0
- package/dist/intents/take-bookings.config.js.map +1 -0
- package/dist/intents/types.d.ts +246 -0
- package/dist/intents/types.js +1 -0
- package/dist/intents/types.js.map +1 -0
- package/dist/intents/use-active-intent.d.ts +27 -0
- package/dist/intents/use-active-intent.js +74 -0
- package/dist/intents/use-active-intent.js.map +1 -0
- package/dist/intents/use-destination-label.d.ts +18 -0
- package/dist/intents/use-destination-label.js +45 -0
- package/dist/intents/use-destination-label.js.map +1 -0
- package/dist/intents/use-entity-label.d.ts +32 -0
- package/dist/intents/use-entity-label.js +75 -0
- package/dist/intents/use-entity-label.js.map +1 -0
- package/dist/intents/use-intent-config.d.ts +20 -0
- package/dist/intents/use-intent-config.js +91 -0
- package/dist/intents/use-intent-config.js.map +1 -0
- package/dist/intents/use-intent-nav-rows.d.ts +26 -0
- package/dist/intents/use-intent-nav-rows.js +49 -0
- package/dist/intents/use-intent-nav-rows.js.map +1 -0
- package/dist/intents/use-resource-label.d.ts +10 -0
- package/dist/intents/use-resource-label.js +9 -0
- package/dist/intents/use-resource-label.js.map +1 -0
- package/dist/intents/use-row-noun.d.ts +19 -0
- package/dist/intents/use-row-noun.js +13 -0
- package/dist/intents/use-row-noun.js.map +1 -0
- package/dist/intents/use-screen-title.d.ts +9 -0
- package/dist/intents/use-screen-title.js +25 -0
- package/dist/intents/use-screen-title.js.map +1 -0
- package/dist/intents/what-it-adds.d.ts +70 -0
- package/dist/intents/what-it-adds.js +29 -0
- package/dist/intents/what-it-adds.js.map +1 -0
- package/dist/intents/workflow-shape.d.ts +66 -0
- package/dist/intents/workflow-shape.js +151 -0
- package/dist/intents/workflow-shape.js.map +1 -0
- package/dist/intents.d.ts +1 -0
- package/dist/intents.js +1 -0
- package/dist/invite-refusal.d.ts +37 -0
- package/dist/invite-refusal.js +26 -0
- package/dist/invite-refusal.js.map +1 -0
- package/dist/invoice-brand.d.ts +28 -0
- package/dist/invoice-brand.js +33 -0
- package/dist/invoice-brand.js.map +1 -0
- package/dist/ios-navigation-context.d.ts +11 -0
- package/dist/ios-navigation-context.js +52 -0
- package/dist/ios-navigation-context.js.map +1 -0
- package/dist/legal-links.d.ts +10 -0
- package/dist/legal-links.js +7 -0
- package/dist/legal-links.js.map +1 -0
- package/dist/letting-policy.d.ts +85 -0
- package/dist/letting-policy.js +47 -0
- package/dist/letting-policy.js.map +1 -0
- package/dist/list-page-size.d.ts +24 -0
- package/dist/list-page-size.js +5 -0
- package/dist/list-page-size.js.map +1 -0
- package/dist/live-events/sse-frames.d.ts +15 -0
- package/dist/live-events/sse-frames.js +37 -0
- package/dist/live-events/sse-frames.js.map +1 -0
- package/dist/location-options.d.ts +16 -0
- package/dist/location-options.js +94 -0
- package/dist/location-options.js.map +1 -0
- package/dist/location-scope-context.d.ts +47 -0
- package/dist/location-scope-context.js +85 -0
- package/dist/location-scope-context.js.map +1 -0
- package/dist/media-service.d.ts +97 -0
- package/dist/media-service.js +282 -0
- package/dist/media-service.js.map +1 -0
- package/dist/media-utils.d.ts +51 -0
- package/dist/media-utils.js +85 -0
- package/dist/media-utils.js.map +1 -0
- package/dist/member-presence.d.ts +40 -0
- package/dist/member-presence.js +77 -0
- package/dist/member-presence.js.map +1 -0
- package/dist/member-subscription-enrollment.d.ts +16 -0
- package/dist/member-subscription-enrollment.js +32 -0
- package/dist/member-subscription-enrollment.js.map +1 -0
- package/dist/membership-freshness.d.ts +31 -0
- package/dist/membership-freshness.js +21 -0
- package/dist/membership-freshness.js.map +1 -0
- package/dist/mobile-header-context.d.ts +32 -0
- package/dist/mobile-header-context.js +59 -0
- package/dist/mobile-header-context.js.map +1 -0
- package/dist/mobile-routes.d.ts +81 -0
- package/dist/mobile-routes.js +406 -0
- package/dist/mobile-routes.js.map +1 -0
- package/dist/mobile-tab-config.d.ts +18 -0
- package/dist/mobile-tab-config.js +43 -0
- package/dist/mobile-tab-config.js.map +1 -0
- package/dist/money-coming-soon.d.ts +16 -0
- package/dist/money-coming-soon.js +22 -0
- package/dist/money-coming-soon.js.map +1 -0
- package/dist/money-minor.d.ts +17 -0
- package/dist/money-minor.js +53 -0
- package/dist/money-minor.js.map +1 -0
- package/dist/money-visibility.d.ts +38 -0
- package/dist/money-visibility.js +13 -0
- package/dist/money-visibility.js.map +1 -0
- package/dist/motion.d.ts +160 -0
- package/dist/motion.js +130 -0
- package/dist/motion.js.map +1 -0
- package/dist/nav-pending.d.ts +42 -0
- package/dist/nav-pending.js +84 -0
- package/dist/nav-pending.js.map +1 -0
- package/dist/navigation-groups.d.ts +52 -0
- package/dist/navigation-groups.js +64 -0
- package/dist/navigation-groups.js.map +1 -0
- package/dist/onboarding-draft.d.ts +23 -0
- package/dist/onboarding-draft.js +35 -0
- package/dist/onboarding-draft.js.map +1 -0
- package/dist/operating-model/index.d.ts +4 -0
- package/dist/operating-model/index.js +13 -0
- package/dist/operating-model/index.js.map +1 -0
- package/dist/operating-model/order-display.d.ts +10 -0
- package/dist/operating-model/order-display.js +24 -0
- package/dist/operating-model/order-display.js.map +1 -0
- package/dist/operating-model/resolver.d.ts +9 -0
- package/dist/operating-model/resolver.js +110 -0
- package/dist/operating-model/resolver.js.map +1 -0
- package/dist/operating-model/types.d.ts +36 -0
- package/dist/operating-model/types.js +1 -0
- package/dist/operating-model/types.js.map +1 -0
- package/dist/operating-model/use-operating-model.d.ts +7 -0
- package/dist/operating-model/use-operating-model.js +65 -0
- package/dist/operating-model/use-operating-model.js.map +1 -0
- package/dist/operating-model.d.ts +1 -0
- package/dist/operating-model.js +1 -0
- package/dist/order-config.d.ts +30 -0
- package/dist/order-config.js +56 -0
- package/dist/order-config.js.map +1 -0
- package/dist/order-discounts.d.ts +25 -0
- package/dist/order-discounts.js +27 -0
- package/dist/order-discounts.js.map +1 -0
- package/dist/order-shipping.d.ts +33 -0
- package/dist/order-shipping.js +49 -0
- package/dist/order-shipping.js.map +1 -0
- package/dist/order-tax.d.ts +28 -0
- package/dist/order-tax.js +21 -0
- package/dist/order-tax.js.map +1 -0
- package/dist/page-intros.d.ts +78 -0
- package/dist/page-intros.js +164 -0
- package/dist/page-intros.js.map +1 -0
- package/dist/page-transition.d.ts +20 -0
- package/dist/page-transition.js +19 -0
- package/dist/page-transition.js.map +1 -0
- package/dist/pages-api-response.d.ts +8 -0
- package/dist/pages-api-response.js +18 -0
- package/dist/pages-api-response.js.map +1 -0
- package/dist/payment-method-label.d.ts +6 -0
- package/dist/payment-method-label.js +14 -0
- package/dist/payment-method-label.js.map +1 -0
- package/dist/permission-aliases.d.ts +18 -0
- package/dist/permission-aliases.js +20 -0
- package/dist/permission-aliases.js.map +1 -0
- package/dist/permission-catalog-fallback.d.ts +17 -0
- package/dist/permission-catalog-fallback.js +147 -0
- package/dist/permission-catalog-fallback.js.map +1 -0
- package/dist/permission-change.d.ts +42 -0
- package/dist/permission-change.js +33 -0
- package/dist/permission-change.js.map +1 -0
- package/dist/phone.d.ts +16 -0
- package/dist/phone.js +20 -0
- package/dist/phone.js.map +1 -0
- package/dist/plan-access.d.ts +39 -0
- package/dist/plan-access.js +57 -0
- package/dist/plan-access.js.map +1 -0
- package/dist/plan-card-api.d.ts +34 -0
- package/dist/plan-card-api.js +30 -0
- package/dist/plan-card-api.js.map +1 -0
- package/dist/plan-price.d.ts +34 -0
- package/dist/plan-price.js +57 -0
- package/dist/plan-price.js.map +1 -0
- package/dist/post-login-target.d.ts +24 -0
- package/dist/post-login-target.js +12 -0
- package/dist/post-login-target.js.map +1 -0
- package/dist/potter-mark-paths.d.ts +21 -0
- package/dist/potter-mark-paths.js +9 -0
- package/dist/potter-mark-paths.js.map +1 -0
- package/dist/pricing-plans-types.d.ts +143 -0
- package/dist/pricing-plans-types.js +1 -0
- package/dist/pricing-plans-types.js.map +1 -0
- package/dist/product-assignees.d.ts +1 -0
- package/dist/product-assignees.js +18 -0
- package/dist/product-assignees.js.map +1 -0
- package/dist/product-collection-sync.d.ts +12 -0
- package/dist/product-collection-sync.js +97 -0
- package/dist/product-collection-sync.js.map +1 -0
- package/dist/product-cost.d.ts +12 -0
- package/dist/product-cost.js +24 -0
- package/dist/product-cost.js.map +1 -0
- package/dist/product-insights-api.d.ts +38 -0
- package/dist/product-insights-api.js +51 -0
- package/dist/product-insights-api.js.map +1 -0
- package/dist/product-types.d.ts +311 -0
- package/dist/product-types.js +38 -0
- package/dist/product-types.js.map +1 -0
- package/dist/promised-day.d.ts +33 -0
- package/dist/promised-day.js +38 -0
- package/dist/promised-day.js.map +1 -0
- package/dist/proposals-api.d.ts +96 -0
- package/dist/proposals-api.js +41 -0
- package/dist/proposals-api.js.map +1 -0
- package/dist/proxy-allowlist.d.ts +15 -0
- package/dist/proxy-allowlist.js +153 -0
- package/dist/proxy-allowlist.js.map +1 -0
- package/dist/public-config-loader.d.ts +27 -0
- package/dist/public-config-loader.js +12 -0
- package/dist/public-config-loader.js.map +1 -0
- package/dist/public-config-provider.d.ts +16 -0
- package/dist/public-config-provider.js +14 -0
- package/dist/public-config-provider.js.map +1 -0
- package/dist/resolve-enabled-behaviors.d.ts +55 -0
- package/dist/resolve-enabled-behaviors.js +134 -0
- package/dist/resolve-enabled-behaviors.js.map +1 -0
- package/dist/resource-types.d.ts +198 -0
- package/dist/resource-types.js +96 -0
- package/dist/resource-types.js.map +1 -0
- package/dist/resume-screen.d.ts +31 -0
- package/dist/resume-screen.js +25 -0
- package/dist/resume-screen.js.map +1 -0
- package/dist/rider-display.d.ts +37 -0
- package/dist/rider-display.js +110 -0
- package/dist/rider-display.js.map +1 -0
- package/dist/rider-view.d.ts +37 -0
- package/dist/rider-view.js +47 -0
- package/dist/rider-view.js.map +1 -0
- package/dist/roster-label.d.ts +27 -0
- package/dist/roster-label.js +8 -0
- package/dist/roster-label.js.map +1 -0
- package/dist/route-pattern.d.ts +11 -0
- package/dist/route-pattern.js +20 -0
- package/dist/route-pattern.js.map +1 -0
- package/dist/route-permission.d.ts +60 -0
- package/dist/route-permission.js +48 -0
- package/dist/route-permission.js.map +1 -0
- package/dist/runtime-config.d.ts +33 -0
- package/dist/runtime-config.js +23 -0
- package/dist/runtime-config.js.map +1 -0
- package/dist/schema-validation.d.ts +172 -0
- package/dist/schema-validation.js +252 -0
- package/dist/schema-validation.js.map +1 -0
- package/dist/service-areas.d.ts +30 -0
- package/dist/service-areas.js +24 -0
- package/dist/service-areas.js.map +1 -0
- package/dist/service-operations-api.d.ts +78 -0
- package/dist/service-operations-api.js +37 -0
- package/dist/service-operations-api.js.map +1 -0
- package/dist/settings-relevance.d.ts +64 -0
- package/dist/settings-relevance.js +25 -0
- package/dist/settings-relevance.js.map +1 -0
- package/dist/singularise.d.ts +16 -0
- package/dist/singularise.js +37 -0
- package/dist/singularise.js.map +1 -0
- package/dist/site-address.d.ts +14 -0
- package/dist/site-address.js +28 -0
- package/dist/site-address.js.map +1 -0
- package/dist/slug.d.ts +26 -0
- package/dist/slug.js +15 -0
- package/dist/slug.js.map +1 -0
- package/dist/sound.d.ts +14 -0
- package/dist/sound.js +166 -0
- package/dist/sound.js.map +1 -0
- package/dist/staff-arrival.d.ts +3 -0
- package/dist/staff-arrival.js +11 -0
- package/dist/staff-arrival.js.map +1 -0
- package/dist/staff-home.d.ts +58 -0
- package/dist/staff-home.js +90 -0
- package/dist/staff-home.js.map +1 -0
- package/dist/staff-landing.d.ts +1 -0
- package/dist/staff-landing.js +15 -0
- package/dist/staff-landing.js.map +1 -0
- package/dist/stat-card-types.d.ts +19 -0
- package/dist/stat-card-types.js +1 -0
- package/dist/stat-card-types.js.map +1 -0
- package/dist/stock-levels.d.ts +32 -0
- package/dist/stock-levels.js +17 -0
- package/dist/stock-levels.js.map +1 -0
- package/dist/stored-token.d.ts +1 -0
- package/dist/stored-token.js +11 -0
- package/dist/stored-token.js.map +1 -0
- package/dist/storefront-url.d.ts +31 -0
- package/dist/storefront-url.js +40 -0
- package/dist/storefront-url.js.map +1 -0
- package/dist/storefront.d.ts +64 -0
- package/dist/storefront.js +51 -0
- package/dist/storefront.js.map +1 -0
- package/dist/subscription-billing-api.d.ts +115 -0
- package/dist/subscription-billing-api.js +27 -0
- package/dist/subscription-billing-api.js.map +1 -0
- package/dist/subscription-billing-model.d.ts +26 -0
- package/dist/subscription-billing-model.js +58 -0
- package/dist/subscription-billing-model.js.map +1 -0
- package/dist/support-case-subject.d.ts +10 -0
- package/dist/support-case-subject.js +13 -0
- package/dist/support-case-subject.js.map +1 -0
- package/dist/support-inbox.d.ts +6 -0
- package/dist/support-inbox.js +5 -0
- package/dist/support-inbox.js.map +1 -0
- package/dist/support.d.ts +7 -0
- package/dist/support.js +16 -0
- package/dist/support.js.map +1 -0
- package/dist/team-page.d.ts +9 -0
- package/dist/team-page.js +5 -0
- package/dist/team-page.js.map +1 -0
- package/dist/team-roles.d.ts +140 -0
- package/dist/team-roles.js +247 -0
- package/dist/team-roles.js.map +1 -0
- package/dist/team-successors.d.ts +20 -0
- package/dist/team-successors.js +13 -0
- package/dist/team-successors.js.map +1 -0
- package/dist/template-asset-url.d.ts +11 -0
- package/dist/template-asset-url.js +8 -0
- package/dist/template-asset-url.js.map +1 -0
- package/dist/template-capabilities.d.ts +2 -0
- package/dist/template-capabilities.js +71 -0
- package/dist/template-capabilities.js.map +1 -0
- package/dist/template-context.d.ts +111 -0
- package/dist/template-context.js +1278 -0
- package/dist/template-context.js.map +1 -0
- package/dist/template-filter.d.ts +29 -0
- package/dist/template-filter.js +41 -0
- package/dist/template-filter.js.map +1 -0
- package/dist/template-preview/preview-author-patch.d.ts +24 -0
- package/dist/template-preview/preview-author-patch.js +78 -0
- package/dist/template-preview/preview-author-patch.js.map +1 -0
- package/dist/template-preview/use-template-document.d.ts +38 -0
- package/dist/template-preview/use-template-document.js +45 -0
- package/dist/template-preview/use-template-document.js.map +1 -0
- package/dist/template-requirements.d.ts +38 -0
- package/dist/template-requirements.js +13 -0
- package/dist/template-requirements.js.map +1 -0
- package/dist/template-types.d.ts +317 -0
- package/dist/template-types.js +1 -0
- package/dist/template-types.js.map +1 -0
- package/dist/templates.d.ts +22 -0
- package/dist/templates.js +1 -0
- package/dist/templates.js.map +1 -0
- package/dist/theme-context.d.ts +58 -0
- package/dist/theme-context.js +283 -0
- package/dist/theme-context.js.map +1 -0
- package/dist/theme-policy.d.ts +41 -0
- package/dist/theme-policy.js +32 -0
- package/dist/theme-policy.js.map +1 -0
- package/dist/ticket-access.d.ts +20 -0
- package/dist/ticket-access.js +39 -0
- package/dist/ticket-access.js.map +1 -0
- package/dist/timeline-copy.d.ts +65 -0
- package/dist/timeline-copy.js +150 -0
- package/dist/timeline-copy.js.map +1 -0
- package/dist/url-params.d.ts +23 -0
- package/dist/url-params.js +43 -0
- package/dist/url-params.js.map +1 -0
- package/dist/use-behaviors.d.ts +13 -0
- package/dist/use-behaviors.js +41 -0
- package/dist/use-behaviors.js.map +1 -0
- package/dist/use-business-locations.d.ts +35 -0
- package/dist/use-business-locations.js +71 -0
- package/dist/use-business-locations.js.map +1 -0
- package/dist/use-currency.d.ts +12 -0
- package/dist/use-currency.js +16 -0
- package/dist/use-currency.js.map +1 -0
- package/dist/use-empty-state-copy.d.ts +12 -0
- package/dist/use-empty-state-copy.js +13 -0
- package/dist/use-empty-state-copy.js.map +1 -0
- package/dist/use-geo-cities.d.ts +1 -0
- package/dist/use-geo-cities.js +42 -0
- package/dist/use-geo-cities.js.map +1 -0
- package/dist/use-has-hardware.d.ts +13 -0
- package/dist/use-has-hardware.js +14 -0
- package/dist/use-has-hardware.js.map +1 -0
- package/dist/use-industry-key.d.ts +10 -0
- package/dist/use-industry-key.js +16 -0
- package/dist/use-industry-key.js.map +1 -0
- package/dist/use-item-links.d.ts +20 -0
- package/dist/use-item-links.js +30 -0
- package/dist/use-item-links.js.map +1 -0
- package/dist/use-job-roles.d.ts +21 -0
- package/dist/use-job-roles.js +76 -0
- package/dist/use-job-roles.js.map +1 -0
- package/dist/use-merchant-plan.d.ts +36 -0
- package/dist/use-merchant-plan.js +78 -0
- package/dist/use-merchant-plan.js.map +1 -0
- package/dist/use-module-label.d.ts +12 -0
- package/dist/use-module-label.js +13 -0
- package/dist/use-module-label.js.map +1 -0
- package/dist/use-money-visibility.d.ts +14 -0
- package/dist/use-money-visibility.js +13 -0
- package/dist/use-money-visibility.js.map +1 -0
- package/dist/use-nav-groups.d.ts +27 -0
- package/dist/use-nav-groups.js +141 -0
- package/dist/use-nav-groups.js.map +1 -0
- package/dist/use-pathname.d.ts +15 -0
- package/dist/use-pathname.js +29 -0
- package/dist/use-pathname.js.map +1 -0
- package/dist/use-permissions.d.ts +43 -0
- package/dist/use-permissions.js +158 -0
- package/dist/use-permissions.js.map +1 -0
- package/dist/use-platform-modules.d.ts +49 -0
- package/dist/use-platform-modules.js +416 -0
- package/dist/use-platform-modules.js.map +1 -0
- package/dist/use-staff-home.d.ts +9 -0
- package/dist/use-staff-home.js +24 -0
- package/dist/use-staff-home.js.map +1 -0
- package/dist/use-workspace-invite.d.ts +37 -0
- package/dist/use-workspace-invite.js +69 -0
- package/dist/use-workspace-invite.js.map +1 -0
- package/dist/utils.d.ts +53 -0
- package/dist/utils.js +161 -0
- package/dist/utils.js.map +1 -0
- package/dist/wallet-format.d.ts +8 -0
- package/dist/wallet-format.js +36 -0
- package/dist/wallet-format.js.map +1 -0
- package/dist/wallet-settlement.d.ts +14 -0
- package/dist/wallet-settlement.js +5 -0
- package/dist/wallet-settlement.js.map +1 -0
- package/dist/web-url.d.ts +1 -0
- package/dist/web-url.js +50 -0
- package/dist/web-url.js.map +1 -0
- package/dist/whats-new.d.ts +59 -0
- package/dist/whats-new.js +77 -0
- package/dist/whats-new.js.map +1 -0
- package/dist/workspace-recents.d.ts +30 -0
- package/dist/workspace-recents.js +37 -0
- package/dist/workspace-recents.js.map +1 -0
- package/dist/workspace-slug.d.ts +1 -0
- package/dist/workspace-slug.js +15 -0
- package/dist/workspace-slug.js.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/fulfilment-nav.ts"],"sourcesContent":["/**\n * The words for how orders reach people, in one place.\n *\n * THE WORD WAS FORKED. The page at `/dashboard/settings/shipping` is a\n * component called `DeliverySettingsPage` with the title \"Delivery\", and every\n * row that pointed at it said \"Shipping\" — the sidebar's Selling group, the\n * spine's Operations group, the platform-module list, the mobile Store screen\n * (which said \"Shipping & delivery\", both words at once), the help topic and\n * the capability reveal. A merchant clicked Shipping and landed on Delivery.\n *\n * Underneath, the two are not synonyms at all: they are SIBLINGS. A zone's\n * `method` is `delivery` (a rider of the merchant's own) or `shipping` (a\n * courier), and an order's `deliveryMethod` is pickup / delivery / shipping /\n * none. So \"Delivery\" was doing duty as both the parent — every way an order\n * moves — and one of its children.\n *\n * Delivery wins as the parent. It is the word merchants here use, it covers a\n * courier without straining, and \"shipping\" implies a parcel service in a\n * market where most orders go out on a bike. The child stops using it: the\n * two sections are \"Your riders\" and \"Couriers\". The stored values `delivery`\n * and `shipping` are untouched — those are API contract, not copy — and so are\n * the `shippable` / `hideShipping` behavior flags, which no merchant reads.\n *\n * Six files spelled this destination's label by hand, so renaming it meant\n * finding all six. They import from here now, and\n * `fulfilment-nav.test.ts` fails the build when a seventh types it out.\n *\n * The `href` on each row is deliberately still written out at the call site.\n * The route never drifted — all six agreed on it — and the sibling contract\n * guards read nav sources as TEXT: `tab-title-coverage` learns which routes\n * have a nav row by matching `href: '…'`, so folding the literal into a\n * constant made three settings screens report themselves nameless. The href\n * here is for the places that link without declaring a row.\n */\n\n/** Where orders go and what it costs. Zones, rates, collection. */\nexport const DELIVERY_NAV = {\n href: '/dashboard/business/shipping',\n label: 'Delivery',\n} as const;\n\n/**\n * The places the business operates FROM. Origins, counters, staff.\n *\n * \"Business locations\", not \"Locations\". The bare word is the most overloaded\n * noun in this settings tree — a service area is a location row, a shipping\n * zone names locations, a booking resource has one — so a merchant reading\n * \"Locations\" in the rail had no way to know which of those it opened. The\n * qualifier says whose: the branches the business itself operates from.\n */\nexport const LOCATIONS_NAV = {\n href: '/dashboard/operations/locations',\n label: 'Business locations',\n} as const;\n\n/**\n * RETIRED. A zone is the delivery footprint now.\n *\n * This named a list of country/state/city rows (`location_catalog`) that\n * carried geography and nothing else — a copy of the delivery zones a merchant\n * had already drawn, kept in step by hand, and free to disagree with them: the\n * checkout dropdown came from one and the price from the other.\n *\n * The zone is the one that does work. `public/locations/hierarchy` already\n * derived the dropdown from zones whenever this list was empty (which most\n * tenants' was), and `get-fulfilment-options` already refuses a delivery it\n * cannot match to a zone, offering collection instead. So this row asked\n * merchants to state their footprint a second time for nothing.\n *\n * Left as a comment rather than deleted silently, because the word will come\n * back otherwise: whatever names a delivery footprint next, it is a zone.\n */\n\n/**\n * The two methods, as a merchant reads them.\n *\n * Keyed on the stored value so a section heading and a zone's badge cannot\n * disagree about what `method: 'shipping'` is called.\n */\nexport const DELIVERY_METHOD_LABELS = {\n delivery: 'Your riders',\n shipping: 'Couriers',\n} as const;\n"],"mappings":"AAoCO,MAAM,eAAe;AAAA,EAC1B,MAAM;AAAA,EACN,OAAO;AACT;AAWO,MAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,OAAO;AACT;AA0BO,MAAM,yBAAyB;AAAA,EACpC,UAAU;AAAA,EACV,UAAU;AACZ;","names":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { HostReadinessKey, ReadinessBlocker, StorefrontReadiness } from '@withpotter/lib/api/types';
|
|
2
|
+
/**
|
|
3
|
+
* The two questions the go-live gate asks, as functions rather than as
|
|
4
|
+
* conditions inside a component.
|
|
5
|
+
*
|
|
6
|
+
* They live here, pure and tested, because both of them fail in a direction
|
|
7
|
+
* that is much worse than the bug they exist to prevent, and neither failure
|
|
8
|
+
* is visible in review:
|
|
9
|
+
*
|
|
10
|
+
* - block when the answer has not arrived, and every merchant on an older
|
|
11
|
+
* backend is locked out of publishing their own shop
|
|
12
|
+
* - interrupt on any blocker, and a shop that sells perfectly well gets a
|
|
13
|
+
* dialog on every screen about its payout account
|
|
14
|
+
*
|
|
15
|
+
* `use-storefront-readiness` and `StoreCannotSellGate` both read from here so
|
|
16
|
+
* there is one answer rather than two that can drift apart. The dashboard has
|
|
17
|
+
* a habit of the second copy disagreeing with the first.
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Does anything stop this store going live?
|
|
21
|
+
*
|
|
22
|
+
* NOT-ASKED IS NOT NOT-READY. `null`/`undefined` means the check has not
|
|
23
|
+
* answered — it is still in flight, or the backend does not serve the route at
|
|
24
|
+
* all — and that must read as "do not stop them". A gate written the other way
|
|
25
|
+
* round refuses every publish on any API older than the readiness endpoint,
|
|
26
|
+
* which locks a merchant out of their own storefront in order to protect a
|
|
27
|
+
* checkout that was never broken. The gate blocks only on blockers it has
|
|
28
|
+
* actually been handed.
|
|
29
|
+
*/
|
|
30
|
+
export declare function blocksGoLive(readiness: StorefrontReadiness | null | undefined): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Is this store unable to complete a sale right now?
|
|
33
|
+
*
|
|
34
|
+
* `reachable` ONLY, and the narrowness is the point. The other two blockers are
|
|
35
|
+
* serious and neither stops a customer buying: a shop with no payout account
|
|
36
|
+
* still takes the order (the money lands in Box's own account, which has its
|
|
37
|
+
* own worklist row), and one with no contact details still sells. Only an empty
|
|
38
|
+
* address book turns the checkout into a form that cannot be submitted —
|
|
39
|
+
* `GetLocationHierarchyUseCase` derives the country, state and city selects
|
|
40
|
+
* from active delivery zones, and web-render renders all three as selects with
|
|
41
|
+
* no free-text escape and city required.
|
|
42
|
+
*
|
|
43
|
+
* That is the difference between a setting somebody should get round to and a
|
|
44
|
+
* shop silently refusing every sale, and only the second earns an interruption.
|
|
45
|
+
*/
|
|
46
|
+
export declare function cannotCompleteSale(readiness: StorefrontReadiness | null | undefined): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Is this a check the host box added rather than one the dashboard knows?
|
|
49
|
+
*
|
|
50
|
+
* A host check blocks going live like any other (`blocksGoLive` counts every
|
|
51
|
+
* blocker). It has no row of its own in the dashboard's tables, so the
|
|
52
|
+
* checklist draws it from the blocker's own title and path, or from the
|
|
53
|
+
* checklist step that carries the same key.
|
|
54
|
+
*/
|
|
55
|
+
export declare function isHostCheck(key: ReadinessBlocker['key'] | string): key is HostReadinessKey;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function blocksGoLive(readiness) {
|
|
2
|
+
return (readiness?.blockers ?? []).length > 0;
|
|
3
|
+
}
|
|
4
|
+
function cannotCompleteSale(readiness) {
|
|
5
|
+
return (readiness?.blockers ?? []).some(
|
|
6
|
+
(blocker) => blocker.key === "reachable"
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
function isHostCheck(key) {
|
|
10
|
+
return key.startsWith("host_");
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
blocksGoLive,
|
|
14
|
+
cannotCompleteSale,
|
|
15
|
+
isHostCheck
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=go-live-gate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/go-live-gate.ts"],"sourcesContent":["import type {\n HostReadinessKey,\n ReadinessBlocker,\n StorefrontReadiness,\n} from '@withpotter/lib/api/types';\n\n/**\n * The two questions the go-live gate asks, as functions rather than as\n * conditions inside a component.\n *\n * They live here, pure and tested, because both of them fail in a direction\n * that is much worse than the bug they exist to prevent, and neither failure\n * is visible in review:\n *\n * - block when the answer has not arrived, and every merchant on an older\n * backend is locked out of publishing their own shop\n * - interrupt on any blocker, and a shop that sells perfectly well gets a\n * dialog on every screen about its payout account\n *\n * `use-storefront-readiness` and `StoreCannotSellGate` both read from here so\n * there is one answer rather than two that can drift apart. The dashboard has\n * a habit of the second copy disagreeing with the first.\n */\n\n/**\n * Does anything stop this store going live?\n *\n * NOT-ASKED IS NOT NOT-READY. `null`/`undefined` means the check has not\n * answered — it is still in flight, or the backend does not serve the route at\n * all — and that must read as \"do not stop them\". A gate written the other way\n * round refuses every publish on any API older than the readiness endpoint,\n * which locks a merchant out of their own storefront in order to protect a\n * checkout that was never broken. The gate blocks only on blockers it has\n * actually been handed.\n */\nexport function blocksGoLive(\n readiness: StorefrontReadiness | null | undefined,\n): boolean {\n return (readiness?.blockers ?? []).length > 0;\n}\n\n/**\n * Is this store unable to complete a sale right now?\n *\n * `reachable` ONLY, and the narrowness is the point. The other two blockers are\n * serious and neither stops a customer buying: a shop with no payout account\n * still takes the order (the money lands in Box's own account, which has its\n * own worklist row), and one with no contact details still sells. Only an empty\n * address book turns the checkout into a form that cannot be submitted —\n * `GetLocationHierarchyUseCase` derives the country, state and city selects\n * from active delivery zones, and web-render renders all three as selects with\n * no free-text escape and city required.\n *\n * That is the difference between a setting somebody should get round to and a\n * shop silently refusing every sale, and only the second earns an interruption.\n */\nexport function cannotCompleteSale(\n readiness: StorefrontReadiness | null | undefined,\n): boolean {\n return (readiness?.blockers ?? []).some(\n (blocker) => blocker.key === 'reachable',\n );\n}\n\n/**\n * Is this a check the host box added rather than one the dashboard knows?\n *\n * A host check blocks going live like any other (`blocksGoLive` counts every\n * blocker). It has no row of its own in the dashboard's tables, so the\n * checklist draws it from the blocker's own title and path, or from the\n * checklist step that carries the same key.\n */\nexport function isHostCheck(\n key: ReadinessBlocker['key'] | string,\n): key is HostReadinessKey {\n return key.startsWith('host_');\n}\n"],"mappings":"AAmCO,SAAS,aACd,WACS;AACT,UAAQ,WAAW,YAAY,CAAC,GAAG,SAAS;AAC9C;AAiBO,SAAS,mBACd,WACS;AACT,UAAQ,WAAW,YAAY,CAAC,GAAG;AAAA,IACjC,CAAC,YAAY,QAAQ,QAAQ;AAAA,EAC/B;AACF;AAUO,SAAS,YACd,KACyB;AACzB,SAAO,IAAI,WAAW,OAAO;AAC/B;","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Activity, grouped the way somebody reads it.
|
|
3
|
+
*
|
|
4
|
+
* The feed rendered as a flat list of sentences with a relative time on the
|
|
5
|
+
* right, and three consecutive rows all said "5d ago". That is not a timeline;
|
|
6
|
+
* it is the same fact repeated next to different sentences, and it makes the
|
|
7
|
+
* list read as one undifferentiated block.
|
|
8
|
+
*
|
|
9
|
+
* Grouping by day gives it the shape it already had in the data and moves the
|
|
10
|
+
* time to a heading, where it is said once.
|
|
11
|
+
*/
|
|
12
|
+
export interface ActivityGroup<T> {
|
|
13
|
+
/** "Today", "Yesterday", or a date. Said once, above the rows. */
|
|
14
|
+
label: string;
|
|
15
|
+
/** Sort key, so groups stay newest-first without re-parsing the label. */
|
|
16
|
+
at: number;
|
|
17
|
+
entries: T[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Named for the reader, not the calendar.
|
|
21
|
+
*
|
|
22
|
+
* "Today" and "Yesterday" are how somebody catching up actually thinks; a date
|
|
23
|
+
* only earns its place once the day stops having a name. Within the current
|
|
24
|
+
* year the year is dropped, because "12 Aug" is what a person says out loud.
|
|
25
|
+
*/
|
|
26
|
+
export declare function labelForDay(dayStart: number, now: number): string;
|
|
27
|
+
/**
|
|
28
|
+
* Group newest-first, preserving the order entries arrived in.
|
|
29
|
+
*
|
|
30
|
+
* Entries with an unparseable timestamp are kept rather than dropped, under a
|
|
31
|
+
* heading that says so: losing a row because its date is malformed is worse
|
|
32
|
+
* than showing it without a day, and silently dropping history is exactly what
|
|
33
|
+
* an activity feed must never do.
|
|
34
|
+
*/
|
|
35
|
+
export declare function groupByDay<T extends {
|
|
36
|
+
createdAt: string;
|
|
37
|
+
}>(entries: T[], now?: number): ActivityGroup<T>[];
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const DAY = 24 * 60 * 60 * 1e3;
|
|
2
|
+
function startOfDay(t) {
|
|
3
|
+
const d = new Date(t);
|
|
4
|
+
d.setHours(0, 0, 0, 0);
|
|
5
|
+
return d.getTime();
|
|
6
|
+
}
|
|
7
|
+
function labelForDay(dayStart, now) {
|
|
8
|
+
const today = startOfDay(now);
|
|
9
|
+
if (dayStart === today) return "Today";
|
|
10
|
+
if (dayStart === today - DAY) return "Yesterday";
|
|
11
|
+
const d = new Date(dayStart);
|
|
12
|
+
const sameYear = d.getFullYear() === new Date(now).getFullYear();
|
|
13
|
+
return d.toLocaleDateString(void 0, {
|
|
14
|
+
day: "numeric",
|
|
15
|
+
month: "short",
|
|
16
|
+
...sameYear ? {} : { year: "numeric" }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function groupByDay(entries, now = Date.now()) {
|
|
20
|
+
const byDay = /* @__PURE__ */ new Map();
|
|
21
|
+
const undated = [];
|
|
22
|
+
for (const entry of entries) {
|
|
23
|
+
const t = new Date(entry.createdAt).getTime();
|
|
24
|
+
if (Number.isNaN(t)) {
|
|
25
|
+
undated.push(entry);
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
const day = startOfDay(t);
|
|
29
|
+
const bucket = byDay.get(day);
|
|
30
|
+
if (bucket) bucket.push(entry);
|
|
31
|
+
else byDay.set(day, [entry]);
|
|
32
|
+
}
|
|
33
|
+
const groups = [...byDay.entries()].sort((a, b) => b[0] - a[0]).map(([at, rows]) => ({ at, label: labelForDay(at, now), entries: rows }));
|
|
34
|
+
if (undated.length > 0) {
|
|
35
|
+
groups.push({ at: -Infinity, label: "Undated", entries: undated });
|
|
36
|
+
}
|
|
37
|
+
return groups;
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
groupByDay,
|
|
41
|
+
labelForDay
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=group-activity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/group-activity.ts"],"sourcesContent":["/**\n * Activity, grouped the way somebody reads it.\n *\n * The feed rendered as a flat list of sentences with a relative time on the\n * right, and three consecutive rows all said \"5d ago\". That is not a timeline;\n * it is the same fact repeated next to different sentences, and it makes the\n * list read as one undifferentiated block.\n *\n * Grouping by day gives it the shape it already had in the data and moves the\n * time to a heading, where it is said once.\n */\nexport interface ActivityGroup<T> {\n /** \"Today\", \"Yesterday\", or a date. Said once, above the rows. */\n label: string;\n /** Sort key, so groups stay newest-first without re-parsing the label. */\n at: number;\n entries: T[];\n}\n\nconst DAY = 24 * 60 * 60 * 1000;\n\nfunction startOfDay(t: number): number {\n const d = new Date(t);\n d.setHours(0, 0, 0, 0);\n return d.getTime();\n}\n\n/**\n * Named for the reader, not the calendar.\n *\n * \"Today\" and \"Yesterday\" are how somebody catching up actually thinks; a date\n * only earns its place once the day stops having a name. Within the current\n * year the year is dropped, because \"12 Aug\" is what a person says out loud.\n */\nexport function labelForDay(dayStart: number, now: number): string {\n const today = startOfDay(now);\n if (dayStart === today) return 'Today';\n if (dayStart === today - DAY) return 'Yesterday';\n\n const d = new Date(dayStart);\n const sameYear = d.getFullYear() === new Date(now).getFullYear();\n return d.toLocaleDateString(undefined, {\n day: 'numeric',\n month: 'short',\n ...(sameYear ? {} : { year: 'numeric' }),\n });\n}\n\n/**\n * Group newest-first, preserving the order entries arrived in.\n *\n * Entries with an unparseable timestamp are kept rather than dropped, under a\n * heading that says so: losing a row because its date is malformed is worse\n * than showing it without a day, and silently dropping history is exactly what\n * an activity feed must never do.\n */\nexport function groupByDay<T extends { createdAt: string }>(\n entries: T[],\n now: number = Date.now(),\n): ActivityGroup<T>[] {\n const byDay = new Map<number, T[]>();\n const undated: T[] = [];\n\n for (const entry of entries) {\n const t = new Date(entry.createdAt).getTime();\n if (Number.isNaN(t)) {\n undated.push(entry);\n continue;\n }\n const day = startOfDay(t);\n const bucket = byDay.get(day);\n if (bucket) bucket.push(entry);\n else byDay.set(day, [entry]);\n }\n\n const groups = [...byDay.entries()]\n .sort((a, b) => b[0] - a[0])\n .map(([at, rows]) => ({ at, label: labelForDay(at, now), entries: rows }));\n\n if (undated.length > 0) {\n groups.push({ at: -Infinity, label: 'Undated', entries: undated });\n }\n return groups;\n}\n"],"mappings":"AAmBA,MAAM,MAAM,KAAK,KAAK,KAAK;AAE3B,SAAS,WAAW,GAAmB;AACrC,QAAM,IAAI,IAAI,KAAK,CAAC;AACpB,IAAE,SAAS,GAAG,GAAG,GAAG,CAAC;AACrB,SAAO,EAAE,QAAQ;AACnB;AASO,SAAS,YAAY,UAAkB,KAAqB;AACjE,QAAM,QAAQ,WAAW,GAAG;AAC5B,MAAI,aAAa,MAAO,QAAO;AAC/B,MAAI,aAAa,QAAQ,IAAK,QAAO;AAErC,QAAM,IAAI,IAAI,KAAK,QAAQ;AAC3B,QAAM,WAAW,EAAE,YAAY,MAAM,IAAI,KAAK,GAAG,EAAE,YAAY;AAC/D,SAAO,EAAE,mBAAmB,QAAW;AAAA,IACrC,KAAK;AAAA,IACL,OAAO;AAAA,IACP,GAAI,WAAW,CAAC,IAAI,EAAE,MAAM,UAAU;AAAA,EACxC,CAAC;AACH;AAUO,SAAS,WACd,SACA,MAAc,KAAK,IAAI,GACH;AACpB,QAAM,QAAQ,oBAAI,IAAiB;AACnC,QAAM,UAAe,CAAC;AAEtB,aAAW,SAAS,SAAS;AAC3B,UAAM,IAAI,IAAI,KAAK,MAAM,SAAS,EAAE,QAAQ;AAC5C,QAAI,OAAO,MAAM,CAAC,GAAG;AACnB,cAAQ,KAAK,KAAK;AAClB;AAAA,IACF;AACA,UAAM,MAAM,WAAW,CAAC;AACxB,UAAM,SAAS,MAAM,IAAI,GAAG;AAC5B,QAAI,OAAQ,QAAO,KAAK,KAAK;AAAA,QACxB,OAAM,IAAI,KAAK,CAAC,KAAK,CAAC;AAAA,EAC7B;AAEA,QAAM,SAAS,CAAC,GAAG,MAAM,QAAQ,CAAC,EAC/B,KAAK,CAAC,GAAG,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,EAC1B,IAAI,CAAC,CAAC,IAAI,IAAI,OAAO,EAAE,IAAI,OAAO,YAAY,IAAI,GAAG,GAAG,SAAS,KAAK,EAAE;AAE3E,MAAI,QAAQ,SAAS,GAAG;AACtB,WAAO,KAAK,EAAE,IAAI,WAAW,OAAO,WAAW,SAAS,QAAQ,CAAC;AAAA,EACnE;AACA,SAAO;AACT;","names":[]}
|
package/dist/haptic.d.ts
ADDED
package/dist/haptic.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function haptic(style = "light") {
|
|
2
|
+
if (typeof navigator === "undefined" || !navigator.vibrate) return;
|
|
3
|
+
const patterns = {
|
|
4
|
+
light: 10,
|
|
5
|
+
medium: 20,
|
|
6
|
+
heavy: 40
|
|
7
|
+
};
|
|
8
|
+
try {
|
|
9
|
+
navigator.vibrate(patterns[style]);
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
haptic
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=haptic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/haptic.ts"],"sourcesContent":["/**\n * Trigger haptic feedback on supported devices (iOS Safari, Android Chrome).\n * Falls back silently on unsupported platforms.\n */\nexport function haptic(style: 'light' | 'medium' | 'heavy' = 'light') {\n if (typeof navigator === 'undefined' || !navigator.vibrate) return;\n\n const patterns: Record<string, number> = {\n light: 10,\n medium: 20,\n heavy: 40,\n };\n\n try {\n navigator.vibrate(patterns[style]);\n } catch {\n // Silently fail — vibrate not supported\n }\n}\n"],"mappings":"AAIO,SAAS,OAAO,QAAsC,SAAS;AACpE,MAAI,OAAO,cAAc,eAAe,CAAC,UAAU,QAAS;AAE5D,QAAM,WAAmC;AAAA,IACvC,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAEA,MAAI;AACF,cAAU,QAAQ,SAAS,KAAK,CAAC;AAAA,EACnC,QAAQ;AAAA,EAER;AACF;","names":[]}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { ContentBehavior } from './template-types';
|
|
2
|
+
/**
|
|
3
|
+
* Help, assembled the same way the nav is.
|
|
4
|
+
*
|
|
5
|
+
* Box's dashboard is not one product — it's whatever this business's
|
|
6
|
+
* behaviors add up to. So a generic help centre is wrong here for the same
|
|
7
|
+
* reason a generic sidebar would be: a padel club has no shipping questions,
|
|
8
|
+
* and a fashion brand has no check-in questions. Showing them anyway is how a
|
|
9
|
+
* help centre teaches merchants that most of it isn't for them, which is how
|
|
10
|
+
* they stop reading it.
|
|
11
|
+
*
|
|
12
|
+
* Topics are gated on `requiredBehavior` exactly like nav items and roles, off
|
|
13
|
+
* the same `resolveEnabledBehaviors` seam. Everything ungated is universal.
|
|
14
|
+
*
|
|
15
|
+
* Content rule: every topic answers a question a merchant would actually ask,
|
|
16
|
+
* in their words, with steps that match surfaces that exist today. If a topic
|
|
17
|
+
* can't point at a real screen, it doesn't belong here.
|
|
18
|
+
*/
|
|
19
|
+
export interface HelpTopic {
|
|
20
|
+
id: string;
|
|
21
|
+
/** The question, phrased the way a merchant would ask it. */
|
|
22
|
+
question: string;
|
|
23
|
+
/** Short answer shown under the question when expanded. */
|
|
24
|
+
answer: string;
|
|
25
|
+
/** Concrete steps. Kept short — a wall of steps is a doc, not an answer. */
|
|
26
|
+
steps?: string[];
|
|
27
|
+
/** Where to go and do it. Must be a route that exists. */
|
|
28
|
+
action?: {
|
|
29
|
+
label: string;
|
|
30
|
+
href: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Routes this topic is the *lead* answer for when help is opened from them.
|
|
34
|
+
*
|
|
35
|
+
* `action.href` can't decide this on its own: four topics point at
|
|
36
|
+
* /dashboard/payments, so ranking by href length made ties fall to
|
|
37
|
+
* declaration order and every merchant arriving from Payments was told how
|
|
38
|
+
* to start taking payments — including ones who have been paid for a year.
|
|
39
|
+
* Leading is a separate claim from "this is where you go to do it".
|
|
40
|
+
*/
|
|
41
|
+
leadFor?: string[];
|
|
42
|
+
/** Only shown when the business has one of these behaviors. */
|
|
43
|
+
requiredBehavior?: ContentBehavior[];
|
|
44
|
+
/** Extra words the search should match (synonyms merchants actually type). */
|
|
45
|
+
keywords?: string[];
|
|
46
|
+
group: HelpGroup;
|
|
47
|
+
}
|
|
48
|
+
export type HelpGroup = 'Money' | 'Selling' | 'Bookings' | 'Invoicing' | 'Your site' | 'Your team' | 'Your account';
|
|
49
|
+
export declare const HELP_GROUP_ORDER: HelpGroup[];
|
|
50
|
+
export declare const HELP_TOPICS: HelpTopic[];
|
|
51
|
+
/** Topics that apply to a business with these behaviors. */
|
|
52
|
+
export declare function resolveHelpTopics(behaviors: ContentBehavior[]): HelpTopic[];
|
|
53
|
+
/**
|
|
54
|
+
* Search across the question, the answer and the merchant's own synonyms.
|
|
55
|
+
*
|
|
56
|
+
* Ranked rather than all-or-nothing. The old rule (every term must appear)
|
|
57
|
+
* only worked for one- and two-word queries; anything phrased as a question
|
|
58
|
+
* returned nothing at all — "my customer wants a refund" scored zero while the
|
|
59
|
+
* refund topic sat right there. Rare words outrank common ones, and a match in
|
|
60
|
+
* the question outranks one buried in an answer.
|
|
61
|
+
*
|
|
62
|
+
* Deliberately not clever beyond this. Seventeen short topics is not enough
|
|
63
|
+
* text to rank reliably over, so callers must keep a way to reach a person
|
|
64
|
+
* visible at all times rather than treating a thin result list as coverage.
|
|
65
|
+
*/
|
|
66
|
+
export declare function searchHelpTopics(topics: HelpTopic[], query: string): HelpTopic[];
|
|
67
|
+
/**
|
|
68
|
+
* The topic most relevant to a dashboard path, so opening help from a screen
|
|
69
|
+
* starts on that screen's question rather than at the top of a list.
|
|
70
|
+
*
|
|
71
|
+
* `leadFor` decides first, because several topics legitimately point at the
|
|
72
|
+
* same screen and "where you go to do it" is a weaker claim than "this is the
|
|
73
|
+
* question people have here". Only when nothing claims the route does this
|
|
74
|
+
* fall back to the deepest `action.href`, which is the old behaviour and still
|
|
75
|
+
* right for screens with exactly one topic.
|
|
76
|
+
*/
|
|
77
|
+
export declare function topicForPath(topics: HelpTopic[], path: string | null): HelpTopic | null;
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { DELIVERY_NAV } from "./fulfilment-nav";
|
|
2
|
+
import { TEAM_PAGE } from "./team-page";
|
|
3
|
+
const HELP_GROUP_ORDER = [
|
|
4
|
+
"Money",
|
|
5
|
+
"Selling",
|
|
6
|
+
"Bookings",
|
|
7
|
+
"Invoicing",
|
|
8
|
+
"Your site",
|
|
9
|
+
"Your team",
|
|
10
|
+
"Your account"
|
|
11
|
+
];
|
|
12
|
+
const HELP_TOPICS = [
|
|
13
|
+
// ── Money ───────────────────────────────────────────────────────────
|
|
14
|
+
{
|
|
15
|
+
id: "get-paid",
|
|
16
|
+
group: "Money",
|
|
17
|
+
question: "How do I start taking payments?",
|
|
18
|
+
answer: "You add a bank account once. After that, money customers pay you settles to that account instead of sitting with Box.",
|
|
19
|
+
steps: [
|
|
20
|
+
"Open Bank account under Money.",
|
|
21
|
+
"Choose Add bank account.",
|
|
22
|
+
"Enter the account the money should land in, and check the name matches your business."
|
|
23
|
+
],
|
|
24
|
+
action: { label: "Bank account", href: "/dashboard/payments/payouts" },
|
|
25
|
+
leadFor: ["/dashboard/payments/payouts"],
|
|
26
|
+
keywords: ["payout", "bank", "paystack", "settlement", "account"]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: "when-paid",
|
|
30
|
+
group: "Money",
|
|
31
|
+
question: "When does money actually reach my bank?",
|
|
32
|
+
answer: 'A payment shows up in Box as soon as it clears. Payouts to your bank follow your provider\u2019s settlement schedule, so the two dates are usually not the same day. Payments shows both, so you can tell "paid" from "paid out".',
|
|
33
|
+
action: { label: "See your payments", href: "/dashboard/payments" },
|
|
34
|
+
// Payments is where "why hasn't it landed yet" gets asked, and it's the
|
|
35
|
+
// only question on that screen a merchant who is already set up still has.
|
|
36
|
+
leadFor: ["/dashboard/payments"],
|
|
37
|
+
keywords: [
|
|
38
|
+
"payout",
|
|
39
|
+
"settlement",
|
|
40
|
+
"bank",
|
|
41
|
+
"late",
|
|
42
|
+
// The words merchants actually use for this. Without "paid" the topic
|
|
43
|
+
// lost "when will I get paid" to the manual-transfer topic, which does
|
|
44
|
+
// carry it.
|
|
45
|
+
"paid",
|
|
46
|
+
"money",
|
|
47
|
+
"received",
|
|
48
|
+
"waiting"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: "record-transfer",
|
|
53
|
+
group: "Money",
|
|
54
|
+
question: "Someone paid me by transfer. How do I record it?",
|
|
55
|
+
answer: "Confirm it on the order yourself. Box keeps the record so your totals and the customer\u2019s history stay right, even when the money never went through checkout.",
|
|
56
|
+
steps: [
|
|
57
|
+
"Open the order.",
|
|
58
|
+
"Check the money is actually in your account first.",
|
|
59
|
+
"Choose Confirm payment."
|
|
60
|
+
],
|
|
61
|
+
action: { label: "Go to orders", href: "/dashboard/orders" },
|
|
62
|
+
leadFor: ["/dashboard/orders"],
|
|
63
|
+
keywords: ["transfer", "cash", "manual", "bank", "offline", "paid"]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "refund",
|
|
67
|
+
group: "Money",
|
|
68
|
+
question: "How do I refund someone?",
|
|
69
|
+
answer: "Refund from the order itself, so the refund is attached to what was bought rather than floating loose in your payments. Refund only appears once the payment has settled, because there is nothing to give back before that.",
|
|
70
|
+
steps: [
|
|
71
|
+
"Open the order.",
|
|
72
|
+
"Choose Refund, at the top.",
|
|
73
|
+
"Full or partial, then confirm."
|
|
74
|
+
],
|
|
75
|
+
action: { label: "Go to orders", href: "/dashboard/orders" },
|
|
76
|
+
keywords: ["refund", "return", "money back", "cancel"]
|
|
77
|
+
},
|
|
78
|
+
// ── Selling ─────────────────────────────────────────────────────────
|
|
79
|
+
{
|
|
80
|
+
id: "first-product",
|
|
81
|
+
group: "Selling",
|
|
82
|
+
question: "How do I add my first product?",
|
|
83
|
+
answer: "A name, a price and a photo is enough to start selling. Everything else can be filled in later without taking the product down.",
|
|
84
|
+
action: { label: "Add a product", href: "/dashboard/catalog" },
|
|
85
|
+
leadFor: ["/dashboard/catalog"],
|
|
86
|
+
requiredBehavior: ["sellable"],
|
|
87
|
+
keywords: ["product", "item", "add", "catalog", "stock", "listing"]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: "stock",
|
|
91
|
+
group: "Selling",
|
|
92
|
+
question: "Can Box stop me selling something I\u2019ve run out of?",
|
|
93
|
+
answer: "Yes. Give a product a stock count and checkout stops offering it once it hits zero, so you don\u2019t sell what you can\u2019t ship.",
|
|
94
|
+
action: { label: "Open inventory", href: "/dashboard/catalog" },
|
|
95
|
+
requiredBehavior: ["sellable"],
|
|
96
|
+
keywords: ["stock", "inventory", "sold out", "quantity", "oversell"]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "shipping-rates",
|
|
100
|
+
group: "Selling",
|
|
101
|
+
question: "How do I charge for delivery?",
|
|
102
|
+
answer: "Set your delivery rates once and checkout applies them automatically based on where the customer is.",
|
|
103
|
+
action: {
|
|
104
|
+
label: `${DELIVERY_NAV.label} settings`,
|
|
105
|
+
href: "/dashboard/settings/shipping"
|
|
106
|
+
},
|
|
107
|
+
requiredBehavior: ["shippable"],
|
|
108
|
+
keywords: ["delivery", "shipping", "rate", "dispatch", "courier", "fee"]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: "discount",
|
|
112
|
+
group: "Selling",
|
|
113
|
+
question: "How do I run a discount?",
|
|
114
|
+
answer: "Create a code with the amount off and when it expires. Customers enter it at checkout and Box applies it for you.",
|
|
115
|
+
action: { label: "Open marketing", href: "/dashboard/marketing" },
|
|
116
|
+
requiredBehavior: ["sellable"],
|
|
117
|
+
keywords: ["discount", "promo", "coupon", "sale", "code", "off"]
|
|
118
|
+
},
|
|
119
|
+
// ── Bookings ────────────────────────────────────────────────────────
|
|
120
|
+
{
|
|
121
|
+
id: "take-bookings",
|
|
122
|
+
group: "Bookings",
|
|
123
|
+
question: "How do people book a time with me?",
|
|
124
|
+
answer: "Your opening hours decide what customers can pick. Box only offers times you are actually open and nothing that is already taken, so you don\u2019t get double-booked.",
|
|
125
|
+
action: { label: "Open your calendar", href: "/dashboard/calendar" },
|
|
126
|
+
leadFor: ["/dashboard/calendar"],
|
|
127
|
+
requiredBehavior: ["bookable"],
|
|
128
|
+
keywords: ["booking", "appointment", "slot", "calendar", "reserve", "time"]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: "reschedule",
|
|
132
|
+
group: "Bookings",
|
|
133
|
+
question: "A customer wants to move their booking.",
|
|
134
|
+
answer: "Reschedule it from the booking itself. The customer gets the new time, and the old slot goes back into your availability.",
|
|
135
|
+
action: { label: "Open your calendar", href: "/dashboard/calendar" },
|
|
136
|
+
requiredBehavior: ["bookable"],
|
|
137
|
+
keywords: ["reschedule", "move", "change", "cancel", "booking"]
|
|
138
|
+
},
|
|
139
|
+
// ── Invoicing ───────────────────────────────────────────────────────
|
|
140
|
+
{
|
|
141
|
+
id: "send-invoice",
|
|
142
|
+
group: "Invoicing",
|
|
143
|
+
question: "How do I invoice a customer?",
|
|
144
|
+
answer: "Build the invoice, send it, and Box tracks whether it has been paid so you\u2019re not chasing from memory.",
|
|
145
|
+
action: { label: "Open invoices", href: "/dashboard/invoices" },
|
|
146
|
+
requiredBehavior: ["billable"],
|
|
147
|
+
keywords: ["invoice", "bill", "quote", "payment link", "owing"]
|
|
148
|
+
},
|
|
149
|
+
// ── Your site ───────────────────────────────────────────────────────
|
|
150
|
+
{
|
|
151
|
+
id: "edit-site",
|
|
152
|
+
group: "Your site",
|
|
153
|
+
question: "How do I change how my site looks?",
|
|
154
|
+
answer: "Edit it directly. What you see while editing is what customers see, so there is no separate preview to keep in sync.",
|
|
155
|
+
action: { label: "Open your website", href: "/dashboard/business" },
|
|
156
|
+
keywords: ["website", "design", "theme", "editor", "brand", "colour"]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: "custom-domain",
|
|
160
|
+
group: "Your site",
|
|
161
|
+
question: "How do I use my own domain name?",
|
|
162
|
+
answer: "Point your domain at Box, then confirm it here. DNS changes can take a few hours to spread, and that wait is normal rather than something you broke.",
|
|
163
|
+
action: { label: "Domain settings", href: "/dashboard/settings/domains" },
|
|
164
|
+
keywords: ["domain", "dns", "url", "www", "custom", "address"]
|
|
165
|
+
},
|
|
166
|
+
// ── Your team ───────────────────────────────────────────────────────
|
|
167
|
+
{
|
|
168
|
+
id: "invite-team",
|
|
169
|
+
group: "Your team",
|
|
170
|
+
question: "How do I let someone else help run this?",
|
|
171
|
+
answer: "Invite them by email and pick what they do here. Their role decides which parts of the dashboard they see.",
|
|
172
|
+
action: { label: "Open your team", href: TEAM_PAGE },
|
|
173
|
+
leadFor: ["/dashboard/settings/team"],
|
|
174
|
+
keywords: ["team", "staff", "invite", "member", "add", "colleague"]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: "hide-money",
|
|
178
|
+
group: "Your team",
|
|
179
|
+
question: "Can I let staff work without seeing my money?",
|
|
180
|
+
answer: "Yes, and that is the default. Money is a separate switch on every invite, off unless you turn it on, so no role hands out payouts by accident.",
|
|
181
|
+
action: { label: "Open your team", href: TEAM_PAGE },
|
|
182
|
+
keywords: ["permission", "money", "hide", "payout", "access", "role"]
|
|
183
|
+
},
|
|
184
|
+
// ── Your account ────────────────────────────────────────────────────
|
|
185
|
+
{
|
|
186
|
+
id: "multiple-businesses",
|
|
187
|
+
group: "Your account",
|
|
188
|
+
question: "Can I run more than one business here?",
|
|
189
|
+
answer: "Yes. Each business has its own products, orders and site. One login reaches all of them, and you switch from the top of the sidebar.",
|
|
190
|
+
action: { label: "See your businesses", href: "/dashboard/workspaces" },
|
|
191
|
+
keywords: ["workspace", "business", "multiple", "switch", "second"]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: "change-plan",
|
|
195
|
+
group: "Your account",
|
|
196
|
+
question: "How do I change or cancel my plan?",
|
|
197
|
+
answer: "Plans are per business, so each business has its own. Change or cancel from the business it belongs to.",
|
|
198
|
+
action: { label: "Plan & billing", href: "/dashboard/settings/billing" },
|
|
199
|
+
keywords: ["plan", "billing", "upgrade", "cancel", "subscription", "price"]
|
|
200
|
+
}
|
|
201
|
+
];
|
|
202
|
+
function resolveHelpTopics(behaviors) {
|
|
203
|
+
const enabled = new Set(behaviors);
|
|
204
|
+
return HELP_TOPICS.filter(
|
|
205
|
+
(t) => !t.requiredBehavior?.length || t.requiredBehavior.some((b) => enabled.has(b))
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
const STOP_WORDS = new Set(
|
|
209
|
+
"a an and are as at be but by can cant do does doesnt for from get give got has have how i if in is it its me my not of on or our so that the their them then there they this to want wants was we what when where which who why will with you your".split(" ")
|
|
210
|
+
);
|
|
211
|
+
const SYNONYMS = {
|
|
212
|
+
cash: "transfer",
|
|
213
|
+
shop: "catalog product",
|
|
214
|
+
store: "catalog product",
|
|
215
|
+
item: "product",
|
|
216
|
+
goods: "product",
|
|
217
|
+
slot: "booking",
|
|
218
|
+
appointment: "booking",
|
|
219
|
+
reserve: "booking",
|
|
220
|
+
staff: "team role",
|
|
221
|
+
worker: "team role",
|
|
222
|
+
employee: "team role",
|
|
223
|
+
site: "website",
|
|
224
|
+
page: "website"
|
|
225
|
+
};
|
|
226
|
+
function stem(word) {
|
|
227
|
+
return word.replace(/[^a-z0-9]/g, "").replace(/(ing|ed|es|s)$/, "");
|
|
228
|
+
}
|
|
229
|
+
function queryTerms(query) {
|
|
230
|
+
const words = query.toLowerCase().split(/\s+/).map((w) => w.replace(/[^a-z0-9]/g, "")).filter((w) => w.length > 1 && !STOP_WORDS.has(w));
|
|
231
|
+
const out = /* @__PURE__ */ new Set();
|
|
232
|
+
for (const w of words) {
|
|
233
|
+
out.add(stem(w));
|
|
234
|
+
const syn = SYNONYMS[w];
|
|
235
|
+
if (syn) for (const s of syn.split(" ")) out.add(stem(s));
|
|
236
|
+
}
|
|
237
|
+
return [...out];
|
|
238
|
+
}
|
|
239
|
+
function wordSet(parts) {
|
|
240
|
+
return new Set(
|
|
241
|
+
parts.filter(Boolean).join(" ").toLowerCase().split(/[^a-z0-9]+/).map(stem).filter(Boolean)
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
const indexCache = /* @__PURE__ */ new WeakMap();
|
|
245
|
+
function indexOf(topics) {
|
|
246
|
+
const cached = indexCache.get(topics);
|
|
247
|
+
if (cached) return cached;
|
|
248
|
+
const docs = topics.map((topic) => ({
|
|
249
|
+
topic,
|
|
250
|
+
title: wordSet([topic.question, topic.group, ...topic.keywords ?? []]),
|
|
251
|
+
body: wordSet([topic.answer, ...topic.steps ?? []])
|
|
252
|
+
}));
|
|
253
|
+
const seen = /* @__PURE__ */ new Map();
|
|
254
|
+
for (const d of docs) {
|
|
255
|
+
for (const w of /* @__PURE__ */ new Set([...d.title, ...d.body])) {
|
|
256
|
+
seen.set(w, (seen.get(w) ?? 0) + 1);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
const weight = /* @__PURE__ */ new Map();
|
|
260
|
+
for (const [w, df] of seen) weight.set(w, Math.log(1 + docs.length / df));
|
|
261
|
+
const built = { docs, weight };
|
|
262
|
+
indexCache.set(topics, built);
|
|
263
|
+
return built;
|
|
264
|
+
}
|
|
265
|
+
function searchHelpTopics(topics, query) {
|
|
266
|
+
if (!query.trim()) return topics;
|
|
267
|
+
const terms = queryTerms(query);
|
|
268
|
+
if (!terms.length) return topics;
|
|
269
|
+
const { docs, weight } = indexOf(topics);
|
|
270
|
+
return docs.map((d) => {
|
|
271
|
+
let score = 0;
|
|
272
|
+
for (const term of terms) {
|
|
273
|
+
const w = weight.get(term) ?? 0;
|
|
274
|
+
if (d.title.has(term)) score += 3 * w;
|
|
275
|
+
else if (d.body.has(term)) score += w;
|
|
276
|
+
}
|
|
277
|
+
return { topic: d.topic, score };
|
|
278
|
+
}).filter((r) => r.score > 0).sort((a, b) => b.score - a.score).map((r) => r.topic);
|
|
279
|
+
}
|
|
280
|
+
function isUnder(path, base) {
|
|
281
|
+
return path === base || path.startsWith(base.replace(/\/$/, "") + "/");
|
|
282
|
+
}
|
|
283
|
+
function topicForPath(topics, path) {
|
|
284
|
+
if (!path) return null;
|
|
285
|
+
const claimed = topics.filter((t) => t.leadFor?.some((base) => isUnder(path, base))).sort((a, b) => bestLeadDepth(b, path) - bestLeadDepth(a, path));
|
|
286
|
+
if (claimed[0]) return claimed[0];
|
|
287
|
+
const matches = topics.filter(
|
|
288
|
+
(t) => t.action && isUnder(path, t.action.href)
|
|
289
|
+
);
|
|
290
|
+
return matches.sort(
|
|
291
|
+
(a, b) => (b.action?.href.length ?? 0) - (a.action?.href.length ?? 0)
|
|
292
|
+
)[0] ?? null;
|
|
293
|
+
}
|
|
294
|
+
function bestLeadDepth(topic, path) {
|
|
295
|
+
let best = 0;
|
|
296
|
+
for (const base of topic.leadFor ?? []) {
|
|
297
|
+
if (isUnder(path, base) && base.length > best) best = base.length;
|
|
298
|
+
}
|
|
299
|
+
return best;
|
|
300
|
+
}
|
|
301
|
+
export {
|
|
302
|
+
HELP_GROUP_ORDER,
|
|
303
|
+
HELP_TOPICS,
|
|
304
|
+
resolveHelpTopics,
|
|
305
|
+
searchHelpTopics,
|
|
306
|
+
topicForPath
|
|
307
|
+
};
|
|
308
|
+
//# sourceMappingURL=help-topics.js.map
|