@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,63 @@
|
|
|
1
|
+
import type { GiftCardStatus, GiftCard, GiftCardStats, CreateGiftCardData, UpdateGiftCardData, GiftCardBalance } from './types';
|
|
2
|
+
export declare const giftcardsApi: {
|
|
3
|
+
list: (tenantSlug: string, query?: {
|
|
4
|
+
status?: GiftCardStatus;
|
|
5
|
+
search?: string;
|
|
6
|
+
page?: number;
|
|
7
|
+
limit?: number;
|
|
8
|
+
}) => Promise<{
|
|
9
|
+
rows: GiftCard[];
|
|
10
|
+
count: number;
|
|
11
|
+
}>;
|
|
12
|
+
getById: (tenantSlug: string, id: string) => Promise<GiftCard>;
|
|
13
|
+
getStats: (tenantSlug: string) => Promise<GiftCardStats>;
|
|
14
|
+
create: (tenantSlug: string, data: CreateGiftCardData) => Promise<GiftCard>;
|
|
15
|
+
update: (tenantSlug: string, id: string, data: UpdateGiftCardData) => Promise<GiftCard>;
|
|
16
|
+
/**
|
|
17
|
+
* Voids the card and keeps the record. This replaced a DELETE that destroyed
|
|
18
|
+
* the row outright, taking the outstanding balance a customer had paid for
|
|
19
|
+
* and the redemption history with it.
|
|
20
|
+
*/
|
|
21
|
+
cancel: (tenantSlug: string, id: string) => Promise<GiftCard>;
|
|
22
|
+
/** Email the card to its recipient, for the first time or again. */
|
|
23
|
+
send: (tenantSlug: string, id: string) => Promise<{
|
|
24
|
+
sent: boolean;
|
|
25
|
+
reason?: string;
|
|
26
|
+
}>;
|
|
27
|
+
redeemByCode: (tenantSlug: string, code: string, data: {
|
|
28
|
+
amount: number;
|
|
29
|
+
note?: string;
|
|
30
|
+
referenceId?: string;
|
|
31
|
+
referenceType?: string;
|
|
32
|
+
}) => Promise<{
|
|
33
|
+
success: boolean;
|
|
34
|
+
error?: string;
|
|
35
|
+
giftCard?: GiftCard;
|
|
36
|
+
}>;
|
|
37
|
+
checkBalance: (tenantSlug: string, code: string) => Promise<GiftCardBalance>;
|
|
38
|
+
};
|
|
39
|
+
export declare const giftCardsApi: {
|
|
40
|
+
list: (tenantSlug: string, query?: {
|
|
41
|
+
status?: GiftCardStatus;
|
|
42
|
+
search?: string;
|
|
43
|
+
page?: number;
|
|
44
|
+
limit?: number;
|
|
45
|
+
}) => Promise<{
|
|
46
|
+
rows: GiftCard[];
|
|
47
|
+
count: number;
|
|
48
|
+
}>;
|
|
49
|
+
getById: (tenantSlug: string, id: string) => Promise<GiftCard>;
|
|
50
|
+
create: (tenantSlug: string, data: CreateGiftCardData) => Promise<GiftCard>;
|
|
51
|
+
redeem: (tenantSlug: string, code: string, data: {
|
|
52
|
+
amount: number;
|
|
53
|
+
referenceId?: string;
|
|
54
|
+
note?: string;
|
|
55
|
+
}) => Promise<{
|
|
56
|
+
success: boolean;
|
|
57
|
+
error?: string;
|
|
58
|
+
giftCard?: GiftCard;
|
|
59
|
+
}>;
|
|
60
|
+
checkBalance: (tenantSlug: string, code: string) => Promise<GiftCardBalance>;
|
|
61
|
+
stats: (tenantSlug: string) => Promise<GiftCardStats>;
|
|
62
|
+
delete: (tenantSlug: string, id: string) => Promise<void>;
|
|
63
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { apiFetch } from "./core";
|
|
2
|
+
const giftcardsApi = {
|
|
3
|
+
list: (tenantSlug, query) => apiFetch(
|
|
4
|
+
`/giftcards?${new URLSearchParams(
|
|
5
|
+
Object.fromEntries(
|
|
6
|
+
Object.entries(query || {}).filter(([, v]) => v != null).map(([k, v]) => [k, String(v)])
|
|
7
|
+
)
|
|
8
|
+
)}`,
|
|
9
|
+
{ tenantSlug }
|
|
10
|
+
),
|
|
11
|
+
getById: (tenantSlug, id) => apiFetch(`/giftcards/${id}`, { tenantSlug }),
|
|
12
|
+
getStats: (tenantSlug) => apiFetch("/giftcards/stats", { tenantSlug }),
|
|
13
|
+
create: (tenantSlug, data) => apiFetch("/giftcards", {
|
|
14
|
+
method: "POST",
|
|
15
|
+
body: JSON.stringify(data),
|
|
16
|
+
tenantSlug
|
|
17
|
+
}),
|
|
18
|
+
update: (tenantSlug, id, data) => apiFetch(`/giftcards/${id}`, {
|
|
19
|
+
method: "PUT",
|
|
20
|
+
body: JSON.stringify(data),
|
|
21
|
+
tenantSlug
|
|
22
|
+
}),
|
|
23
|
+
/**
|
|
24
|
+
* Voids the card and keeps the record. This replaced a DELETE that destroyed
|
|
25
|
+
* the row outright, taking the outstanding balance a customer had paid for
|
|
26
|
+
* and the redemption history with it.
|
|
27
|
+
*/
|
|
28
|
+
cancel: (tenantSlug, id) => apiFetch(`/giftcards/${id}/cancel`, {
|
|
29
|
+
method: "POST",
|
|
30
|
+
tenantSlug
|
|
31
|
+
}),
|
|
32
|
+
/** Email the card to its recipient, for the first time or again. */
|
|
33
|
+
send: (tenantSlug, id) => apiFetch(`/giftcards/${id}/send`, {
|
|
34
|
+
method: "POST",
|
|
35
|
+
tenantSlug
|
|
36
|
+
}),
|
|
37
|
+
redeemByCode: (tenantSlug, code, data) => apiFetch(
|
|
38
|
+
`/giftcards/code/${encodeURIComponent(code)}/redeem`,
|
|
39
|
+
{ method: "POST", body: JSON.stringify(data), tenantSlug }
|
|
40
|
+
),
|
|
41
|
+
checkBalance: (tenantSlug, code) => apiFetch("/giftcards/check-balance", {
|
|
42
|
+
method: "POST",
|
|
43
|
+
body: JSON.stringify({ code }),
|
|
44
|
+
tenantSlug
|
|
45
|
+
})
|
|
46
|
+
};
|
|
47
|
+
const giftCardsApi = {
|
|
48
|
+
list: giftcardsApi.list,
|
|
49
|
+
getById: giftcardsApi.getById,
|
|
50
|
+
create: giftcardsApi.create,
|
|
51
|
+
redeem: (tenantSlug, code, data) => giftcardsApi.redeemByCode(tenantSlug, code, data),
|
|
52
|
+
checkBalance: giftcardsApi.checkBalance,
|
|
53
|
+
stats: giftcardsApi.getStats,
|
|
54
|
+
delete: (tenantSlug, id) => apiFetch(`/giftcards/${id}`, {
|
|
55
|
+
method: "DELETE",
|
|
56
|
+
tenantSlug
|
|
57
|
+
})
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
giftCardsApi,
|
|
61
|
+
giftcardsApi
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=giftcards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/api/giftcards.ts"],"sourcesContent":["import { apiFetch } from './core';\nimport type {\n GiftCardStatus,\n GiftCard,\n GiftCardStats,\n CreateGiftCardData,\n UpdateGiftCardData,\n GiftCardBalance,\n} from './types';\n\nexport const giftcardsApi = {\n list: (\n tenantSlug: string,\n query?: {\n status?: GiftCardStatus;\n search?: string;\n page?: number;\n limit?: number;\n },\n ) =>\n apiFetch<{ rows: GiftCard[]; count: number }>(\n `/giftcards?${new URLSearchParams(\n Object.fromEntries(\n Object.entries(query || {})\n .filter(([, v]) => v != null)\n .map(([k, v]) => [k, String(v)]),\n ),\n )}`,\n { tenantSlug },\n ),\n\n getById: (tenantSlug: string, id: string) =>\n apiFetch<GiftCard>(`/giftcards/${id}`, { tenantSlug }),\n\n getStats: (tenantSlug: string) =>\n apiFetch<GiftCardStats>('/giftcards/stats', { tenantSlug }),\n\n create: (tenantSlug: string, data: CreateGiftCardData) =>\n apiFetch<GiftCard>('/giftcards', {\n method: 'POST',\n body: JSON.stringify(data),\n tenantSlug,\n }),\n\n update: (tenantSlug: string, id: string, data: UpdateGiftCardData) =>\n apiFetch<GiftCard>(`/giftcards/${id}`, {\n method: 'PUT',\n body: JSON.stringify(data),\n tenantSlug,\n }),\n\n /**\n * Voids the card and keeps the record. This replaced a DELETE that destroyed\n * the row outright, taking the outstanding balance a customer had paid for\n * and the redemption history with it.\n */\n cancel: (tenantSlug: string, id: string) =>\n apiFetch<GiftCard>(`/giftcards/${id}/cancel`, {\n method: 'POST',\n tenantSlug,\n }),\n\n /** Email the card to its recipient, for the first time or again. */\n send: (tenantSlug: string, id: string) =>\n apiFetch<{ sent: boolean; reason?: string }>(`/giftcards/${id}/send`, {\n method: 'POST',\n tenantSlug,\n }),\n\n redeemByCode: (\n tenantSlug: string,\n code: string,\n data: {\n amount: number;\n note?: string;\n referenceId?: string;\n referenceType?: string;\n },\n ) =>\n apiFetch<{ success: boolean; error?: string; giftCard?: GiftCard }>(\n `/giftcards/code/${encodeURIComponent(code)}/redeem`,\n { method: 'POST', body: JSON.stringify(data), tenantSlug },\n ),\n\n checkBalance: (tenantSlug: string, code: string) =>\n apiFetch<GiftCardBalance>('/giftcards/check-balance', {\n method: 'POST',\n body: JSON.stringify({ code }),\n tenantSlug,\n }),\n};\n\n// The same endpoints under the names the Box engine gift card screens call.\nexport const giftCardsApi = {\n list: giftcardsApi.list,\n getById: giftcardsApi.getById,\n create: giftcardsApi.create,\n\n redeem: (\n tenantSlug: string,\n code: string,\n data: { amount: number; referenceId?: string; note?: string },\n ) => giftcardsApi.redeemByCode(tenantSlug, code, data),\n\n checkBalance: giftcardsApi.checkBalance,\n stats: giftcardsApi.getStats,\n\n delete: (tenantSlug: string, id: string) =>\n apiFetch<void>(`/giftcards/${id}`, {\n method: 'DELETE',\n tenantSlug,\n }),\n};\n\n// ============================================\n// INVENTORY / PRODUCTS API\n// ============================================\n"],"mappings":"AAAA,SAAS,gBAAgB;AAUlB,MAAM,eAAe;AAAA,EAC1B,MAAM,CACJ,YACA,UAOA;AAAA,IACE,cAAc,IAAI;AAAA,MAChB,OAAO;AAAA,QACL,OAAO,QAAQ,SAAS,CAAC,CAAC,EACvB,OAAO,CAAC,CAAC,EAAE,CAAC,MAAM,KAAK,IAAI,EAC3B,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;AAAA,MACnC;AAAA,IACF,CAAC;AAAA,IACD,EAAE,WAAW;AAAA,EACf;AAAA,EAEF,SAAS,CAAC,YAAoB,OAC5B,SAAmB,cAAc,EAAE,IAAI,EAAE,WAAW,CAAC;AAAA,EAEvD,UAAU,CAAC,eACT,SAAwB,oBAAoB,EAAE,WAAW,CAAC;AAAA,EAE5D,QAAQ,CAAC,YAAoB,SAC3B,SAAmB,cAAc;AAAA,IAC/B,QAAQ;AAAA,IACR,MAAM,KAAK,UAAU,IAAI;AAAA,IACzB;AAAA,EACF,CAAC;AAAA,EAEH,QAAQ,CAAC,YAAoB,IAAY,SACvC,SAAmB,cAAc,EAAE,IAAI;AAAA,IACrC,QAAQ;AAAA,IACR,MAAM,KAAK,UAAU,IAAI;AAAA,IACzB;AAAA,EACF,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOH,QAAQ,CAAC,YAAoB,OAC3B,SAAmB,cAAc,EAAE,WAAW;AAAA,IAC5C,QAAQ;AAAA,IACR;AAAA,EACF,CAAC;AAAA;AAAA,EAGH,MAAM,CAAC,YAAoB,OACzB,SAA6C,cAAc,EAAE,SAAS;AAAA,IACpE,QAAQ;AAAA,IACR;AAAA,EACF,CAAC;AAAA,EAEH,cAAc,CACZ,YACA,MACA,SAOA;AAAA,IACE,mBAAmB,mBAAmB,IAAI,CAAC;AAAA,IAC3C,EAAE,QAAQ,QAAQ,MAAM,KAAK,UAAU,IAAI,GAAG,WAAW;AAAA,EAC3D;AAAA,EAEF,cAAc,CAAC,YAAoB,SACjC,SAA0B,4BAA4B;AAAA,IACpD,QAAQ;AAAA,IACR,MAAM,KAAK,UAAU,EAAE,KAAK,CAAC;AAAA,IAC7B;AAAA,EACF,CAAC;AACL;AAGO,MAAM,eAAe;AAAA,EAC1B,MAAM,aAAa;AAAA,EACnB,SAAS,aAAa;AAAA,EACtB,QAAQ,aAAa;AAAA,EAErB,QAAQ,CACN,YACA,MACA,SACG,aAAa,aAAa,YAAY,MAAM,IAAI;AAAA,EAErD,cAAc,aAAa;AAAA,EAC3B,OAAO,aAAa;AAAA,EAEpB,QAAQ,CAAC,YAAoB,OAC3B,SAAe,cAAc,EAAE,IAAI;AAAA,IACjC,QAAQ;AAAA,IACR;AAAA,EACF,CAAC;AACL;","names":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { HardwareOrder, HardwareOrderState, HardwareSkuOption, ShipTo } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Machines a business has asked for and does not have yet.
|
|
4
|
+
*
|
|
5
|
+
* Its own client and its own prefix, because it is a different job from running
|
|
6
|
+
* the hardware you already own. It meets `business-devices` at exactly one
|
|
7
|
+
* point: on delivery, an order becomes device rows with pairing codes waiting.
|
|
8
|
+
*/
|
|
9
|
+
export declare const hardwareOrdersApi: {
|
|
10
|
+
/** Only what is priced in this business's currency. */
|
|
11
|
+
catalogue: (tenantSlug: string) => Promise<{
|
|
12
|
+
items: HardwareSkuOption[];
|
|
13
|
+
currency: string;
|
|
14
|
+
}>;
|
|
15
|
+
list: (tenantSlug: string) => Promise<{
|
|
16
|
+
orders: HardwareOrder[];
|
|
17
|
+
}>;
|
|
18
|
+
get: (tenantSlug: string, id: string) => Promise<HardwareOrder>;
|
|
19
|
+
place: (tenantSlug: string, body: {
|
|
20
|
+
sku: string;
|
|
21
|
+
quantity: number;
|
|
22
|
+
locationId?: string;
|
|
23
|
+
shipTo: ShipTo;
|
|
24
|
+
}) => Promise<HardwareOrder>;
|
|
25
|
+
/** Only while nothing has shipped. After that it is a return. */
|
|
26
|
+
cancel: (tenantSlug: string, id: string, reason?: string) => Promise<HardwareOrder>;
|
|
27
|
+
/**
|
|
28
|
+
* Move an order along.
|
|
29
|
+
*
|
|
30
|
+
* Merchant-facing for now, and deliberately a stopgap: nobody ships hardware
|
|
31
|
+
* yet, and this is what lets the arc be walked end to end before anybody
|
|
32
|
+
* does. It moves to a fulfilment desk the day there is one.
|
|
33
|
+
*/
|
|
34
|
+
advance: (tenantSlug: string, id: string, body: {
|
|
35
|
+
state: Extract<HardwareOrderState, "confirmed" | "shipped" | "delivered">;
|
|
36
|
+
courier?: string;
|
|
37
|
+
trackingReference?: string;
|
|
38
|
+
expectedAt?: string;
|
|
39
|
+
}) => Promise<HardwareOrder>;
|
|
40
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { apiFetch } from "./core";
|
|
2
|
+
const hardwareOrdersApi = {
|
|
3
|
+
/** Only what is priced in this business's currency. */
|
|
4
|
+
catalogue: (tenantSlug) => apiFetch(
|
|
5
|
+
"/hardware/catalogue",
|
|
6
|
+
{ tenantSlug }
|
|
7
|
+
),
|
|
8
|
+
list: (tenantSlug) => apiFetch("/hardware/orders", { tenantSlug }),
|
|
9
|
+
get: (tenantSlug, id) => apiFetch(`/hardware/orders/${id}`, { tenantSlug }),
|
|
10
|
+
place: (tenantSlug, body) => apiFetch("/hardware/orders", {
|
|
11
|
+
tenantSlug,
|
|
12
|
+
method: "POST",
|
|
13
|
+
body: JSON.stringify(body)
|
|
14
|
+
}),
|
|
15
|
+
/** Only while nothing has shipped. After that it is a return. */
|
|
16
|
+
cancel: (tenantSlug, id, reason) => apiFetch(`/hardware/orders/${id}/cancel`, {
|
|
17
|
+
tenantSlug,
|
|
18
|
+
method: "POST",
|
|
19
|
+
body: JSON.stringify({ reason })
|
|
20
|
+
}),
|
|
21
|
+
/**
|
|
22
|
+
* Move an order along.
|
|
23
|
+
*
|
|
24
|
+
* Merchant-facing for now, and deliberately a stopgap: nobody ships hardware
|
|
25
|
+
* yet, and this is what lets the arc be walked end to end before anybody
|
|
26
|
+
* does. It moves to a fulfilment desk the day there is one.
|
|
27
|
+
*/
|
|
28
|
+
advance: (tenantSlug, id, body) => apiFetch(`/hardware/orders/${id}/advance`, {
|
|
29
|
+
tenantSlug,
|
|
30
|
+
method: "POST",
|
|
31
|
+
body: JSON.stringify(body)
|
|
32
|
+
})
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
hardwareOrdersApi
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=hardware-orders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/api/hardware-orders.ts"],"sourcesContent":["import { apiFetch } from './core';\nimport type {\n HardwareOrder,\n HardwareOrderState,\n HardwareSkuOption,\n ShipTo,\n} from './types';\n\n/**\n * Machines a business has asked for and does not have yet.\n *\n * Its own client and its own prefix, because it is a different job from running\n * the hardware you already own. It meets `business-devices` at exactly one\n * point: on delivery, an order becomes device rows with pairing codes waiting.\n */\nexport const hardwareOrdersApi = {\n /** Only what is priced in this business's currency. */\n catalogue: (tenantSlug: string) =>\n apiFetch<{ items: HardwareSkuOption[]; currency: string }>(\n '/hardware/catalogue',\n { tenantSlug },\n ),\n\n list: (tenantSlug: string) =>\n apiFetch<{ orders: HardwareOrder[] }>('/hardware/orders', { tenantSlug }),\n\n get: (tenantSlug: string, id: string) =>\n apiFetch<HardwareOrder>(`/hardware/orders/${id}`, { tenantSlug }),\n\n place: (\n tenantSlug: string,\n body: {\n sku: string;\n quantity: number;\n locationId?: string;\n shipTo: ShipTo;\n },\n ) =>\n apiFetch<HardwareOrder>('/hardware/orders', {\n tenantSlug,\n method: 'POST',\n body: JSON.stringify(body),\n }),\n\n /** Only while nothing has shipped. After that it is a return. */\n cancel: (tenantSlug: string, id: string, reason?: string) =>\n apiFetch<HardwareOrder>(`/hardware/orders/${id}/cancel`, {\n tenantSlug,\n method: 'POST',\n body: JSON.stringify({ reason }),\n }),\n\n /**\n * Move an order along.\n *\n * Merchant-facing for now, and deliberately a stopgap: nobody ships hardware\n * yet, and this is what lets the arc be walked end to end before anybody\n * does. It moves to a fulfilment desk the day there is one.\n */\n advance: (\n tenantSlug: string,\n id: string,\n body: {\n state: Extract<HardwareOrderState, 'confirmed' | 'shipped' | 'delivered'>;\n courier?: string;\n trackingReference?: string;\n expectedAt?: string;\n },\n ) =>\n apiFetch<HardwareOrder>(`/hardware/orders/${id}/advance`, {\n tenantSlug,\n method: 'POST',\n body: JSON.stringify(body),\n }),\n};\n"],"mappings":"AAAA,SAAS,gBAAgB;AAelB,MAAM,oBAAoB;AAAA;AAAA,EAE/B,WAAW,CAAC,eACV;AAAA,IACE;AAAA,IACA,EAAE,WAAW;AAAA,EACf;AAAA,EAEF,MAAM,CAAC,eACL,SAAsC,oBAAoB,EAAE,WAAW,CAAC;AAAA,EAE1E,KAAK,CAAC,YAAoB,OACxB,SAAwB,oBAAoB,EAAE,IAAI,EAAE,WAAW,CAAC;AAAA,EAElE,OAAO,CACL,YACA,SAOA,SAAwB,oBAAoB;AAAA,IAC1C;AAAA,IACA,QAAQ;AAAA,IACR,MAAM,KAAK,UAAU,IAAI;AAAA,EAC3B,CAAC;AAAA;AAAA,EAGH,QAAQ,CAAC,YAAoB,IAAY,WACvC,SAAwB,oBAAoB,EAAE,WAAW;AAAA,IACvD;AAAA,IACA,QAAQ;AAAA,IACR,MAAM,KAAK,UAAU,EAAE,OAAO,CAAC;AAAA,EACjC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASH,SAAS,CACP,YACA,IACA,SAOA,SAAwB,oBAAoB,EAAE,YAAY;AAAA,IACxD;AAAA,IACA,QAAQ;AAAA,IACR,MAAM,KAAK,UAAU,IAAI;AAAA,EAC3B,CAAC;AACL;","names":[]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports the whole API surface so `from '@withpotter/lib/api'` keeps working.
|
|
3
|
+
*
|
|
4
|
+
* Prefer a deep import — `from '@withpotter/lib/api/bookings'` — in new code. Going
|
|
5
|
+
* through this barrel pulls every domain module in development, which is the
|
|
6
|
+
* cost the split exists to remove.
|
|
7
|
+
*/
|
|
8
|
+
export { getApiUrl, getCsrfToken, ApiRequestError, SessionExpiredError, apiFetch, } from './core';
|
|
9
|
+
export * from './types';
|
|
10
|
+
export * from './accounts';
|
|
11
|
+
export * from './devices';
|
|
12
|
+
export * from './onboarding';
|
|
13
|
+
export * from './packages';
|
|
14
|
+
export * from './tenant';
|
|
15
|
+
export * from './tenant-slug';
|
|
16
|
+
export * from './template-settings';
|
|
17
|
+
export * from './organizations';
|
|
18
|
+
export * from './team';
|
|
19
|
+
export * from './content';
|
|
20
|
+
export * from './bookings';
|
|
21
|
+
export * from './resources';
|
|
22
|
+
export * from './resource-categories';
|
|
23
|
+
export * from './waitlist';
|
|
24
|
+
export * from './behaviors';
|
|
25
|
+
export * from './finance';
|
|
26
|
+
export * from './settlements';
|
|
27
|
+
export * from './pos';
|
|
28
|
+
export * from './disputes';
|
|
29
|
+
export * from './credits';
|
|
30
|
+
export * from './merchant-subscriptions';
|
|
31
|
+
export * from './analytics';
|
|
32
|
+
export * from './orders';
|
|
33
|
+
export * from './members';
|
|
34
|
+
export * from './reviews';
|
|
35
|
+
export * from './tabs';
|
|
36
|
+
export * from './invoices';
|
|
37
|
+
export * from './digital-files';
|
|
38
|
+
export * from './crm-segments';
|
|
39
|
+
export * from './crm-analytics';
|
|
40
|
+
export * from './communications';
|
|
41
|
+
export * from './conversations';
|
|
42
|
+
export * from './merchant-notifications';
|
|
43
|
+
export * from './assignee-prefs';
|
|
44
|
+
export * from './loyalty';
|
|
45
|
+
export * from './referrals';
|
|
46
|
+
export * from './capabilities';
|
|
47
|
+
export * from './discounts';
|
|
48
|
+
export * from './giftcards';
|
|
49
|
+
export * from './inventory';
|
|
50
|
+
export * from './shipping';
|
|
51
|
+
export * from './riders';
|
|
52
|
+
export * from './deliveries';
|
|
53
|
+
export * from './geo';
|
|
54
|
+
export * from './locations';
|
|
55
|
+
export * from './business-locations';
|
|
56
|
+
export * from './templates';
|
|
57
|
+
export * from './pages';
|
|
58
|
+
export * from './calendar-sync';
|
|
59
|
+
export * from './odoo';
|
|
60
|
+
export * from './booking-calendar';
|
|
61
|
+
export * from './campaigns';
|
|
62
|
+
export * from './automations';
|
|
63
|
+
export * from './abandoned-cart';
|
|
64
|
+
export * from './inquiries';
|
|
65
|
+
export * from './bio';
|
|
66
|
+
export * from './gallery';
|
|
67
|
+
export * from './commerce';
|
|
68
|
+
export * from './misc';
|
|
69
|
+
export * from './feedback';
|
|
70
|
+
export * from './social-sources';
|
|
71
|
+
export * from './share-links';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getApiUrl,
|
|
3
|
+
getCsrfToken,
|
|
4
|
+
ApiRequestError,
|
|
5
|
+
SessionExpiredError,
|
|
6
|
+
apiFetch
|
|
7
|
+
} from "./core";
|
|
8
|
+
export * from "./types";
|
|
9
|
+
export * from "./accounts";
|
|
10
|
+
export * from "./devices";
|
|
11
|
+
export * from "./onboarding";
|
|
12
|
+
export * from "./packages";
|
|
13
|
+
export * from "./tenant";
|
|
14
|
+
export * from "./tenant-slug";
|
|
15
|
+
export * from "./template-settings";
|
|
16
|
+
export * from "./organizations";
|
|
17
|
+
export * from "./team";
|
|
18
|
+
export * from "./content";
|
|
19
|
+
export * from "./bookings";
|
|
20
|
+
export * from "./resources";
|
|
21
|
+
export * from "./resource-categories";
|
|
22
|
+
export * from "./waitlist";
|
|
23
|
+
export * from "./behaviors";
|
|
24
|
+
export * from "./finance";
|
|
25
|
+
export * from "./settlements";
|
|
26
|
+
export * from "./pos";
|
|
27
|
+
export * from "./disputes";
|
|
28
|
+
export * from "./credits";
|
|
29
|
+
export * from "./merchant-subscriptions";
|
|
30
|
+
export * from "./analytics";
|
|
31
|
+
export * from "./orders";
|
|
32
|
+
export * from "./members";
|
|
33
|
+
export * from "./reviews";
|
|
34
|
+
export * from "./tabs";
|
|
35
|
+
export * from "./invoices";
|
|
36
|
+
export * from "./digital-files";
|
|
37
|
+
export * from "./crm-segments";
|
|
38
|
+
export * from "./crm-analytics";
|
|
39
|
+
export * from "./communications";
|
|
40
|
+
export * from "./conversations";
|
|
41
|
+
export * from "./merchant-notifications";
|
|
42
|
+
export * from "./assignee-prefs";
|
|
43
|
+
export * from "./loyalty";
|
|
44
|
+
export * from "./referrals";
|
|
45
|
+
export * from "./capabilities";
|
|
46
|
+
export * from "./discounts";
|
|
47
|
+
export * from "./giftcards";
|
|
48
|
+
export * from "./inventory";
|
|
49
|
+
export * from "./shipping";
|
|
50
|
+
export * from "./riders";
|
|
51
|
+
export * from "./deliveries";
|
|
52
|
+
export * from "./geo";
|
|
53
|
+
export * from "./locations";
|
|
54
|
+
export * from "./business-locations";
|
|
55
|
+
export * from "./templates";
|
|
56
|
+
export * from "./pages";
|
|
57
|
+
export * from "./calendar-sync";
|
|
58
|
+
export * from "./odoo";
|
|
59
|
+
export * from "./booking-calendar";
|
|
60
|
+
export * from "./campaigns";
|
|
61
|
+
export * from "./automations";
|
|
62
|
+
export * from "./abandoned-cart";
|
|
63
|
+
export * from "./inquiries";
|
|
64
|
+
export * from "./bio";
|
|
65
|
+
export * from "./gallery";
|
|
66
|
+
export * from "./commerce";
|
|
67
|
+
export * from "./misc";
|
|
68
|
+
export * from "./feedback";
|
|
69
|
+
export * from "./social-sources";
|
|
70
|
+
export * from "./share-links";
|
|
71
|
+
export {
|
|
72
|
+
ApiRequestError,
|
|
73
|
+
SessionExpiredError,
|
|
74
|
+
apiFetch,
|
|
75
|
+
getApiUrl,
|
|
76
|
+
getCsrfToken
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/api/index.ts"],"sourcesContent":["/**\n * Re-exports the whole API surface so `from '@withpotter/lib/api'` keeps working.\n *\n * Prefer a deep import — `from '@withpotter/lib/api/bookings'` — in new code. Going\n * through this barrel pulls every domain module in development, which is the\n * cost the split exists to remove.\n */\n// Only what the old api.ts exported. The rest of core (IS_BROWSER, getAccountId, getAuthToken, AUTH_ROUTES, BOUNCE_KEY, BOUNCE_WINDOW_MS, bouncedRecently, recordBounce)\n// is shared plumbing between these modules, not public API — it stays behind\n// the deep import so the surface does not quietly widen.\nexport {\n\tgetApiUrl,\n\tgetCsrfToken,\n\tApiRequestError,\n\tSessionExpiredError,\n\tapiFetch,\n} from './core';\nexport * from './types';\nexport * from './accounts';\nexport * from './devices';\nexport * from './onboarding';\nexport * from './packages';\nexport * from './tenant';\nexport * from './tenant-slug';\nexport * from './template-settings';\nexport * from './organizations';\nexport * from './team';\nexport * from './content';\nexport * from './bookings';\nexport * from './resources';\nexport * from './resource-categories';\nexport * from './waitlist';\nexport * from './behaviors';\nexport * from './finance';\nexport * from './settlements';\nexport * from './pos';\nexport * from './disputes';\nexport * from './credits';\nexport * from './merchant-subscriptions';\nexport * from './analytics';\nexport * from './orders';\nexport * from './members';\nexport * from './reviews';\nexport * from './tabs';\nexport * from './invoices';\nexport * from './digital-files';\nexport * from './crm-segments';\nexport * from './crm-analytics';\nexport * from './communications';\nexport * from './conversations';\nexport * from './merchant-notifications';\nexport * from './assignee-prefs';\nexport * from './loyalty';\nexport * from './referrals';\nexport * from './capabilities';\nexport * from './discounts';\nexport * from './giftcards';\nexport * from './inventory';\nexport * from './shipping';\nexport * from './riders';\nexport * from './deliveries';\nexport * from './geo';\nexport * from './locations';\nexport * from './business-locations';\nexport * from './templates';\nexport * from './pages';\nexport * from './calendar-sync';\nexport * from './odoo';\nexport * from './booking-calendar';\nexport * from './campaigns';\nexport * from './automations';\nexport * from './abandoned-cart';\nexport * from './inquiries';\nexport * from './bio';\nexport * from './gallery';\nexport * from './commerce';\nexport * from './misc';\nexport * from './feedback';\nexport * from './social-sources';\nexport * from './share-links';\n"],"mappings":"AAUA;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { Inquiry, InquiryListResponse, InquiryDashboardCounts, InquiriesQuery, InquirySource, InquiryType, InquiryStats, UpdateInquiryInput } from './types';
|
|
2
|
+
export declare const inquiriesApi: {
|
|
3
|
+
list: (tenantSlug: string, query?: InquiriesQuery) => Promise<InquiryListResponse>;
|
|
4
|
+
/** Counts for the inbox header (new, unassigned, overdue follow-ups). */
|
|
5
|
+
dashboard: (tenantSlug: string) => Promise<InquiryDashboardCounts>;
|
|
6
|
+
/** `sendToCustomer` defaults true on the API — the reply is emailed out. */
|
|
7
|
+
/**
|
|
8
|
+
* One enquiry.
|
|
9
|
+
*
|
|
10
|
+
* Read by the invoice editor when a quote is being turned into a bill: it
|
|
11
|
+
* arrives on a fresh route with only an id in the query string, so the list
|
|
12
|
+
* the Inbox already holds is not available to it.
|
|
13
|
+
*/
|
|
14
|
+
get: (tenantSlug: string, id: string) => Promise<Inquiry>;
|
|
15
|
+
update: (tenantSlug: string, id: string, data: UpdateInquiryInput) => Promise<Inquiry>;
|
|
16
|
+
reply: (tenantSlug: string, id: string, message: string) => Promise<Inquiry>;
|
|
17
|
+
respond: (tenantSlug: string, id: string, body: {
|
|
18
|
+
response: string;
|
|
19
|
+
sendToCustomer?: boolean;
|
|
20
|
+
closeInquiry?: boolean;
|
|
21
|
+
}) => Promise<Inquiry>;
|
|
22
|
+
assign: (tenantSlug: string, id: string, assignedTo: string) => Promise<Inquiry>;
|
|
23
|
+
setFollowUp: (tenantSlug: string, id: string, followUpDate: string) => Promise<Inquiry>;
|
|
24
|
+
completeFollowUp: (tenantSlug: string, id: string, notes?: string) => Promise<Inquiry>;
|
|
25
|
+
/**
|
|
26
|
+
* Put a number on the lead.
|
|
27
|
+
*
|
|
28
|
+
* `POST /inquiries/:id/quote` has existed since the module was written,
|
|
29
|
+
* alongside `quotedAmount`, `quoteExpiresAt` and `quoteAccepted` — and the
|
|
30
|
+
* word "quote" did not appear in this file, so the archetype whose own
|
|
31
|
+
* description reads "viewings, quotes, admissions, consultations" could not
|
|
32
|
+
* send one.
|
|
33
|
+
*
|
|
34
|
+
* `expiresInDays` rather than a date: a quote is valid *for* a period, which
|
|
35
|
+
* is how a merchant says it and what the API takes.
|
|
36
|
+
*/
|
|
37
|
+
quote: (tenantSlug: string, id: string, body: {
|
|
38
|
+
amount: number;
|
|
39
|
+
expiresInDays?: number;
|
|
40
|
+
}) => Promise<Inquiry>;
|
|
41
|
+
/**
|
|
42
|
+
* How the pipeline is doing.
|
|
43
|
+
*
|
|
44
|
+
* Response time and source are the two numbers a lead business is run on:
|
|
45
|
+
* how fast did we answer, and which door do the good ones come through. The
|
|
46
|
+
* API has computed both all along and nothing could ask for them.
|
|
47
|
+
*/
|
|
48
|
+
stats: (tenantSlug: string, query?: {
|
|
49
|
+
dateFrom?: string;
|
|
50
|
+
dateTo?: string;
|
|
51
|
+
}) => Promise<InquiryStats>;
|
|
52
|
+
/**
|
|
53
|
+
* Write down a lead that did not arrive through the form.
|
|
54
|
+
*
|
|
55
|
+
* `POST /inquiries` is the storefront's endpoint and is deliberately
|
|
56
|
+
* unguarded, so the dashboard can post to it too. That matters more than it
|
|
57
|
+
* sounds: `InquirySource` carries `whatsapp`, `referral`, `walk_in` and
|
|
58
|
+
* `phone`, the storefront hardcodes `website`, and nothing else could set it
|
|
59
|
+
* — so every lead in the system claimed to have come from the website and
|
|
60
|
+
* the ones that actually built the business were not in the system at all.
|
|
61
|
+
*/
|
|
62
|
+
create: (tenantSlug: string, body: {
|
|
63
|
+
email: string;
|
|
64
|
+
name?: string;
|
|
65
|
+
phone?: string;
|
|
66
|
+
company?: string;
|
|
67
|
+
subject: string;
|
|
68
|
+
message: string;
|
|
69
|
+
source?: InquirySource;
|
|
70
|
+
type?: InquiryType;
|
|
71
|
+
metadata?: Record<string, unknown>;
|
|
72
|
+
}) => Promise<Inquiry>;
|
|
73
|
+
/**
|
|
74
|
+
* Mark a lead won, and record what it became.
|
|
75
|
+
*
|
|
76
|
+
* Not `update({ status: 'converted' })`, which is what this used to be. That
|
|
77
|
+
* wrote a string and nothing else: `convertedAt` stayed null and
|
|
78
|
+
* `metadata.conversion` had no writer anywhere, so the `conversionRate` in
|
|
79
|
+
* stats counted ticked boxes and the money a won lead turned into could not
|
|
80
|
+
* be traced back to it.
|
|
81
|
+
*
|
|
82
|
+
* Every field is optional. The API defaults `value` to what the enquiry was
|
|
83
|
+
* quoted at and points `referenceId` at the enquirer's own contact record,
|
|
84
|
+
* so the plain "we won this" still writes something traceable.
|
|
85
|
+
*/
|
|
86
|
+
convert: (tenantSlug: string, id: string, body?: {
|
|
87
|
+
convertedTo?: "booking" | "order" | "member" | "invoice";
|
|
88
|
+
referenceId?: string;
|
|
89
|
+
value?: number;
|
|
90
|
+
}) => Promise<Inquiry>;
|
|
91
|
+
markSpam: (tenantSlug: string, id: string) => Promise<Inquiry>;
|
|
92
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { apiFetch } from "./core";
|
|
2
|
+
const inquiriesApi = {
|
|
3
|
+
list: (tenantSlug, query = {}) => {
|
|
4
|
+
const params = new URLSearchParams();
|
|
5
|
+
for (const [key, value] of Object.entries(query)) {
|
|
6
|
+
if (value !== void 0 && value !== "") params.set(key, String(value));
|
|
7
|
+
}
|
|
8
|
+
const qs = params.toString();
|
|
9
|
+
return apiFetch(`/inquiries${qs ? `?${qs}` : ""}`, {
|
|
10
|
+
tenantSlug
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
/** Counts for the inbox header (new, unassigned, overdue follow-ups). */
|
|
14
|
+
dashboard: (tenantSlug) => apiFetch("/inquiries/dashboard", { tenantSlug }),
|
|
15
|
+
/** `sendToCustomer` defaults true on the API — the reply is emailed out. */
|
|
16
|
+
/**
|
|
17
|
+
* One enquiry.
|
|
18
|
+
*
|
|
19
|
+
* Read by the invoice editor when a quote is being turned into a bill: it
|
|
20
|
+
* arrives on a fresh route with only an id in the query string, so the list
|
|
21
|
+
* the Inbox already holds is not available to it.
|
|
22
|
+
*/
|
|
23
|
+
get: (tenantSlug, id) => apiFetch(`/inquiries/${id}`, { tenantSlug }),
|
|
24
|
+
update: (tenantSlug, id, data) => apiFetch(`/inquiries/${id}`, {
|
|
25
|
+
method: "PUT",
|
|
26
|
+
body: JSON.stringify(data),
|
|
27
|
+
tenantSlug
|
|
28
|
+
}),
|
|
29
|
+
reply: (tenantSlug, id, message) => apiFetch(`/inquiries/${id}/reply`, {
|
|
30
|
+
method: "POST",
|
|
31
|
+
body: JSON.stringify({ message }),
|
|
32
|
+
tenantSlug
|
|
33
|
+
}),
|
|
34
|
+
respond: (tenantSlug, id, body) => apiFetch(`/inquiries/${id}/respond`, {
|
|
35
|
+
method: "POST",
|
|
36
|
+
tenantSlug,
|
|
37
|
+
body: JSON.stringify(body)
|
|
38
|
+
}),
|
|
39
|
+
assign: (tenantSlug, id, assignedTo) => apiFetch(`/inquiries/${id}/assign`, {
|
|
40
|
+
method: "PATCH",
|
|
41
|
+
tenantSlug,
|
|
42
|
+
body: JSON.stringify({ assignedTo })
|
|
43
|
+
}),
|
|
44
|
+
setFollowUp: (tenantSlug, id, followUpDate) => apiFetch(`/inquiries/${id}/follow-up`, {
|
|
45
|
+
method: "PATCH",
|
|
46
|
+
tenantSlug,
|
|
47
|
+
body: JSON.stringify({ followUpDate })
|
|
48
|
+
}),
|
|
49
|
+
completeFollowUp: (tenantSlug, id, notes) => apiFetch(`/inquiries/${id}/follow-up/complete`, {
|
|
50
|
+
method: "POST",
|
|
51
|
+
tenantSlug,
|
|
52
|
+
body: JSON.stringify({ notes })
|
|
53
|
+
}),
|
|
54
|
+
/**
|
|
55
|
+
* Put a number on the lead.
|
|
56
|
+
*
|
|
57
|
+
* `POST /inquiries/:id/quote` has existed since the module was written,
|
|
58
|
+
* alongside `quotedAmount`, `quoteExpiresAt` and `quoteAccepted` — and the
|
|
59
|
+
* word "quote" did not appear in this file, so the archetype whose own
|
|
60
|
+
* description reads "viewings, quotes, admissions, consultations" could not
|
|
61
|
+
* send one.
|
|
62
|
+
*
|
|
63
|
+
* `expiresInDays` rather than a date: a quote is valid *for* a period, which
|
|
64
|
+
* is how a merchant says it and what the API takes.
|
|
65
|
+
*/
|
|
66
|
+
quote: (tenantSlug, id, body) => apiFetch(`/inquiries/${id}/quote`, {
|
|
67
|
+
method: "POST",
|
|
68
|
+
tenantSlug,
|
|
69
|
+
body: JSON.stringify(body)
|
|
70
|
+
}),
|
|
71
|
+
/**
|
|
72
|
+
* How the pipeline is doing.
|
|
73
|
+
*
|
|
74
|
+
* Response time and source are the two numbers a lead business is run on:
|
|
75
|
+
* how fast did we answer, and which door do the good ones come through. The
|
|
76
|
+
* API has computed both all along and nothing could ask for them.
|
|
77
|
+
*/
|
|
78
|
+
stats: (tenantSlug, query = {}) => {
|
|
79
|
+
const params = new URLSearchParams();
|
|
80
|
+
for (const [key, value] of Object.entries(query)) {
|
|
81
|
+
if (value) params.set(key, value);
|
|
82
|
+
}
|
|
83
|
+
const qs = params.toString();
|
|
84
|
+
return apiFetch(`/inquiries/stats${qs ? `?${qs}` : ""}`, {
|
|
85
|
+
tenantSlug
|
|
86
|
+
});
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* Write down a lead that did not arrive through the form.
|
|
90
|
+
*
|
|
91
|
+
* `POST /inquiries` is the storefront's endpoint and is deliberately
|
|
92
|
+
* unguarded, so the dashboard can post to it too. That matters more than it
|
|
93
|
+
* sounds: `InquirySource` carries `whatsapp`, `referral`, `walk_in` and
|
|
94
|
+
* `phone`, the storefront hardcodes `website`, and nothing else could set it
|
|
95
|
+
* — so every lead in the system claimed to have come from the website and
|
|
96
|
+
* the ones that actually built the business were not in the system at all.
|
|
97
|
+
*/
|
|
98
|
+
create: (tenantSlug, body) => apiFetch("/inquiries", {
|
|
99
|
+
method: "POST",
|
|
100
|
+
tenantSlug,
|
|
101
|
+
body: JSON.stringify(body)
|
|
102
|
+
}),
|
|
103
|
+
/**
|
|
104
|
+
* Mark a lead won, and record what it became.
|
|
105
|
+
*
|
|
106
|
+
* Not `update({ status: 'converted' })`, which is what this used to be. That
|
|
107
|
+
* wrote a string and nothing else: `convertedAt` stayed null and
|
|
108
|
+
* `metadata.conversion` had no writer anywhere, so the `conversionRate` in
|
|
109
|
+
* stats counted ticked boxes and the money a won lead turned into could not
|
|
110
|
+
* be traced back to it.
|
|
111
|
+
*
|
|
112
|
+
* Every field is optional. The API defaults `value` to what the enquiry was
|
|
113
|
+
* quoted at and points `referenceId` at the enquirer's own contact record,
|
|
114
|
+
* so the plain "we won this" still writes something traceable.
|
|
115
|
+
*/
|
|
116
|
+
convert: (tenantSlug, id, body = {}) => apiFetch(`/inquiries/${id}/convert`, {
|
|
117
|
+
method: "POST",
|
|
118
|
+
tenantSlug,
|
|
119
|
+
body: JSON.stringify(body)
|
|
120
|
+
}),
|
|
121
|
+
markSpam: (tenantSlug, id) => apiFetch(`/inquiries/${id}/spam`, {
|
|
122
|
+
method: "PATCH",
|
|
123
|
+
tenantSlug
|
|
124
|
+
})
|
|
125
|
+
};
|
|
126
|
+
export {
|
|
127
|
+
inquiriesApi
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=inquiries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/api/inquiries.ts"],"sourcesContent":["import { apiFetch } from './core';\nimport type {\n Inquiry,\n InquiryListResponse,\n InquiryDashboardCounts,\n InquiriesQuery,\n InquirySource,\n InquiryType,\n InquiryStats,\n UpdateInquiryInput,\n} from './types';\n\nexport const inquiriesApi = {\n list: (tenantSlug: string, query: InquiriesQuery = {}) => {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(query)) {\n if (value !== undefined && value !== '') params.set(key, String(value));\n }\n const qs = params.toString();\n return apiFetch<InquiryListResponse>(`/inquiries${qs ? `?${qs}` : ''}`, {\n tenantSlug,\n });\n },\n\n /** Counts for the inbox header (new, unassigned, overdue follow-ups). */\n dashboard: (tenantSlug: string) =>\n apiFetch<InquiryDashboardCounts>('/inquiries/dashboard', { tenantSlug }),\n\n /** `sendToCustomer` defaults true on the API — the reply is emailed out. */\n /**\n * One enquiry.\n *\n * Read by the invoice editor when a quote is being turned into a bill: it\n * arrives on a fresh route with only an id in the query string, so the list\n * the Inbox already holds is not available to it.\n */\n get: (tenantSlug: string, id: string) =>\n apiFetch<Inquiry>(`/inquiries/${id}`, { tenantSlug }),\n\n update: (tenantSlug: string, id: string, data: UpdateInquiryInput) =>\n apiFetch<Inquiry>(`/inquiries/${id}`, {\n method: 'PUT',\n body: JSON.stringify(data),\n tenantSlug,\n }),\n\n reply: (tenantSlug: string, id: string, message: string) =>\n apiFetch<Inquiry>(`/inquiries/${id}/reply`, {\n method: 'POST',\n body: JSON.stringify({ message }),\n tenantSlug,\n }),\n\n respond: (\n tenantSlug: string,\n id: string,\n body: {\n response: string;\n sendToCustomer?: boolean;\n closeInquiry?: boolean;\n },\n ) =>\n apiFetch<Inquiry>(`/inquiries/${id}/respond`, {\n method: 'POST',\n tenantSlug,\n body: JSON.stringify(body),\n }),\n\n assign: (tenantSlug: string, id: string, assignedTo: string) =>\n apiFetch<Inquiry>(`/inquiries/${id}/assign`, {\n method: 'PATCH',\n tenantSlug,\n body: JSON.stringify({ assignedTo }),\n }),\n\n setFollowUp: (tenantSlug: string, id: string, followUpDate: string) =>\n apiFetch<Inquiry>(`/inquiries/${id}/follow-up`, {\n method: 'PATCH',\n tenantSlug,\n body: JSON.stringify({ followUpDate }),\n }),\n\n completeFollowUp: (tenantSlug: string, id: string, notes?: string) =>\n apiFetch<Inquiry>(`/inquiries/${id}/follow-up/complete`, {\n method: 'POST',\n tenantSlug,\n body: JSON.stringify({ notes }),\n }),\n\n /**\n * Put a number on the lead.\n *\n * `POST /inquiries/:id/quote` has existed since the module was written,\n * alongside `quotedAmount`, `quoteExpiresAt` and `quoteAccepted` — and the\n * word \"quote\" did not appear in this file, so the archetype whose own\n * description reads \"viewings, quotes, admissions, consultations\" could not\n * send one.\n *\n * `expiresInDays` rather than a date: a quote is valid *for* a period, which\n * is how a merchant says it and what the API takes.\n */\n quote: (\n tenantSlug: string,\n id: string,\n body: { amount: number; expiresInDays?: number },\n ) =>\n apiFetch<Inquiry>(`/inquiries/${id}/quote`, {\n method: 'POST',\n tenantSlug,\n body: JSON.stringify(body),\n }),\n\n /**\n * How the pipeline is doing.\n *\n * Response time and source are the two numbers a lead business is run on:\n * how fast did we answer, and which door do the good ones come through. The\n * API has computed both all along and nothing could ask for them.\n */\n stats: (\n tenantSlug: string,\n query: { dateFrom?: string; dateTo?: string } = {},\n ) => {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(query)) {\n if (value) params.set(key, value);\n }\n const qs = params.toString();\n return apiFetch<InquiryStats>(`/inquiries/stats${qs ? `?${qs}` : ''}`, {\n tenantSlug,\n });\n },\n\n /**\n * Write down a lead that did not arrive through the form.\n *\n * `POST /inquiries` is the storefront's endpoint and is deliberately\n * unguarded, so the dashboard can post to it too. That matters more than it\n * sounds: `InquirySource` carries `whatsapp`, `referral`, `walk_in` and\n * `phone`, the storefront hardcodes `website`, and nothing else could set it\n * — so every lead in the system claimed to have come from the website and\n * the ones that actually built the business were not in the system at all.\n */\n create: (\n tenantSlug: string,\n body: {\n email: string;\n name?: string;\n phone?: string;\n company?: string;\n subject: string;\n message: string;\n source?: InquirySource;\n type?: InquiryType;\n metadata?: Record<string, unknown>;\n },\n ) =>\n apiFetch<Inquiry>('/inquiries', {\n method: 'POST',\n tenantSlug,\n body: JSON.stringify(body),\n }),\n\n /**\n * Mark a lead won, and record what it became.\n *\n * Not `update({ status: 'converted' })`, which is what this used to be. That\n * wrote a string and nothing else: `convertedAt` stayed null and\n * `metadata.conversion` had no writer anywhere, so the `conversionRate` in\n * stats counted ticked boxes and the money a won lead turned into could not\n * be traced back to it.\n *\n * Every field is optional. The API defaults `value` to what the enquiry was\n * quoted at and points `referenceId` at the enquirer's own contact record,\n * so the plain \"we won this\" still writes something traceable.\n */\n convert: (\n tenantSlug: string,\n id: string,\n body: {\n convertedTo?: 'booking' | 'order' | 'member' | 'invoice';\n referenceId?: string;\n value?: number;\n } = {},\n ) =>\n apiFetch<Inquiry>(`/inquiries/${id}/convert`, {\n method: 'POST',\n tenantSlug,\n body: JSON.stringify(body),\n }),\n\n markSpam: (tenantSlug: string, id: string) =>\n apiFetch<Inquiry>(`/inquiries/${id}/spam`, {\n method: 'PATCH',\n tenantSlug,\n }),\n};\n\n// ─── Gallery ────────────────────────────────────────────────────────────────\n// Storefront photo galleries. Templates already render them (glow-beauty-01,\n// joyce-portfolio-01) but had no way for a merchant to put their own images in,\n// so they fell back to `demo-data.ts`. The `before/after` pair exists because\n// the API was built with salons and clinics in mind.\n"],"mappings":"AAAA,SAAS,gBAAgB;AAYlB,MAAM,eAAe;AAAA,EAC1B,MAAM,CAAC,YAAoB,QAAwB,CAAC,MAAM;AACxD,UAAM,SAAS,IAAI,gBAAgB;AACnC,eAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAK,GAAG;AAChD,UAAI,UAAU,UAAa,UAAU,GAAI,QAAO,IAAI,KAAK,OAAO,KAAK,CAAC;AAAA,IACxE;AACA,UAAM,KAAK,OAAO,SAAS;AAC3B,WAAO,SAA8B,aAAa,KAAK,IAAI,EAAE,KAAK,EAAE,IAAI;AAAA,MACtE;AAAA,IACF,CAAC;AAAA,EACH;AAAA;AAAA,EAGA,WAAW,CAAC,eACV,SAAiC,wBAAwB,EAAE,WAAW,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUzE,KAAK,CAAC,YAAoB,OACxB,SAAkB,cAAc,EAAE,IAAI,EAAE,WAAW,CAAC;AAAA,EAEtD,QAAQ,CAAC,YAAoB,IAAY,SACvC,SAAkB,cAAc,EAAE,IAAI;AAAA,IACpC,QAAQ;AAAA,IACR,MAAM,KAAK,UAAU,IAAI;AAAA,IACzB;AAAA,EACF,CAAC;AAAA,EAEH,OAAO,CAAC,YAAoB,IAAY,YACtC,SAAkB,cAAc,EAAE,UAAU;AAAA,IAC1C,QAAQ;AAAA,IACR,MAAM,KAAK,UAAU,EAAE,QAAQ,CAAC;AAAA,IAChC;AAAA,EACF,CAAC;AAAA,EAEH,SAAS,CACP,YACA,IACA,SAMA,SAAkB,cAAc,EAAE,YAAY;AAAA,IAC5C,QAAQ;AAAA,IACR;AAAA,IACA,MAAM,KAAK,UAAU,IAAI;AAAA,EAC3B,CAAC;AAAA,EAEH,QAAQ,CAAC,YAAoB,IAAY,eACvC,SAAkB,cAAc,EAAE,WAAW;AAAA,IAC3C,QAAQ;AAAA,IACR;AAAA,IACA,MAAM,KAAK,UAAU,EAAE,WAAW,CAAC;AAAA,EACrC,CAAC;AAAA,EAEH,aAAa,CAAC,YAAoB,IAAY,iBAC5C,SAAkB,cAAc,EAAE,cAAc;AAAA,IAC9C,QAAQ;AAAA,IACR;AAAA,IACA,MAAM,KAAK,UAAU,EAAE,aAAa,CAAC;AAAA,EACvC,CAAC;AAAA,EAEH,kBAAkB,CAAC,YAAoB,IAAY,UACjD,SAAkB,cAAc,EAAE,uBAAuB;AAAA,IACvD,QAAQ;AAAA,IACR;AAAA,IACA,MAAM,KAAK,UAAU,EAAE,MAAM,CAAC;AAAA,EAChC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcH,OAAO,CACL,YACA,IACA,SAEA,SAAkB,cAAc,EAAE,UAAU;AAAA,IAC1C,QAAQ;AAAA,IACR;AAAA,IACA,MAAM,KAAK,UAAU,IAAI;AAAA,EAC3B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASH,OAAO,CACL,YACA,QAAgD,CAAC,MAC9C;AACH,UAAM,SAAS,IAAI,gBAAgB;AACnC,eAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAK,GAAG;AAChD,UAAI,MAAO,QAAO,IAAI,KAAK,KAAK;AAAA,IAClC;AACA,UAAM,KAAK,OAAO,SAAS;AAC3B,WAAO,SAAuB,mBAAmB,KAAK,IAAI,EAAE,KAAK,EAAE,IAAI;AAAA,MACrE;AAAA,IACF,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,QAAQ,CACN,YACA,SAYA,SAAkB,cAAc;AAAA,IAC9B,QAAQ;AAAA,IACR;AAAA,IACA,MAAM,KAAK,UAAU,IAAI;AAAA,EAC3B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeH,SAAS,CACP,YACA,IACA,OAII,CAAC,MAEL,SAAkB,cAAc,EAAE,YAAY;AAAA,IAC5C,QAAQ;AAAA,IACR;AAAA,IACA,MAAM,KAAK,UAAU,IAAI;AAAA,EAC3B,CAAC;AAAA,EAEH,UAAU,CAAC,YAAoB,OAC7B,SAAkB,cAAc,EAAE,SAAS;AAAA,IACzC,QAAQ;AAAA,IACR;AAAA,EACF,CAAC;AACL;","names":[]}
|