@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,324 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WAITLIST API — as the API sends it.
|
|
3
|
+
*
|
|
4
|
+
* One slice of what was a 4,164-line `types.ts`. The sections were already
|
|
5
|
+
* here as comment fences; they are files now, so a type is found by the
|
|
6
|
+
* endpoint it belongs to rather than by scrolling.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* One person waiting for a slot, as `WaitlistMapper.toResponse` sends it.
|
|
10
|
+
*
|
|
11
|
+
* Typed against the mapper rather than the entity, which is where this drifted:
|
|
12
|
+
* it used to declare `tenantId`, `contentId`, `resourceId`, `customerNote`,
|
|
13
|
+
* `metadata` and `updatedAt` — six fields no waitlist endpoint has ever
|
|
14
|
+
* returned — while omitting the four that make an offer legible. So the board
|
|
15
|
+
* could not show what slot was offered or when the offer runs out, which is the
|
|
16
|
+
* only thing on a waitlist that is urgent.
|
|
17
|
+
*/
|
|
18
|
+
export interface WaitlistItem {
|
|
19
|
+
id: string;
|
|
20
|
+
/** Human reference: WL + the first eight of the id. */
|
|
21
|
+
inquiryNumber?: string;
|
|
22
|
+
customerName?: string;
|
|
23
|
+
customerEmail: string;
|
|
24
|
+
customerPhone?: string;
|
|
25
|
+
/**
|
|
26
|
+
* What they are waiting FOR, and optionally on whom.
|
|
27
|
+
*
|
|
28
|
+
* The API's table has carried `contentId` and `resourceId` since it was
|
|
29
|
+
* created; `WaitlistMapper.toResponse` dropped both, so this type was an
|
|
30
|
+
* accurate description of a response that had thrown the answer away. Fixed
|
|
31
|
+
* on the API side — the list eager-loads the content, so `contentTitle` is
|
|
32
|
+
* the thing's own name rather than a uuid.
|
|
33
|
+
*
|
|
34
|
+
* Optional because an entry may genuinely name nothing: a walk-in queue for
|
|
35
|
+
* "a table, any table" has no content behind it.
|
|
36
|
+
*/
|
|
37
|
+
contentId?: string | null;
|
|
38
|
+
contentTitle?: string | null;
|
|
39
|
+
resourceId?: string | null;
|
|
40
|
+
requestedDate: string;
|
|
41
|
+
requestedStartTime?: string;
|
|
42
|
+
requestedEndTime?: string;
|
|
43
|
+
status: 'waiting' | 'notified' | 'converted' | 'expired' | 'cancelled' | 'declined';
|
|
44
|
+
position?: number;
|
|
45
|
+
priority: 'normal' | 'high' | 'urgent';
|
|
46
|
+
partySize?: number;
|
|
47
|
+
/** The slot that was offered, once one has been. */
|
|
48
|
+
offeredDate?: string;
|
|
49
|
+
offeredStartTime?: string;
|
|
50
|
+
offeredEndTime?: string;
|
|
51
|
+
/** When the offer lapses and the engine moves to the next person. */
|
|
52
|
+
offerExpiresAt?: string;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
}
|
|
55
|
+
export interface WaitlistListResponse {
|
|
56
|
+
data: WaitlistItem[];
|
|
57
|
+
meta: {
|
|
58
|
+
pagination: {
|
|
59
|
+
total: number;
|
|
60
|
+
page: number;
|
|
61
|
+
pageSize: number;
|
|
62
|
+
pageCount: number;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export interface BehaviorFieldDefinition {
|
|
67
|
+
name: string;
|
|
68
|
+
type: string;
|
|
69
|
+
label?: string;
|
|
70
|
+
required?: boolean;
|
|
71
|
+
showIf?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface BehaviorDefinition {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
description: string;
|
|
77
|
+
icon: string;
|
|
78
|
+
tags: string[];
|
|
79
|
+
formFields: BehaviorFieldDefinition[];
|
|
80
|
+
tableColumns: {
|
|
81
|
+
key: string;
|
|
82
|
+
label: string;
|
|
83
|
+
format?: string;
|
|
84
|
+
}[];
|
|
85
|
+
actions: {
|
|
86
|
+
id: string;
|
|
87
|
+
label: string;
|
|
88
|
+
icon: string;
|
|
89
|
+
}[];
|
|
90
|
+
filters: {
|
|
91
|
+
key: string;
|
|
92
|
+
label: string;
|
|
93
|
+
query: Record<string, unknown>;
|
|
94
|
+
}[];
|
|
95
|
+
}
|
|
96
|
+
export interface Transaction {
|
|
97
|
+
id: string;
|
|
98
|
+
/**
|
|
99
|
+
* The nine the API's own enum declares, verified against
|
|
100
|
+
* `entities/transaction/transaction.entity.ts`. This listed seven and was
|
|
101
|
+
* missing `invoice` and `subscription` — both of which the ledger has always
|
|
102
|
+
* offered as filters, so the type said those filters could not match while
|
|
103
|
+
* the API happily served them.
|
|
104
|
+
*/
|
|
105
|
+
type: 'order' | 'invoice' | 'booking' | 'membership' | 'subscription' | 'deposit' | 'tip' | 'refund' | 'payout';
|
|
106
|
+
/**
|
|
107
|
+
* The nine states the ledger can hold, in the order money travels.
|
|
108
|
+
*
|
|
109
|
+
* `authorized`, `settled`, `expired` and `reversed` were added when the
|
|
110
|
+
* ledger stopped describing only an online card charge that either works or
|
|
111
|
+
* does not. Money held and not yet taken, money confirmed in the bank, a
|
|
112
|
+
* payment nobody ever came back for, and the provider taking it back all had
|
|
113
|
+
* to be called one of the other five before.
|
|
114
|
+
*/
|
|
115
|
+
status: 'pending' | 'authorized' | 'success' | 'settled' | 'failed' | 'expired' | 'reversed' | 'refunded' | 'partially_refunded';
|
|
116
|
+
reference: string;
|
|
117
|
+
description: string | null;
|
|
118
|
+
amount: number;
|
|
119
|
+
fee: number;
|
|
120
|
+
netAmount: number;
|
|
121
|
+
currency: string;
|
|
122
|
+
channel: string | null;
|
|
123
|
+
customer: {
|
|
124
|
+
id: string | null;
|
|
125
|
+
email: string | null;
|
|
126
|
+
phone: string | null;
|
|
127
|
+
name: string | null;
|
|
128
|
+
};
|
|
129
|
+
paymentDetails: {
|
|
130
|
+
cardLast4: string | null;
|
|
131
|
+
cardBrand: string | null;
|
|
132
|
+
bankName: string | null;
|
|
133
|
+
accountNumber?: string | null;
|
|
134
|
+
};
|
|
135
|
+
relatedRecords: {
|
|
136
|
+
orderId: string | null;
|
|
137
|
+
bookingId: string | null;
|
|
138
|
+
invoiceId: string | null;
|
|
139
|
+
membershipSubscriptionId: string | null;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Whether `fee` is the provider's figure or our arithmetic. Only `provider`
|
|
143
|
+
* figures tie to a statement.
|
|
144
|
+
*/
|
|
145
|
+
feeSource?: 'provider' | 'estimated';
|
|
146
|
+
/** Terminal, gate or counter that took it. Null for the online storefront. */
|
|
147
|
+
deviceId?: string | null;
|
|
148
|
+
/** Taken while the device could not reach us, and replayed later. */
|
|
149
|
+
capturedOffline?: boolean;
|
|
150
|
+
/** When the device took it, which for an offline capture is not when we heard. */
|
|
151
|
+
capturedAt?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* THE ROAD THE MONEY TOOK, and the DTO sends it now.
|
|
154
|
+
*
|
|
155
|
+
* The entity has carried these since the transaction spine landed and the
|
|
156
|
+
* finance DTO serialised none of them, so three of these were declared here
|
|
157
|
+
* against a payload that never contained them — and the detail screen's
|
|
158
|
+
* timeline fell back to created / paid / refunded and could not show a
|
|
159
|
+
* decline, a retry, or the day a payment reached the bank.
|
|
160
|
+
*
|
|
161
|
+
* `settledAt` is the one merchants ask for: "Paid" means the customer's side
|
|
162
|
+
* finished, and only this means the money reached the bank. Deliberately a
|
|
163
|
+
* FACT rather than a forecast — Shopify shows an "available on" date because
|
|
164
|
+
* their model can promise one; ours knows when settlement happened and should
|
|
165
|
+
* not invent when it will.
|
|
166
|
+
*
|
|
167
|
+
* Null means "has not happened", never "we did not record it". Optional
|
|
168
|
+
* because an older API sends none of them, and `undefined` there has to stay
|
|
169
|
+
* distinguishable from a genuine null.
|
|
170
|
+
*/
|
|
171
|
+
authorizedAt?: string | null;
|
|
172
|
+
settledAt?: string | null;
|
|
173
|
+
reversedAt?: string | null;
|
|
174
|
+
paidAt: string | null;
|
|
175
|
+
refundedAt: string | null;
|
|
176
|
+
refundedAmount: number;
|
|
177
|
+
/**
|
|
178
|
+
* On a refund row: the payment it takes money back from. Optional because an
|
|
179
|
+
* API deployed before it shipped omits it.
|
|
180
|
+
*/
|
|
181
|
+
originalTransactionId?: string | null;
|
|
182
|
+
/** Why the merchant gave the refund, when they said. Optional on an older API. */
|
|
183
|
+
refundReason?: string | null;
|
|
184
|
+
/**
|
|
185
|
+
* Why a failed payment failed, in the provider's own words.
|
|
186
|
+
*
|
|
187
|
+
* Null on anything that did not fail, and null on failures recorded before
|
|
188
|
+
* api#448 started keeping it — so absence means "we do not know" rather than
|
|
189
|
+
* a reason worth printing a placeholder for. Optional, because a dashboard
|
|
190
|
+
* can be talking to an API that predates the field.
|
|
191
|
+
*/
|
|
192
|
+
failureReason?: string | null;
|
|
193
|
+
createdAt: string;
|
|
194
|
+
}
|
|
195
|
+
export interface FinanceAnalytics {
|
|
196
|
+
summary: {
|
|
197
|
+
totalRevenue: number;
|
|
198
|
+
/**
|
|
199
|
+
* Given back to customers, out of the takings above.
|
|
200
|
+
*
|
|
201
|
+
* Optional because an API deployed before this shipped omits it, and a
|
|
202
|
+
* missing refunds figure has to read as "not known" rather than as zero.
|
|
203
|
+
*/
|
|
204
|
+
totalRefunded?: number;
|
|
205
|
+
/** Money customers tried to pay and could not. Optional on an older API. */
|
|
206
|
+
totalFailed?: number;
|
|
207
|
+
/**
|
|
208
|
+
* Asked for and not yet taken. Optional because an API deployed before it
|
|
209
|
+
* shipped omits it, and a missing figure must read as "not known", not zero.
|
|
210
|
+
*/
|
|
211
|
+
totalPending?: number;
|
|
212
|
+
totalFees: number;
|
|
213
|
+
netRevenue: number;
|
|
214
|
+
transactionCount: number;
|
|
215
|
+
successfulCount: number;
|
|
216
|
+
failedCount: number;
|
|
217
|
+
pendingCount: number;
|
|
218
|
+
refundedCount: number;
|
|
219
|
+
averageTransactionValue: number;
|
|
220
|
+
currency: string;
|
|
221
|
+
};
|
|
222
|
+
recentTransactions: Transaction[];
|
|
223
|
+
revenueByType: {
|
|
224
|
+
breakdown: Array<{
|
|
225
|
+
type: string;
|
|
226
|
+
total: number;
|
|
227
|
+
count: number;
|
|
228
|
+
percentage: number;
|
|
229
|
+
}>;
|
|
230
|
+
total: number;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Takings split by how the money arrived, and the one number the Payments
|
|
234
|
+
* hub turns on: how much of it the provider actually holds. Cash and
|
|
235
|
+
* hand-recorded transfers are income but can never be withdrawn.
|
|
236
|
+
*
|
|
237
|
+
* Optional because an API deployed before this shipped simply omits it. The
|
|
238
|
+
* surface hides the split rather than guessing at it.
|
|
239
|
+
*/
|
|
240
|
+
revenueByChannel?: {
|
|
241
|
+
breakdown: Array<{
|
|
242
|
+
channel: string;
|
|
243
|
+
total: number;
|
|
244
|
+
count: number;
|
|
245
|
+
percentage: number;
|
|
246
|
+
}>;
|
|
247
|
+
settleable: number;
|
|
248
|
+
offPlatform: number;
|
|
249
|
+
total: number;
|
|
250
|
+
};
|
|
251
|
+
chart: {
|
|
252
|
+
data: Array<{
|
|
253
|
+
date: string;
|
|
254
|
+
total: number;
|
|
255
|
+
count: number;
|
|
256
|
+
/**
|
|
257
|
+
* Given back to customers that day, out of the takings beside it.
|
|
258
|
+
*
|
|
259
|
+
* Optional because an API deployed before this shipped omits it, and a
|
|
260
|
+
* missing outflow has to read as "not known" rather than as zero — a
|
|
261
|
+
* cash-flow chart drawing a flat zero line for refunds would report every
|
|
262
|
+
* business as keeping everything it took.
|
|
263
|
+
*/
|
|
264
|
+
refunds?: number;
|
|
265
|
+
}>;
|
|
266
|
+
period: string;
|
|
267
|
+
totalRevenue: number;
|
|
268
|
+
/** Refunded across the window, so a strip and the series cannot disagree. */
|
|
269
|
+
totalRefunded?: number;
|
|
270
|
+
totalTransactions: number;
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* One thing that happened to a transaction.
|
|
275
|
+
*
|
|
276
|
+
* `source` is which road it came in by — the provider's webhook, a customer
|
|
277
|
+
* reloading the return page, an operator, a device, the sweep. Recorded rather
|
|
278
|
+
* than inferred, because when two of them disagree the only way to see it is to
|
|
279
|
+
* know which wrote what.
|
|
280
|
+
*/
|
|
281
|
+
export interface TransactionTimelineEntry {
|
|
282
|
+
id: string;
|
|
283
|
+
type: 'initiated' | 'authorized' | 'captured' | 'failed' | 'settled' | 'reversed' | 'refunded' | 'expired' | 'reconciled' | 'replayed' | 'note';
|
|
284
|
+
summary: string;
|
|
285
|
+
source: 'webhook' | 'verify' | 'dashboard' | 'device' | 'sweeper' | 'system';
|
|
286
|
+
fromValue: string | null;
|
|
287
|
+
toValue: string | null;
|
|
288
|
+
actorName: string | null;
|
|
289
|
+
deviceId: string | null;
|
|
290
|
+
/** Minor units, when the event moved money. */
|
|
291
|
+
amount: number | null;
|
|
292
|
+
occurredAt: string;
|
|
293
|
+
}
|
|
294
|
+
export interface TransactionTimeline {
|
|
295
|
+
transactionId: string;
|
|
296
|
+
reference: string;
|
|
297
|
+
status: string;
|
|
298
|
+
entries: TransactionTimelineEntry[];
|
|
299
|
+
}
|
|
300
|
+
/** One kind of thing going wrong, with a sentence saying why it matters. */
|
|
301
|
+
export interface PaymentExceptionGroup {
|
|
302
|
+
key: string;
|
|
303
|
+
/**
|
|
304
|
+
* Whether there is something a person can DO about this group.
|
|
305
|
+
*
|
|
306
|
+
* Comes from the API rather than being worked out here: a group that names a
|
|
307
|
+
* problem and offers nothing is the defect this surface exists to remove, and
|
|
308
|
+
* letting the screen guess which ones have actions is how the next one gets
|
|
309
|
+
* added without its own.
|
|
310
|
+
*/
|
|
311
|
+
action?: 'offline_captures' | 'webhook_failures' | 'discrepancies' | 'stuck_refunds' | 'overdrawn_balances';
|
|
312
|
+
label: string;
|
|
313
|
+
detail: string;
|
|
314
|
+
count: number;
|
|
315
|
+
/** Minor units. Null where a total would be meaningless. */
|
|
316
|
+
amount: number | null;
|
|
317
|
+
severity: 'critical' | 'warning' | 'info';
|
|
318
|
+
}
|
|
319
|
+
export interface PaymentExceptions {
|
|
320
|
+
groups: PaymentExceptionGroup[];
|
|
321
|
+
/** True when nothing needs a human. The screen says so rather than drawing nothing. */
|
|
322
|
+
clear: boolean;
|
|
323
|
+
checkedAt: string;
|
|
324
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=waitlist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types/index.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Whether `endpoint` (as passed to `apiFetch`, query string allowed) is one this box does not serve. */
|
|
2
|
+
export declare function isUnservedRoute(endpoint: string): boolean;
|
|
3
|
+
/** The router's own sentence for a route it does not have, as the engine would say it. */
|
|
4
|
+
export declare function unservedMessage(method: string, endpoint: string): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const unservedPrefixes = () => (process.env.NEXT_PUBLIC_BOX_UNSERVED_ROUTES ?? "").split(",").map((entry) => entry.trim().replace(/^\/+|\/+$/g, "")).filter(Boolean);
|
|
2
|
+
function isUnservedRoute(endpoint) {
|
|
3
|
+
const path = endpoint.split(/[?#]/)[0].replace(/^\/+/, "");
|
|
4
|
+
return unservedPrefixes().some(
|
|
5
|
+
(prefix) => path === prefix || path.startsWith(`${prefix}/`)
|
|
6
|
+
);
|
|
7
|
+
}
|
|
8
|
+
function unservedMessage(method, endpoint) {
|
|
9
|
+
return `Cannot ${method.toUpperCase()} ${endpoint.split(/[?#]/)[0]}`;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
isUnservedRoute,
|
|
13
|
+
unservedMessage
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=unserved-routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/api/unserved-routes.ts"],"sourcesContent":["/**\n * Box switch for the API routes this box's engine does not serve.\n *\n * `NEXT_PUBLIC_BOX_UNSERVED_ROUTES=billing,analytics/stock-cover`: a comma list\n * of path prefixes. A call to one of them (the prefix itself or anything below\n * it, never `/billing-export` for `billing`) is answered here with the same 404\n * the engine would give, \"Cannot GET /billing/plans\", without asking the\n * engine. Pages already treat that answer as a service the box does not have\n * (`isServiceMissing`), so they look exactly as they did; the only change is\n * that the browser stops sending a request that can only fail.\n *\n * Off unless set, so other boxes call every route. Read when called, so a test\n * can set it. NEXT_PUBLIC_* is inlined at build.\n */\nconst unservedPrefixes = () =>\n (process.env.NEXT_PUBLIC_BOX_UNSERVED_ROUTES ?? '')\n .split(',')\n .map((entry) => entry.trim().replace(/^\\/+|\\/+$/g, ''))\n .filter(Boolean);\n\n/** Whether `endpoint` (as passed to `apiFetch`, query string allowed) is one this box does not serve. */\nexport function isUnservedRoute(endpoint: string): boolean {\n const path = endpoint.split(/[?#]/)[0].replace(/^\\/+/, '');\n return unservedPrefixes().some(\n (prefix) => path === prefix || path.startsWith(`${prefix}/`),\n );\n}\n\n/** The router's own sentence for a route it does not have, as the engine would say it. */\nexport function unservedMessage(method: string, endpoint: string): string {\n return `Cannot ${method.toUpperCase()} ${endpoint.split(/[?#]/)[0]}`;\n}\n"],"mappings":"AAcA,MAAM,mBAAmB,OACtB,QAAQ,IAAI,mCAAmC,IAC7C,MAAM,GAAG,EACT,IAAI,CAAC,UAAU,MAAM,KAAK,EAAE,QAAQ,cAAc,EAAE,CAAC,EACrD,OAAO,OAAO;AAGZ,SAAS,gBAAgB,UAA2B;AACzD,QAAM,OAAO,SAAS,MAAM,MAAM,EAAE,CAAC,EAAE,QAAQ,QAAQ,EAAE;AACzD,SAAO,iBAAiB,EAAE;AAAA,IACxB,CAAC,WAAW,SAAS,UAAU,KAAK,WAAW,GAAG,MAAM,GAAG;AAAA,EAC7D;AACF;AAGO,SAAS,gBAAgB,QAAgB,UAA0B;AACxE,SAAO,UAAU,OAAO,YAAY,CAAC,IAAI,SAAS,MAAM,MAAM,EAAE,CAAC,CAAC;AACpE;","names":[]}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { WaitlistItem, WaitlistListResponse } from './types';
|
|
2
|
+
export declare const waitlistApi: {
|
|
3
|
+
/**
|
|
4
|
+
* List all waitlist entries
|
|
5
|
+
*/
|
|
6
|
+
list: (tenantSlug: string, params?: {
|
|
7
|
+
status?: string;
|
|
8
|
+
page?: number;
|
|
9
|
+
limit?: number;
|
|
10
|
+
}) => Promise<WaitlistListResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Put someone on the list from the desk.
|
|
13
|
+
*
|
|
14
|
+
* The list could only ever be joined from the storefront, which is not how
|
|
15
|
+
* anybody joins a waitlist here: they ring up, or they are standing at the
|
|
16
|
+
* counter being told tonight is full. Backed by POST /waitlist, the same
|
|
17
|
+
* endpoint the storefront uses.
|
|
18
|
+
*/
|
|
19
|
+
add: (tenantSlug: string, data: {
|
|
20
|
+
customerEmail: string;
|
|
21
|
+
customerName?: string;
|
|
22
|
+
customerPhone?: string;
|
|
23
|
+
requestedDate: string;
|
|
24
|
+
requestedStartTime?: string;
|
|
25
|
+
requestedEndTime?: string;
|
|
26
|
+
partySize?: number;
|
|
27
|
+
priority?: "normal" | "high" | "urgent";
|
|
28
|
+
contentId?: string;
|
|
29
|
+
resourceId?: string;
|
|
30
|
+
}) => Promise<{
|
|
31
|
+
data: WaitlistItem;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Offer an open slot to a waiting entry (notifies the customer).
|
|
35
|
+
*/
|
|
36
|
+
offer: (tenantSlug: string, id: string, data: {
|
|
37
|
+
date: string;
|
|
38
|
+
startTime: string;
|
|
39
|
+
endTime: string;
|
|
40
|
+
expiresInHours?: number;
|
|
41
|
+
}) => Promise<{
|
|
42
|
+
data: WaitlistItem;
|
|
43
|
+
}>;
|
|
44
|
+
/**
|
|
45
|
+
* Accept an outstanding offer.
|
|
46
|
+
*
|
|
47
|
+
* This creates a real booking and hands back its id and number — the
|
|
48
|
+
* endpoint's whole point. It was typed as returning the waitlist entry,
|
|
49
|
+
* which is not what the API sends and not what the caller needs, so the
|
|
50
|
+
* booking came into existence and nothing on screen ever mentioned it.
|
|
51
|
+
*/
|
|
52
|
+
accept: (tenantSlug: string, id: string) => Promise<{
|
|
53
|
+
bookingId: string;
|
|
54
|
+
bookingNumber: string;
|
|
55
|
+
}>;
|
|
56
|
+
/** Decline an outstanding offer; optionally keep the entry waiting. */
|
|
57
|
+
decline: (tenantSlug: string, id: string, stayOnWaitlist?: boolean) => Promise<{
|
|
58
|
+
data: WaitlistItem;
|
|
59
|
+
}>;
|
|
60
|
+
/** Remove an entry from the waitlist. */
|
|
61
|
+
cancel: (tenantSlug: string, id: string) => Promise<{
|
|
62
|
+
success: boolean;
|
|
63
|
+
}>;
|
|
64
|
+
/** Aggregate counts for the board header. */
|
|
65
|
+
stats: (tenantSlug: string, dateFrom?: string, dateTo?: string) => Promise<{
|
|
66
|
+
total: number;
|
|
67
|
+
byStatus: Record<string, number>;
|
|
68
|
+
}>;
|
|
69
|
+
/**
|
|
70
|
+
* Who is waiting for a given day, in the order the engine will offer to.
|
|
71
|
+
*
|
|
72
|
+
* This is what makes the cancellation loop visible: potter-api already
|
|
73
|
+
* listens for `booking.cancelled` and offers the freed slot to the next
|
|
74
|
+
* person here, with a two-hour window — but the dashboard never showed it, so
|
|
75
|
+
* staff cancelled into silence.
|
|
76
|
+
*/
|
|
77
|
+
queue: (tenantSlug: string, date: string, resourceId?: string) => Promise<WaitlistItem[] | {
|
|
78
|
+
data: WaitlistItem[];
|
|
79
|
+
}>;
|
|
80
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { apiFetch } from "./core";
|
|
2
|
+
const waitlistApi = {
|
|
3
|
+
/**
|
|
4
|
+
* List all waitlist entries
|
|
5
|
+
*/
|
|
6
|
+
list: (tenantSlug, params) => {
|
|
7
|
+
const searchParams = new URLSearchParams();
|
|
8
|
+
if (params?.status) searchParams.set("status", params.status);
|
|
9
|
+
if (params?.page) searchParams.set("page", String(params.page));
|
|
10
|
+
if (params?.limit) searchParams.set("limit", String(params.limit));
|
|
11
|
+
const query = searchParams.toString() ? `?${searchParams.toString()}` : "";
|
|
12
|
+
return apiFetch(`/waitlist${query}`, { tenantSlug });
|
|
13
|
+
},
|
|
14
|
+
/**
|
|
15
|
+
* Put someone on the list from the desk.
|
|
16
|
+
*
|
|
17
|
+
* The list could only ever be joined from the storefront, which is not how
|
|
18
|
+
* anybody joins a waitlist here: they ring up, or they are standing at the
|
|
19
|
+
* counter being told tonight is full. Backed by POST /waitlist, the same
|
|
20
|
+
* endpoint the storefront uses.
|
|
21
|
+
*/
|
|
22
|
+
add: (tenantSlug, data) => apiFetch("/waitlist", {
|
|
23
|
+
method: "POST",
|
|
24
|
+
tenantSlug,
|
|
25
|
+
body: JSON.stringify(data)
|
|
26
|
+
}),
|
|
27
|
+
/**
|
|
28
|
+
* Offer an open slot to a waiting entry (notifies the customer).
|
|
29
|
+
*/
|
|
30
|
+
offer: (tenantSlug, id, data) => apiFetch(`/waitlist/${id}/offer`, {
|
|
31
|
+
method: "POST",
|
|
32
|
+
tenantSlug,
|
|
33
|
+
body: JSON.stringify(data)
|
|
34
|
+
}),
|
|
35
|
+
/**
|
|
36
|
+
* Accept an outstanding offer.
|
|
37
|
+
*
|
|
38
|
+
* This creates a real booking and hands back its id and number — the
|
|
39
|
+
* endpoint's whole point. It was typed as returning the waitlist entry,
|
|
40
|
+
* which is not what the API sends and not what the caller needs, so the
|
|
41
|
+
* booking came into existence and nothing on screen ever mentioned it.
|
|
42
|
+
*/
|
|
43
|
+
accept: (tenantSlug, id) => apiFetch(
|
|
44
|
+
`/waitlist/${id}/accept`,
|
|
45
|
+
{ method: "POST", tenantSlug }
|
|
46
|
+
),
|
|
47
|
+
/** Decline an outstanding offer; optionally keep the entry waiting. */
|
|
48
|
+
decline: (tenantSlug, id, stayOnWaitlist = false) => apiFetch(
|
|
49
|
+
`/waitlist/${id}/decline?stayOnWaitlist=${stayOnWaitlist}`,
|
|
50
|
+
{ method: "POST", tenantSlug }
|
|
51
|
+
),
|
|
52
|
+
/** Remove an entry from the waitlist. */
|
|
53
|
+
cancel: (tenantSlug, id) => apiFetch(`/waitlist/${id}`, {
|
|
54
|
+
method: "DELETE",
|
|
55
|
+
tenantSlug
|
|
56
|
+
}),
|
|
57
|
+
/** Aggregate counts for the board header. */
|
|
58
|
+
stats: (tenantSlug, dateFrom, dateTo) => {
|
|
59
|
+
const searchParams = new URLSearchParams();
|
|
60
|
+
if (dateFrom) searchParams.set("dateFrom", dateFrom);
|
|
61
|
+
if (dateTo) searchParams.set("dateTo", dateTo);
|
|
62
|
+
const query = searchParams.toString() ? `?${searchParams.toString()}` : "";
|
|
63
|
+
return apiFetch(`/waitlist/stats${query}`, { tenantSlug });
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* Who is waiting for a given day, in the order the engine will offer to.
|
|
67
|
+
*
|
|
68
|
+
* This is what makes the cancellation loop visible: potter-api already
|
|
69
|
+
* listens for `booking.cancelled` and offers the freed slot to the next
|
|
70
|
+
* person here, with a two-hour window — but the dashboard never showed it, so
|
|
71
|
+
* staff cancelled into silence.
|
|
72
|
+
*/
|
|
73
|
+
queue: (tenantSlug, date, resourceId) => {
|
|
74
|
+
const params = new URLSearchParams({ date });
|
|
75
|
+
if (resourceId) params.set("resourceId", resourceId);
|
|
76
|
+
return apiFetch(
|
|
77
|
+
`/waitlist/queue?${params.toString()}`,
|
|
78
|
+
{ tenantSlug }
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
waitlistApi
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=waitlist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/api/waitlist.ts"],"sourcesContent":["import { apiFetch } from './core';\nimport type { WaitlistItem, WaitlistListResponse } from './types';\n\nexport const waitlistApi = {\n /**\n * List all waitlist entries\n */\n list: (\n tenantSlug: string,\n params?: {\n status?: string;\n page?: number;\n limit?: number;\n },\n ) => {\n const searchParams = new URLSearchParams();\n if (params?.status) searchParams.set('status', params.status);\n if (params?.page) searchParams.set('page', String(params.page));\n if (params?.limit) searchParams.set('limit', String(params.limit));\n const query = searchParams.toString() ? `?${searchParams.toString()}` : '';\n return apiFetch<WaitlistListResponse>(`/waitlist${query}`, { tenantSlug });\n },\n\n /**\n * Put someone on the list from the desk.\n *\n * The list could only ever be joined from the storefront, which is not how\n * anybody joins a waitlist here: they ring up, or they are standing at the\n * counter being told tonight is full. Backed by POST /waitlist, the same\n * endpoint the storefront uses.\n */\n add: (\n tenantSlug: string,\n data: {\n customerEmail: string;\n customerName?: string;\n customerPhone?: string;\n requestedDate: string;\n requestedStartTime?: string;\n requestedEndTime?: string;\n partySize?: number;\n priority?: 'normal' | 'high' | 'urgent';\n contentId?: string;\n resourceId?: string;\n },\n ) =>\n apiFetch<{ data: WaitlistItem }>('/waitlist', {\n method: 'POST',\n tenantSlug,\n body: JSON.stringify(data),\n }),\n\n /**\n * Offer an open slot to a waiting entry (notifies the customer).\n */\n offer: (\n tenantSlug: string,\n id: string,\n data: {\n date: string;\n startTime: string;\n endTime: string;\n expiresInHours?: number;\n },\n ) =>\n apiFetch<{ data: WaitlistItem }>(`/waitlist/${id}/offer`, {\n method: 'POST',\n tenantSlug,\n body: JSON.stringify(data),\n }),\n\n /**\n * Accept an outstanding offer.\n *\n * This creates a real booking and hands back its id and number — the\n * endpoint's whole point. It was typed as returning the waitlist entry,\n * which is not what the API sends and not what the caller needs, so the\n * booking came into existence and nothing on screen ever mentioned it.\n */\n accept: (tenantSlug: string, id: string) =>\n apiFetch<{ bookingId: string; bookingNumber: string }>(\n `/waitlist/${id}/accept`,\n { method: 'POST', tenantSlug },\n ),\n\n /** Decline an outstanding offer; optionally keep the entry waiting. */\n decline: (tenantSlug: string, id: string, stayOnWaitlist = false) =>\n apiFetch<{ data: WaitlistItem }>(\n `/waitlist/${id}/decline?stayOnWaitlist=${stayOnWaitlist}`,\n { method: 'POST', tenantSlug },\n ),\n\n /** Remove an entry from the waitlist. */\n cancel: (tenantSlug: string, id: string) =>\n apiFetch<{ success: boolean }>(`/waitlist/${id}`, {\n method: 'DELETE',\n tenantSlug,\n }),\n\n /** Aggregate counts for the board header. */\n stats: (tenantSlug: string, dateFrom?: string, dateTo?: string) => {\n const searchParams = new URLSearchParams();\n if (dateFrom) searchParams.set('dateFrom', dateFrom);\n if (dateTo) searchParams.set('dateTo', dateTo);\n const query = searchParams.toString() ? `?${searchParams.toString()}` : '';\n return apiFetch<{\n total: number;\n byStatus: Record<string, number>;\n }>(`/waitlist/stats${query}`, { tenantSlug });\n },\n\n /**\n * Who is waiting for a given day, in the order the engine will offer to.\n *\n * This is what makes the cancellation loop visible: potter-api already\n * listens for `booking.cancelled` and offers the freed slot to the next\n * person here, with a two-hour window — but the dashboard never showed it, so\n * staff cancelled into silence.\n */\n queue: (tenantSlug: string, date: string, resourceId?: string) => {\n const params = new URLSearchParams({ date });\n if (resourceId) params.set('resourceId', resourceId);\n return apiFetch<{ data: WaitlistItem[] } | WaitlistItem[]>(\n `/waitlist/queue?${params.toString()}`,\n { tenantSlug },\n );\n },\n};\n\n// ============================================\n// BEHAVIORS API\n// ============================================\n"],"mappings":"AAAA,SAAS,gBAAgB;AAGlB,MAAM,cAAc;AAAA;AAAA;AAAA;AAAA,EAIzB,MAAM,CACJ,YACA,WAKG;AACH,UAAM,eAAe,IAAI,gBAAgB;AACzC,QAAI,QAAQ,OAAQ,cAAa,IAAI,UAAU,OAAO,MAAM;AAC5D,QAAI,QAAQ,KAAM,cAAa,IAAI,QAAQ,OAAO,OAAO,IAAI,CAAC;AAC9D,QAAI,QAAQ,MAAO,cAAa,IAAI,SAAS,OAAO,OAAO,KAAK,CAAC;AACjE,UAAM,QAAQ,aAAa,SAAS,IAAI,IAAI,aAAa,SAAS,CAAC,KAAK;AACxE,WAAO,SAA+B,YAAY,KAAK,IAAI,EAAE,WAAW,CAAC;AAAA,EAC3E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,KAAK,CACH,YACA,SAaA,SAAiC,aAAa;AAAA,IAC5C,QAAQ;AAAA,IACR;AAAA,IACA,MAAM,KAAK,UAAU,IAAI;AAAA,EAC3B,CAAC;AAAA;AAAA;AAAA;AAAA,EAKH,OAAO,CACL,YACA,IACA,SAOA,SAAiC,aAAa,EAAE,UAAU;AAAA,IACxD,QAAQ;AAAA,IACR;AAAA,IACA,MAAM,KAAK,UAAU,IAAI;AAAA,EAC3B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUH,QAAQ,CAAC,YAAoB,OAC3B;AAAA,IACE,aAAa,EAAE;AAAA,IACf,EAAE,QAAQ,QAAQ,WAAW;AAAA,EAC/B;AAAA;AAAA,EAGF,SAAS,CAAC,YAAoB,IAAY,iBAAiB,UACzD;AAAA,IACE,aAAa,EAAE,2BAA2B,cAAc;AAAA,IACxD,EAAE,QAAQ,QAAQ,WAAW;AAAA,EAC/B;AAAA;AAAA,EAGF,QAAQ,CAAC,YAAoB,OAC3B,SAA+B,aAAa,EAAE,IAAI;AAAA,IAChD,QAAQ;AAAA,IACR;AAAA,EACF,CAAC;AAAA;AAAA,EAGH,OAAO,CAAC,YAAoB,UAAmB,WAAoB;AACjE,UAAM,eAAe,IAAI,gBAAgB;AACzC,QAAI,SAAU,cAAa,IAAI,YAAY,QAAQ;AACnD,QAAI,OAAQ,cAAa,IAAI,UAAU,MAAM;AAC7C,UAAM,QAAQ,aAAa,SAAS,IAAI,IAAI,aAAa,SAAS,CAAC,KAAK;AACxE,WAAO,SAGJ,kBAAkB,KAAK,IAAI,EAAE,WAAW,CAAC;AAAA,EAC9C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,OAAO,CAAC,YAAoB,MAAc,eAAwB;AAChE,UAAM,SAAS,IAAI,gBAAgB,EAAE,KAAK,CAAC;AAC3C,QAAI,WAAY,QAAO,IAAI,cAAc,UAAU;AACnD,WAAO;AAAA,MACL,mBAAmB,OAAO,SAAS,CAAC;AAAA,MACpC,EAAE,WAAW;AAAA,IACf;AAAA,EACF;AACF;","names":[]}
|
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './api/index';
|
package/dist/api.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './api/index.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the app calls itself in a browser tab, on a home screen, and in a
|
|
3
|
+
* share card.
|
|
4
|
+
*
|
|
5
|
+
* Not "Box Dashboard". A dashboard is a read-only view of numbers, and
|
|
6
|
+
* analytics is one tab inside this rather than the whole of it — what actually
|
|
7
|
+
* lives here is the catalogue, orders, fulfilment, payments, domains and the
|
|
8
|
+
* editor. Not "Box Merchant" either: `merchant` is our internal word for the
|
|
9
|
+
* customer and reaches no shipped UI string, and it is a retail noun in a
|
|
10
|
+
* product that also runs clubs, halls and short-lets, which is the same trap
|
|
11
|
+
* `useEntityLabel` exists to avoid one level up.
|
|
12
|
+
*
|
|
13
|
+
* So the suffix only has to say whose app this is. The screen name carries the
|
|
14
|
+
* rest, the way Linear and Vercel do it.
|
|
15
|
+
*/
|
|
16
|
+
export declare const APP_NAME = "Box";
|
|
17
|
+
/**
|
|
18
|
+
* "Orders · Ada's Kitchen", falling back to "Orders · Box".
|
|
19
|
+
*
|
|
20
|
+
* The suffix is the business, not the app, whenever you are inside one. Box
|
|
21
|
+
* runs several workspaces per person, so naming every tab after Box leaves
|
|
22
|
+
* three tabs on three different businesses reading the same thing — the app
|
|
23
|
+
* name is the one word they already share. The plated favicon carries the
|
|
24
|
+
* brand at 16px; the words can belong to whoever the tab is for.
|
|
25
|
+
*
|
|
26
|
+
* `owner` is absent before a workspace is picked (sign-in, onboarding), and
|
|
27
|
+
* there the app name is all there is to say.
|
|
28
|
+
*/
|
|
29
|
+
export declare function tabTitle(name?: string, owner?: string): string;
|
package/dist/app-name.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const APP_NAME = "Box";
|
|
2
|
+
function tabTitle(name, owner) {
|
|
3
|
+
const screen = name?.trim();
|
|
4
|
+
const suffix = owner?.trim() || APP_NAME;
|
|
5
|
+
return screen ? `${screen} \xB7 ${suffix}` : suffix;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
APP_NAME,
|
|
9
|
+
tabTitle
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=app-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app-name.ts"],"sourcesContent":["/**\n * What the app calls itself in a browser tab, on a home screen, and in a\n * share card.\n *\n * Not \"Box Dashboard\". A dashboard is a read-only view of numbers, and\n * analytics is one tab inside this rather than the whole of it — what actually\n * lives here is the catalogue, orders, fulfilment, payments, domains and the\n * editor. Not \"Box Merchant\" either: `merchant` is our internal word for the\n * customer and reaches no shipped UI string, and it is a retail noun in a\n * product that also runs clubs, halls and short-lets, which is the same trap\n * `useEntityLabel` exists to avoid one level up.\n *\n * So the suffix only has to say whose app this is. The screen name carries the\n * rest, the way Linear and Vercel do it.\n */\nexport const APP_NAME = 'Box';\n\n/**\n * \"Orders · Ada's Kitchen\", falling back to \"Orders · Box\".\n *\n * The suffix is the business, not the app, whenever you are inside one. Box\n * runs several workspaces per person, so naming every tab after Box leaves\n * three tabs on three different businesses reading the same thing — the app\n * name is the one word they already share. The plated favicon carries the\n * brand at 16px; the words can belong to whoever the tab is for.\n *\n * `owner` is absent before a workspace is picked (sign-in, onboarding), and\n * there the app name is all there is to say.\n */\nexport function tabTitle(name?: string, owner?: string): string {\n const screen = name?.trim();\n const suffix = owner?.trim() || APP_NAME;\n return screen ? `${screen} · ${suffix}` : suffix;\n}\n"],"mappings":"AAeO,MAAM,WAAW;AAcjB,SAAS,SAAS,MAAe,OAAwB;AAC9D,QAAM,SAAS,MAAM,KAAK;AAC1B,QAAM,SAAS,OAAO,KAAK,KAAK;AAChC,SAAO,SAAS,GAAG,MAAM,SAAM,MAAM,KAAK;AAC5C;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Saying something once, to somebody who has just arrived.
|
|
3
|
+
*
|
|
4
|
+
* Extracted from `staff-arrival`, which had solved this properly for one case
|
|
5
|
+
* and was about to be copy-pasted for a second. The traps it documents are not
|
|
6
|
+
* about staff — they are about one-shot messages on this app's dashboard, and
|
|
7
|
+
* a second copy would carry the same three paragraphs of reasoning and drift
|
|
8
|
+
* from them.
|
|
9
|
+
*
|
|
10
|
+
* ── THE THREE THINGS THAT ARE NOT OBVIOUS ──
|
|
11
|
+
*
|
|
12
|
+
* STORED, NOT DERIVED. `joinedAt` or `createdAt` looks like the obvious source
|
|
13
|
+
* and would greet somebody on every sign-in on their first day — and on a
|
|
14
|
+
* shared counter phone, greet whoever opened it next. A flag written by the
|
|
15
|
+
* screen that caused the arrival fires exactly once, for the person who was
|
|
16
|
+
* actually there.
|
|
17
|
+
*
|
|
18
|
+
* CLEARED ON READ, NOT ON DISMISS. A welcome that survives a refresh greets
|
|
19
|
+
* somebody twice, and the second time reads as a bug.
|
|
20
|
+
*
|
|
21
|
+
* LATCHED FOR THE PAGE LOAD. The dashboard layout renders a phone tree OR a
|
|
22
|
+
* desktop tree, and which one is only known after hydration — the server has no
|
|
23
|
+
* viewport, so a phone paints the desktop tree first and swaps. That swap
|
|
24
|
+
* unmounts one welcome and mounts another, and with the flag cleared on read
|
|
25
|
+
* the second one asked an empty cupboard: anyone arriving on a phone, which is
|
|
26
|
+
* most of them, got nothing at all. `decided` lives in module scope, so it
|
|
27
|
+
* lasts exactly as long as the page.
|
|
28
|
+
*
|
|
29
|
+
* sessionStorage, not local: a welcome should not survive into a new tab
|
|
30
|
+
* opened tomorrow.
|
|
31
|
+
*/
|
|
32
|
+
export interface Arrival {
|
|
33
|
+
/** Write the flag. Called by whatever caused the arrival, before it routes. */
|
|
34
|
+
flag: () => void;
|
|
35
|
+
/** Read and clear in one breath, latched for the rest of this page load. */
|
|
36
|
+
take: () => boolean;
|
|
37
|
+
/** Said. Anything mounting after this gets nothing. */
|
|
38
|
+
end: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* Was this page load an arrival?
|
|
41
|
+
*
|
|
42
|
+
* For anything that must NOT interrupt while the arrival's own message is on
|
|
43
|
+
* screen. Read-only — it never consumes the flag, so asking cannot change
|
|
44
|
+
* who gets greeted.
|
|
45
|
+
*/
|
|
46
|
+
taken: () => boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare function makeArrival(key: string): Arrival;
|