autopilot-core-sandbox 0.0.1
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/README.md +53 -0
- package/dist/Provider.d.ts +21 -0
- package/dist/Provider.d.ts.map +1 -0
- package/dist/Provider.js +61 -0
- package/dist/Provider.js.map +1 -0
- package/dist/dist/Provider.d.ts +21 -0
- package/dist/dist/Provider.d.ts.map +1 -0
- package/dist/dist/Provider.js +61 -0
- package/dist/dist/Provider.js.map +1 -0
- package/dist/dist/index.d.ts +45 -0
- package/dist/dist/index.d.ts.map +1 -0
- package/dist/dist/index.js +61 -0
- package/dist/dist/index.js.map +1 -0
- package/dist/dist/interfaces/index.d.ts +1238 -0
- package/dist/dist/interfaces/index.d.ts.map +1 -0
- package/dist/dist/interfaces/index.js +3 -0
- package/dist/dist/interfaces/index.js.map +1 -0
- package/dist/dist/migrations/20260608222757_remote_schema.sql +5666 -0
- package/dist/dist/migrations/20260611174826_add_job_item_recurring_id_to_job_item.sql +7 -0
- package/dist/dist/migrations/20260625224612_add_dashboard_guided_tour_dismissed_to_settings_user.sql +5 -0
- package/dist/dist/migrations/20260627031433_support_chat_tables.sql +115 -0
- package/dist/dist/migrations/20260627031434_support_chat_rls.sql +37 -0
- package/dist/dist/migrations/20260704170209_add_estimate_scheduling.sql +121 -0
- package/dist/dist/migrations/20260704170210_add_estimate_scheduling_rls.sql +42 -0
- package/dist/dist/migrations/20260704235034_add_estimate_reminder_settings.sql +11 -0
- package/dist/dist/migrations/20260707003825_blocked_number_table.sql +32 -0
- package/dist/dist/migrations/20260707003826_blocked_number_rls.sql +22 -0
- package/dist/dist/migrations/20260709191055_sms_opt_out_table.sql +38 -0
- package/dist/dist/migrations/20260709191056_sms_opt_out_rls.sql +21 -0
- package/dist/dist/migrations/20260709214507_job_time_entry_table.sql +70 -0
- package/dist/dist/migrations/20260709214508_job_time_entry_rls.sql +21 -0
- package/dist/dist/migrations/20260711185956_phone_call_table.sql +99 -0
- package/dist/dist/migrations/20260711185957_phone_call_rls.sql +25 -0
- package/dist/dist/migrations/20260712014705_ai_voice_assistant_settings.sql +71 -0
- package/dist/dist/migrations/20260712014706_ai_voice_assistant_settings_rls.sql +14 -0
- package/dist/dist/migrations/20260712014707_ai_prompt_templates.sql +28 -0
- package/dist/dist/migrations/20260712014708_ai_prompt_templates_rls.sql +5 -0
- package/dist/dist/migrations/20260712014709_ai_prompt_templates_seed.sql +77 -0
- package/dist/dist/migrations/20260715011550_reminder_dispatch_table.sql +47 -0
- package/dist/dist/migrations/20260715011551_reminder_dispatch_rls.sql +22 -0
- package/dist/dist/migrations/20260715192923_dedup_sequence_contact_add_unique_constraint.sql +27 -0
- package/dist/dist/migrations/20260716194420_add_employee_location_tracking.sql +146 -0
- package/dist/dist/migrations/20260716194421_add_employee_location_tracking_rls.sql +154 -0
- package/dist/dist/migrations/20260716194422_get_client_map_last_completed_jobs.sql +28 -0
- package/dist/dist/migrations/20260717144535_add_blast_email_invalid_skipped_count.sql +2 -0
- package/dist/dist/migrations/20260717162900_create_blast_email_chunk.sql +36 -0
- package/dist/dist/migrations/20260717162901_add_blast_email_chunk_rls.sql +5 -0
- package/dist/dist/migrations/20260717162902_add_blast_email_chunk_progress_columns.sql +3 -0
- package/dist/dist/migrations/20260717162903_add_blast_email_bounce_tracking_columns.sql +4 -0
- package/dist/dist/migrations/20260717162904_create_email_hard_bounced.sql +23 -0
- package/dist/dist/migrations/20260717162905_add_email_hard_bounced_rls.sql +5 -0
- package/dist/dist/migrations/20260717164837_add_sequence_contact_sent_at.sql +19 -0
- package/dist/dist/migrations/20260717170920_add_sequence_contact_claim_index.sql +12 -0
- package/dist/dist/migrations/20260719215139_create_outbound_event.sql +59 -0
- package/dist/dist/migrations/20260719215140_create_outbound_event_rls.sql +16 -0
- package/dist/dist/migrations/20260719215141_create_webhook_delivery.sql +99 -0
- package/dist/dist/migrations/20260719215142_create_webhook_delivery_rls.sql +11 -0
- package/dist/dist/migrations/20260719215143_outbound_event_triggers.sql +219 -0
- package/dist/dist/migrations/20260719215144_create_api_key.sql +34 -0
- package/dist/dist/migrations/20260719215146_create_api_key_rls.sql +12 -0
- package/dist/dist/migrations/20260719215147_webhook_subscription_add_secret_active.sql +28 -0
- package/dist/dist/migrations/20260719215148_api_aggregate_create_functions.sql +479 -0
- package/dist/dist/migrations/20260721174837_webhook_subscription_generic_endpoints.sql +41 -0
- package/dist/dist/migrations/20260721185631_webhook_outbox_retention.sql +87 -0
- package/dist/dist/migrations/20260721190304_create_qb_sync_task.sql +120 -0
- package/dist/dist/migrations/20260721190306_qb_sync_task_rls.sql +8 -0
- package/dist/dist/migrations/20260721190307_qb_mapping_orphan_fks.sql +29 -0
- package/dist/dist/migrations/20260721190308_qb_task_retention.sql +90 -0
- package/dist/dist/migrations/20260721234401_create_permission_role.sql +83 -0
- package/dist/dist/migrations/20260721234402_permission_role_rls.sql +22 -0
- package/dist/dist/migrations/20260721234403_user_role_add_permission_role_id.sql +12 -0
- package/dist/dist/migrations/20260721234404_seed_permission_roles.sql +100 -0
- package/dist/dist/migrations/20260721234405_backfill_user_role_permission_role_id.sql +20 -0
- package/dist/dist/migrations/20260722193800_permission_role_add_manage_employees.sql +56 -0
- package/dist/dist/migrations/20260723025606_staging_new_employee_company_read_rls.sql +10 -0
- package/dist/dist/migrations/20260723134328_create_google_lsa_integration.sql +1016 -0
- package/dist/dist/migrations/20260723134329_google_lsa_integration_rls.sql +205 -0
- package/dist/dist/migrations/20260723150640_google_lsa_hardening.sql +169 -0
- package/dist/dist/migrations/20260723150641_google_lsa_hardening_rls.sql +12 -0
- package/dist/dist/migrations/20260724230721_google_lsa_facebook_exclusivity_attach.sql +104 -0
- package/dist/dist/migrations/20260724230722_google_lsa_facebook_exclusivity_attach_rls.sql +20 -0
- package/dist/dist/migrations/20260725172630_add_message_pagination_and_search.sql +265 -0
- package/dist/dist/migrations/20260725172631_add_message_pagination_and_search_rls.sql +72 -0
- package/dist/dist/migrations/20260725172632_optimize_message_thread_pagination_search.sql +245 -0
- package/dist/dist/migrations/20260725172633_harden_message_search_and_photo_pagination.sql +256 -0
- package/dist/dist/migrations/20260725172634_fix_message_thread_line_filter.sql +250 -0
- package/dist/dist/migrations/20260725174948_google_lsa_attach_bing_exclusivity_guard.sql +23 -0
- package/dist/dist/migrations/20260725200430_client_portal_settings.sql +41 -0
- package/dist/dist/migrations/20260725200431_client_portal_settings_rls.sql +21 -0
- package/dist/dist/migrations/20260725200433_client_portal_auth_tables.sql +81 -0
- package/dist/dist/migrations/20260725200434_client_portal_auth_rls.sql +18 -0
- package/dist/dist/migrations/20260725200435_portal_claim_login_attempt.sql +36 -0
- package/dist/dist/migrations/20260725200436_portal_appointment_request.sql +39 -0
- package/dist/dist/migrations/20260725200437_portal_appointment_request_rls.sql +10 -0
- package/dist/dist/migrations/20260725210000_google_reserve_integration.sql +85 -0
- package/dist/dist/migrations/20260725210001_google_reserve_integration_rls.sql +10 -0
- package/dist/dist/migrations/20260725220000_add_analytics_query_indexes.sql +47 -0
- package/dist/dist/migrations/20260725230000_onboarding_preload_data.sql +1074 -0
- package/dist/dist/migrations/20260725230001_onboarding_preload_data_rls.sql +40 -0
- package/dist/dist/migrations/20260725230002_add_pricebook_query_indexes.sql +13 -0
- package/dist/dist/migrations/20260726000000_facebook_ads_integration.sql +1538 -0
- package/dist/dist/migrations/20260726000001_facebook_ads_integration_rls.sql +356 -0
- package/dist/dist/migrations/20260726000002_facebook_ads_attach_lsa_exclusivity_guard.sql +25 -0
- package/dist/dist/migrations/20260726000003_facebook_ads_attach_bing_exclusivity_guard.sql +22 -0
- package/dist/dist/migrations/20260726010000_create_bing_ads_integration.sql +1112 -0
- package/dist/dist/migrations/20260726010001_bing_ads_integration_rls.sql +227 -0
- package/dist/dist/migrations/20260726220000_add_document_theme_settings.sql +11 -0
- package/dist/dist/migrations/20260726220001_update_document_theme_comments.sql +7 -0
- package/dist/dist/migrations/20260727210319_evolve_tier_for_pricing.sql +68 -0
- package/dist/dist/migrations/20260727210320_create_billing_addon.sql +85 -0
- package/dist/dist/migrations/20260727210321_create_billing_addon_rls.sql +21 -0
- package/dist/dist/migrations/20260728213930_create_usage_metering.sql +189 -0
- package/dist/dist/migrations/20260728213931_create_usage_metering_rls.sql +32 -0
- package/dist/dist/migrations/20260729004305_marketing_charge_txn_functions.sql +242 -0
- package/dist/dist/migrations/20260729004306_marketing_charge_txn_functions_rls.sql +37 -0
- package/dist/dist/migrations/20260729005524_update_deduct_from_balance_errcode.sql +42 -0
- package/dist/dist/migrations/20260730193601_fix_deduct_from_balance_lost_update.sql +46 -0
- package/dist/dist/migrations/20260730193602_add_blast_sms_chunk_reaper_columns.sql +27 -0
- package/dist/dist/migrations/20260731011415_create_google_calendar_connection.sql +84 -0
- package/dist/dist/migrations/20260731011416_google_calendar_connection_rls.sql +23 -0
- package/dist/dist/migrations/20260731011417_create_google_calendar_sync.sql +157 -0
- package/dist/dist/migrations/20260731011418_google_calendar_sync_rls.sql +26 -0
- package/dist/dist/migrations/20260731011419_event_outbound_triggers.sql +28 -0
- package/dist/dist/migrations/20260731011420_add_google_calendar_addon_key.sql +24 -0
- package/dist/dist/migrations/20260731011421_gcal_task_retention.sql +109 -0
- package/dist/dist/migrations/20260731234245_create_estimate_proposal.sql +157 -0
- package/dist/dist/migrations/20260731234247_estimate_proposal_rls.sql +46 -0
- package/dist/dist/migrations/20260731234248_add_proposal_estimate_settings.sql +17 -0
- package/dist/dist/migrations/20260731234249_add_estimate_proposals_addon_key.sql +25 -0
- package/dist/dist/migrations/20260731234250_approve_estimate_proposal_function.sql +133 -0
- package/dist/dist/migrations/20260801010609_save_estimate_proposal_function.sql +154 -0
- package/dist/dist/migrations/20260801173554_add_hide_autopilot_branding_setting.sql +6 -0
- package/dist/dist/migrations/20260806230917_add_client_billing_address_columns.sql +9 -0
- package/dist/dist/migrations/20260806230944_api_create_client_billing_address.sql +93 -0
- package/dist/dist/migrations/20260807014702_create_parent_id_company_id_keys.sql +20 -0
- package/dist/dist/migrations/20260807014703_create_contract_template.sql +30 -0
- package/dist/dist/migrations/20260807014704_create_contract.sql +233 -0
- package/dist/dist/migrations/20260807014705_create_contract_signature.sql +39 -0
- package/dist/dist/migrations/20260807014706_create_item_contract_requirement.sql +38 -0
- package/dist/dist/migrations/20260807014707_create_settings_contract.sql +23 -0
- package/dist/dist/migrations/20260807014708_contract_rls.sql +74 -0
- package/dist/dist/migrations/20260807014709_sign_contract_function.sql +92 -0
- package/dist/dist/migrations/20260807014710_create_settings_rental.sql +34 -0
- package/dist/dist/migrations/20260807014711_create_saved_location.sql +56 -0
- package/dist/dist/migrations/20260807014712_create_rental_task_option.sql +52 -0
- package/dist/dist/migrations/20260807014713_create_asset.sql +90 -0
- package/dist/dist/migrations/20260807014714_add_job_schedule_asset_fkeys.sql +39 -0
- package/dist/dist/migrations/20260807014715_rental_rls.sql +48 -0
- package/dist/dist/migrations/20260807014716_add_job_schedule_any_time.sql +7 -0
- package/dist/dist/migrations/20260807014717_add_job_schedule_target_location.sql +48 -0
- package/dist/dist/migrations/20260807014718_job_schedule_completion_guard.sql +53 -0
- package/dist/dist/migrations/20260807014719_add_job_schedule_list_sort_key.sql +7 -0
- package/dist/dist/migrations/20260807014720_add_item_duration.sql +11 -0
- package/dist/dist/migrations/20260807014721_add_settings_booking_enforce_rental_availability.sql +9 -0
- package/dist/dist/migrations/20260807014722_add_job_unsigned_rental_agreement.sql +10 -0
- package/dist/dist/migrations/20260807014723_add_item_size.sql +12 -0
- package/dist/dist/migrations/20260809193533_add_booking_path_button_labels.sql +11 -0
- package/dist/dist/migrations/20260809231721_add_route_distance_cache.sql +37 -0
- package/dist/dist/migrations/20260809231722_route_distance_cache_rls.sql +15 -0
- package/dist/dist/migrations/20260809231723_apply_rental_route_plan_function.sql +275 -0
- package/dist/dist/migrations/20260810171550_add_settings_job_default_job_types.sql +9 -0
- package/dist/dist/migrations/20260810212430_backfill_rental_task_option_sort_order.sql +61 -0
- package/dist/dist/migrations/20260811224317_add_settings_user_dnd_hint_dismissed.sql +9 -0
- package/dist/dist/migrations/20260813174503_repair_user_role_email_drift.sql +59 -0
- package/dist/dist/migrations/20260813174504_sync_user_role_email_trigger.sql +30 -0
- package/dist/dist/migrations/20260813175210_add_event_list_sort_key.sql +5 -0
- package/dist/dist/migrations/20260814172222_add_client_auto_bill_on_completion.sql +6 -0
- package/dist/dist/migrations/20260816160252_create_automation_rule.sql +99 -0
- package/dist/dist/migrations/20260816160253_automation_rule_rls.sql +19 -0
- package/dist/dist/migrations/20260816160254_create_settings_automation.sql +36 -0
- package/dist/dist/migrations/20260816160255_settings_automation_rls.sql +18 -0
- package/dist/dist/migrations/20260816160256_create_automation_event.sql +71 -0
- package/dist/dist/migrations/20260816160257_automation_event_rls.sql +12 -0
- package/dist/dist/migrations/20260816160258_create_automation_run.sql +129 -0
- package/dist/dist/migrations/20260816160259_automation_run_rls.sql +19 -0
- package/dist/dist/migrations/20260816160300_add_client_created_via.sql +25 -0
- package/dist/dist/migrations/20260816160301_add_estimate_sent_at.sql +39 -0
- package/dist/dist/migrations/20260816160302_add_message_automation_ref.sql +10 -0
- package/dist/dist/migrations/20260816160303_automation_event_triggers.sql +236 -0
- package/dist/dist/migrations/20260816160304_automation_retention.sql +142 -0
- package/dist/dist/migrations/20260816202404_add_automation_center_addon_key.sql +26 -0
- package/dist/dist/migrations/20260816225501_widen_automation_rule_trigger_action_checks.sql +25 -0
- package/dist/dist/migrations/20260816225502_widen_automation_event_type_check.sql +18 -0
- package/dist/dist/migrations/20260816225503_add_invoice_id_to_automation_tables.sql +18 -0
- package/dist/dist/migrations/20260816225504_add_job_rescheduled_capture_trigger.sql +51 -0
- package/dist/dist/migrations/20260816225505_add_lead_converted_capture_trigger.sql +26 -0
- package/dist/dist/migrations/20260816225506_fix_booking_request_import_guard.sql +27 -0
- package/dist/dist/migrations/20260816225507_widen_outbound_event_for_automation.sql +38 -0
- package/dist/dist/migrations/20260817002626_add_user_last_login_platform_columns.sql +14 -0
- package/dist/dist/migrations/20260817221703_create_deletion.sql +34 -0
- package/dist/dist/migrations/20260817221707_deletion_rls.sql +21 -0
- package/dist/dist/migrations/20260817221708_add_soft_delete_columns.sql +82 -0
- package/dist/dist/migrations/20260817221709_trash_functions.sql +434 -0
- package/dist/dist/migrations/20260817221710_outbound_event_soft_delete.sql +55 -0
- package/dist/dist/migrations/20260817221711_automation_soft_delete_events.sql +77 -0
- package/dist/dist/migrations/20260817221712_fix_estimate_address_cascade.sql +14 -0
- package/dist/dist/migrations/20260817232630_trash_batch_function.sql +67 -0
- package/dist/dist/migrations/20260819170204_create_email_spam_complaint.sql +23 -0
- package/dist/dist/migrations/20260819170205_add_email_spam_complaint_rls.sql +5 -0
- package/dist/dist/migrations/20260819170206_email_unsubscribed_upsert_constraints.sql +14 -0
- package/dist/dist/migrations/20260819180151_get_suppressed_emails_function.sql +23 -0
- package/dist/dist/migrations/20260819191143_is_deleted_backfill_guard.sql +29 -0
- package/dist/dist/migrations/20260819191144_trash_functions_no_dual_write.sql +319 -0
- package/dist/dist/migrations/20260819191145_client_map_jobs_deleted_at.sql +33 -0
- package/dist/dist/migrations/20260819191147_booking_declined_deleted_at.sql +28 -0
- package/dist/dist/migrations/20260819191148_onboarding_preload_no_address_is_deleted.sql +1019 -0
- package/dist/dist/migrations/20260820222756_add_settings_job_hide_task_timer.sql +2 -0
- package/dist/dist/migrations/20260824234151_add_blast_chunk_recipients.sql +13 -0
- package/dist/dist/migrations/20260824234152_add_blast_pause_cancel_columns.sql +10 -0
- package/dist/dist/migrations/20260825014725_get_job_ids_in_range.sql +42 -0
- package/dist/dist/migrations/20260825194452_add_failed_job_status.sql +15 -0
- package/dist/dist/migrations/20260825194457_remove_take_to_rental_task_options.sql +24 -0
- package/dist/dist/migrations/20260825194458_remove_take_to_job_schedules.sql +12 -0
- package/dist/dist/migrations/20260825194459_rework_apply_rental_route_plan_no_take_to.sql +168 -0
- package/dist/dist/migrations/20260825194500_drop_job_schedule_target_location.sql +24 -0
- package/dist/dist/migrations/20260825194501_add_job_schedule_size.sql +17 -0
- package/dist/dist/migrations/20260825233001_add_job_schedule_id_company_id_key.sql +11 -0
- package/dist/dist/migrations/20260825233002_create_route_plan.sql +52 -0
- package/dist/dist/migrations/20260825233003_create_route_plan_stop.sql +159 -0
- package/dist/dist/migrations/20260825233004_route_plan_rls.sql +32 -0
- package/dist/dist/migrations/20260825233005_apply_rental_route_plan_v2.sql +351 -0
- package/dist/dist/migrations/20260826150934_facebook_ads_lead_ingestion.sql +1711 -0
- package/dist/dist/migrations/20260826151141_facebook_ads_lead_ingestion_rls_v2.sql +43 -0
- package/dist/dist/migrations/20260826234722_facebook_messenger_ingestion.sql +703 -0
- package/dist/dist/migrations/20260826234723_facebook_messenger_ingestion_rls.sql +80 -0
- package/dist/dist/migrations/20260826234724_widen_automations_messenger.sql +46 -0
- package/dist/dist/migrations/20260827100001_add_route_plan_minutes.sql +10 -0
- package/dist/dist/migrations/20260827100002_add_route_plan_stop_leg_minutes.sql +9 -0
- package/dist/dist/migrations/20260827100003_apply_rental_route_plan_v3.sql +341 -0
- package/dist/dist/migrations/20260827230346_apply_rental_route_plan_v4.sql +366 -0
- package/dist/dist/migrations/20260829090911_create_fleet_schema.sql +3698 -0
- package/dist/dist/migrations/20260829090912_fleet_rls.sql +1011 -0
- package/dist/dist/migrations/20260831102212_add_online_booking_address_display.sql +8 -0
- package/dist/dist/providers/AddressProvider.d.ts +9 -0
- package/dist/dist/providers/AddressProvider.d.ts.map +1 -0
- package/dist/dist/providers/AddressProvider.js +207 -0
- package/dist/dist/providers/AddressProvider.js.map +1 -0
- package/dist/dist/providers/AutomationsProvider.d.ts +11 -0
- package/dist/dist/providers/AutomationsProvider.d.ts.map +1 -0
- package/dist/dist/providers/AutomationsProvider.js +170 -0
- package/dist/dist/providers/AutomationsProvider.js.map +1 -0
- package/dist/dist/providers/BlockedNumbersProvider.d.ts +13 -0
- package/dist/dist/providers/BlockedNumbersProvider.d.ts.map +1 -0
- package/dist/dist/providers/BlockedNumbersProvider.js +71 -0
- package/dist/dist/providers/BlockedNumbersProvider.js.map +1 -0
- package/dist/dist/providers/CategoryProvider.d.ts +8 -0
- package/dist/dist/providers/CategoryProvider.d.ts.map +1 -0
- package/dist/dist/providers/CategoryProvider.js +95 -0
- package/dist/dist/providers/CategoryProvider.js.map +1 -0
- package/dist/dist/providers/ClientProvider.d.ts +39 -0
- package/dist/dist/providers/ClientProvider.d.ts.map +1 -0
- package/dist/dist/providers/ClientProvider.js +253 -0
- package/dist/dist/providers/ClientProvider.js.map +1 -0
- package/dist/dist/providers/CompanyProvider.d.ts +7 -0
- package/dist/dist/providers/CompanyProvider.d.ts.map +1 -0
- package/dist/dist/providers/CompanyProvider.js +114 -0
- package/dist/dist/providers/CompanyProvider.js.map +1 -0
- package/dist/dist/providers/DashboardProvider.d.ts +78 -0
- package/dist/dist/providers/DashboardProvider.d.ts.map +1 -0
- package/dist/dist/providers/DashboardProvider.js +568 -0
- package/dist/dist/providers/DashboardProvider.js.map +1 -0
- package/dist/dist/providers/DiscountProvider.d.ts +8 -0
- package/dist/dist/providers/DiscountProvider.d.ts.map +1 -0
- package/dist/dist/providers/DiscountProvider.js +92 -0
- package/dist/dist/providers/DiscountProvider.js.map +1 -0
- package/dist/dist/providers/EmployeesProvider.d.ts +6 -0
- package/dist/dist/providers/EmployeesProvider.d.ts.map +1 -0
- package/dist/dist/providers/EmployeesProvider.js +185 -0
- package/dist/dist/providers/EmployeesProvider.js.map +1 -0
- package/dist/dist/providers/EstimatesProvider.d.ts +16 -0
- package/dist/dist/providers/EstimatesProvider.d.ts.map +1 -0
- package/dist/dist/providers/EstimatesProvider.js +251 -0
- package/dist/dist/providers/EstimatesProvider.js.map +1 -0
- package/dist/dist/providers/EventsProvider.d.ts +4 -0
- package/dist/dist/providers/EventsProvider.d.ts.map +1 -0
- package/dist/dist/providers/EventsProvider.js +24 -0
- package/dist/dist/providers/EventsProvider.js.map +1 -0
- package/dist/dist/providers/FilesProvider.d.ts +17 -0
- package/dist/dist/providers/FilesProvider.d.ts.map +1 -0
- package/dist/dist/providers/FilesProvider.js +201 -0
- package/dist/dist/providers/FilesProvider.js.map +1 -0
- package/dist/dist/providers/InvoicesProvider.d.ts +13 -0
- package/dist/dist/providers/InvoicesProvider.d.ts.map +1 -0
- package/dist/dist/providers/InvoicesProvider.js +207 -0
- package/dist/dist/providers/InvoicesProvider.js.map +1 -0
- package/dist/dist/providers/ItemProvider.d.ts +9 -0
- package/dist/dist/providers/ItemProvider.d.ts.map +1 -0
- package/dist/dist/providers/ItemProvider.js +201 -0
- package/dist/dist/providers/ItemProvider.js.map +1 -0
- package/dist/dist/providers/JobSourceProvider.d.ts +8 -0
- package/dist/dist/providers/JobSourceProvider.d.ts.map +1 -0
- package/dist/dist/providers/JobSourceProvider.js +75 -0
- package/dist/dist/providers/JobSourceProvider.js.map +1 -0
- package/dist/dist/providers/JobTypeProvider.d.ts +8 -0
- package/dist/dist/providers/JobTypeProvider.d.ts.map +1 -0
- package/dist/dist/providers/JobTypeProvider.js +75 -0
- package/dist/dist/providers/JobTypeProvider.js.map +1 -0
- package/dist/dist/providers/JobsProvider.d.ts +35 -0
- package/dist/dist/providers/JobsProvider.d.ts.map +1 -0
- package/dist/dist/providers/JobsProvider.js +863 -0
- package/dist/dist/providers/JobsProvider.js.map +1 -0
- package/dist/dist/providers/MessagesProvider.d.ts +33 -0
- package/dist/dist/providers/MessagesProvider.d.ts.map +1 -0
- package/dist/dist/providers/MessagesProvider.js +415 -0
- package/dist/dist/providers/MessagesProvider.js.map +1 -0
- package/dist/dist/providers/PaymentProvider.d.ts +9 -0
- package/dist/dist/providers/PaymentProvider.d.ts.map +1 -0
- package/dist/dist/providers/PaymentProvider.js +48 -0
- package/dist/dist/providers/PaymentProvider.js.map +1 -0
- package/dist/dist/providers/PermissionRolesProvider.d.ts +5 -0
- package/dist/dist/providers/PermissionRolesProvider.d.ts.map +1 -0
- package/dist/dist/providers/PermissionRolesProvider.js +30 -0
- package/dist/dist/providers/PermissionRolesProvider.js.map +1 -0
- package/dist/dist/providers/PhoneNumberProvider.d.ts +12 -0
- package/dist/dist/providers/PhoneNumberProvider.d.ts.map +1 -0
- package/dist/dist/providers/PhoneNumberProvider.js +184 -0
- package/dist/dist/providers/PhoneNumberProvider.js.map +1 -0
- package/dist/dist/providers/ProfileProvider.d.ts +6 -0
- package/dist/dist/providers/ProfileProvider.d.ts.map +1 -0
- package/dist/dist/providers/ProfileProvider.js +71 -0
- package/dist/dist/providers/ProfileProvider.js.map +1 -0
- package/dist/dist/providers/RentalsProvider.d.ts +28 -0
- package/dist/dist/providers/RentalsProvider.d.ts.map +1 -0
- package/dist/dist/providers/RentalsProvider.js +438 -0
- package/dist/dist/providers/RentalsProvider.js.map +1 -0
- package/dist/dist/providers/SettingsBookingProvider.d.ts +9 -0
- package/dist/dist/providers/SettingsBookingProvider.d.ts.map +1 -0
- package/dist/dist/providers/SettingsBookingProvider.js +163 -0
- package/dist/dist/providers/SettingsBookingProvider.js.map +1 -0
- package/dist/dist/providers/SettingsProvider.d.ts +8 -0
- package/dist/dist/providers/SettingsProvider.d.ts.map +1 -0
- package/dist/dist/providers/SettingsProvider.js +86 -0
- package/dist/dist/providers/SettingsProvider.js.map +1 -0
- package/dist/dist/providers/TagsProvider.d.ts +12 -0
- package/dist/dist/providers/TagsProvider.d.ts.map +1 -0
- package/dist/dist/providers/TagsProvider.js +210 -0
- package/dist/dist/providers/TagsProvider.js.map +1 -0
- package/dist/dist/providers/TimeCardProvider.d.ts +8 -0
- package/dist/dist/providers/TimeCardProvider.d.ts.map +1 -0
- package/dist/dist/providers/TimeCardProvider.js +93 -0
- package/dist/dist/providers/TimeCardProvider.js.map +1 -0
- package/dist/dist/providers/TrashProvider.d.ts +13 -0
- package/dist/dist/providers/TrashProvider.d.ts.map +1 -0
- package/dist/dist/providers/TrashProvider.js +98 -0
- package/dist/dist/providers/TrashProvider.js.map +1 -0
- package/dist/dist/providers/dashboardAnalytics.d.ts +9 -0
- package/dist/dist/providers/dashboardAnalytics.d.ts.map +1 -0
- package/dist/dist/providers/dashboardAnalytics.js +41 -0
- package/dist/dist/providers/dashboardAnalytics.js.map +1 -0
- package/dist/dist/providers/dashboardAnalytics.test.d.ts +2 -0
- package/dist/dist/providers/dashboardAnalytics.test.d.ts.map +1 -0
- package/dist/dist/providers/dashboardAnalytics.test.js +111 -0
- package/dist/dist/providers/dashboardAnalytics.test.js.map +1 -0
- package/dist/dist/server-safe/BlockedNumberFunctions.d.ts +11 -0
- package/dist/dist/server-safe/BlockedNumberFunctions.d.ts.map +1 -0
- package/dist/dist/server-safe/BlockedNumberFunctions.js +16 -0
- package/dist/dist/server-safe/BlockedNumberFunctions.js.map +1 -0
- package/dist/dist/server-safe/EmployeeFunctions.d.ts +14 -0
- package/dist/dist/server-safe/EmployeeFunctions.d.ts.map +1 -0
- package/dist/dist/server-safe/EmployeeFunctions.js +70 -0
- package/dist/dist/server-safe/EmployeeFunctions.js.map +1 -0
- package/dist/dist/server-safe/EmployeeLocationFunctions.d.ts +7 -0
- package/dist/dist/server-safe/EmployeeLocationFunctions.d.ts.map +1 -0
- package/dist/dist/server-safe/EmployeeLocationFunctions.js +47 -0
- package/dist/dist/server-safe/EmployeeLocationFunctions.js.map +1 -0
- package/dist/dist/server-safe/EstimateFunctions.d.ts +15 -0
- package/dist/dist/server-safe/EstimateFunctions.d.ts.map +1 -0
- package/dist/dist/server-safe/EstimateFunctions.js +34 -0
- package/dist/dist/server-safe/EstimateFunctions.js.map +1 -0
- package/dist/dist/server-safe/InvoiceFunctions.d.ts +21 -0
- package/dist/dist/server-safe/InvoiceFunctions.d.ts.map +1 -0
- package/dist/dist/server-safe/InvoiceFunctions.js +124 -0
- package/dist/dist/server-safe/InvoiceFunctions.js.map +1 -0
- package/dist/dist/server-safe/JobFunctions.d.ts +15 -0
- package/dist/dist/server-safe/JobFunctions.d.ts.map +1 -0
- package/dist/dist/server-safe/JobFunctions.js +56 -0
- package/dist/dist/server-safe/JobFunctions.js.map +1 -0
- package/dist/dist/server-safe/PaymentFunctions.d.ts +16 -0
- package/dist/dist/server-safe/PaymentFunctions.d.ts.map +1 -0
- package/dist/dist/server-safe/PaymentFunctions.js +80 -0
- package/dist/dist/server-safe/PaymentFunctions.js.map +1 -0
- package/dist/dist/server-safe/PermissionFunctions.d.ts +7 -0
- package/dist/dist/server-safe/PermissionFunctions.d.ts.map +1 -0
- package/dist/dist/server-safe/PermissionFunctions.js +39 -0
- package/dist/dist/server-safe/PermissionFunctions.js.map +1 -0
- package/dist/dist/server-safe/TagFunctions.d.ts +18 -0
- package/dist/dist/server-safe/TagFunctions.d.ts.map +1 -0
- package/dist/dist/server-safe/TagFunctions.js +52 -0
- package/dist/dist/server-safe/TagFunctions.js.map +1 -0
- package/dist/dist/server-safe/autoJobType.d.ts +16 -0
- package/dist/dist/server-safe/autoJobType.d.ts.map +1 -0
- package/dist/dist/server-safe/autoJobType.js +39 -0
- package/dist/dist/server-safe/autoJobType.js.map +1 -0
- package/dist/dist/server-safe/autoJobType.test.d.ts +2 -0
- package/dist/dist/server-safe/autoJobType.test.d.ts.map +1 -0
- package/dist/dist/server-safe/autoJobType.test.js +83 -0
- package/dist/dist/server-safe/autoJobType.test.js.map +1 -0
- package/dist/dist/server-safe/automations.d.ts +197 -0
- package/dist/dist/server-safe/automations.d.ts.map +1 -0
- package/dist/dist/server-safe/automations.js +757 -0
- package/dist/dist/server-safe/automations.js.map +1 -0
- package/dist/dist/server-safe/automations.test.d.ts +2 -0
- package/dist/dist/server-safe/automations.test.d.ts.map +1 -0
- package/dist/dist/server-safe/automations.test.js +441 -0
- package/dist/dist/server-safe/automations.test.js.map +1 -0
- package/dist/dist/server-safe/constants.d.ts +156 -0
- package/dist/dist/server-safe/constants.d.ts.map +1 -0
- package/dist/dist/server-safe/constants.js +186 -0
- package/dist/dist/server-safe/constants.js.map +1 -0
- package/dist/dist/server-safe/contracts.d.ts +3 -0
- package/dist/dist/server-safe/contracts.d.ts.map +1 -0
- package/dist/dist/server-safe/contracts.js +15 -0
- package/dist/dist/server-safe/contracts.js.map +1 -0
- package/dist/dist/server-safe/database.types.d.ts +9510 -0
- package/dist/dist/server-safe/database.types.d.ts.map +1 -0
- package/dist/dist/server-safe/database.types.js +40 -0
- package/dist/dist/server-safe/database.types.js.map +1 -0
- package/dist/dist/server-safe/entitlements.d.ts +99 -0
- package/dist/dist/server-safe/entitlements.d.ts.map +1 -0
- package/dist/dist/server-safe/entitlements.js +487 -0
- package/dist/dist/server-safe/entitlements.js.map +1 -0
- package/dist/dist/server-safe/facebookAdsLeads.d.ts +225 -0
- package/dist/dist/server-safe/facebookAdsLeads.d.ts.map +1 -0
- package/dist/dist/server-safe/facebookAdsLeads.js +376 -0
- package/dist/dist/server-safe/facebookAdsLeads.js.map +1 -0
- package/dist/dist/server-safe/facebookAdsLeads.test.d.ts +2 -0
- package/dist/dist/server-safe/facebookAdsLeads.test.d.ts.map +1 -0
- package/dist/dist/server-safe/facebookAdsLeads.test.js +189 -0
- package/dist/dist/server-safe/facebookAdsLeads.test.js.map +1 -0
- package/dist/dist/server-safe/facebookAdsLeadsSql.test.d.ts +2 -0
- package/dist/dist/server-safe/facebookAdsLeadsSql.test.d.ts.map +1 -0
- package/dist/dist/server-safe/facebookAdsLeadsSql.test.js +32 -0
- package/dist/dist/server-safe/facebookAdsLeadsSql.test.js.map +1 -0
- package/dist/dist/server-safe/facebookMessenger.d.ts +20 -0
- package/dist/dist/server-safe/facebookMessenger.d.ts.map +1 -0
- package/dist/dist/server-safe/facebookMessenger.js +63 -0
- package/dist/dist/server-safe/facebookMessenger.js.map +1 -0
- package/dist/dist/server-safe/facebookMessenger.test.d.ts +2 -0
- package/dist/dist/server-safe/facebookMessenger.test.d.ts.map +1 -0
- package/dist/dist/server-safe/facebookMessenger.test.js +51 -0
- package/dist/dist/server-safe/facebookMessenger.test.js.map +1 -0
- package/dist/dist/server-safe/helpers.d.ts +78 -0
- package/dist/dist/server-safe/helpers.d.ts.map +1 -0
- package/dist/dist/server-safe/helpers.js +569 -0
- package/dist/dist/server-safe/helpers.js.map +1 -0
- package/dist/dist/server-safe/index.d.ts +30 -0
- package/dist/dist/server-safe/index.d.ts.map +1 -0
- package/dist/dist/server-safe/index.js +46 -0
- package/dist/dist/server-safe/index.js.map +1 -0
- package/dist/dist/server-safe/permissions.d.ts +29 -0
- package/dist/dist/server-safe/permissions.d.ts.map +1 -0
- package/dist/dist/server-safe/permissions.js +180 -0
- package/dist/dist/server-safe/permissions.js.map +1 -0
- package/dist/dist/server-safe/proposals.d.ts +6 -0
- package/dist/dist/server-safe/proposals.d.ts.map +1 -0
- package/dist/dist/server-safe/proposals.js +58 -0
- package/dist/dist/server-safe/proposals.js.map +1 -0
- package/dist/dist/server-safe/rentalAvailability.d.ts +56 -0
- package/dist/dist/server-safe/rentalAvailability.d.ts.map +1 -0
- package/dist/dist/server-safe/rentalAvailability.js +124 -0
- package/dist/dist/server-safe/rentalAvailability.js.map +1 -0
- package/dist/dist/server-safe/rentalAvailability.test.d.ts +2 -0
- package/dist/dist/server-safe/rentalAvailability.test.d.ts.map +1 -0
- package/dist/dist/server-safe/rentalAvailability.test.js +290 -0
- package/dist/dist/server-safe/rentalAvailability.test.js.map +1 -0
- package/dist/dist/server-safe/rentals.d.ts +95 -0
- package/dist/dist/server-safe/rentals.d.ts.map +1 -0
- package/dist/dist/server-safe/rentals.js +432 -0
- package/dist/dist/server-safe/rentals.js.map +1 -0
- package/dist/dist/server-safe/rentals.test.d.ts +2 -0
- package/dist/dist/server-safe/rentals.test.d.ts.map +1 -0
- package/dist/dist/server-safe/rentals.test.js +1034 -0
- package/dist/dist/server-safe/rentals.test.js.map +1 -0
- package/dist/dist/server-safe/routeOptimization.d.ts +155 -0
- package/dist/dist/server-safe/routeOptimization.d.ts.map +1 -0
- package/dist/dist/server-safe/routeOptimization.js +120 -0
- package/dist/dist/server-safe/routeOptimization.js.map +1 -0
- package/dist/dist/server-safe/routeOptimization.test.d.ts +2 -0
- package/dist/dist/server-safe/routeOptimization.test.d.ts.map +1 -0
- package/dist/dist/server-safe/routeOptimization.test.js +234 -0
- package/dist/dist/server-safe/routeOptimization.test.js.map +1 -0
- package/dist/dist/server-safe/routePlanFingerprint.d.ts +13 -0
- package/dist/dist/server-safe/routePlanFingerprint.d.ts.map +1 -0
- package/dist/dist/server-safe/routePlanFingerprint.js +49 -0
- package/dist/dist/server-safe/routePlanFingerprint.js.map +1 -0
- package/dist/dist/server-safe/routePlanFingerprint.test.d.ts +2 -0
- package/dist/dist/server-safe/routePlanFingerprint.test.d.ts.map +1 -0
- package/dist/dist/server-safe/routePlanFingerprint.test.js +68 -0
- package/dist/dist/server-safe/routePlanFingerprint.test.js.map +1 -0
- package/dist/dist/server-safe/scheduleListOrder.d.ts +18 -0
- package/dist/dist/server-safe/scheduleListOrder.d.ts.map +1 -0
- package/dist/dist/server-safe/scheduleListOrder.js +92 -0
- package/dist/dist/server-safe/scheduleListOrder.js.map +1 -0
- package/dist/dist/server-safe/scheduleListOrder.test.d.ts +2 -0
- package/dist/dist/server-safe/scheduleListOrder.test.d.ts.map +1 -0
- package/dist/dist/server-safe/scheduleListOrder.test.js +260 -0
- package/dist/dist/server-safe/scheduleListOrder.test.js.map +1 -0
- package/dist/dist/server-safe/serviceMinutes.d.ts +13 -0
- package/dist/dist/server-safe/serviceMinutes.d.ts.map +1 -0
- package/dist/dist/server-safe/serviceMinutes.js +38 -0
- package/dist/dist/server-safe/serviceMinutes.js.map +1 -0
- package/dist/dist/server-safe/serviceMinutes.test.d.ts +2 -0
- package/dist/dist/server-safe/serviceMinutes.test.d.ts.map +1 -0
- package/dist/dist/server-safe/serviceMinutes.test.js +86 -0
- package/dist/dist/server-safe/serviceMinutes.test.js.map +1 -0
- package/dist/dist/server-safe/settingsSearch.d.ts +24 -0
- package/dist/dist/server-safe/settingsSearch.d.ts.map +1 -0
- package/dist/dist/server-safe/settingsSearch.js +8 -0
- package/dist/dist/server-safe/settingsSearch.js.map +1 -0
- package/dist/dist/server-safe/supportChat.d.ts +59 -0
- package/dist/dist/server-safe/supportChat.d.ts.map +1 -0
- package/dist/dist/server-safe/supportChat.js +56 -0
- package/dist/dist/server-safe/supportChat.js.map +1 -0
- package/dist/dist/server-safe/templates.d.ts +15 -0
- package/dist/dist/server-safe/templates.d.ts.map +1 -0
- package/dist/dist/server-safe/templates.js +91 -0
- package/dist/dist/server-safe/templates.js.map +1 -0
- package/dist/dist/server-safe/templates.test.d.ts +2 -0
- package/dist/dist/server-safe/templates.test.d.ts.map +1 -0
- package/dist/dist/server-safe/templates.test.js +62 -0
- package/dist/dist/server-safe/templates.test.js.map +1 -0
- package/dist/dist/server-safe/trash.d.ts +50 -0
- package/dist/dist/server-safe/trash.d.ts.map +1 -0
- package/dist/dist/server-safe/trash.js +100 -0
- package/dist/dist/server-safe/trash.js.map +1 -0
- package/dist/dist/utils/LogHandler.d.ts +3 -0
- package/dist/dist/utils/LogHandler.d.ts.map +1 -0
- package/dist/dist/utils/LogHandler.js +16 -0
- package/dist/dist/utils/LogHandler.js.map +1 -0
- package/dist/dist/utils/convertSupabaseImagesToAssets.d.ts +28 -0
- package/dist/dist/utils/convertSupabaseImagesToAssets.d.ts.map +1 -0
- package/dist/dist/utils/convertSupabaseImagesToAssets.js +14 -0
- package/dist/dist/utils/convertSupabaseImagesToAssets.js.map +1 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/index.d.ts +1238 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/interfaces/index.js +3 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/providers/AddressProvider.d.ts +9 -0
- package/dist/providers/AddressProvider.d.ts.map +1 -0
- package/dist/providers/AddressProvider.js +207 -0
- package/dist/providers/AddressProvider.js.map +1 -0
- package/dist/providers/AutomationsProvider.d.ts +11 -0
- package/dist/providers/AutomationsProvider.d.ts.map +1 -0
- package/dist/providers/AutomationsProvider.js +170 -0
- package/dist/providers/AutomationsProvider.js.map +1 -0
- package/dist/providers/BlockedNumbersProvider.d.ts +7 -0
- package/dist/providers/BlockedNumbersProvider.d.ts.map +1 -0
- package/dist/providers/BlockedNumbersProvider.js +71 -0
- package/dist/providers/BlockedNumbersProvider.js.map +1 -0
- package/dist/providers/CategoryProvider.d.ts +8 -0
- package/dist/providers/CategoryProvider.d.ts.map +1 -0
- package/dist/providers/CategoryProvider.js +95 -0
- package/dist/providers/CategoryProvider.js.map +1 -0
- package/dist/providers/ClientProvider.d.ts +39 -0
- package/dist/providers/ClientProvider.d.ts.map +1 -0
- package/dist/providers/ClientProvider.js +253 -0
- package/dist/providers/ClientProvider.js.map +1 -0
- package/dist/providers/CompanyProvider.d.ts +7 -0
- package/dist/providers/CompanyProvider.d.ts.map +1 -0
- package/dist/providers/CompanyProvider.js +114 -0
- package/dist/providers/CompanyProvider.js.map +1 -0
- package/dist/providers/DashboardProvider.d.ts +78 -0
- package/dist/providers/DashboardProvider.d.ts.map +1 -0
- package/dist/providers/DashboardProvider.js +568 -0
- package/dist/providers/DashboardProvider.js.map +1 -0
- package/dist/providers/DiscountProvider.d.ts +8 -0
- package/dist/providers/DiscountProvider.d.ts.map +1 -0
- package/dist/providers/DiscountProvider.js +92 -0
- package/dist/providers/DiscountProvider.js.map +1 -0
- package/dist/providers/EmployeesProvider.d.ts +6 -0
- package/dist/providers/EmployeesProvider.d.ts.map +1 -0
- package/dist/providers/EmployeesProvider.js +185 -0
- package/dist/providers/EmployeesProvider.js.map +1 -0
- package/dist/providers/EstimatesProvider.d.ts +16 -0
- package/dist/providers/EstimatesProvider.d.ts.map +1 -0
- package/dist/providers/EstimatesProvider.js +251 -0
- package/dist/providers/EstimatesProvider.js.map +1 -0
- package/dist/providers/EventsProvider.d.ts +4 -0
- package/dist/providers/EventsProvider.d.ts.map +1 -0
- package/dist/providers/EventsProvider.js +24 -0
- package/dist/providers/EventsProvider.js.map +1 -0
- package/dist/providers/FilesProvider.d.ts +17 -0
- package/dist/providers/FilesProvider.d.ts.map +1 -0
- package/dist/providers/FilesProvider.js +201 -0
- package/dist/providers/FilesProvider.js.map +1 -0
- package/dist/providers/InvoicesProvider.d.ts +13 -0
- package/dist/providers/InvoicesProvider.d.ts.map +1 -0
- package/dist/providers/InvoicesProvider.js +207 -0
- package/dist/providers/InvoicesProvider.js.map +1 -0
- package/dist/providers/ItemProvider.d.ts +9 -0
- package/dist/providers/ItemProvider.d.ts.map +1 -0
- package/dist/providers/ItemProvider.js +201 -0
- package/dist/providers/ItemProvider.js.map +1 -0
- package/dist/providers/JobSourceProvider.d.ts +8 -0
- package/dist/providers/JobSourceProvider.d.ts.map +1 -0
- package/dist/providers/JobSourceProvider.js +75 -0
- package/dist/providers/JobSourceProvider.js.map +1 -0
- package/dist/providers/JobTypeProvider.d.ts +8 -0
- package/dist/providers/JobTypeProvider.d.ts.map +1 -0
- package/dist/providers/JobTypeProvider.js +75 -0
- package/dist/providers/JobTypeProvider.js.map +1 -0
- package/dist/providers/JobsProvider.d.ts +20 -0
- package/dist/providers/JobsProvider.d.ts.map +1 -0
- package/dist/providers/JobsProvider.js +863 -0
- package/dist/providers/JobsProvider.js.map +1 -0
- package/dist/providers/MessagesProvider.d.ts +14 -0
- package/dist/providers/MessagesProvider.d.ts.map +1 -0
- package/dist/providers/MessagesProvider.js +415 -0
- package/dist/providers/MessagesProvider.js.map +1 -0
- package/dist/providers/PaymentProvider.d.ts +9 -0
- package/dist/providers/PaymentProvider.d.ts.map +1 -0
- package/dist/providers/PaymentProvider.js +48 -0
- package/dist/providers/PaymentProvider.js.map +1 -0
- package/dist/providers/PermissionRolesProvider.d.ts +5 -0
- package/dist/providers/PermissionRolesProvider.d.ts.map +1 -0
- package/dist/providers/PermissionRolesProvider.js +30 -0
- package/dist/providers/PermissionRolesProvider.js.map +1 -0
- package/dist/providers/PhoneNumberProvider.d.ts +12 -0
- package/dist/providers/PhoneNumberProvider.d.ts.map +1 -0
- package/dist/providers/PhoneNumberProvider.js +184 -0
- package/dist/providers/PhoneNumberProvider.js.map +1 -0
- package/dist/providers/ProfileProvider.d.ts +6 -0
- package/dist/providers/ProfileProvider.d.ts.map +1 -0
- package/dist/providers/ProfileProvider.js +71 -0
- package/dist/providers/ProfileProvider.js.map +1 -0
- package/dist/providers/RentalsProvider.d.ts +28 -0
- package/dist/providers/RentalsProvider.d.ts.map +1 -0
- package/dist/providers/RentalsProvider.js +438 -0
- package/dist/providers/RentalsProvider.js.map +1 -0
- package/dist/providers/SettingsBookingProvider.d.ts +9 -0
- package/dist/providers/SettingsBookingProvider.d.ts.map +1 -0
- package/dist/providers/SettingsBookingProvider.js +163 -0
- package/dist/providers/SettingsBookingProvider.js.map +1 -0
- package/dist/providers/SettingsProvider.d.ts +8 -0
- package/dist/providers/SettingsProvider.d.ts.map +1 -0
- package/dist/providers/SettingsProvider.js +86 -0
- package/dist/providers/SettingsProvider.js.map +1 -0
- package/dist/providers/TagsProvider.d.ts +12 -0
- package/dist/providers/TagsProvider.d.ts.map +1 -0
- package/dist/providers/TagsProvider.js +210 -0
- package/dist/providers/TagsProvider.js.map +1 -0
- package/dist/providers/TimeCardProvider.d.ts +8 -0
- package/dist/providers/TimeCardProvider.d.ts.map +1 -0
- package/dist/providers/TimeCardProvider.js +93 -0
- package/dist/providers/TimeCardProvider.js.map +1 -0
- package/dist/providers/TrashProvider.d.ts +13 -0
- package/dist/providers/TrashProvider.d.ts.map +1 -0
- package/dist/providers/TrashProvider.js +98 -0
- package/dist/providers/TrashProvider.js.map +1 -0
- package/dist/providers/dashboardAnalytics.d.ts +9 -0
- package/dist/providers/dashboardAnalytics.d.ts.map +1 -0
- package/dist/providers/dashboardAnalytics.js +41 -0
- package/dist/providers/dashboardAnalytics.js.map +1 -0
- package/dist/providers/dashboardAnalytics.test.d.ts +2 -0
- package/dist/providers/dashboardAnalytics.test.d.ts.map +1 -0
- package/dist/providers/dashboardAnalytics.test.js +111 -0
- package/dist/providers/dashboardAnalytics.test.js.map +1 -0
- package/dist/server-safe/BlockedNumberFunctions.d.ts +11 -0
- package/dist/server-safe/BlockedNumberFunctions.d.ts.map +1 -0
- package/dist/server-safe/BlockedNumberFunctions.js +16 -0
- package/dist/server-safe/BlockedNumberFunctions.js.map +1 -0
- package/dist/server-safe/EmployeeFunctions.d.ts +14 -0
- package/dist/server-safe/EmployeeFunctions.d.ts.map +1 -0
- package/dist/server-safe/EmployeeFunctions.js +70 -0
- package/dist/server-safe/EmployeeFunctions.js.map +1 -0
- package/dist/server-safe/EmployeeLocationFunctions.d.ts +7 -0
- package/dist/server-safe/EmployeeLocationFunctions.d.ts.map +1 -0
- package/dist/server-safe/EmployeeLocationFunctions.js +47 -0
- package/dist/server-safe/EmployeeLocationFunctions.js.map +1 -0
- package/dist/server-safe/EstimateFunctions.d.ts +15 -0
- package/dist/server-safe/EstimateFunctions.d.ts.map +1 -0
- package/dist/server-safe/EstimateFunctions.js +34 -0
- package/dist/server-safe/EstimateFunctions.js.map +1 -0
- package/dist/server-safe/InvoiceFunctions.d.ts +21 -0
- package/dist/server-safe/InvoiceFunctions.d.ts.map +1 -0
- package/dist/server-safe/InvoiceFunctions.js +124 -0
- package/dist/server-safe/InvoiceFunctions.js.map +1 -0
- package/dist/server-safe/JobFunctions.d.ts +15 -0
- package/dist/server-safe/JobFunctions.d.ts.map +1 -0
- package/dist/server-safe/JobFunctions.js +56 -0
- package/dist/server-safe/JobFunctions.js.map +1 -0
- package/dist/server-safe/PaymentFunctions.d.ts +16 -0
- package/dist/server-safe/PaymentFunctions.d.ts.map +1 -0
- package/dist/server-safe/PaymentFunctions.js +80 -0
- package/dist/server-safe/PaymentFunctions.js.map +1 -0
- package/dist/server-safe/PermissionFunctions.d.ts +7 -0
- package/dist/server-safe/PermissionFunctions.d.ts.map +1 -0
- package/dist/server-safe/PermissionFunctions.js +39 -0
- package/dist/server-safe/PermissionFunctions.js.map +1 -0
- package/dist/server-safe/TagFunctions.d.ts +18 -0
- package/dist/server-safe/TagFunctions.d.ts.map +1 -0
- package/dist/server-safe/TagFunctions.js +52 -0
- package/dist/server-safe/TagFunctions.js.map +1 -0
- package/dist/server-safe/autoJobType.d.ts +16 -0
- package/dist/server-safe/autoJobType.d.ts.map +1 -0
- package/dist/server-safe/autoJobType.js +39 -0
- package/dist/server-safe/autoJobType.js.map +1 -0
- package/dist/server-safe/autoJobType.test.d.ts +2 -0
- package/dist/server-safe/autoJobType.test.d.ts.map +1 -0
- package/dist/server-safe/autoJobType.test.js +83 -0
- package/dist/server-safe/autoJobType.test.js.map +1 -0
- package/dist/server-safe/automations.d.ts +197 -0
- package/dist/server-safe/automations.d.ts.map +1 -0
- package/dist/server-safe/automations.js +757 -0
- package/dist/server-safe/automations.js.map +1 -0
- package/dist/server-safe/automations.test.d.ts +2 -0
- package/dist/server-safe/automations.test.d.ts.map +1 -0
- package/dist/server-safe/automations.test.js +441 -0
- package/dist/server-safe/automations.test.js.map +1 -0
- package/dist/server-safe/constants.d.ts +156 -0
- package/dist/server-safe/constants.d.ts.map +1 -0
- package/dist/server-safe/constants.js +186 -0
- package/dist/server-safe/constants.js.map +1 -0
- package/dist/server-safe/contracts.d.ts +3 -0
- package/dist/server-safe/contracts.d.ts.map +1 -0
- package/dist/server-safe/contracts.js +15 -0
- package/dist/server-safe/contracts.js.map +1 -0
- package/dist/server-safe/database.types.d.ts +9510 -0
- package/dist/server-safe/database.types.d.ts.map +1 -0
- package/dist/server-safe/database.types.js +40 -0
- package/dist/server-safe/database.types.js.map +1 -0
- package/dist/server-safe/entitlements.d.ts +99 -0
- package/dist/server-safe/entitlements.d.ts.map +1 -0
- package/dist/server-safe/entitlements.js +487 -0
- package/dist/server-safe/entitlements.js.map +1 -0
- package/dist/server-safe/helpers.d.ts +78 -0
- package/dist/server-safe/helpers.d.ts.map +1 -0
- package/dist/server-safe/helpers.js +569 -0
- package/dist/server-safe/helpers.js.map +1 -0
- package/dist/server-safe/index.d.ts +30 -0
- package/dist/server-safe/index.d.ts.map +1 -0
- package/dist/server-safe/index.js +46 -0
- package/dist/server-safe/index.js.map +1 -0
- package/dist/server-safe/permissions.d.ts +29 -0
- package/dist/server-safe/permissions.d.ts.map +1 -0
- package/dist/server-safe/permissions.js +180 -0
- package/dist/server-safe/permissions.js.map +1 -0
- package/dist/server-safe/proposals.d.ts +6 -0
- package/dist/server-safe/proposals.d.ts.map +1 -0
- package/dist/server-safe/proposals.js +58 -0
- package/dist/server-safe/proposals.js.map +1 -0
- package/dist/server-safe/rentalAvailability.d.ts +56 -0
- package/dist/server-safe/rentalAvailability.d.ts.map +1 -0
- package/dist/server-safe/rentalAvailability.js +124 -0
- package/dist/server-safe/rentalAvailability.js.map +1 -0
- package/dist/server-safe/rentalAvailability.test.d.ts +2 -0
- package/dist/server-safe/rentalAvailability.test.d.ts.map +1 -0
- package/dist/server-safe/rentalAvailability.test.js +290 -0
- package/dist/server-safe/rentalAvailability.test.js.map +1 -0
- package/dist/server-safe/rentals.d.ts +95 -0
- package/dist/server-safe/rentals.d.ts.map +1 -0
- package/dist/server-safe/rentals.js +432 -0
- package/dist/server-safe/rentals.js.map +1 -0
- package/dist/server-safe/rentals.test.d.ts +2 -0
- package/dist/server-safe/rentals.test.d.ts.map +1 -0
- package/dist/server-safe/rentals.test.js +1034 -0
- package/dist/server-safe/rentals.test.js.map +1 -0
- package/dist/server-safe/routeOptimization.d.ts +155 -0
- package/dist/server-safe/routeOptimization.d.ts.map +1 -0
- package/dist/server-safe/routeOptimization.js +120 -0
- package/dist/server-safe/routeOptimization.js.map +1 -0
- package/dist/server-safe/routeOptimization.test.d.ts +2 -0
- package/dist/server-safe/routeOptimization.test.d.ts.map +1 -0
- package/dist/server-safe/routeOptimization.test.js +234 -0
- package/dist/server-safe/routeOptimization.test.js.map +1 -0
- package/dist/server-safe/routePlanFingerprint.d.ts +13 -0
- package/dist/server-safe/routePlanFingerprint.d.ts.map +1 -0
- package/dist/server-safe/routePlanFingerprint.js +49 -0
- package/dist/server-safe/routePlanFingerprint.js.map +1 -0
- package/dist/server-safe/routePlanFingerprint.test.d.ts +2 -0
- package/dist/server-safe/routePlanFingerprint.test.d.ts.map +1 -0
- package/dist/server-safe/routePlanFingerprint.test.js +68 -0
- package/dist/server-safe/routePlanFingerprint.test.js.map +1 -0
- package/dist/server-safe/scheduleListOrder.d.ts +18 -0
- package/dist/server-safe/scheduleListOrder.d.ts.map +1 -0
- package/dist/server-safe/scheduleListOrder.js +92 -0
- package/dist/server-safe/scheduleListOrder.js.map +1 -0
- package/dist/server-safe/scheduleListOrder.test.d.ts +2 -0
- package/dist/server-safe/scheduleListOrder.test.d.ts.map +1 -0
- package/dist/server-safe/scheduleListOrder.test.js +260 -0
- package/dist/server-safe/scheduleListOrder.test.js.map +1 -0
- package/dist/server-safe/serviceMinutes.d.ts +13 -0
- package/dist/server-safe/serviceMinutes.d.ts.map +1 -0
- package/dist/server-safe/serviceMinutes.js +38 -0
- package/dist/server-safe/serviceMinutes.js.map +1 -0
- package/dist/server-safe/serviceMinutes.test.d.ts +2 -0
- package/dist/server-safe/serviceMinutes.test.d.ts.map +1 -0
- package/dist/server-safe/serviceMinutes.test.js +86 -0
- package/dist/server-safe/serviceMinutes.test.js.map +1 -0
- package/dist/server-safe/settingsSearch.d.ts +24 -0
- package/dist/server-safe/settingsSearch.d.ts.map +1 -0
- package/dist/server-safe/settingsSearch.js +8 -0
- package/dist/server-safe/settingsSearch.js.map +1 -0
- package/dist/server-safe/supportChat.d.ts +59 -0
- package/dist/server-safe/supportChat.d.ts.map +1 -0
- package/dist/server-safe/supportChat.js +56 -0
- package/dist/server-safe/supportChat.js.map +1 -0
- package/dist/server-safe/templates.d.ts +15 -0
- package/dist/server-safe/templates.d.ts.map +1 -0
- package/dist/server-safe/templates.js +91 -0
- package/dist/server-safe/templates.js.map +1 -0
- package/dist/server-safe/templates.test.d.ts +2 -0
- package/dist/server-safe/templates.test.d.ts.map +1 -0
- package/dist/server-safe/templates.test.js +62 -0
- package/dist/server-safe/templates.test.js.map +1 -0
- package/dist/server-safe/trash.d.ts +50 -0
- package/dist/server-safe/trash.d.ts.map +1 -0
- package/dist/server-safe/trash.js +100 -0
- package/dist/server-safe/trash.js.map +1 -0
- package/dist/utils/LogHandler.d.ts +3 -0
- package/dist/utils/LogHandler.d.ts.map +1 -0
- package/dist/utils/LogHandler.js +16 -0
- package/dist/utils/LogHandler.js.map +1 -0
- package/dist/utils/convertSupabaseImagesToAssets.d.ts +28 -0
- package/dist/utils/convertSupabaseImagesToAssets.d.ts.map +1 -0
- package/dist/utils/convertSupabaseImagesToAssets.js +14 -0
- package/dist/utils/convertSupabaseImagesToAssets.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,1238 @@
|
|
|
1
|
+
import type { Database, JobPaymentStatusLabel, JobStatusLabel, Json, PAYMENT_OPTIONS, PermissionRoleRecord } from '../server-safe';
|
|
2
|
+
type uuid = string;
|
|
3
|
+
type timestamp = string;
|
|
4
|
+
export type PlatformOS = 'android' | 'ios' | 'windows' | 'macos' | 'web';
|
|
5
|
+
export type PaymentOptionValue = (typeof PAYMENT_OPTIONS)[number]['value'];
|
|
6
|
+
export type RecurringUpdateMode = 'single' | 'this_and_future';
|
|
7
|
+
export type OnboardingNextStep = 'push_notifications' | 'purchase_phone' | 'messaging' | 'auto_messages' | 'preload_data' | 'payments' | 'stripe' | 'tips' | 'done';
|
|
8
|
+
export interface Company {
|
|
9
|
+
id: uuid;
|
|
10
|
+
company_name: string;
|
|
11
|
+
time_zone: string;
|
|
12
|
+
industry: string;
|
|
13
|
+
address: ExistingAddress | null;
|
|
14
|
+
website: string | null;
|
|
15
|
+
company_color: string | null;
|
|
16
|
+
description: string | null;
|
|
17
|
+
primary_phone_number: string;
|
|
18
|
+
created_at: timestamp;
|
|
19
|
+
}
|
|
20
|
+
export interface NewClient {
|
|
21
|
+
email: string | null;
|
|
22
|
+
first_name: string | null;
|
|
23
|
+
last_name: string | null;
|
|
24
|
+
primary_phone_number: string | null;
|
|
25
|
+
client_company_name: string | null;
|
|
26
|
+
client_notes: string | null;
|
|
27
|
+
client_or_lead: 'client' | 'lead';
|
|
28
|
+
created_via?: string | null;
|
|
29
|
+
source_id: string | null;
|
|
30
|
+
stripe_customer_id: string | null;
|
|
31
|
+
is_do_not_service?: boolean;
|
|
32
|
+
is_do_not_sms?: boolean;
|
|
33
|
+
is_do_not_marketing_sms?: boolean;
|
|
34
|
+
auto_bill_on_completion?: boolean;
|
|
35
|
+
billing_address?: string | null;
|
|
36
|
+
billing_address2?: string | null;
|
|
37
|
+
billing_city?: string | null;
|
|
38
|
+
billing_state?: string | null;
|
|
39
|
+
billing_zip_code?: string | null;
|
|
40
|
+
}
|
|
41
|
+
export interface ExistingClient extends NewClient {
|
|
42
|
+
id: uuid;
|
|
43
|
+
company_id: uuid;
|
|
44
|
+
created_at: timestamp;
|
|
45
|
+
address?: ExistingAddress;
|
|
46
|
+
deleted_at: timestamp | null;
|
|
47
|
+
deletion_id: uuid | null;
|
|
48
|
+
date_became_client: timestamp | null;
|
|
49
|
+
}
|
|
50
|
+
export interface NewAddress {
|
|
51
|
+
address: string;
|
|
52
|
+
address2?: string | null;
|
|
53
|
+
city: string;
|
|
54
|
+
state: string;
|
|
55
|
+
zip_code: string;
|
|
56
|
+
is_primary: boolean;
|
|
57
|
+
client_id: uuid | null;
|
|
58
|
+
}
|
|
59
|
+
export interface ExistingAddress extends NewAddress {
|
|
60
|
+
id: uuid;
|
|
61
|
+
company_id: uuid;
|
|
62
|
+
created_at: timestamp;
|
|
63
|
+
latitude: number | null;
|
|
64
|
+
longitude: number | null;
|
|
65
|
+
}
|
|
66
|
+
export interface NewUser {
|
|
67
|
+
first_name: string;
|
|
68
|
+
last_name: string;
|
|
69
|
+
phone_number: string;
|
|
70
|
+
email: string;
|
|
71
|
+
field_tech: boolean;
|
|
72
|
+
company_id: uuid;
|
|
73
|
+
role_id: number;
|
|
74
|
+
permission_role_id: uuid | null;
|
|
75
|
+
tag_color: string;
|
|
76
|
+
subcontractor: boolean;
|
|
77
|
+
location_tracking_enabled: boolean;
|
|
78
|
+
}
|
|
79
|
+
export interface ExistingUser extends NewUser {
|
|
80
|
+
id: uuid;
|
|
81
|
+
created_at: timestamp;
|
|
82
|
+
is_current_employee: boolean;
|
|
83
|
+
is_reinvited: boolean | null;
|
|
84
|
+
is_hidden: boolean;
|
|
85
|
+
type: 'existing';
|
|
86
|
+
apns_token: string | null;
|
|
87
|
+
fcm_token: string | null;
|
|
88
|
+
permission_role?: PermissionRoleRecord | null;
|
|
89
|
+
}
|
|
90
|
+
export interface PendingUser extends NewUser {
|
|
91
|
+
created_at: timestamp;
|
|
92
|
+
staging_id: uuid;
|
|
93
|
+
type: 'pending';
|
|
94
|
+
}
|
|
95
|
+
export type FetchedEmployees = {
|
|
96
|
+
existingUsers: ExistingUser[];
|
|
97
|
+
pendingUsers: PendingUser[];
|
|
98
|
+
};
|
|
99
|
+
export type ExistingUserUpdates = Partial<Pick<ExistingUser, 'first_name' | 'last_name' | 'phone_number' | 'tag_color' | 'field_tech' | 'role_id' | 'location_tracking_enabled'>>;
|
|
100
|
+
export type ExistingSubcontractorUpdates = Partial<Pick<ExistingUser, 'first_name' | 'last_name' | 'email' | 'phone_number' | 'tag_color'>>;
|
|
101
|
+
export type PendingUserUpdates = Partial<Pick<PendingUser, 'first_name' | 'last_name' | 'phone_number' | 'tag_color' | 'field_tech' | 'role_id' | 'location_tracking_enabled'>>;
|
|
102
|
+
export interface EmployeeLocation {
|
|
103
|
+
user_id: uuid;
|
|
104
|
+
company_id: uuid;
|
|
105
|
+
latitude: number;
|
|
106
|
+
longitude: number;
|
|
107
|
+
accuracy_m: number | null;
|
|
108
|
+
heading: number | null;
|
|
109
|
+
speed_mps: number | null;
|
|
110
|
+
device_recorded_at: timestamp;
|
|
111
|
+
created_at: timestamp;
|
|
112
|
+
updated_at: timestamp;
|
|
113
|
+
}
|
|
114
|
+
export type UpsertEmployeeLocationInput = Pick<EmployeeLocation, 'user_id' | 'company_id' | 'latitude' | 'longitude' | 'accuracy_m' | 'heading' | 'speed_mps' | 'device_recorded_at'>;
|
|
115
|
+
export interface JobUser {
|
|
116
|
+
id: uuid;
|
|
117
|
+
job_id: uuid;
|
|
118
|
+
user_id: uuid;
|
|
119
|
+
company_id: uuid;
|
|
120
|
+
job_schedule_id: uuid;
|
|
121
|
+
}
|
|
122
|
+
export interface JobUserRecurring {
|
|
123
|
+
id: uuid;
|
|
124
|
+
user_id: uuid;
|
|
125
|
+
company_id: uuid;
|
|
126
|
+
job_recurring_id: string;
|
|
127
|
+
}
|
|
128
|
+
export interface NewRecurringJob {
|
|
129
|
+
rrule: string;
|
|
130
|
+
start_time: string;
|
|
131
|
+
end_time: string;
|
|
132
|
+
client_id: uuid;
|
|
133
|
+
company_id: uuid;
|
|
134
|
+
notes?: string | null;
|
|
135
|
+
address_id?: uuid | null;
|
|
136
|
+
job_source?: string | null;
|
|
137
|
+
job_type?: string | null;
|
|
138
|
+
tax_rate_id?: uuid | null;
|
|
139
|
+
}
|
|
140
|
+
export interface ExistingRecurringJob extends NewRecurringJob {
|
|
141
|
+
id: string;
|
|
142
|
+
created_at: string;
|
|
143
|
+
deleted_at: string | null;
|
|
144
|
+
deletion_id: string | null;
|
|
145
|
+
job_user: JobUserRecurring[];
|
|
146
|
+
}
|
|
147
|
+
export interface NewJobSchedule {
|
|
148
|
+
start_time: string;
|
|
149
|
+
end_time: string;
|
|
150
|
+
status: JobStatusLabel;
|
|
151
|
+
task_type?: string | null;
|
|
152
|
+
asset_id?: uuid | null;
|
|
153
|
+
secondary_asset_id?: uuid | null;
|
|
154
|
+
any_time?: boolean;
|
|
155
|
+
list_sort_key?: number | null;
|
|
156
|
+
size?: number | null;
|
|
157
|
+
company_id: uuid;
|
|
158
|
+
job_user: ExistingUser[];
|
|
159
|
+
}
|
|
160
|
+
export interface ExistingJobSchedule extends NewJobSchedule {
|
|
161
|
+
id: uuid;
|
|
162
|
+
created_at: timestamp;
|
|
163
|
+
job_id: uuid;
|
|
164
|
+
}
|
|
165
|
+
export interface NewJob {
|
|
166
|
+
company_id: uuid;
|
|
167
|
+
client_id: uuid;
|
|
168
|
+
notes: string | null;
|
|
169
|
+
type: string | null;
|
|
170
|
+
job_source: string | null;
|
|
171
|
+
address_id: uuid | null;
|
|
172
|
+
tax_rate_id?: uuid | null;
|
|
173
|
+
estimate_id?: uuid | null;
|
|
174
|
+
unpaid_upfront: boolean | null;
|
|
175
|
+
unsigned_rental_agreement?: boolean | null;
|
|
176
|
+
job_recurring_id: uuid | null;
|
|
177
|
+
created_via?: string | null;
|
|
178
|
+
}
|
|
179
|
+
export interface ExistingJob extends NewJob {
|
|
180
|
+
id: uuid;
|
|
181
|
+
created_at: timestamp;
|
|
182
|
+
job_number: number;
|
|
183
|
+
deleted_at: timestamp | null;
|
|
184
|
+
deletion_id: uuid | null;
|
|
185
|
+
}
|
|
186
|
+
export type NonEmptyArray<T> = [T, ...T[]];
|
|
187
|
+
export interface ExistingJobComplete extends ExistingJob {
|
|
188
|
+
job_schedule: NonEmptyArray<ExistingJobSchedule>;
|
|
189
|
+
client: ExistingClient;
|
|
190
|
+
total_amount: number;
|
|
191
|
+
amount_due: number;
|
|
192
|
+
job_payment_status: JobPaymentStatusLabel;
|
|
193
|
+
items: ExistingLineItem[];
|
|
194
|
+
payments: ExistingPayment[];
|
|
195
|
+
discounts: JobDiscount[];
|
|
196
|
+
address?: ExistingAddress | null;
|
|
197
|
+
tax_rate?: ExistingTaxRate | null;
|
|
198
|
+
}
|
|
199
|
+
export interface JobUpdates {
|
|
200
|
+
notes?: string;
|
|
201
|
+
job_source?: string;
|
|
202
|
+
type?: string | null;
|
|
203
|
+
tax_rate_id?: string | null;
|
|
204
|
+
unpaid_upfront?: boolean | null;
|
|
205
|
+
unsigned_rental_agreement?: boolean | null;
|
|
206
|
+
address_id?: string | null;
|
|
207
|
+
}
|
|
208
|
+
export interface NewPayment {
|
|
209
|
+
company_id: string;
|
|
210
|
+
job_id: uuid | null;
|
|
211
|
+
invoice_id: uuid | null;
|
|
212
|
+
payment_type: PaymentOptionValue;
|
|
213
|
+
amount_base: number;
|
|
214
|
+
amount_tip: number | null;
|
|
215
|
+
payment_date?: timestamp;
|
|
216
|
+
status: string | null;
|
|
217
|
+
stripe_payment_id: string | null;
|
|
218
|
+
}
|
|
219
|
+
export interface ExistingPayment extends NewPayment {
|
|
220
|
+
id: uuid;
|
|
221
|
+
created_at: timestamp;
|
|
222
|
+
payment_date: timestamp;
|
|
223
|
+
deleted_at: timestamp | null;
|
|
224
|
+
deletion_id: uuid | null;
|
|
225
|
+
}
|
|
226
|
+
export interface ExistingPaymentComplete extends ExistingPayment {
|
|
227
|
+
client: ExistingClient;
|
|
228
|
+
job_number: number | null;
|
|
229
|
+
invoice_number: number | null;
|
|
230
|
+
}
|
|
231
|
+
export type EstimateStatusLabel = 'Unsent' | 'Sent' | 'Approved' | 'Declined';
|
|
232
|
+
export interface NewEstimate {
|
|
233
|
+
client_id: uuid;
|
|
234
|
+
status: EstimateStatusLabel;
|
|
235
|
+
notes: string | null;
|
|
236
|
+
address_id: uuid | null;
|
|
237
|
+
tax_rate_id?: uuid | null;
|
|
238
|
+
show_on_schedule?: boolean;
|
|
239
|
+
schedule_start?: timestamp | null;
|
|
240
|
+
schedule_end?: timestamp | null;
|
|
241
|
+
schedule_status?: JobStatusLabel | null;
|
|
242
|
+
}
|
|
243
|
+
export interface ExistingEstimate extends NewEstimate {
|
|
244
|
+
id: uuid;
|
|
245
|
+
company_id: uuid;
|
|
246
|
+
created_at: timestamp;
|
|
247
|
+
deleted_at: timestamp | null;
|
|
248
|
+
deletion_id: uuid | null;
|
|
249
|
+
estimate_number: number;
|
|
250
|
+
show_on_schedule: boolean;
|
|
251
|
+
schedule_start: timestamp | null;
|
|
252
|
+
schedule_end: timestamp | null;
|
|
253
|
+
schedule_status: JobStatusLabel | null;
|
|
254
|
+
}
|
|
255
|
+
export interface ExistingEstimateUser {
|
|
256
|
+
id: uuid;
|
|
257
|
+
created_at: timestamp;
|
|
258
|
+
estimate_id: uuid;
|
|
259
|
+
user_id: uuid;
|
|
260
|
+
company_id: uuid;
|
|
261
|
+
}
|
|
262
|
+
export interface ExistingEstimateComplete extends ExistingEstimate {
|
|
263
|
+
client: ExistingClient;
|
|
264
|
+
address?: ExistingAddress | null;
|
|
265
|
+
tax_rate?: ExistingTaxRate | null;
|
|
266
|
+
items: ExistingLineItem[];
|
|
267
|
+
discounts: EstimateDiscount[];
|
|
268
|
+
total_amount: number;
|
|
269
|
+
estimate_user: ExistingEstimateUser[];
|
|
270
|
+
users: ExistingUser[];
|
|
271
|
+
}
|
|
272
|
+
export interface EstimateUpdates {
|
|
273
|
+
notes?: string;
|
|
274
|
+
status?: EstimateStatusLabel;
|
|
275
|
+
address_id?: string;
|
|
276
|
+
tax_rate_id?: uuid;
|
|
277
|
+
estimate_number?: number;
|
|
278
|
+
show_on_schedule?: boolean;
|
|
279
|
+
schedule_start?: timestamp | null;
|
|
280
|
+
schedule_end?: timestamp | null;
|
|
281
|
+
schedule_status?: JobStatusLabel | null;
|
|
282
|
+
}
|
|
283
|
+
export type InvoiceStatusLabel = 'Unsent' | 'Unpaid' | 'Partial' | 'Paid' | 'Overdue';
|
|
284
|
+
export interface NewInvoice {
|
|
285
|
+
client_id: uuid;
|
|
286
|
+
address_id: uuid | null;
|
|
287
|
+
job_id: uuid | null;
|
|
288
|
+
status: InvoiceStatusLabel;
|
|
289
|
+
notes: string | null;
|
|
290
|
+
due_date: timestamp;
|
|
291
|
+
tax_rate_id?: uuid | null;
|
|
292
|
+
}
|
|
293
|
+
export interface ExistingInvoice extends NewInvoice {
|
|
294
|
+
id: uuid;
|
|
295
|
+
company_id: uuid;
|
|
296
|
+
created_at: timestamp;
|
|
297
|
+
invoice_number: number;
|
|
298
|
+
tax_rate_id?: uuid | null;
|
|
299
|
+
deleted_at: timestamp | null;
|
|
300
|
+
deletion_id: uuid | null;
|
|
301
|
+
}
|
|
302
|
+
export interface ExistingInvoiceComplete extends ExistingInvoice {
|
|
303
|
+
client: ExistingClient;
|
|
304
|
+
address?: ExistingAddress | null;
|
|
305
|
+
job?: ExistingJob | null;
|
|
306
|
+
total_amount: number;
|
|
307
|
+
amount_due: number;
|
|
308
|
+
tax_rate?: ExistingTaxRate | null;
|
|
309
|
+
discounts: JobDiscount[];
|
|
310
|
+
items: ExistingLineItem[];
|
|
311
|
+
payments: ExistingPayment[];
|
|
312
|
+
}
|
|
313
|
+
export interface NewTaxRate {
|
|
314
|
+
name: string;
|
|
315
|
+
rate: number;
|
|
316
|
+
is_enabled: boolean;
|
|
317
|
+
is_default: boolean;
|
|
318
|
+
}
|
|
319
|
+
export interface ExistingTaxRate extends NewTaxRate {
|
|
320
|
+
id: uuid;
|
|
321
|
+
company_id: uuid;
|
|
322
|
+
created_at: timestamp;
|
|
323
|
+
}
|
|
324
|
+
export type UploadAttachments = {
|
|
325
|
+
base64?: string;
|
|
326
|
+
file?: File;
|
|
327
|
+
uri?: string;
|
|
328
|
+
width?: number;
|
|
329
|
+
height?: number;
|
|
330
|
+
originalPath?: string;
|
|
331
|
+
fileSize?: number;
|
|
332
|
+
type?: string;
|
|
333
|
+
fileName?: string;
|
|
334
|
+
duration?: number;
|
|
335
|
+
bitrate?: number;
|
|
336
|
+
id?: string;
|
|
337
|
+
};
|
|
338
|
+
export interface Attachment {
|
|
339
|
+
id: uuid;
|
|
340
|
+
name: string;
|
|
341
|
+
type: string;
|
|
342
|
+
signedUrl: string;
|
|
343
|
+
updated_at: string;
|
|
344
|
+
created_at: timestamp;
|
|
345
|
+
}
|
|
346
|
+
export interface NewEvent {
|
|
347
|
+
user_id: string;
|
|
348
|
+
company_id: string;
|
|
349
|
+
title: string;
|
|
350
|
+
notes: string | null;
|
|
351
|
+
start_date: string;
|
|
352
|
+
end_date: string;
|
|
353
|
+
private: boolean;
|
|
354
|
+
address_id: string | null;
|
|
355
|
+
list_sort_key?: number | null;
|
|
356
|
+
}
|
|
357
|
+
export interface ExistingEvent extends NewEvent {
|
|
358
|
+
id: string;
|
|
359
|
+
created_at: string;
|
|
360
|
+
deleted_at: string | null;
|
|
361
|
+
deletion_id: string | null;
|
|
362
|
+
}
|
|
363
|
+
export interface ExistingEventComplete extends ExistingEvent {
|
|
364
|
+
address: ExistingAddress | null;
|
|
365
|
+
}
|
|
366
|
+
export interface NewItem {
|
|
367
|
+
is_booking: boolean;
|
|
368
|
+
is_pricebook: boolean;
|
|
369
|
+
item_name: string;
|
|
370
|
+
item_price: number;
|
|
371
|
+
item_cost: number | null;
|
|
372
|
+
description: string | null;
|
|
373
|
+
category_id: uuid | null;
|
|
374
|
+
model_number: string | null;
|
|
375
|
+
taxable: boolean;
|
|
376
|
+
image?: Attachment | null;
|
|
377
|
+
payment_upfront: boolean;
|
|
378
|
+
duration?: number | null;
|
|
379
|
+
size?: number | null;
|
|
380
|
+
}
|
|
381
|
+
export interface ExistingItem extends NewItem {
|
|
382
|
+
id: uuid;
|
|
383
|
+
company_id: uuid;
|
|
384
|
+
created_at: timestamp;
|
|
385
|
+
deleted_at: timestamp | null;
|
|
386
|
+
deletion_id: uuid | null;
|
|
387
|
+
category?: ExistingCategory | null;
|
|
388
|
+
}
|
|
389
|
+
export interface NewLineItem {
|
|
390
|
+
item_name: string;
|
|
391
|
+
item_price: number;
|
|
392
|
+
item_cost: number;
|
|
393
|
+
taxable: boolean;
|
|
394
|
+
quantity: number;
|
|
395
|
+
description: string | null;
|
|
396
|
+
payment_upfront: boolean | null;
|
|
397
|
+
}
|
|
398
|
+
export interface ExistingLineItem extends NewLineItem {
|
|
399
|
+
id: uuid;
|
|
400
|
+
company_id: uuid;
|
|
401
|
+
created_at: timestamp;
|
|
402
|
+
job_item_recurring_id?: string | null;
|
|
403
|
+
}
|
|
404
|
+
export type ProposalStatus = 'Unsent' | 'Sent' | 'Opened' | 'Approved' | 'Declined';
|
|
405
|
+
export interface NewEstimateProposal {
|
|
406
|
+
estimate_id: uuid;
|
|
407
|
+
status: ProposalStatus;
|
|
408
|
+
selected_option_id: uuid | null;
|
|
409
|
+
customer_notes: string | null;
|
|
410
|
+
sent_at: timestamp | null;
|
|
411
|
+
opened_at: timestamp | null;
|
|
412
|
+
responded_at: timestamp | null;
|
|
413
|
+
}
|
|
414
|
+
export interface ExistingEstimateProposal extends NewEstimateProposal {
|
|
415
|
+
id: uuid;
|
|
416
|
+
company_id: uuid;
|
|
417
|
+
created_at: timestamp;
|
|
418
|
+
}
|
|
419
|
+
export interface NewProposalOption {
|
|
420
|
+
sort_order: number;
|
|
421
|
+
}
|
|
422
|
+
export interface ExistingProposalOption extends NewProposalOption {
|
|
423
|
+
id: uuid;
|
|
424
|
+
company_id: uuid;
|
|
425
|
+
proposal_id: uuid;
|
|
426
|
+
created_at: timestamp;
|
|
427
|
+
}
|
|
428
|
+
export interface NewProposalOptionItem extends NewLineItem {
|
|
429
|
+
sort_order: number;
|
|
430
|
+
}
|
|
431
|
+
export interface ExistingProposalOptionItem extends NewProposalOptionItem {
|
|
432
|
+
id: uuid;
|
|
433
|
+
company_id: uuid;
|
|
434
|
+
option_id: uuid;
|
|
435
|
+
created_at: timestamp;
|
|
436
|
+
}
|
|
437
|
+
export interface ExistingProposalOptionWithItems extends ExistingProposalOption {
|
|
438
|
+
items: ExistingProposalOptionItem[];
|
|
439
|
+
}
|
|
440
|
+
export interface NewProposalAddon extends Omit<NewLineItem, 'payment_upfront'> {
|
|
441
|
+
is_selected: boolean;
|
|
442
|
+
sort_order: number;
|
|
443
|
+
}
|
|
444
|
+
export interface ExistingProposalAddon extends NewProposalAddon {
|
|
445
|
+
id: uuid;
|
|
446
|
+
company_id: uuid;
|
|
447
|
+
proposal_id: uuid;
|
|
448
|
+
created_at: timestamp;
|
|
449
|
+
}
|
|
450
|
+
export interface ExistingEstimateProposalWithChildren extends ExistingEstimateProposal {
|
|
451
|
+
options: ExistingProposalOptionWithItems[];
|
|
452
|
+
addons: ExistingProposalAddon[];
|
|
453
|
+
}
|
|
454
|
+
export interface ProposalBuilderPayload {
|
|
455
|
+
options: {
|
|
456
|
+
sort_order: number;
|
|
457
|
+
items: NewProposalOptionItem[];
|
|
458
|
+
}[];
|
|
459
|
+
addons: NewProposalAddon[];
|
|
460
|
+
}
|
|
461
|
+
export type ContractStatus = 'Unsent' | 'Sent' | 'Opened' | 'Signed' | 'Voided';
|
|
462
|
+
export type ContractEntityType = 'job' | 'invoice' | 'estimate' | 'client';
|
|
463
|
+
export interface NewContractTemplate {
|
|
464
|
+
name: string;
|
|
465
|
+
body: string;
|
|
466
|
+
is_archived: boolean;
|
|
467
|
+
}
|
|
468
|
+
export interface ExistingContractTemplate extends NewContractTemplate {
|
|
469
|
+
id: uuid;
|
|
470
|
+
company_id: uuid;
|
|
471
|
+
created_at: timestamp;
|
|
472
|
+
updated_at: timestamp | null;
|
|
473
|
+
}
|
|
474
|
+
export interface NewContract {
|
|
475
|
+
template_id: uuid | null;
|
|
476
|
+
job_id: uuid | null;
|
|
477
|
+
invoice_id: uuid | null;
|
|
478
|
+
estimate_id: uuid | null;
|
|
479
|
+
client_id: uuid | null;
|
|
480
|
+
title: string;
|
|
481
|
+
body: string;
|
|
482
|
+
status: ContractStatus;
|
|
483
|
+
sent_at: timestamp | null;
|
|
484
|
+
signed_at: timestamp | null;
|
|
485
|
+
}
|
|
486
|
+
export interface ExistingContract extends NewContract {
|
|
487
|
+
id: uuid;
|
|
488
|
+
company_id: uuid;
|
|
489
|
+
created_at: timestamp;
|
|
490
|
+
updated_at: timestamp | null;
|
|
491
|
+
contract_number: number;
|
|
492
|
+
access_token_nonce: uuid | null;
|
|
493
|
+
}
|
|
494
|
+
export interface ExistingContractSignature {
|
|
495
|
+
id: uuid;
|
|
496
|
+
company_id: uuid;
|
|
497
|
+
contract_id: uuid;
|
|
498
|
+
signed_at: timestamp;
|
|
499
|
+
signer_name: string;
|
|
500
|
+
signer_ip: string | null;
|
|
501
|
+
signer_user_agent: string | null;
|
|
502
|
+
body_sha256: string;
|
|
503
|
+
signature_storage_path: string;
|
|
504
|
+
}
|
|
505
|
+
export interface NewItemContractRequirement {
|
|
506
|
+
item_id: uuid;
|
|
507
|
+
contract_template_id: uuid;
|
|
508
|
+
}
|
|
509
|
+
export interface ExistingItemContractRequirement extends NewItemContractRequirement {
|
|
510
|
+
company_id: uuid;
|
|
511
|
+
created_at: timestamp;
|
|
512
|
+
}
|
|
513
|
+
export interface NewContractSettings {
|
|
514
|
+
is_enabled: boolean;
|
|
515
|
+
}
|
|
516
|
+
export interface ExistingContractSettings extends NewContractSettings {
|
|
517
|
+
company_id: uuid;
|
|
518
|
+
created_at: timestamp;
|
|
519
|
+
updated_at: timestamp | null;
|
|
520
|
+
}
|
|
521
|
+
export type RentalIndustry = 'dumpster' | 'equipment' | 'portable_toilet' | 'other';
|
|
522
|
+
export type PresetTaskKey = 'drop_off' | 'pick_up' | 'swap' | 'live_load' | 'relocate' | 'dump_and_return' | 'repair' | 'service';
|
|
523
|
+
export type AssetFullness = 'unknown' | 'empty' | 'full';
|
|
524
|
+
export type AssetLocationKind = 'unknown' | 'saved' | 'freeform' | 'temporary';
|
|
525
|
+
export type SavedLocationType = 'lot' | 'dump' | 'other';
|
|
526
|
+
export type SavedLocationIcon = 'park' | 'wrench' | 'gear' | 'house' | 'factory' | 'warehouse' | 'truck' | 'flag';
|
|
527
|
+
export type AssetLocation = {
|
|
528
|
+
kind: 'unknown';
|
|
529
|
+
} | {
|
|
530
|
+
kind: 'saved';
|
|
531
|
+
savedLocationId: uuid;
|
|
532
|
+
} | {
|
|
533
|
+
kind: 'freeform' | 'temporary';
|
|
534
|
+
address: string;
|
|
535
|
+
latitude: number | null;
|
|
536
|
+
longitude: number | null;
|
|
537
|
+
};
|
|
538
|
+
export interface NewRentalSettings {
|
|
539
|
+
rentals_enabled: boolean;
|
|
540
|
+
industry_preset: RentalIndustry | null;
|
|
541
|
+
owner_modal_answered: boolean;
|
|
542
|
+
}
|
|
543
|
+
export interface ExistingRentalSettings extends NewRentalSettings {
|
|
544
|
+
company_id: uuid;
|
|
545
|
+
created_at: timestamp;
|
|
546
|
+
updated_at: timestamp | null;
|
|
547
|
+
}
|
|
548
|
+
export interface NewSavedLocation {
|
|
549
|
+
label: string;
|
|
550
|
+
address: string;
|
|
551
|
+
latitude: number | null;
|
|
552
|
+
longitude: number | null;
|
|
553
|
+
icon: SavedLocationIcon;
|
|
554
|
+
icon_color: string;
|
|
555
|
+
location_type: SavedLocationType;
|
|
556
|
+
is_archived: boolean;
|
|
557
|
+
}
|
|
558
|
+
export interface ExistingSavedLocation extends NewSavedLocation {
|
|
559
|
+
id: uuid;
|
|
560
|
+
company_id: uuid;
|
|
561
|
+
created_at: timestamp;
|
|
562
|
+
updated_at: timestamp | null;
|
|
563
|
+
}
|
|
564
|
+
export interface NewRentalTaskOption {
|
|
565
|
+
preset_key: PresetTaskKey | null;
|
|
566
|
+
label: string | null;
|
|
567
|
+
sort_order: number;
|
|
568
|
+
is_archived: boolean;
|
|
569
|
+
}
|
|
570
|
+
export interface ExistingRentalTaskOption extends NewRentalTaskOption {
|
|
571
|
+
id: uuid;
|
|
572
|
+
company_id: uuid;
|
|
573
|
+
created_at: timestamp;
|
|
574
|
+
updated_at: timestamp | null;
|
|
575
|
+
}
|
|
576
|
+
export interface NewRentalAsset {
|
|
577
|
+
label: string;
|
|
578
|
+
size: number | null;
|
|
579
|
+
fullness: AssetFullness;
|
|
580
|
+
location: AssetLocation;
|
|
581
|
+
}
|
|
582
|
+
export interface ExistingRentalAsset {
|
|
583
|
+
id: uuid;
|
|
584
|
+
company_id: uuid;
|
|
585
|
+
created_at: timestamp;
|
|
586
|
+
updated_at: timestamp | null;
|
|
587
|
+
label: string;
|
|
588
|
+
size: number | null;
|
|
589
|
+
fullness: AssetFullness;
|
|
590
|
+
location_kind: AssetLocationKind;
|
|
591
|
+
saved_location_id: uuid | null;
|
|
592
|
+
location_address: string | null;
|
|
593
|
+
location_latitude: number | null;
|
|
594
|
+
location_longitude: number | null;
|
|
595
|
+
is_archived: boolean;
|
|
596
|
+
}
|
|
597
|
+
export interface TaskCompletionAssetWrite {
|
|
598
|
+
assetId: uuid;
|
|
599
|
+
patch: Partial<Pick<NewRentalAsset, 'fullness'>>;
|
|
600
|
+
location?: AssetLocation;
|
|
601
|
+
}
|
|
602
|
+
export type AssetWhereaboutsChoice = {
|
|
603
|
+
kind: 'saved';
|
|
604
|
+
savedLocationId: uuid;
|
|
605
|
+
} | {
|
|
606
|
+
kind: 'job_address';
|
|
607
|
+
} | {
|
|
608
|
+
kind: 'one_off';
|
|
609
|
+
address: string;
|
|
610
|
+
latitude: number | null;
|
|
611
|
+
longitude: number | null;
|
|
612
|
+
};
|
|
613
|
+
export interface TaskWhereaboutsAnswers {
|
|
614
|
+
fullness: Exclude<AssetFullness, 'unknown'>;
|
|
615
|
+
location: AssetWhereaboutsChoice;
|
|
616
|
+
}
|
|
617
|
+
export interface NewCategory {
|
|
618
|
+
name: string;
|
|
619
|
+
note: string | null;
|
|
620
|
+
image?: Attachment;
|
|
621
|
+
}
|
|
622
|
+
export interface ExistingCategory extends NewCategory {
|
|
623
|
+
id: uuid;
|
|
624
|
+
company_id: uuid;
|
|
625
|
+
created_at: timestamp;
|
|
626
|
+
deleted_at: timestamp | null;
|
|
627
|
+
deletion_id: uuid | null;
|
|
628
|
+
}
|
|
629
|
+
export interface Chat {
|
|
630
|
+
client_id?: uuid;
|
|
631
|
+
client_name?: string;
|
|
632
|
+
client_or_lead?: 'client' | 'lead';
|
|
633
|
+
employee_name?: string;
|
|
634
|
+
employee_or_subcontractor?: 'employee' | 'subcontractor';
|
|
635
|
+
is_do_not_service?: boolean;
|
|
636
|
+
is_do_not_sms?: boolean;
|
|
637
|
+
is_do_not_marketing_sms?: boolean;
|
|
638
|
+
is_blocked?: boolean;
|
|
639
|
+
client_number: string;
|
|
640
|
+
latest_message: string;
|
|
641
|
+
last_active: timestamp;
|
|
642
|
+
}
|
|
643
|
+
export type AllChats = Chat[];
|
|
644
|
+
export interface NewMessage {
|
|
645
|
+
content: string;
|
|
646
|
+
company_id: uuid;
|
|
647
|
+
user_id: uuid;
|
|
648
|
+
client_number: string;
|
|
649
|
+
user_number: string;
|
|
650
|
+
inbound: boolean;
|
|
651
|
+
sent: boolean;
|
|
652
|
+
image?: string;
|
|
653
|
+
video?: string;
|
|
654
|
+
system?: boolean;
|
|
655
|
+
received?: boolean;
|
|
656
|
+
pending?: boolean;
|
|
657
|
+
read?: boolean;
|
|
658
|
+
bulk?: boolean;
|
|
659
|
+
client_id?: uuid;
|
|
660
|
+
}
|
|
661
|
+
export interface ExistingMessage {
|
|
662
|
+
id: uuid;
|
|
663
|
+
created_at: timestamp;
|
|
664
|
+
sent: boolean;
|
|
665
|
+
inbound: boolean;
|
|
666
|
+
content: string;
|
|
667
|
+
company_id: uuid;
|
|
668
|
+
user_id: uuid;
|
|
669
|
+
client_number: string;
|
|
670
|
+
user_number: string;
|
|
671
|
+
image: string | null;
|
|
672
|
+
video: string | null;
|
|
673
|
+
system: boolean | null;
|
|
674
|
+
received: boolean | null;
|
|
675
|
+
pending: boolean | null;
|
|
676
|
+
read: boolean | null;
|
|
677
|
+
client_id: uuid | null;
|
|
678
|
+
automation_run_id?: uuid | null;
|
|
679
|
+
}
|
|
680
|
+
export type Billing = Database['public']['Tables']['billing']['Row'] & {
|
|
681
|
+
tier: Database['public']['Tables']['tier']['Row'];
|
|
682
|
+
};
|
|
683
|
+
export interface NewTimeCardEntry {
|
|
684
|
+
user_id: uuid;
|
|
685
|
+
company_id: uuid;
|
|
686
|
+
clock_in: timestamp;
|
|
687
|
+
clock_out: timestamp | null;
|
|
688
|
+
}
|
|
689
|
+
export interface TimeCardEntry extends NewTimeCardEntry {
|
|
690
|
+
id: uuid;
|
|
691
|
+
created_at: timestamp;
|
|
692
|
+
}
|
|
693
|
+
export interface Schedule {
|
|
694
|
+
start_date: string;
|
|
695
|
+
end_date: string | null;
|
|
696
|
+
start_time: string;
|
|
697
|
+
end_time: string | null;
|
|
698
|
+
}
|
|
699
|
+
export interface CompanySettings {
|
|
700
|
+
id: string;
|
|
701
|
+
company_id: string;
|
|
702
|
+
show_a2p_approved_status: boolean;
|
|
703
|
+
terms_of_service: string;
|
|
704
|
+
show_company_name: boolean;
|
|
705
|
+
show_company_logo: boolean;
|
|
706
|
+
show_company_address: boolean;
|
|
707
|
+
enable_invoice_signature: boolean;
|
|
708
|
+
enable_estimate_signature: boolean;
|
|
709
|
+
hide_autopilot_branding: boolean;
|
|
710
|
+
estimate_theme: string;
|
|
711
|
+
invoice_theme: string;
|
|
712
|
+
created_at: string;
|
|
713
|
+
}
|
|
714
|
+
export type BookingCustomerField = 'first_name' | 'last_name' | 'phone_number' | 'email' | 'address' | 'description' | 'photos';
|
|
715
|
+
export type CustomerFieldSettings = {
|
|
716
|
+
[K in BookingCustomerField as `customer_${K}_active`]: boolean;
|
|
717
|
+
} & {
|
|
718
|
+
[K in BookingCustomerField as `customer_${K}_required`]: boolean;
|
|
719
|
+
};
|
|
720
|
+
export type BookingAddressDisplay = 'full' | 'city_state';
|
|
721
|
+
export interface NewBookingSettings extends CustomerFieldSettings {
|
|
722
|
+
company_name: string;
|
|
723
|
+
interface_title: string;
|
|
724
|
+
interface_description: string;
|
|
725
|
+
redirect_url: string;
|
|
726
|
+
double_booking: boolean;
|
|
727
|
+
min_notice_time: number;
|
|
728
|
+
slot_duration: number;
|
|
729
|
+
arrival_window: number;
|
|
730
|
+
add_to_calendar: boolean;
|
|
731
|
+
default_lead_source: string;
|
|
732
|
+
default_reply_to_email: string | null;
|
|
733
|
+
default_contact_number: string | null;
|
|
734
|
+
require_payment_upfront: boolean;
|
|
735
|
+
enforce_rental_availability: boolean;
|
|
736
|
+
rental_button_label: string;
|
|
737
|
+
service_button_label: string;
|
|
738
|
+
save_credit_card: boolean;
|
|
739
|
+
hide_header: boolean;
|
|
740
|
+
show_company_address?: boolean;
|
|
741
|
+
company_address_display?: BookingAddressDisplay;
|
|
742
|
+
primary_color: string;
|
|
743
|
+
text_color: string;
|
|
744
|
+
secondary_text_color: string;
|
|
745
|
+
table_background_color: string;
|
|
746
|
+
background_color: string;
|
|
747
|
+
company_hours: CompanyHoursSettings;
|
|
748
|
+
}
|
|
749
|
+
export interface ExistingBookingSettings extends NewBookingSettings {
|
|
750
|
+
id: string;
|
|
751
|
+
company_id: string;
|
|
752
|
+
created_at: timestamp;
|
|
753
|
+
}
|
|
754
|
+
export interface NewPhoneNumber {
|
|
755
|
+
twilio: boolean;
|
|
756
|
+
company_id: uuid;
|
|
757
|
+
phone_number: string;
|
|
758
|
+
label: string | null;
|
|
759
|
+
client_id: uuid | null;
|
|
760
|
+
user_id: uuid | null;
|
|
761
|
+
forwarding_number: string | null;
|
|
762
|
+
forwarding_behavior: 'app' | 'PSTN' | null;
|
|
763
|
+
vm_greeting_id: string | null;
|
|
764
|
+
whisper?: boolean;
|
|
765
|
+
is_recording?: boolean | null;
|
|
766
|
+
}
|
|
767
|
+
export interface ExistingPhoneNumber extends NewPhoneNumber {
|
|
768
|
+
id: uuid;
|
|
769
|
+
created_at: timestamp;
|
|
770
|
+
phone_sid: string | null;
|
|
771
|
+
vm_auto_reply_enabled: boolean;
|
|
772
|
+
missed_call_auto_reply_enabled: boolean;
|
|
773
|
+
auto_reply_content: string;
|
|
774
|
+
no_answer_call_forwarding_enabled: boolean;
|
|
775
|
+
no_answer_call_forwarding_duration: number;
|
|
776
|
+
no_answer_call_forwarding_number: string | null;
|
|
777
|
+
ai_missed_calls_enabled: boolean;
|
|
778
|
+
ai_after_hours_enabled: boolean;
|
|
779
|
+
}
|
|
780
|
+
export type PhoneCallAiStatus = 'pending' | 'processing' | 'completed' | 'failed';
|
|
781
|
+
export type PhoneCallDirection = 'incoming' | 'outgoing' | 'unknown';
|
|
782
|
+
export type PhoneCallAiErrorCode = 'recording_not_ready' | 'download_failed' | 'transcription_failed' | 'summary_failed' | 'summary_incomplete' | 'queue_failed' | 'audio_too_large' | 'credentials_missing' | 'retries_exhausted' | 'unknown';
|
|
783
|
+
export type PhoneCallTranscriptSegment = {
|
|
784
|
+
speaker?: string | null;
|
|
785
|
+
speaker_role?: 'you' | 'contact' | 'unknown' | null;
|
|
786
|
+
channel?: number | null;
|
|
787
|
+
text: string;
|
|
788
|
+
start_seconds?: number | null;
|
|
789
|
+
end_seconds?: number | null;
|
|
790
|
+
};
|
|
791
|
+
export interface ExistingPhoneCall {
|
|
792
|
+
id: uuid;
|
|
793
|
+
created_at: timestamp;
|
|
794
|
+
updated_at: timestamp;
|
|
795
|
+
company_id: uuid;
|
|
796
|
+
phone_number_id: uuid | null;
|
|
797
|
+
call_sid: string | null;
|
|
798
|
+
parent_call_sid: string | null;
|
|
799
|
+
recording_sid: string;
|
|
800
|
+
recording_url: string | null;
|
|
801
|
+
recording_content_type: string | null;
|
|
802
|
+
recording_duration_seconds: number | null;
|
|
803
|
+
call_duration_seconds: number | null;
|
|
804
|
+
direction: PhoneCallDirection;
|
|
805
|
+
from_number: string | null;
|
|
806
|
+
to_number: string | null;
|
|
807
|
+
contact_number: string | null;
|
|
808
|
+
contact_name: string | null;
|
|
809
|
+
phone_number_label: string | null;
|
|
810
|
+
call_started_at: timestamp | null;
|
|
811
|
+
call_ended_at: timestamp | null;
|
|
812
|
+
recording_started_at: timestamp | null;
|
|
813
|
+
recording_completed_at: timestamp | null;
|
|
814
|
+
ai_status: PhoneCallAiStatus;
|
|
815
|
+
ai_started_at: timestamp | null;
|
|
816
|
+
ai_completed_at: timestamp | null;
|
|
817
|
+
ai_attempts: number;
|
|
818
|
+
ai_error: string | null;
|
|
819
|
+
ai_error_code: PhoneCallAiErrorCode | null;
|
|
820
|
+
transcript_text: string | null;
|
|
821
|
+
transcript_segments: PhoneCallTranscriptSegment[];
|
|
822
|
+
summary: string | null;
|
|
823
|
+
summary_json: Record<string, Json | undefined>;
|
|
824
|
+
transcription_model: string | null;
|
|
825
|
+
summary_model: string | null;
|
|
826
|
+
openai_transcription_response_id: string | null;
|
|
827
|
+
openai_summary_response_id: string | null;
|
|
828
|
+
metadata: Record<string, Json | undefined>;
|
|
829
|
+
}
|
|
830
|
+
export interface NewBlockedNumber {
|
|
831
|
+
company_id: uuid;
|
|
832
|
+
phone_number: string;
|
|
833
|
+
blocked_by_user_id?: uuid | null;
|
|
834
|
+
}
|
|
835
|
+
export interface ExistingBlockedNumber extends NewBlockedNumber {
|
|
836
|
+
id: uuid;
|
|
837
|
+
created_at: timestamp;
|
|
838
|
+
}
|
|
839
|
+
interface VoicemailMetadata {
|
|
840
|
+
cacheControl?: string;
|
|
841
|
+
contentLength?: number;
|
|
842
|
+
eTag?: string;
|
|
843
|
+
httpStatusCode?: number;
|
|
844
|
+
lastModified?: string;
|
|
845
|
+
mimetype?: string;
|
|
846
|
+
size?: number;
|
|
847
|
+
[key: string]: any;
|
|
848
|
+
}
|
|
849
|
+
export interface VoicemailGreeting {
|
|
850
|
+
created_at: string;
|
|
851
|
+
fullPath: string;
|
|
852
|
+
id: string;
|
|
853
|
+
last_accessed_at: string;
|
|
854
|
+
metadata: VoicemailMetadata;
|
|
855
|
+
name: string;
|
|
856
|
+
recordingId: string;
|
|
857
|
+
updated_at: string;
|
|
858
|
+
approx_duration_ms: number;
|
|
859
|
+
publicUrl: string;
|
|
860
|
+
}
|
|
861
|
+
export type ExistingAiVoiceAssistantSettings = {
|
|
862
|
+
id: string;
|
|
863
|
+
created_at: string;
|
|
864
|
+
updated_at: string;
|
|
865
|
+
company_id: string;
|
|
866
|
+
enabled: boolean;
|
|
867
|
+
assistant_name: string;
|
|
868
|
+
instructions: string;
|
|
869
|
+
use_default_instructions: boolean;
|
|
870
|
+
vapi_assistant_id: string | null;
|
|
871
|
+
vapi_phone_number_id: string | null;
|
|
872
|
+
vapi_sip_uri: string | null;
|
|
873
|
+
} & CompanyHoursSettings;
|
|
874
|
+
export type AiAssistantPromptTemplate = {
|
|
875
|
+
id: string;
|
|
876
|
+
created_at: string;
|
|
877
|
+
updated_at: string;
|
|
878
|
+
industry: string;
|
|
879
|
+
instructions: string;
|
|
880
|
+
};
|
|
881
|
+
export interface Integration {
|
|
882
|
+
id: uuid;
|
|
883
|
+
company_id: uuid;
|
|
884
|
+
google_ads_customer_id: string;
|
|
885
|
+
google_access_token: string;
|
|
886
|
+
google_refresh_token: string;
|
|
887
|
+
google_expiry_token: string;
|
|
888
|
+
fb_access_token: string;
|
|
889
|
+
fb_account_id: string;
|
|
890
|
+
stripe_account_id: string;
|
|
891
|
+
twilio_account_sid: string;
|
|
892
|
+
twilio_auth_token: string;
|
|
893
|
+
twilio_brand_reg_sid: string;
|
|
894
|
+
twilio_messaging_sid: string;
|
|
895
|
+
created_at: timestamp;
|
|
896
|
+
}
|
|
897
|
+
export interface NewJobType {
|
|
898
|
+
company_id: uuid;
|
|
899
|
+
name: string;
|
|
900
|
+
}
|
|
901
|
+
export interface ExistingJobType extends NewJobType {
|
|
902
|
+
id: uuid;
|
|
903
|
+
created_at: timestamp;
|
|
904
|
+
}
|
|
905
|
+
export interface NewJobSource {
|
|
906
|
+
company_id: uuid;
|
|
907
|
+
name: string;
|
|
908
|
+
category: 'paid' | 'organic' | 'unknown';
|
|
909
|
+
}
|
|
910
|
+
export interface ExistingJobSource extends NewJobSource {
|
|
911
|
+
id: uuid;
|
|
912
|
+
created_at: timestamp;
|
|
913
|
+
}
|
|
914
|
+
export type PushNotificationType = 'FCM' | 'APNS';
|
|
915
|
+
export interface UserPushNotification {
|
|
916
|
+
apns_token: string;
|
|
917
|
+
fcm_token: string;
|
|
918
|
+
}
|
|
919
|
+
export interface DateRange {
|
|
920
|
+
date_from: string;
|
|
921
|
+
date_to: string;
|
|
922
|
+
}
|
|
923
|
+
export type DayOfWeek = 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun';
|
|
924
|
+
export type CompanyHoursSettings = {
|
|
925
|
+
[K in DayOfWeek as `${K}_open_time`]: number;
|
|
926
|
+
} & {
|
|
927
|
+
[K in DayOfWeek as `${K}_close_time`]: number;
|
|
928
|
+
} & {
|
|
929
|
+
[K in DayOfWeek as `${K}_is_open`]: boolean;
|
|
930
|
+
};
|
|
931
|
+
export interface DaySetting {
|
|
932
|
+
label: string;
|
|
933
|
+
dayCode: string;
|
|
934
|
+
openTime: string;
|
|
935
|
+
closeTime: string;
|
|
936
|
+
isOpen: boolean;
|
|
937
|
+
}
|
|
938
|
+
export type NotificationStatus = 'open' | 'on_my_way' | 'in_progress' | 'canceled' | 'completed';
|
|
939
|
+
export type RecipientType = 'customer' | 'contractor' | 'employee';
|
|
940
|
+
export type BaseNotificationSettings = {
|
|
941
|
+
[R in RecipientType as `${R}_reminder`]?: string;
|
|
942
|
+
} & {
|
|
943
|
+
[R in RecipientType as `${R}_reminder_enabled`]?: boolean;
|
|
944
|
+
} & {
|
|
945
|
+
[R in RecipientType as `${R}_job_${NotificationStatus}`]: string;
|
|
946
|
+
} & {
|
|
947
|
+
[R in RecipientType as `${R}_job_${NotificationStatus}_enabled`]: boolean;
|
|
948
|
+
} & {
|
|
949
|
+
[R in RecipientType as `${R}_estimate_${NotificationStatus}`]?: string;
|
|
950
|
+
} & {
|
|
951
|
+
[R in RecipientType as `${R}_estimate_${NotificationStatus}_enabled`]?: boolean;
|
|
952
|
+
} & {
|
|
953
|
+
[R in RecipientType as `${R}_estimate_updated`]?: string;
|
|
954
|
+
} & {
|
|
955
|
+
[R in RecipientType as `${R}_estimate_updated_enabled`]?: boolean;
|
|
956
|
+
};
|
|
957
|
+
export interface NewNotificationSettings extends BaseNotificationSettings {
|
|
958
|
+
customer_job_reminder: string;
|
|
959
|
+
customer_job_reminder_enabled: boolean;
|
|
960
|
+
customer_job_reminder_time: string;
|
|
961
|
+
customer_estimate_reminder?: string;
|
|
962
|
+
customer_estimate_reminder_enabled?: boolean;
|
|
963
|
+
customer_estimate_reminder_time?: string;
|
|
964
|
+
}
|
|
965
|
+
export interface ExistingNotificationSettings extends NewNotificationSettings {
|
|
966
|
+
id: uuid;
|
|
967
|
+
company_id: uuid;
|
|
968
|
+
enable_incoming_sms_notification: boolean;
|
|
969
|
+
enable_owner_job_sms: boolean;
|
|
970
|
+
created_at: timestamp;
|
|
971
|
+
}
|
|
972
|
+
export interface NewEstimateSettings {
|
|
973
|
+
default_show_on_schedule: boolean;
|
|
974
|
+
proposals_enabled: boolean;
|
|
975
|
+
proposal_show_video: boolean;
|
|
976
|
+
proposal_video_url: string | null;
|
|
977
|
+
proposal_description: string | null;
|
|
978
|
+
}
|
|
979
|
+
export interface ExistingEstimateSettings extends NewEstimateSettings {
|
|
980
|
+
id: uuid;
|
|
981
|
+
company_id: uuid;
|
|
982
|
+
created_at: timestamp;
|
|
983
|
+
}
|
|
984
|
+
export interface NewPaymentSettings {
|
|
985
|
+
allow_tips: boolean;
|
|
986
|
+
default_tip_percentage: number;
|
|
987
|
+
default_tip_percentages: number[];
|
|
988
|
+
show_accepting_stripe: boolean;
|
|
989
|
+
}
|
|
990
|
+
export interface ExistingPaymentSettings extends NewPaymentSettings {
|
|
991
|
+
id: uuid;
|
|
992
|
+
company_id: uuid;
|
|
993
|
+
created_at: timestamp;
|
|
994
|
+
}
|
|
995
|
+
export interface NewCompanyTag {
|
|
996
|
+
name: string;
|
|
997
|
+
}
|
|
998
|
+
export interface ExistingCompanyTag extends NewCompanyTag {
|
|
999
|
+
id: uuid;
|
|
1000
|
+
company_id: uuid;
|
|
1001
|
+
created_at: timestamp;
|
|
1002
|
+
}
|
|
1003
|
+
export interface Discount {
|
|
1004
|
+
id: uuid;
|
|
1005
|
+
company_id: uuid;
|
|
1006
|
+
discount_name: string;
|
|
1007
|
+
discount_amount: number;
|
|
1008
|
+
discount_type: 'percentage' | 'amount';
|
|
1009
|
+
}
|
|
1010
|
+
export interface JobDiscount extends Discount {
|
|
1011
|
+
job_id: uuid | null;
|
|
1012
|
+
invoice_id: uuid | null;
|
|
1013
|
+
}
|
|
1014
|
+
export interface EstimateDiscount extends Discount {
|
|
1015
|
+
estimate_id: uuid;
|
|
1016
|
+
}
|
|
1017
|
+
export type RouteResponse<T = {}> = {
|
|
1018
|
+
data: T;
|
|
1019
|
+
error: null;
|
|
1020
|
+
message: string | null;
|
|
1021
|
+
} | {
|
|
1022
|
+
data: null;
|
|
1023
|
+
error: string;
|
|
1024
|
+
message: string | null;
|
|
1025
|
+
};
|
|
1026
|
+
export interface SendJobNotificationRequest {
|
|
1027
|
+
isThisTheNewRequestShape: true;
|
|
1028
|
+
jobUuid: string;
|
|
1029
|
+
fromBooking: boolean;
|
|
1030
|
+
newJobScheduleStatus?: JobStatusLabel;
|
|
1031
|
+
timeChange?: {
|
|
1032
|
+
scheduleId: string;
|
|
1033
|
+
oldStartTime: string;
|
|
1034
|
+
oldEndTime: string;
|
|
1035
|
+
newStartTime: string;
|
|
1036
|
+
newEndTime: string;
|
|
1037
|
+
}[];
|
|
1038
|
+
workersChange?: {
|
|
1039
|
+
scheduleId: string;
|
|
1040
|
+
addedUsers: string[];
|
|
1041
|
+
removedUsers: string[];
|
|
1042
|
+
}[];
|
|
1043
|
+
addressChange?: boolean;
|
|
1044
|
+
notesChange?: boolean;
|
|
1045
|
+
}
|
|
1046
|
+
export interface SendEstimateNotificationRequest {
|
|
1047
|
+
estimateUuid: string;
|
|
1048
|
+
newScheduleStatus?: JobStatusLabel;
|
|
1049
|
+
timeChange?: {
|
|
1050
|
+
oldStartTime: string;
|
|
1051
|
+
oldEndTime: string;
|
|
1052
|
+
newStartTime: string;
|
|
1053
|
+
newEndTime: string;
|
|
1054
|
+
};
|
|
1055
|
+
workersChange?: {
|
|
1056
|
+
addedUsers: string[];
|
|
1057
|
+
removedUsers: string[];
|
|
1058
|
+
};
|
|
1059
|
+
addressChange?: boolean;
|
|
1060
|
+
notesChange?: boolean;
|
|
1061
|
+
}
|
|
1062
|
+
export type CompanyPubliclyAccessible = Pick<Company, 'id' | 'company_name' | 'primary_phone_number' | 'website' | 'address' | 'company_color' | 'time_zone'> & Partial<Omit<Company, 'id' | 'company_name' | 'primary_phone_number' | 'website' | 'address' | 'company_color' | 'time_zone'>>;
|
|
1063
|
+
export interface SendCardOnFileFormRequest {
|
|
1064
|
+
clientId: string;
|
|
1065
|
+
sendingMethod: 'email' | 'sms' | 'email_and_sms';
|
|
1066
|
+
sendFromNumber: string;
|
|
1067
|
+
}
|
|
1068
|
+
export interface InvoiceGeneratePdfRequest {
|
|
1069
|
+
filename: string;
|
|
1070
|
+
documentType: 'invoice';
|
|
1071
|
+
company: CompanyPubliclyAccessible;
|
|
1072
|
+
companyLogo: Attachment | null;
|
|
1073
|
+
invoiceData: ExistingInvoiceComplete;
|
|
1074
|
+
invoiceItems: ExistingLineItem[];
|
|
1075
|
+
invoicePayments: ExistingPayment[];
|
|
1076
|
+
show_company_name?: boolean;
|
|
1077
|
+
show_company_address?: boolean;
|
|
1078
|
+
show_company_logo?: boolean;
|
|
1079
|
+
themeOverride?: string;
|
|
1080
|
+
}
|
|
1081
|
+
export interface EstimateGeneratePdfRequest {
|
|
1082
|
+
filename: string;
|
|
1083
|
+
documentType: 'estimate';
|
|
1084
|
+
company: CompanyPubliclyAccessible;
|
|
1085
|
+
companyLogo: Attachment | null;
|
|
1086
|
+
estimateData: ExistingEstimateComplete;
|
|
1087
|
+
estimateItems: ExistingLineItem[];
|
|
1088
|
+
show_company_name?: boolean;
|
|
1089
|
+
show_company_address?: boolean;
|
|
1090
|
+
show_company_logo?: boolean;
|
|
1091
|
+
themeOverride?: string;
|
|
1092
|
+
}
|
|
1093
|
+
export type GeneratePdfRequest = InvoiceGeneratePdfRequest | EstimateGeneratePdfRequest;
|
|
1094
|
+
interface BaseEmailRequest {
|
|
1095
|
+
company_id: string;
|
|
1096
|
+
to_email: string;
|
|
1097
|
+
to_name: string;
|
|
1098
|
+
from_name?: string;
|
|
1099
|
+
cc?: string[];
|
|
1100
|
+
bcc?: string[];
|
|
1101
|
+
company_name: string;
|
|
1102
|
+
company_phone_number: string;
|
|
1103
|
+
subject: string;
|
|
1104
|
+
file?: {
|
|
1105
|
+
content: string;
|
|
1106
|
+
name: string;
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
interface ReceiptData {
|
|
1110
|
+
invoice_number: string;
|
|
1111
|
+
payment_date?: string;
|
|
1112
|
+
invoice_date?: string;
|
|
1113
|
+
amount: string;
|
|
1114
|
+
payment_method: string;
|
|
1115
|
+
}
|
|
1116
|
+
interface InvoiceEstimateEmailRequest extends BaseEmailRequest {
|
|
1117
|
+
template: 'invoice' | 'estimate';
|
|
1118
|
+
message: string;
|
|
1119
|
+
url: string;
|
|
1120
|
+
}
|
|
1121
|
+
interface ReceiptEmailRequest extends BaseEmailRequest {
|
|
1122
|
+
template: 'receipt';
|
|
1123
|
+
receipt_data: ReceiptData;
|
|
1124
|
+
}
|
|
1125
|
+
interface EmployeeInviteEmailRequest extends BaseEmailRequest {
|
|
1126
|
+
template: 'employee_invite';
|
|
1127
|
+
url: string;
|
|
1128
|
+
}
|
|
1129
|
+
interface BookingConfirmationEmailRequest extends BaseEmailRequest {
|
|
1130
|
+
template: 'booking_confirmation';
|
|
1131
|
+
job_details: string;
|
|
1132
|
+
}
|
|
1133
|
+
export type TemplateEmailRequest = InvoiceEstimateEmailRequest | ReceiptEmailRequest | EmployeeInviteEmailRequest | BookingConfirmationEmailRequest;
|
|
1134
|
+
export interface SendEmailRequest {
|
|
1135
|
+
company_id?: string;
|
|
1136
|
+
to_email: string;
|
|
1137
|
+
to_name?: string;
|
|
1138
|
+
from_email?: string;
|
|
1139
|
+
from_name?: string;
|
|
1140
|
+
reply_to_email?: string;
|
|
1141
|
+
cc?: string[];
|
|
1142
|
+
bcc?: string[];
|
|
1143
|
+
subject: string;
|
|
1144
|
+
message: string;
|
|
1145
|
+
text?: string;
|
|
1146
|
+
file?: {
|
|
1147
|
+
content: string;
|
|
1148
|
+
name: string;
|
|
1149
|
+
};
|
|
1150
|
+
}
|
|
1151
|
+
export type PublicProposalOptionItem = Omit<ExistingProposalOptionItem, 'item_cost' | 'payment_upfront'>;
|
|
1152
|
+
export interface PublicProposalOptionWithItems extends ExistingProposalOption {
|
|
1153
|
+
items: PublicProposalOptionItem[];
|
|
1154
|
+
}
|
|
1155
|
+
export type PublicProposalAddon = Omit<ExistingProposalAddon, 'item_cost'>;
|
|
1156
|
+
export interface PublicProposalData {
|
|
1157
|
+
proposal: ExistingEstimateProposal;
|
|
1158
|
+
options: PublicProposalOptionWithItems[];
|
|
1159
|
+
addons: PublicProposalAddon[];
|
|
1160
|
+
settings: {
|
|
1161
|
+
proposal_show_video: boolean;
|
|
1162
|
+
proposal_video_url: string | null;
|
|
1163
|
+
proposal_description: string | null;
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
export interface PublicEstimateData {
|
|
1167
|
+
estimate: ExistingEstimateComplete;
|
|
1168
|
+
company: CompanyPubliclyAccessible;
|
|
1169
|
+
items: ExistingLineItem[];
|
|
1170
|
+
attachments: Attachment[];
|
|
1171
|
+
proposal?: PublicProposalData | null;
|
|
1172
|
+
}
|
|
1173
|
+
export type PublicEstimateRouteResponse = RouteResponse<PublicEstimateData>;
|
|
1174
|
+
export interface PublicInvoiceData {
|
|
1175
|
+
invoice: ExistingInvoiceComplete;
|
|
1176
|
+
company: CompanyPubliclyAccessible;
|
|
1177
|
+
items: ExistingLineItem[];
|
|
1178
|
+
payments: ExistingPayment[];
|
|
1179
|
+
attachments: Attachment[];
|
|
1180
|
+
paymentSettings: ExistingPaymentSettings | null;
|
|
1181
|
+
}
|
|
1182
|
+
export type PublicInvoiceRouteResponse = RouteResponse<PublicInvoiceData>;
|
|
1183
|
+
export interface PublicOwnerData {
|
|
1184
|
+
first_name: string;
|
|
1185
|
+
last_name: string;
|
|
1186
|
+
phone_number: string;
|
|
1187
|
+
email: string;
|
|
1188
|
+
role_id: number;
|
|
1189
|
+
}
|
|
1190
|
+
export type PublicOwnerRouteResponse = RouteResponse<PublicOwnerData>;
|
|
1191
|
+
export interface SavedCreditCard {
|
|
1192
|
+
id: string;
|
|
1193
|
+
card: {
|
|
1194
|
+
brand: string;
|
|
1195
|
+
last4: string;
|
|
1196
|
+
exp_month: number;
|
|
1197
|
+
exp_year: number;
|
|
1198
|
+
};
|
|
1199
|
+
created: number;
|
|
1200
|
+
}
|
|
1201
|
+
export interface PaymentMethodsResponse {
|
|
1202
|
+
paymentMethods: SavedCreditCard[];
|
|
1203
|
+
customerId: string;
|
|
1204
|
+
defaultPaymentMethodId?: string | null;
|
|
1205
|
+
}
|
|
1206
|
+
export interface SetDefaultCardRequest {
|
|
1207
|
+
clientId: string;
|
|
1208
|
+
paymentMethodId: string;
|
|
1209
|
+
}
|
|
1210
|
+
export interface ChargeCardOnFileRequest {
|
|
1211
|
+
jobId: string;
|
|
1212
|
+
expectedAmountCents: number;
|
|
1213
|
+
}
|
|
1214
|
+
export interface ChargeCardOnFileSuccess {
|
|
1215
|
+
success: true;
|
|
1216
|
+
skipped?: 'nothing_due';
|
|
1217
|
+
paymentId?: string;
|
|
1218
|
+
invoiceId?: string;
|
|
1219
|
+
invoiceNumber?: number;
|
|
1220
|
+
amountChargedCents?: number;
|
|
1221
|
+
receiptEmail?: {
|
|
1222
|
+
sent: boolean;
|
|
1223
|
+
reason?: 'no_client_email' | 'send_failed';
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
export interface ChargeCardOnFileFailure {
|
|
1227
|
+
success: false;
|
|
1228
|
+
errorCode: 'amount_mismatch' | 'card_declined' | 'authentication_required' | 'no_card' | 'no_default_card' | 'auto_bill_disabled' | 'job_not_completed' | 'stripe_not_configured' | 'invoice_create_failed' | 'charge_recorded_error' | 'unknown';
|
|
1229
|
+
declineCode?: string;
|
|
1230
|
+
message: string;
|
|
1231
|
+
card?: {
|
|
1232
|
+
brand: string;
|
|
1233
|
+
last4: string;
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
export type ChargeCardOnFileResponse = ChargeCardOnFileSuccess | ChargeCardOnFileFailure;
|
|
1237
|
+
export {};
|
|
1238
|
+
//# sourceMappingURL=index.d.ts.map
|